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

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

Request for UnbindDeviceFromGateway.

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


1200
1201
1202
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 1200

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

Instance Attribute Details

#device_idString

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


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

def device_id
  @device_id
end

#gateway_idString

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


1198
1199
1200
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 1198

def gateway_id
  @gateway_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1205
1206
1207
1208
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 1205

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