Class: Google::Apis::CloudkmsV1::UpgradeKeyTrust
- Inherits:
-
Object
- Object
- Google::Apis::CloudkmsV1::UpgradeKeyTrust
- 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
-
#name ⇒ String
Required.
-
#two_factor_public_key_pem ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UpgradeKeyTrust
constructor
A new instance of UpgradeKeyTrust.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#name ⇒ String
Required. The name of the CryptoKeyVersion to promote.
Corresponds to the JSON property name
4294 4295 4296 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 4294 def name @name end |
#two_factor_public_key_pem ⇒ String
Required. The public key associated with the 2FA key that will sign the login
nonce for this operation.
Corresponds to the JSON property twoFactorPublicKeyPem
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 |