Class: Google::Apis::CloudiotV1::UnbindDeviceFromGatewayRequest

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

Overview

Request for UnbindDeviceFromGateway.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UnbindDeviceFromGatewayRequest

Returns a new instance of UnbindDeviceFromGatewayRequest.



1187
1188
1189
# File 'lib/google/apis/cloudiot_v1/classes.rb', line 1187

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

Instance Attribute Details

#device_idString

Required. The device to disassociate from 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

Returns:

  • (String)


1179
1180
1181
# File 'lib/google/apis/cloudiot_v1/classes.rb', line 1179

def device_id
  @device_id
end

#gateway_idString

Required. The value of gateway_id can be either the device numeric ID or the user-defined device identifier. Corresponds to the JSON property gatewayId

Returns:

  • (String)


1185
1186
1187
# File 'lib/google/apis/cloudiot_v1/classes.rb', line 1185

def gateway_id
  @gateway_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1192
1193
1194
1195
# File 'lib/google/apis/cloudiot_v1/classes.rb', line 1192

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