Struct google_iam1::ServiceAccountKey[][src]

pub struct ServiceAccountKey {
    pub private_key_type: Option<String>,
    pub valid_after_time: Option<String>,
    pub key_algorithm: Option<String>,
    pub private_key_data: Option<String>,
    pub valid_before_time: Option<String>,
    pub public_key_data: Option<String>,
    pub name: Option<String>,
}

Represents a service account key.

A service account has two sets of key-pairs: user-managed, and system-managed.

User-managed key-pairs can be created and deleted by users. Users are responsible for rotating these keys periodically to ensure security of their service accounts. Users retain the private key of these key-pairs, and Google retains ONLY the public key.

System-managed keys are automatically rotated by Google, and are used for signing for a maximum of two weeks. The rotation process is probabilistic, and usage of the new key will gradually ramp up and down over the key's lifetime. We recommend caching the public key set for a service account for no more than 24 hours to ensure you have access to the latest keys.

Public keys for all service accounts are also published at the OAuth2 Service Account API.

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

The output format for the private key. Only provided in CreateServiceAccountKey responses, not in GetServiceAccountKey or ListServiceAccountKey responses.

Google never exposes system-managed private keys, and never retains user-managed private keys.

The key can be used after this timestamp.

Specifies the algorithm (and possibly key size) for the key.

The private key data. Only provided in CreateServiceAccountKey responses. Make sure to keep the private key data secure because it allows for the assertion of the service account identity. When base64 decoded, the private key data can be used to authenticate with Google API client libraries and with gcloud auth activate-service-account.

The key can be used before this timestamp.

The public key data. Only provided in GetServiceAccountKey responses.

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

Trait Implementations

impl Default for ServiceAccountKey
[src]

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

impl Clone for ServiceAccountKey
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ServiceAccountKey
[src]

Formats the value using the given formatter. Read more

impl ResponseResult for ServiceAccountKey
[src]

Auto Trait Implementations