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):2024-12-02。
[null,null,["最后更新时间 (UTC):2024-12-02。"],[[["`AuthType` is an enum used to define the authentication types for a connector in DataStudio."],["Authentication types include options like no authorization, OAuth2, username/password, and API key/token methods."],["You can call the `AuthType` enum using `DataStudioApp.AuthType` followed by the desired property (e.g., `DataStudioApp.AuthType.OAUTH2`)."]]],["`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"]]