Struct google_iam1::ServiceAccountKey
[−]
[src]
pub struct ServiceAccountKey { pub key_algorithm: Option<String>, pub valid_after_time: Option<String>, pub private_key_data: Option<String>, pub private_key_type: 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 key-pairs are managed automatically by Google, and rotated daily without user intervention. The private key never leaves Google's servers to maximize security. 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).
- service accounts keys get projects (response)
- service accounts keys create projects (response)
Fields
key_algorithm: Option<String>
Specifies the algorithm (and possibly key size) for the key.
valid_after_time: Option<String>
The key can be used after this timestamp.
private_key_data: Option<String>
The private key data. Only provided in CreateServiceAccountKey
responses.
private_key_type: Option<String>
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.
valid_before_time: Option<String>
The key can be used before this timestamp.
public_key_data: Option<String>
The public key data. Only provided in GetServiceAccountKey
responses.
name: Option<String>
The resource name of the service account key in the following format projects/{project}/serviceAccounts/{account}/keys/{key}
.
Trait Implementations
impl Debug for ServiceAccountKey
[src]
impl Clone for ServiceAccountKey
[src]
fn clone(&self) -> ServiceAccountKey
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 ServiceAccountKey
[src]
fn default() -> ServiceAccountKey
Returns the "default value" for a type. Read more