pub struct ServiceAccountKey {
pub name: String,
pub algorithm: i32,
pub state: i32,
pub creator: String,
pub create_time: Option<Timestamp>,
pub last_use_time: Option<Timestamp>,
pub delete_time: Option<Timestamp>,
pub credentials_file: String,
}Expand description
A key pair an service_account::Type::External service account authenticates with. The
platform keeps only its public key.
Fields§
§name: StringThe key’s resource name.
algorithm: i32The algorithm the key signs with: service_account_key::Algorithm::Es256.
state: i32Where the key is in its lifecycle.
creator: StringThe full name of who created the key: //iam.origincloudapis.eu/users/{user},
//iam.origincloudapis.eu/organizations/{organization}/serviceAccounts/{service_account},
//iam.origincloudapis.eu/serviceAgents/{service_agent} for a platform
service agent, or //iam.origincloudapis.eu/services/{service} for a
change the platform made itself.
create_time: Option<Timestamp>When the key was created.
last_use_time: Option<Timestamp>When an assertion signed with the key was last exchanged; unset while none has been.
delete_time: Option<Timestamp>When the key was deleted; unset while it is active.
credentials_file: StringThe credentials file, in the response that created the key and never
again: a JSON document to save as it is. It holds type
(service_account_key), name (the key’s full name), service_account
(the service account’s full name), algorithm (service_account_key::Algorithm::Es256), private_key
(the private key in PEM, -----BEGIN PRIVATE KEY-----) and sts_endpoint
(<https://sts.origincloudapis.eu,> where its assertions are exchanged).
The platform keeps no copy. Empty in every other response.
Implementations§
Source§impl ServiceAccountKey
impl ServiceAccountKey
Sourcepub fn algorithm(&self) -> Algorithm
pub fn algorithm(&self) -> Algorithm
Returns the enum value of algorithm, or the default if the field is set to an invalid enum value.
Sourcepub fn set_algorithm(&mut self, value: Algorithm)
pub fn set_algorithm(&mut self, value: Algorithm)
Sets algorithm to the provided enum value.
Trait Implementations§
Source§impl Clone for ServiceAccountKey
impl Clone for ServiceAccountKey
Source§impl Debug for ServiceAccountKey
impl Debug for ServiceAccountKey
Source§impl Default for ServiceAccountKey
impl Default for ServiceAccountKey
Source§impl<'de> Deserialize<'de> for ServiceAccountKey
impl<'de> Deserialize<'de> for ServiceAccountKey
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
impl Eq for ServiceAccountKey
Source§impl Hash for ServiceAccountKey
impl Hash for ServiceAccountKey
Source§impl Message for ServiceAccountKey
impl Message for ServiceAccountKey
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for ServiceAccountKey
impl PartialEq for ServiceAccountKey
Source§impl Serialize for ServiceAccountKey
impl Serialize for ServiceAccountKey
impl StructuralPartialEq for ServiceAccountKey
Auto Trait Implementations§
impl Forget for ServiceAccountKey
impl Freeze for ServiceAccountKey
impl Move for ServiceAccountKey
impl RefUnwindSafe for ServiceAccountKey
impl Send for ServiceAccountKey
impl Sync for ServiceAccountKey
impl Unpin for ServiceAccountKey
impl UnsafeUnpin 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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.