# Cloud IoT V1 API - Class Google::Cloud::Iot::V1::DeviceManager::Rest::ServiceStub (v0.9.2)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.9.2 (latest)](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-DeviceManager-Rest-ServiceStub)
- [0.9.1](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/0.9.1/Google-Cloud-Iot-V1-DeviceManager-Rest-ServiceStub)
- [0.8.0](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/0.8.0/Google-Cloud-Iot-V1-DeviceManager-Rest-ServiceStub)
- [0.7.1](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/0.7.1/Google-Cloud-Iot-V1-DeviceManager-Rest-ServiceStub)
- [0.6.0](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/0.6.0/Google-Cloud-Iot-V1-DeviceManager-Rest-ServiceStub)
- [0.5.0](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/0.5.0/Google-Cloud-Iot-V1-DeviceManager-Rest-ServiceStub)
- [0.4.0](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/0.4.0/Google-Cloud-Iot-V1-DeviceManager-Rest-ServiceStub)
- [0.3.5](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/0.3.5/Google-Cloud-Iot-V1-DeviceManager-Rest-ServiceStub)
Reference documentation and code samples for the Cloud IoT V1 API class Google::Cloud::Iot::V1::DeviceManager::Rest::ServiceStub.

REST service stub for the DeviceManager service.
Service stub contains baseline method implementations
including transcoding, making the REST call, and deserialing the response.

## Inherits

- Object

## Methods

### #bind_device_to_gateway

    def bind_device_to_gateway(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Iot::V1::BindDeviceToGatewayResponse

Baseline implementation for the bind_device_to_gateway REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Iot::V1::BindDeviceToGatewayRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-BindDeviceToGatewayRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Iot::V1::BindDeviceToGatewayResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-BindDeviceToGatewayResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Iot::V1::BindDeviceToGatewayResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-BindDeviceToGatewayResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #create_device

    def create_device(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Iot::V1::Device

Baseline implementation for the create_device REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Iot::V1::CreateDeviceRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-CreateDeviceRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Iot::V1::Device](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-Device))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Iot::V1::Device](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-Device)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #create_device_registry

    def create_device_registry(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Iot::V1::DeviceRegistry

Baseline implementation for the create_device_registry REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Iot::V1::CreateDeviceRegistryRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-CreateDeviceRegistryRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Iot::V1::DeviceRegistry](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-DeviceRegistry))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Iot::V1::DeviceRegistry](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-DeviceRegistry)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #delete_device

    def delete_device(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the delete_device REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Iot::V1::DeleteDeviceRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-DeleteDeviceRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Protobuf-Empty))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Protobuf-Empty)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #delete_device_registry

    def delete_device_registry(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the delete_device_registry REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Iot::V1::DeleteDeviceRegistryRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-DeleteDeviceRegistryRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Protobuf-Empty))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Protobuf-Empty)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #endpoint

    def endpoint() -> String

The effective endpoint
**Returns**

- (String)

### #get_device

    def get_device(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Iot::V1::Device

Baseline implementation for the get_device REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Iot::V1::GetDeviceRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-GetDeviceRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Iot::V1::Device](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-Device))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Iot::V1::Device](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-Device)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #get_device_registry

    def get_device_registry(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Iot::V1::DeviceRegistry

Baseline implementation for the get_device_registry REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Iot::V1::GetDeviceRegistryRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-GetDeviceRegistryRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Iot::V1::DeviceRegistry](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-DeviceRegistry))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Iot::V1::DeviceRegistry](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-DeviceRegistry)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #get_iam_policy

    def get_iam_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Iam::V1::Policy

Baseline implementation for the get_iam_policy REST call
**Parameters**

- **request_pb** ([::Google::Iam::V1::GetIamPolicyRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Iam-V1-GetIamPolicyRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Iam::V1::Policy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Iam-V1-Policy))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Iam::V1::Policy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Iam-V1-Policy)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #initialize

    def initialize(endpoint:, endpoint_template:, universe_domain:, credentials:) -> ServiceStub

**Returns**

- ([ServiceStub](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-DeviceManager-Rest-ServiceStub)) --- a new instance of ServiceStub

