Class: Google::Apis::ClouduseraccountsBeta::PublicKey

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

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_timestampString

[Output Only] Creation timestamp in RFC3339 text format. Corresponds to the JSON property creationTimestamp

Returns:

  • (String)

690
691
692
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 690

def creation_timestamp
  @creation_timestamp
end

#descriptionString

An optional textual description of the resource; provided by the client when the resource is created. Corresponds to the JSON property description

Returns:

  • (String)

696
697
698
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 696

def description
  @description
end

#expiration_timestampString

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

Returns:

  • (String)

702
703
704
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 702

def expiration_timestamp
  @expiration_timestamp
end

#fingerprintString

[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

Returns:

  • (String)

708
709
710
# File 'generated/google/apis/clouduseraccounts_beta/classes.rb', line 708

def fingerprint
  @fingerprint
end

#keyString

Public key text in SSH format, defined by RFC4253 section 6.6. Corresponds to the JSON property key

Returns:

  • (String)

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