Class: Google::Apis::AdminDirectoryV1::UserSshPublicKey

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/admin_directory_v1/classes.rb,
lib/google/apis/admin_directory_v1/representations.rb,
lib/google/apis/admin_directory_v1/representations.rb

Overview

JSON template for a POSIX account entry.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UserSshPublicKey

Returns a new instance of UserSshPublicKey.



5691
5692
5693
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 5691

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#expiration_time_usecFixnum

An expiration time in microseconds since epoch. Corresponds to the JSON property expirationTimeUsec

Returns:

  • (Fixnum)


5679
5680
5681
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 5679

def expiration_time_usec
  @expiration_time_usec
end

#fingerprintString

A SHA-256 fingerprint of the SSH public key. (Read-only) Corresponds to the JSON property fingerprint

Returns:

  • (String)


5684
5685
5686
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 5684

def fingerprint
  @fingerprint
end

#keyString

An SSH public key. Corresponds to the JSON property key

Returns:

  • (String)


5689
5690
5691
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 5689

def key
  @key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5696
5697
5698
5699
5700
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 5696

def update!(**args)
  @expiration_time_usec = args[:expiration_time_usec] if args.key?(:expiration_time_usec)
  @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
  @key = args[:key] if args.key?(:key)
end