Class: Google::Apis::CloudiotV1beta1::DeviceCredential
- Inherits:
-
Object
- Object
- Google::Apis::CloudiotV1beta1::DeviceCredential
- Defined in:
- generated/google/apis/cloudiot_v1beta1/classes.rb,
generated/google/apis/cloudiot_v1beta1/representations.rb,
generated/google/apis/cloudiot_v1beta1/representations.rb
Overview
A server-stored device credential used for authentication.
Instance Attribute Summary collapse
-
#expiration_time ⇒ String
[Optional] The time at which this credential becomes invalid.
-
#public_key ⇒ Google::Apis::CloudiotV1beta1::PublicKeyCredential
A public key format and data.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DeviceCredential
constructor
A new instance of DeviceCredential.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ DeviceCredential
Returns a new instance of DeviceCredential
416 417 418 |
# File 'generated/google/apis/cloudiot_v1beta1/classes.rb', line 416 def initialize(**args) update!(**args) end |
Instance Attribute Details
#expiration_time ⇒ String
[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
409 410 411 |
# File 'generated/google/apis/cloudiot_v1beta1/classes.rb', line 409 def expiration_time @expiration_time end |
#public_key ⇒ Google::Apis::CloudiotV1beta1::PublicKeyCredential
A public key format and data.
Corresponds to the JSON property publicKey
414 415 416 |
# File 'generated/google/apis/cloudiot_v1beta1/classes.rb', line 414 def public_key @public_key end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
421 422 423 424 |
# File 'generated/google/apis/cloudiot_v1beta1/classes.rb', line 421 def update!(**args) @expiration_time = args[:expiration_time] if args.key?(:expiration_time) @public_key = args[:public_key] if args.key?(:public_key) end |