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

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

Overview

Request message for KeyManagementService.UpdateCryptoKeyPrimaryVersion.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ UpdateCryptoKeyPrimaryVersionRequest


1171
1172
1173
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 1171

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

Instance Attribute Details

#crypto_key_version_idString

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


1169
1170
1171
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 1169

def crypto_key_version_id
  @crypto_key_version_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1176
1177
1178
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 1176

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