### #list_device_config_versions

    def list_device_config_versions(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Iot::V1::ListDeviceConfigVersionsResponse

Baseline implementation for the list_device_config_versions REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Iot::V1::ListDeviceConfigVersionsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-ListDeviceConfigVersionsRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Iot::V1::ListDeviceConfigVersionsResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-ListDeviceConfigVersionsResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Iot::V1::ListDeviceConfigVersionsResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-ListDeviceConfigVersionsResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #list_device_registries

    def list_device_registries(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Iot::V1::ListDeviceRegistriesResponse

Baseline implementation for the list_device_registries REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Iot::V1::ListDeviceRegistriesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-ListDeviceRegistriesRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Iot::V1::ListDeviceRegistriesResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-ListDeviceRegistriesResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Iot::V1::ListDeviceRegistriesResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-ListDeviceRegistriesResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #list_device_states

    def list_device_states(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Iot::V1::ListDeviceStatesResponse

Baseline implementation for the list_device_states REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Iot::V1::ListDeviceStatesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-ListDeviceStatesRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Iot::V1::ListDeviceStatesResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-ListDeviceStatesResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Iot::V1::ListDeviceStatesResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-ListDeviceStatesResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #list_devices

    def list_devices(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Iot::V1::ListDevicesResponse

Baseline implementation for the list_devices REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Iot::V1::ListDevicesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-ListDevicesRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Iot::V1::ListDevicesResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-ListDevicesResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Iot::V1::ListDevicesResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-ListDevicesResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #modify_cloud_to_device_config

    def modify_cloud_to_device_config(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Iot::V1::DeviceConfig

Baseline implementation for the modify_cloud_to_device_config REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Iot::V1::ModifyCloudToDeviceConfigRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-ModifyCloudToDeviceConfigRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Iot::V1::DeviceConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-DeviceConfig))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Iot::V1::DeviceConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-DeviceConfig)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #send_command_to_device

    def send_command_to_device(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Iot::V1::SendCommandToDeviceResponse

Baseline implementation for the send_command_to_device REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Iot::V1::SendCommandToDeviceRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-SendCommandToDeviceRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Iot::V1::SendCommandToDeviceResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-SendCommandToDeviceResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Iot::V1::SendCommandToDeviceResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-SendCommandToDeviceResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #set_iam_policy

    def set_iam_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Iam::V1::Policy

Baseline implementation for the set_iam_policy REST call
**Parameters**

- **request_pb** ([::Google::Iam::V1::SetIamPolicyRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Iam-V1-SetIamPolicyRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Iam::V1::Policy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Iam-V1-Policy))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Iam::V1::Policy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Iam-V1-Policy)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #test_iam_permissions

    def test_iam_permissions(request_pb, options = nil) { |result, operation| ... } -> ::Google::Iam::V1::TestIamPermissionsResponse

Baseline implementation for the test_iam_permissions REST call
**Parameters**

- **request_pb** ([::Google::Iam::V1::TestIamPermissionsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Iam-V1-TestIamPermissionsRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Iam::V1::TestIamPermissionsResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Iam-V1-TestIamPermissionsResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Iam::V1::TestIamPermissionsResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Iam-V1-TestIamPermissionsResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #unbind_device_from_gateway

    def unbind_device_from_gateway(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Iot::V1::UnbindDeviceFromGatewayResponse

Baseline implementation for the unbind_device_from_gateway REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Iot::V1::UnbindDeviceFromGatewayRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-UnbindDeviceFromGatewayRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Iot::V1::UnbindDeviceFromGatewayResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-UnbindDeviceFromGatewayResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Iot::V1::UnbindDeviceFromGatewayResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-UnbindDeviceFromGatewayResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #universe_domain

    def universe_domain() -> String

The effective universe domain
**Returns**

- (String)

### #update_device

    def update_device(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Iot::V1::Device

Baseline implementation for the update_device REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Iot::V1::UpdateDeviceRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-UpdateDeviceRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Iot::V1::Device](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-Device))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Iot::V1::Device](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-Device)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #update_device_registry

    def update_device_registry(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Iot::V1::DeviceRegistry

Baseline implementation for the update_device_registry REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Iot::V1::UpdateDeviceRegistryRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-UpdateDeviceRegistryRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Iot::V1::DeviceRegistry](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-DeviceRegistry))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Iot::V1::DeviceRegistry](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-DeviceRegistry)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)