Class: Google::Apis::CloudiotV1::DeviceCredential

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

Overview

A server-stored device credential used for authentication.

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) ⇒ DeviceCredential

Returns a new instance of DeviceCredential.



372
373
374
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 372

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

Instance Attribute Details

#expiration_timeString

[Optional] The time at which this credential becomes invalid. This credential will be ignored for new client authentication requests after this timestamp; however, it will not be automatically deleted. Corresponds to the JSON property expirationTime

Returns:

  • (String)


365
366
367
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 365

def expiration_time
  @expiration_time
end

#public_keyGoogle::Apis::CloudiotV1::PublicKeyCredential

A public key format and data. Corresponds to the JSON property publicKey



370
371
372
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 370

def public_key
  @public_key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



377
378
379
380
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 377

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