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

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

Overview

The service account key create request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CreateServiceAccountKeyRequest

Returns a new instance of CreateServiceAccountKeyRequest.



404
405
406
# File 'lib/google/apis/iam_v1/classes.rb', line 404

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

Instance Attribute Details

#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)


396
397
398
# File 'lib/google/apis/iam_v1/classes.rb', line 396

def key_algorithm
  @key_algorithm
end

#private_key_typeString

The output format of the private key. The default value is TYPE_GOOGLE_CREDENTIALS_FILE, which is the Google Credentials File format. Corresponds to the JSON property privateKeyType

Returns:

  • (String)


402
403
404
# File 'lib/google/apis/iam_v1/classes.rb', line 402

def private_key_type
  @private_key_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



409
410
411
412
# File 'lib/google/apis/iam_v1/classes.rb', line 409

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