Class: Google::Apis::CloudkmsV1::Challenge
- Inherits:
-
Object
- Object
- Google::Apis::CloudkmsV1::Challenge
- 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
A challenge to be signed by a 2FA key.
Instance Attribute Summary collapse
-
#challenge ⇒ String
Output only.
-
#public_key_pem ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Challenge
constructor
A new instance of Challenge.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Challenge
Returns a new instance of Challenge.
657 658 659 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 657 def initialize(**args) update!(**args) end |
Instance Attribute Details
#challenge ⇒ String
Output only. The challenge to be signed by the 2FA key indicated by the public
key.
Corresponds to the JSON property challenge
NOTE: Values are automatically base64 encoded/decoded in the client library.
649 650 651 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 649 def challenge @challenge end |
#public_key_pem ⇒ String
Output only. The public key associated with the 2FA key that should sign the
challenge.
Corresponds to the JSON property publicKeyPem
655 656 657 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 655 def public_key_pem @public_key_pem end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
662 663 664 665 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 662 def update!(**args) @challenge = args[:challenge] if args.key?(:challenge) @public_key_pem = args[:public_key_pem] if args.key?(:public_key_pem) end |