Class: Google::Apis::OsloginV1alpha::SshPublicKey

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

Overview

The SSH public key information associated with a Google account.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SshPublicKey

Returns a new instance of SshPublicKey.



292
293
294
# File 'lib/google/apis/oslogin_v1alpha/classes.rb', line 292

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)


275
276
277
# File 'lib/google/apis/oslogin_v1alpha/classes.rb', line 275

def expiration_time_usec
  @expiration_time_usec
end

#fingerprintString

Output only. The SHA-256 fingerprint of the SSH public key. Corresponds to the JSON property fingerprint

Returns:

  • (String)


280
281
282
# File 'lib/google/apis/oslogin_v1alpha/classes.rb', line 280

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)


285
286
287
# File 'lib/google/apis/oslogin_v1alpha/classes.rb', line 285

def key
  @key
end

#nameString

Output only. The canonical resource name. Corresponds to the JSON property name

Returns:

  • (String)


290
291
292
# File 'lib/google/apis/oslogin_v1alpha/classes.rb', line 290

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



297
298
299
300
301
302
# File 'lib/google/apis/oslogin_v1alpha/classes.rb', line 297

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)
  @name = args[:name] if args.key?(:name)
end