[][src]Struct gcp_client::google::iam::admin::v1::CreateServiceAccountKeyRequest

pub struct CreateServiceAccountKeyRequest {
    pub name: String,
    pub private_key_type: i32,
    pub key_algorithm: i32,
}

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

impl CreateServiceAccountKeyRequest[src]

pub fn private_key_type(&self) -> ServiceAccountPrivateKeyType[src]

Returns the enum value of private_key_type, or the default if the field is set to an invalid enum value.

pub fn set_private_key_type(&mut self, value: ServiceAccountPrivateKeyType)[src]

Sets private_key_type to the provided enum value.

pub fn key_algorithm(&self) -> ServiceAccountKeyAlgorithm[src]

Returns the enum value of key_algorithm, or the default if the field is set to an invalid enum value.

pub fn set_key_algorithm(&mut self, value: ServiceAccountKeyAlgorithm)[src]

Sets key_algorithm to the provided enum value.

Trait Implementations

impl Clone for CreateServiceAccountKeyRequest[src]

impl Debug for CreateServiceAccountKeyRequest[src]

impl Default for CreateServiceAccountKeyRequest[src]

impl Message for CreateServiceAccountKeyRequest[src]

impl PartialEq<CreateServiceAccountKeyRequest> for CreateServiceAccountKeyRequest[src]

impl StructuralPartialEq for CreateServiceAccountKeyRequest[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]