Class: Google::Apis::CloudiotV1::GatewayConfig
- Inherits:
-
Object
- Object
- Google::Apis::CloudiotV1::GatewayConfig
- Defined in:
- generated/google/apis/cloudiot_v1/classes.rb,
generated/google/apis/cloudiot_v1/representations.rb,
generated/google/apis/cloudiot_v1/representations.rb
Overview
Gateway-related configuration and state.
Instance Attribute Summary collapse
-
#gateway_auth_method ⇒ String
Indicates how to authorize and/or authenticate devices to access the gateway.
-
#gateway_type ⇒ String
Indicates whether the device is a gateway.
-
#last_accessed_gateway_id ⇒ String
[Output only] The ID of the gateway the device accessed most recently.
-
#last_accessed_gateway_time ⇒ String
[Output only] The most recent time at which the device accessed the gateway specified in
last_accessed_gateway
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GatewayConfig
constructor
A new instance of GatewayConfig.
-
#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) ⇒ GatewayConfig
Returns a new instance of GatewayConfig
610 611 612 |
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 610 def initialize(**args) update!(**args) end |
Instance Attribute Details
#gateway_auth_method ⇒ String
Indicates how to authorize and/or authenticate devices to access the
gateway.
Corresponds to the JSON property gatewayAuthMethod
592 593 594 |
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 592 def gateway_auth_method @gateway_auth_method end |
#gateway_type ⇒ String
Indicates whether the device is a gateway.
Corresponds to the JSON property gatewayType
597 598 599 |
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 597 def gateway_type @gateway_type end |
#last_accessed_gateway_id ⇒ String
[Output only] The ID of the gateway the device accessed most recently.
Corresponds to the JSON property lastAccessedGatewayId
602 603 604 |
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 602 def last_accessed_gateway_id @last_accessed_gateway_id end |
#last_accessed_gateway_time ⇒ String
[Output only] The most recent time at which the device accessed the gateway
specified in last_accessed_gateway
.
Corresponds to the JSON property lastAccessedGatewayTime
608 609 610 |
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 608 def last_accessed_gateway_time @last_accessed_gateway_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
615 616 617 618 619 620 |
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 615 def update!(**args) @gateway_auth_method = args[:gateway_auth_method] if args.key?(:gateway_auth_method) @gateway_type = args[:gateway_type] if args.key?(:gateway_type) @last_accessed_gateway_id = args[:last_accessed_gateway_id] if args.key?(:last_accessed_gateway_id) @last_accessed_gateway_time = args[:last_accessed_gateway_time] if args.key?(:last_accessed_gateway_time) end |