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

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

Overview

JSON template for a POSIX account entry.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ UserSshPublicKey

Returns a new instance of UserSshPublicKey



3919
3920
3921
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3919

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)


3907
3908
3909
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3907

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)


3912
3913
3914
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3912

def fingerprint
  @fingerprint
end

#keyString

An SSH public key. Corresponds to the JSON property key

Returns:

  • (String)


3917
3918
3919
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3917

def key
  @key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3924
3925
3926
3927
3928
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3924

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