Class: Google::Apis::ClouduseraccountsVmAlpha::PublicKey
- Inherits:
-
Object
- Object
- Google::Apis::ClouduseraccountsVmAlpha::PublicKey
- Defined in:
- generated/google/apis/clouduseraccounts_vm_alpha/classes.rb,
generated/google/apis/clouduseraccounts_vm_alpha/representations.rb,
generated/google/apis/clouduseraccounts_vm_alpha/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
960 961 962 |
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 960 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
935 936 937 |
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 935 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
941 942 943 |
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 941 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
947 948 949 |
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 947 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
953 954 955 |
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 953 def fingerprint @fingerprint end |
#key ⇒ String
Public key text in SSH format, defined by RFC4253 section 6.6.
Corresponds to the JSON property key
958 959 960 |
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 958 def key @key end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
965 966 967 968 969 970 971 |
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 965 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 |