REST Resource: permissions
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Zasób: Permissions
Zapis JSON |
{
"issuerId": string,
"permissions": [
{
object (Permission )
}
]
} |
Pola |
issuerId |
string (int64 format)
Identyfikator wydawcy, do którego odnosi się lista uprawnień.
|
permissions[] |
object (Permission )
Pełna lista uprawnień dla konta wydawcy.
|
Uprawnienie
Zapis JSON |
{
"emailAddress": string,
"role": enum (Role )
} |
Pola |
emailAddress |
string
Adres e-mail konta użytkownika, grupy lub usługi, których dotyczy to uprawnienie.
|
role |
enum (Role )
Rola przypisana przez to uprawnienie.
|
Rola
Wartości w polu enum |
ROLE_UNSPECIFIED |
|
OWNER |
|
owner |
Starsza wersja aliasu dla OWNER . Rola wycofana. |
READER |
|
reader |
Starsza wersja aliasu dla READER . Rola wycofana. |
WRITER |
|
writer |
Starsza wersja aliasu dla WRITER . Rola wycofana. |
Metody |
|
Zwraca uprawnienia dla podanego identyfikatora wydawcy. |
|
Aktualizuje uprawnienia danego wydawcy. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-25 UTC."],[[["\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. |"]]