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):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003e\u003ccode\u003eAuthType\u003c/code\u003e is an enum used to define the authentication types for a connector in DataStudio.\u003c/p\u003e\n"],["\u003cp\u003eAuthentication types include options like no authorization, OAuth2, username/password, and API key/token methods.\u003c/p\u003e\n"],["\u003cp\u003eYou can call the \u003ccode\u003eAuthType\u003c/code\u003e enum using \u003ccode\u003eDataStudioApp.AuthType\u003c/code\u003e followed by the desired property (e.g., \u003ccode\u003eDataStudioApp.AuthType.OAUTH2\u003c/code\u003e).\u003c/p\u003e\n"]]],["`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"],null,["# Enum AuthType\n\nAuthType\n\nAn enum that defines the authentication types that can be set for a connector.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nDataStudioApp.AuthType.OAUTH2`. \n\n### Properties\n\n| Property | Type | Description |\n|------------------|--------|-------------------------------------------|\n| `NONE` | `Enum` | No authorization needed. |\n| `OAUTH2` | `Enum` | OAuth2 authorization needed. |\n| `USER_PASS` | `Enum` | Username and password credentials needed. |\n| `PATH_USER_PASS` | `Enum` | Username, path, and password needed. |\n| `PATH_KEY` | `Enum` | Path and key needed. |\n| `KEY` | `Enum` | API Key or Token needed. |\n| `USER_TOKEN` | `Enum` | Username and token needed. |"]]