Class: Google::Apis::CloudkmsV1::UpdateCryptoKeyPrimaryVersionRequest

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

Overview

Request message for KeyManagementService.UpdateCryptoKeyPrimaryVersion.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpdateCryptoKeyPrimaryVersionRequest

Returns a new instance of UpdateCryptoKeyPrimaryVersionRequest.



3000
3001
3002
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 3000

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

Instance Attribute Details

#crypto_key_version_idString

Required. The id of the child CryptoKeyVersion to use as primary. Corresponds to the JSON property cryptoKeyVersionId

Returns:

  • (String)


2998
2999
3000
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 2998

def crypto_key_version_id
  @crypto_key_version_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3005
3006
3007
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 3005

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