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).
- service accounts keys get projects (response)
- service accounts keys create projects (response)
Fields
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_after_time: Option<String>
The key can be used after this timestamp.
key_algorithm: Option<String>
Specifies the algorithm (and possibly key size) for the key.
private_key_data: Option<String>
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.
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_ID}/serviceAccounts/{ACCOUNT}/keys/{key}
.
Trait Implementations
impl Default for ServiceAccountKey
[src]
impl Default for ServiceAccountKey
fn default() -> ServiceAccountKey
[src]
fn default() -> ServiceAccountKey
Returns the "default value" for a type. Read more
impl Clone for ServiceAccountKey
[src]
impl Clone for ServiceAccountKey
fn clone(&self) -> ServiceAccountKey
[src]
fn clone(&self) -> ServiceAccountKey
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for ServiceAccountKey
[src]
impl Debug for ServiceAccountKey
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl ResponseResult for ServiceAccountKey
[src]
impl ResponseResult for ServiceAccountKey
Auto Trait Implementations
impl Send for ServiceAccountKey
impl Send for ServiceAccountKey
impl Sync for ServiceAccountKey
impl Sync for ServiceAccountKey