Enum AuthType
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
AuthType
用于定义可为连接器设置的身份验证类型的枚举。
若要调用枚举,您可以调用其父类、名称和属性。例如
DataStudioApp.AuthType.OAUTH2。
属性
| 媒体资源 | 类型 | 说明 |
NONE | Enum | 无需授权。 |
OAUTH2 | Enum | 需要 OAuth2 授权。 |
USER_PASS | Enum | 需要提供用户名和密码凭据。 |
PATH_USER_PASS | Enum | 需要提供用户名、路径和密码。 |
PATH_KEY | Enum | 所需的路径和键。 |
KEY | Enum | 需要 API 密钥或令牌。 |
USER_TOKEN | Enum | 需要用户名和令牌。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2026-04-13。
[null,null,["最后更新时间 (UTC):2026-04-13。"],[],["`AuthType` is an enum defining connector authentication methods. It includes `NONE` for no authorization, `OAUTH2` for OAuth2, `USER_PASS` for username/password, `PATH_USER_PASS` for username/path/password, `PATH_KEY` for path/key, `KEY` for API Key/Token, and `USER_TOKEN` for username/token. Access is via `DataStudioApp.AuthType.PROPERTY`, replacing `PROPERTY` with the desired method. Each method is represented by an `Enum` type.\n"]]