Struct google_api_proto::google::iam::admin::v1::CreateServiceAccountKeyRequest
source · pub struct CreateServiceAccountKeyRequest {
pub name: String,
pub private_key_type: i32,
pub key_algorithm: i32,
}
Expand description
The service account key create request.
Fields§
§name: String
Required. The resource name of the service account in the following format:
projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}
.
Using -
as a wildcard for the PROJECT_ID
will infer the project from
the account. The ACCOUNT
value can be the email
address or the
unique_id
of the service account.
private_key_type: i32
The output format of the private key. The default value is
TYPE_GOOGLE_CREDENTIALS_FILE
, which is the Google Credentials File
format.
key_algorithm: i32
Which type of key and algorithm to use for the key. The default is currently a 2K RSA key. However this may change in the future.
Implementations§
source§impl CreateServiceAccountKeyRequest
impl CreateServiceAccountKeyRequest
sourcepub fn private_key_type(&self) -> ServiceAccountPrivateKeyType
pub fn private_key_type(&self) -> ServiceAccountPrivateKeyType
Returns the enum value of private_key_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_private_key_type(&mut self, value: ServiceAccountPrivateKeyType)
pub fn set_private_key_type(&mut self, value: ServiceAccountPrivateKeyType)
Sets private_key_type
to the provided enum value.
sourcepub fn key_algorithm(&self) -> ServiceAccountKeyAlgorithm
pub fn key_algorithm(&self) -> ServiceAccountKeyAlgorithm
Returns the enum value of key_algorithm
, or the default if the field is set to an invalid enum value.
sourcepub fn set_key_algorithm(&mut self, value: ServiceAccountKeyAlgorithm)
pub fn set_key_algorithm(&mut self, value: ServiceAccountKeyAlgorithm)
Sets key_algorithm
to the provided enum value.
Trait Implementations§
source§impl Clone for CreateServiceAccountKeyRequest
impl Clone for CreateServiceAccountKeyRequest
source§fn clone(&self) -> CreateServiceAccountKeyRequest
fn clone(&self) -> CreateServiceAccountKeyRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for CreateServiceAccountKeyRequest
impl Message for CreateServiceAccountKeyRequest
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 CreateServiceAccountKeyRequest
impl PartialEq for CreateServiceAccountKeyRequest
source§fn eq(&self, other: &CreateServiceAccountKeyRequest) -> bool
fn eq(&self, other: &CreateServiceAccountKeyRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateServiceAccountKeyRequest
Auto Trait Implementations§
impl Freeze for CreateServiceAccountKeyRequest
impl RefUnwindSafe for CreateServiceAccountKeyRequest
impl Send for CreateServiceAccountKeyRequest
impl Sync for CreateServiceAccountKeyRequest
impl Unpin for CreateServiceAccountKeyRequest
impl UnwindSafe for CreateServiceAccountKeyRequest
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request