REST Resource: permissions
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
資源:Permissions
JSON 表示法 |
{
"issuerId": string,
"permissions": [
{
object (Permission )
}
]
} |
欄位 |
issuerId |
string (int64 format)
權限清單參照的核發者 ID。
|
permissions[] |
object (Permission )
核發機構帳戶的完整權限清單。
|
權限
JSON 表示法 |
{
"emailAddress": string,
"role": enum (Role )
} |
欄位 |
emailAddress |
string
這個權限參照的使用者、群組或服務帳戶的電子郵件地址。
|
role |
enum (Role )
這個權限授予的角色。
|
角色
列舉 |
ROLE_UNSPECIFIED |
|
OWNER |
|
owner |
OWNER 的舊版別名,已淘汰。
|
READER |
|
reader |
READER 的舊版別名,已淘汰。
|
WRITER |
|
writer |
WRITER 的舊版別名,已淘汰。
|
方法 |
|
傳回指定核發者 ID 的權限。 |
|
更新指定核發機構的權限。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\u003cp\u003ePermissions define access levels (OWNER, READER, WRITER) for users, groups, or service accounts associated with an issuer ID.\u003c/p\u003e\n"],["\u003cp\u003ePermissions can be managed through the \u003ccode\u003eget\u003c/code\u003e and \u003ccode\u003eupdate\u003c/code\u003e methods to retrieve and modify access rights.\u003c/p\u003e\n"],["\u003cp\u003ePermissions are structured with an issuer ID and an array of individual permissions, each specifying an email address and a role.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePermissions\u003c/code\u003e resource provides a comprehensive list of permissions for a given issuer, enabling centralized access control.\u003c/p\u003e\n"]]],["Permissions are managed for an issuer, identified by an `issuerId`. The permission structure includes a list of `permissions`, each specifying an `emailAddress` and a granted `role`. Roles can be `OWNER`, `READER`, or `WRITER`; lowercase versions are deprecated aliases. Permissions can be retrieved using the `get` method by issuer id. The `update` method allows modifying the permissions list associated with a specified issuer.\n"],null,["# REST Resource: permissions\n\n- [Resource: Permissions](#Permissions)\n - [JSON representation](#Permissions.SCHEMA_REPRESENTATION)\n- [Permission](#Permission)\n - [JSON representation](#Permission.SCHEMA_REPRESENTATION)\n- [Role](#Role)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Permissions\n---------------------\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------|\n| ``` { \"issuerId\": string, \"permissions\": [ { object (/wallet/reference/rest/v1/permissions#Permission) } ] } ``` |\n\n| Fields ||\n|-----------------|----------------------------------------------------------------------------------------------------------------------------------------|\n| `issuerId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` ID of the issuer the list of permissions refer to. |\n| `permissions[]` | `object (`[Permission](/wallet/reference/rest/v1/permissions#Permission)`)` The complete list of permissions for the issuer account. |\n\nPermission\n----------\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------|\n| ``` { \"emailAddress\": string, \"role\": enum (/wallet/reference/rest/v1/permissions#Role) } ``` |\n\n| Fields ||\n|----------------|-------------------------------------------------------------------------------------------------------|\n| `emailAddress` | `string` The email address of the user, group, or service account to which this permission refers to. |\n| `role` | `enum (`[Role](/wallet/reference/rest/v1/permissions#Role)`)` The role granted by this permission. |\n\nRole\n----\n\n| Enums ||\n|--------------------|-------------------------------------------------------------------|\n| `ROLE_UNSPECIFIED` | |\n| `OWNER` | |\n| `owner` | Legacy alias for `OWNER`. Deprecated. | This item is deprecated! |\n| `READER` | |\n| `reader` | Legacy alias for `READER`. Deprecated. | This item is deprecated! |\n| `WRITER` | |\n| `writer` | Legacy alias for `WRITER`. Deprecated. | This item is deprecated! |\n\n| Methods ------- ||\n|------------------------------------------------------------|--------------------------------------------------|\n| ### [get](/wallet/reference/rest/v1/permissions/get) | Returns the permissions for the given issuer id. |\n| ### [update](/wallet/reference/rest/v1/permissions/update) | Updates the permissions for the given issuer. |"]]