Struct google_iam1::ServiceAccount
[−]
[src]
pub struct ServiceAccount { pub oauth2_client_id: Option<String>, pub etag: Option<String>, pub display_name: Option<String>, pub name: Option<String>, pub unique_id: Option<String>, pub project_id: Option<String>, pub email: Option<String>, }
A service account in the Identity and Access Management API. To create a service account, specify the project_id
and the account_id
for the account. The account_id
is unique within the project, and is used to generate the service account email address and a stable unique_id
. If the account already exists, the account's resource name is returned in util::Status's ResourceInfo.resource_name in the format of projects/{project}/serviceAccounts/{email}. The caller can use the name in other methods to access the account. All other methods can identify the service account using the format projects/{project}/serviceAccounts/{account}
. Using -
as a wildcard for the project will infer the project from the account. The account
value can be the email
address or the unique_id
of the service account.
Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- service accounts update projects (request|response)
- service accounts get projects (response)
- service accounts create projects (response)
Fields
oauth2_client_id: Option<String>
@OutputOnly. The OAuth2 client id for the service account. This is used in conjunction with the OAuth2 clientconfig API to make three legged OAuth2 (3LO) flows to access the data of Google users.
etag: Option<String>
Used to perform a consistent read-modify-write.
display_name: Option<String>
Optional. A user-specified description of the service account. Must be fewer than 100 UTF-8 bytes.
name: Option<String>
The resource name of the service account in the following format: projects/{project}/serviceAccounts/{account}
. Requests using -
as a wildcard for the project will infer the project from the account
and the account
value can be the email
address or the unique_id
of the service account. In responses the resource name will always be in the format projects/{project}/serviceAccounts/{email}
.
unique_id: Option<String>
@OutputOnly The unique and stable id of the service account.
project_id: Option<String>
@OutputOnly The id of the project that owns the service account.
email: Option<String>
@OutputOnly The email address of the service account.
Trait Implementations
impl Debug for ServiceAccount
[src]
impl Clone for ServiceAccount
[src]
fn clone(&self) -> ServiceAccount
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Default for ServiceAccount
[src]
fn default() -> ServiceAccount
Returns the "default value" for a type. Read more