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 the format of projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}. 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_ID}/serviceAccounts/{ACCOUNT}. Using - as a wildcard for the PROJECT_ID 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).

Fields

@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.

Used to perform a consistent read-modify-write.

Optional. A user-specified description of the service account. Must be fewer than 100 UTF-8 bytes.

The resource name of the service account in the following format: projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}.

Requests using - as a wildcard for the PROJECT_ID 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_ID}/serviceAccounts/{ACCOUNT}.

@OutputOnly The unique and stable id of the service account.

@OutputOnly The id of the project that owns the service account.

@OutputOnly The email address of the service account.

Trait Implementations

impl Default for ServiceAccount
[src]

Returns the "default value" for a type. Read more

impl Clone for ServiceAccount
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ServiceAccount
[src]

Formats the value using the given formatter. Read more

impl RequestValue for ServiceAccount
[src]

impl ResponseResult for ServiceAccount
[src]

Auto Trait Implementations