Struct google_iam1::ServiceAccountKey
source · pub struct ServiceAccountKey {
pub private_key_data: Option<String>,
pub name: Option<String>,
pub key_algorithm: Option<String>,
pub private_key_type: Option<String>,
pub valid_before_time: Option<String>,
pub public_key_data: Option<String>,
pub valid_after_time: Option<String>,
}Expand description
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§
§private_key_data: Option<String>The private key data. Only provided in CreateServiceAccountKey
responses.
name: Option<String>The resource name of the service account key in the following format
projects/{PROJECT_ID}/serviceAccounts/{SERVICE_ACCOUNT_EMAIL}/keys/{key}.
key_algorithm: Option<String>Specifies the algorithm (and possibly key size) for the key.
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.
valid_after_time: Option<String>The key can be used after this timestamp.
Trait Implementations§
source§impl Clone for ServiceAccountKey
impl Clone for ServiceAccountKey
source§fn clone(&self) -> ServiceAccountKey
fn clone(&self) -> ServiceAccountKey
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ServiceAccountKey
impl Debug for ServiceAccountKey
source§impl Default for ServiceAccountKey
impl Default for ServiceAccountKey
source§fn default() -> ServiceAccountKey
fn default() -> ServiceAccountKey
source§impl Deserialize for ServiceAccountKey
impl Deserialize for ServiceAccountKey
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer,
source§impl Serialize for ServiceAccountKey
impl Serialize for ServiceAccountKey
impl ResponseResult for ServiceAccountKey
Auto Trait Implementations§
impl Freeze for ServiceAccountKey
impl RefUnwindSafe for ServiceAccountKey
impl Send for ServiceAccountKey
impl Sync for ServiceAccountKey
impl Unpin for ServiceAccountKey
impl UnwindSafe for ServiceAccountKey
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more