Enum AuthType
AuthType
อาร์เรย์แบบจำกัดที่กำหนดประเภทการตรวจสอบสิทธิ์ที่ตั้งค่าสำหรับเครื่องมือเชื่อมต่อได้
หากต้องการเรียกใช้ enum ให้เรียกคลาสหลัก ชื่อ และพร็อพเพอร์ตี้ของ enum นั้น เช่น
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 Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-12-02 UTC
[null,null,["อัปเดตล่าสุด 2024-12-02 UTC"],[[["`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"]]