Class: Google::Apis::CloudiotV1::BindDeviceToGatewayRequest
- Inherits:
-
Object
- Object
- Google::Apis::CloudiotV1::BindDeviceToGatewayRequest
- Defined in:
- generated/google/apis/cloudiot_v1/classes.rb,
generated/google/apis/cloudiot_v1/representations.rb,
generated/google/apis/cloudiot_v1/representations.rb
Overview
Request for BindDeviceToGateway
.
Instance Attribute Summary collapse
-
#device_id ⇒ String
The device to associate with the specified gateway.
-
#gateway_id ⇒ String
The value of
gateway_id
can be either the device numeric ID or the user-defined device identifier.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BindDeviceToGatewayRequest
constructor
A new instance of BindDeviceToGatewayRequest.
-
#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) ⇒ BindDeviceToGatewayRequest
Returns a new instance of BindDeviceToGatewayRequest
42 43 44 |
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 42 def initialize(**args) update!(**args) end |
Instance Attribute Details
#device_id ⇒ String
The device to associate with the specified gateway. The value of
device_id
can be either the device numeric ID or the user-defined device
identifier.
Corresponds to the JSON property deviceId
34 35 36 |
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 34 def device_id @device_id end |
#gateway_id ⇒ String
The value of gateway_id
can be either the device numeric ID or the
user-defined device identifier.
Corresponds to the JSON property gatewayId
40 41 42 |
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 40 def gateway_id @gateway_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
47 48 49 50 |
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 47 def update!(**args) @device_id = args[:device_id] if args.key?(:device_id) @gateway_id = args[:gateway_id] if args.key?(:gateway_id) end |