Class: Google::Apis::ClouduseraccountsBeta::PublicKey
- Inherits:
-
Object
- Object
- Google::Apis::ClouduseraccountsBeta::PublicKey
- Defined in:
- generated/google/apis/clouduseraccounts_beta/classes.rb,
generated/google/apis/clouduseraccounts_beta/representations.rb,
generated/google/apis/clouduseraccounts_beta/representations.rb
Overview
A public key for authenticating to guests.
Instance Attribute Summary collapse
-
#creation_timestamp ⇒ String
[Output Only] Creation timestamp in RFC3339 text format.
-
#description ⇒ String
An optional textual description of the resource; provided by the client when the resource is created.
-
#expiration_timestamp ⇒ String
Optional expiration timestamp.
-
#fingerprint ⇒ String
[Output Only] The fingerprint of the key is defined by RFC4716 to be the MD5 digest of the public key.
-
#key ⇒ String
Public key text in SSH format, defined by RFC4253 section 6.6.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PublicKey
constructor
A new instance of PublicKey.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ PublicKey
Returns a new instance of PublicKey.
715 716 717 |
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 715 def initialize(**args) update!(**args) end |
Instance Attribute Details
#creation_timestamp ⇒ String
[Output Only] Creation timestamp in RFC3339 text format.
Corresponds to the JSON property creationTimestamp
690 691 692 |
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 690 def @creation_timestamp end |
#description ⇒ String
An optional textual description of the resource; provided by the client when
the resource is created.
Corresponds to the JSON property description
696 697 698 |
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 696 def description @description end |
#expiration_timestamp ⇒ String
Optional expiration timestamp. If provided, the timestamp must be in RFC3339
text format. If not provided, the public key never expires.
Corresponds to the JSON property expirationTimestamp
702 703 704 |
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 702 def @expiration_timestamp end |
#fingerprint ⇒ String
[Output Only] The fingerprint of the key is defined by RFC4716 to be the MD5
digest of the public key.
Corresponds to the JSON property fingerprint
708 709 710 |
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 708 def fingerprint @fingerprint end |
#key ⇒ String
Public key text in SSH format, defined by RFC4253 section 6.6.
Corresponds to the JSON property key
713 714 715 |
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 713 def key @key end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
720 721 722 723 724 725 726 |
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 720 def update!(**args) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) @expiration_timestamp = args[:expiration_timestamp] if args.key?(:expiration_timestamp) @fingerprint = args[:fingerprint] if args.key?(:fingerprint) @key = args[:key] if args.key?(:key) end |