Class: Google::Apis::IamV1::CreateServiceAccountKeyRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/iam_v1/classes.rb,
generated/google/apis/iam_v1/representations.rb,
generated/google/apis/iam_v1/representations.rb

Overview

The service account key create request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CreateServiceAccountKeyRequest

Returns a new instance of CreateServiceAccountKeyRequest



604
605
606
# File 'generated/google/apis/iam_v1/classes.rb', line 604

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#include_public_key_dataBoolean Also known as: include_public_key_data?

Corresponds to the JSON property includePublicKeyData

Returns:

  • (Boolean)


588
589
590
# File 'generated/google/apis/iam_v1/classes.rb', line 588

def include_public_key_data
  @include_public_key_data
end

#key_algorithmString

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. Corresponds to the JSON property keyAlgorithm

Returns:

  • (String)


596
597
598
# File 'generated/google/apis/iam_v1/classes.rb', line 596

def key_algorithm
  @key_algorithm
end

#private_key_typeString

The output format of the private key. GOOGLE_CREDENTIALS_FILE is the default output format. Corresponds to the JSON property privateKeyType

Returns:

  • (String)


602
603
604
# File 'generated/google/apis/iam_v1/classes.rb', line 602

def private_key_type
  @private_key_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



609
610
611
612
613
# File 'generated/google/apis/iam_v1/classes.rb', line 609

def update!(**args)
  @include_public_key_data = args[:include_public_key_data] if args.key?(:include_public_key_data)
  @key_algorithm = args[:key_algorithm] if args.key?(:key_algorithm)
  @private_key_type = args[:private_key_type] if args.key?(:private_key_type)
end