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
- request_pb (::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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Iot::V1::BindDeviceToGatewayResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Iot::V1::BindDeviceToGatewayResponse) — A result object deserialized from the server's reply
- (::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
- request_pb (::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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Iot::V1::Device)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Iot::V1::Device) — A result object deserialized from the server's reply
- (::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
- request_pb (::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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Iot::V1::DeviceRegistry)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Iot::V1::DeviceRegistry) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_device
def delete_device(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty
Baseline implementation for the delete_device REST call
- request_pb (::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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Protobuf::Empty) — A result object deserialized from the server's reply
- (::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
- request_pb (::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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Protobuf::Empty) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_device
def get_device(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Iot::V1::Device
Baseline implementation for the get_device REST call
- request_pb (::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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Iot::V1::Device)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Iot::V1::Device) — A result object deserialized from the server's reply
- (::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
- request_pb (::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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Iot::V1::DeviceRegistry)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Iot::V1::DeviceRegistry) — A result object deserialized from the server's reply
- (::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
- request_pb (::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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Iam::V1::Policy)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Iam::V1::Policy) — A result object deserialized from the server's reply
- (::ArgumentError)
#initialize
def initialize(endpoint:, credentials:) -> ServiceStub
- (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
- request_pb (::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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Iot::V1::ListDeviceConfigVersionsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Iot::V1::ListDeviceConfigVersionsResponse) — A result object deserialized from the server's reply
- (::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
- request_pb (::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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Iot::V1::ListDeviceRegistriesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Iot::V1::ListDeviceRegistriesResponse) — A result object deserialized from the server's reply
- (::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
- request_pb (::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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Iot::V1::ListDeviceStatesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Iot::V1::ListDeviceStatesResponse) — A result object deserialized from the server's reply
- (::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
- request_pb (::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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Iot::V1::ListDevicesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Iot::V1::ListDevicesResponse) — A result object deserialized from the server's reply
- (::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
- request_pb (::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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Iot::V1::DeviceConfig)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Iot::V1::DeviceConfig) — A result object deserialized from the server's reply
- (::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
- request_pb (::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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Iot::V1::SendCommandToDeviceResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Iot::V1::SendCommandToDeviceResponse) — A result object deserialized from the server's reply
- (::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
- request_pb (::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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Iam::V1::Policy)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Iam::V1::Policy) — A result object deserialized from the server's reply
- (::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
- request_pb (::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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Iam::V1::TestIamPermissionsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Iam::V1::TestIamPermissionsResponse) — A result object deserialized from the server's reply
- (::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
- request_pb (::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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Iot::V1::UnbindDeviceFromGatewayResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Iot::V1::UnbindDeviceFromGatewayResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#update_device
def update_device(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Iot::V1::Device
Baseline implementation for the update_device REST call
- request_pb (::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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Iot::V1::Device)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Iot::V1::Device) — A result object deserialized from the server's reply
- (::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
- request_pb (::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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Iot::V1::DeviceRegistry)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Iot::V1::DeviceRegistry) — A result object deserialized from the server's reply
- (::ArgumentError)