Class: Google::Apis::CloudkmsV1::UpgradeKeyTrust

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

Promotes a key with the AES_WRAPPING purpose to a trusted wrapping key. The key must be in the ACTIVE state to perform this operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpgradeKeyTrust

Returns a new instance of UpgradeKeyTrust.



4302
4303
4304
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 4302

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

Instance Attribute Details

#nameString

Required. The name of the CryptoKeyVersion to promote. Corresponds to the JSON property name

Returns:

  • (String)


4294
4295
4296
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 4294

def name
  @name
end

#two_factor_public_key_pemString

Required. The public key associated with the 2FA key that will sign the login nonce for this operation. Corresponds to the JSON property twoFactorPublicKeyPem

Returns:

  • (String)


4300
4301
4302
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 4300

def two_factor_public_key_pem
  @two_factor_public_key_pem
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4307
4308
4309
4310
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 4307

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