public sealed class DeviceManagerClientImpl : DeviceManagerClientReference documentation and code samples for the Cloud IoT v1 API class DeviceManagerClientImpl.
DeviceManager client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Iot.V1Assembly
Google.Cloud.Iot.V1.dll
Remarks
Internet of Things (IoT) service. Securely connect and manage IoT devices.
Constructors
DeviceManagerClientImpl(DeviceManagerClient, DeviceManagerSettings, ILogger)
public DeviceManagerClientImpl(DeviceManager.DeviceManagerClient grpcClient, DeviceManagerSettings settings, ILogger logger)Constructs a client wrapper for the DeviceManager service, with the specified gRPC client and settings.
| Parameters | |
|---|---|
| Name | Description |
grpcClient |
DeviceManagerDeviceManagerClientThe underlying gRPC client. |
settings |
DeviceManagerSettingsThe base DeviceManagerSettings used within this client. |
logger |
ILoggerOptional ILogger to use within this client. |
Properties
GrpcClient
public override DeviceManager.DeviceManagerClient GrpcClient { get; }The underlying gRPC DeviceManager client
| Property Value | |
|---|---|
| Type | Description |
DeviceManagerDeviceManagerClient |
|
Methods
BindDeviceToGateway(BindDeviceToGatewayRequest, CallSettings)
public override BindDeviceToGatewayResponse BindDeviceToGateway(BindDeviceToGatewayRequest request, CallSettings callSettings = null)Associates the device with the gateway.
| Parameters | |
|---|---|
| Name | Description |
request |
BindDeviceToGatewayRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
BindDeviceToGatewayResponse |
The RPC response. |
BindDeviceToGatewayAsync(BindDeviceToGatewayRequest, CallSettings)
public override Task<BindDeviceToGatewayResponse> BindDeviceToGatewayAsync(BindDeviceToGatewayRequest request, CallSettings callSettings = null)Associates the device with the gateway.
| Parameters | |
|---|---|
| Name | Description |
request |
BindDeviceToGatewayRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskBindDeviceToGatewayResponse |
A Task containing the RPC response. |
CreateDevice(CreateDeviceRequest, CallSettings)
public override Device CreateDevice(CreateDeviceRequest request, CallSettings callSettings = null)Creates a device in a device registry.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateDeviceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Device |
The RPC response. |
CreateDeviceAsync(CreateDeviceRequest, CallSettings)
public override Task<Device> CreateDeviceAsync(CreateDeviceRequest request, CallSettings callSettings = null)Creates a device in a device registry.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateDeviceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskDevice |
A Task containing the RPC response. |
CreateDeviceRegistry(CreateDeviceRegistryRequest, CallSettings)
public override DeviceRegistry CreateDeviceRegistry(CreateDeviceRegistryRequest request, CallSettings callSettings = null)Creates a device registry that contains devices.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateDeviceRegistryRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
DeviceRegistry |
The RPC response. |
CreateDeviceRegistryAsync(CreateDeviceRegistryRequest, CallSettings)
public override Task<DeviceRegistry> CreateDeviceRegistryAsync(CreateDeviceRegistryRequest request, CallSettings callSettings = null)Creates a device registry that contains devices.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateDeviceRegistryRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskDeviceRegistry |
A Task containing the RPC response. |
DeleteDevice(DeleteDeviceRequest, CallSettings)
public override void DeleteDevice(DeleteDeviceRequest request, CallSettings callSettings = null)Deletes a device.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteDeviceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
DeleteDeviceAsync(DeleteDeviceRequest, CallSettings)
public override Task DeleteDeviceAsync(DeleteDeviceRequest request, CallSettings callSettings = null)Deletes a device.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteDeviceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
DeleteDeviceRegistry(DeleteDeviceRegistryRequest, CallSettings)
public override void DeleteDeviceRegistry(DeleteDeviceRegistryRequest request, CallSettings callSettings = null)Deletes a device registry configuration.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteDeviceRegistryRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
DeleteDeviceRegistryAsync(DeleteDeviceRegistryRequest, CallSettings)
public override Task DeleteDeviceRegistryAsync(DeleteDeviceRegistryRequest request, CallSettings callSettings = null)Deletes a device registry configuration.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteDeviceRegistryRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
GetDevice(GetDeviceRequest, CallSettings)
public override Device GetDevice(GetDeviceRequest request, CallSettings callSettings = null)Gets details about a device.
| Parameters | |
|---|---|
| Name | Description |
request |
GetDeviceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Device |
The RPC response. |
GetDeviceAsync(GetDeviceRequest, CallSettings)
public override Task<Device> GetDeviceAsync(GetDeviceRequest request, CallSettings callSettings = null)Gets details about a device.
| Parameters | |
|---|---|
| Name | Description |
request |
GetDeviceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskDevice |
A Task containing the RPC response. |
GetDeviceRegistry(GetDeviceRegistryRequest, CallSettings)
public override DeviceRegistry GetDeviceRegistry(GetDeviceRegistryRequest request, CallSettings callSettings = null)Gets a device registry configuration.
| Parameters | |
|---|---|
| Name | Description |
request |
GetDeviceRegistryRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
DeviceRegistry |
The RPC response. |
GetDeviceRegistryAsync(GetDeviceRegistryRequest, CallSettings)
public override Task<DeviceRegistry> GetDeviceRegistryAsync(GetDeviceRegistryRequest request, CallSettings callSettings = null)Gets a device registry configuration.
| Parameters | |
|---|---|
| Name | Description |
request |
GetDeviceRegistryRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskDeviceRegistry |
A Task containing the RPC response. |
GetIamPolicy(GetIamPolicyRequest, CallSettings)
public override Policy GetIamPolicy(GetIamPolicyRequest request, CallSettings callSettings = null)Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
| Parameters | |
|---|---|
| Name | Description |
request |
GetIamPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Policy |
The RPC response. |
GetIamPolicyAsync(GetIamPolicyRequest, CallSettings)
public override Task<Policy> GetIamPolicyAsync(GetIamPolicyRequest request, CallSettings callSettings = null)Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
| Parameters | |
|---|---|
| Name | Description |
request |
GetIamPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskPolicy |
A Task containing the RPC response. |
ListDeviceConfigVersions(ListDeviceConfigVersionsRequest, CallSettings)
public override ListDeviceConfigVersionsResponse ListDeviceConfigVersions(ListDeviceConfigVersionsRequest request, CallSettings callSettings = null)Lists the last few versions of the device configuration in descending order (i.e.: newest first).
| Parameters | |
|---|---|
| Name | Description |
request |
ListDeviceConfigVersionsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
ListDeviceConfigVersionsResponse |
The RPC response. |
ListDeviceConfigVersionsAsync(ListDeviceConfigVersionsRequest, CallSettings)
public override Task<ListDeviceConfigVersionsResponse> ListDeviceConfigVersionsAsync(ListDeviceConfigVersionsRequest request, CallSettings callSettings = null)Lists the last few versions of the device configuration in descending order (i.e.: newest first).
| Parameters | |
|---|---|
| Name | Description |
request |
ListDeviceConfigVersionsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskListDeviceConfigVersionsResponse |
A Task containing the RPC response. |
ListDeviceRegistries(ListDeviceRegistriesRequest, CallSettings)
public override PagedEnumerable<ListDeviceRegistriesResponse, DeviceRegistry> ListDeviceRegistries(ListDeviceRegistriesRequest request, CallSettings callSettings = null)Lists device registries.
| Parameters | |
|---|---|
| Name | Description |
request |
ListDeviceRegistriesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListDeviceRegistriesResponseDeviceRegistry |
A pageable sequence of DeviceRegistry resources. |
ListDeviceRegistriesAsync(ListDeviceRegistriesRequest, CallSettings)
public override PagedAsyncEnumerable<ListDeviceRegistriesResponse, DeviceRegistry> ListDeviceRegistriesAsync(ListDeviceRegistriesRequest request, CallSettings callSettings = null)Lists device registries.
| Parameters | |
|---|---|
| Name | Description |
request |
ListDeviceRegistriesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListDeviceRegistriesResponseDeviceRegistry |
A pageable asynchronous sequence of DeviceRegistry resources. |
ListDevices(ListDevicesRequest, CallSettings)
public override PagedEnumerable<ListDevicesResponse, Device> ListDevices(ListDevicesRequest request, CallSettings callSettings = null)List devices in a device registry.
| Parameters | |
|---|---|
| Name | Description |
request |
ListDevicesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListDevicesResponseDevice |
A pageable sequence of Device resources. |
ListDevicesAsync(ListDevicesRequest, CallSettings)
public override PagedAsyncEnumerable<ListDevicesResponse, Device> ListDevicesAsync(ListDevicesRequest request, CallSettings callSettings = null)List devices in a device registry.
| Parameters | |
|---|---|
| Name | Description |
request |
ListDevicesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListDevicesResponseDevice |
A pageable asynchronous sequence of Device resources. |
ListDeviceStates(ListDeviceStatesRequest, CallSettings)
public override ListDeviceStatesResponse ListDeviceStates(ListDeviceStatesRequest request, CallSettings callSettings = null)Lists the last few versions of the device state in descending order (i.e.: newest first).
| Parameters | |
|---|---|
| Name | Description |
request |
ListDeviceStatesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
ListDeviceStatesResponse |
The RPC response. |
ListDeviceStatesAsync(ListDeviceStatesRequest, CallSettings)
public override Task<ListDeviceStatesResponse> ListDeviceStatesAsync(ListDeviceStatesRequest request, CallSettings callSettings = null)Lists the last few versions of the device state in descending order (i.e.: newest first).
| Parameters | |
|---|---|
| Name | Description |
request |
ListDeviceStatesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskListDeviceStatesResponse |
A Task containing the RPC response. |
ModifyCloudToDeviceConfig(ModifyCloudToDeviceConfigRequest, CallSettings)
public override DeviceConfig ModifyCloudToDeviceConfig(ModifyCloudToDeviceConfigRequest request, CallSettings callSettings = null)Modifies the configuration for the device, which is eventually sent from the Cloud IoT Core servers. Returns the modified configuration version and its metadata.
| Parameters | |
|---|---|
| Name | Description |
request |
ModifyCloudToDeviceConfigRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
DeviceConfig |
The RPC response. |
ModifyCloudToDeviceConfigAsync(ModifyCloudToDeviceConfigRequest, CallSettings)
public override Task<DeviceConfig> ModifyCloudToDeviceConfigAsync(ModifyCloudToDeviceConfigRequest request, CallSettings callSettings = null)Modifies the configuration for the device, which is eventually sent from the Cloud IoT Core servers. Returns the modified configuration version and its metadata.
| Parameters | |
|---|---|
| Name | Description |
request |
ModifyCloudToDeviceConfigRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskDeviceConfig |
A Task containing the RPC response. |
SendCommandToDevice(SendCommandToDeviceRequest, CallSettings)
public override SendCommandToDeviceResponse SendCommandToDevice(SendCommandToDeviceRequest request, CallSettings callSettings = null)Sends a command to the specified device. In order for a device to be able to receive commands, it must: 1) be connected to Cloud IoT Core using the MQTT protocol, and 2) be subscribed to the group of MQTT topics specified by /devices/{device-id}/commands/#. This subscription will receive commands at the top-level topic /devices/{device-id}/commands as well as commands for subfolders, like /devices/{device-id}/commands/subfolder. Note that subscribing to specific subfolders is not supported. If the command could not be delivered to the device, this method will return an error; in particular, if the device is not subscribed, this method will return FAILED_PRECONDITION. Otherwise, this method will return OK. If the subscription is QoS 1, at least once delivery will be guaranteed; for QoS 0, no acknowledgment will be expected from the device.
| Parameters | |
|---|---|
| Name | Description |
request |
SendCommandToDeviceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
SendCommandToDeviceResponse |
The RPC response. |
SendCommandToDeviceAsync(SendCommandToDeviceRequest, CallSettings)
public override Task<SendCommandToDeviceResponse> SendCommandToDeviceAsync(SendCommandToDeviceRequest request, CallSettings callSettings = null)Sends a command to the specified device. In order for a device to be able to receive commands, it must: 1) be connected to Cloud IoT Core using the MQTT protocol, and 2) be subscribed to the group of MQTT topics specified by /devices/{device-id}/commands/#. This subscription will receive commands at the top-level topic /devices/{device-id}/commands as well as commands for subfolders, like /devices/{device-id}/commands/subfolder. Note that subscribing to specific subfolders is not supported. If the command could not be delivered to the device, this method will return an error; in particular, if the device is not subscribed, this method will return FAILED_PRECONDITION. Otherwise, this method will return OK. If the subscription is QoS 1, at least once delivery will be guaranteed; for QoS 0, no acknowledgment will be expected from the device.
| Parameters | |
|---|---|
| Name | Description |
request |
SendCommandToDeviceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskSendCommandToDeviceResponse |
A Task containing the RPC response. |
SetIamPolicy(SetIamPolicyRequest, CallSettings)
public override Policy SetIamPolicy(SetIamPolicyRequest request, CallSettings callSettings = null)Sets the access control policy on the specified resource. Replaces any existing policy.
| Parameters | |
|---|---|
| Name | Description |
request |
SetIamPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Policy |
The RPC response. |
SetIamPolicyAsync(SetIamPolicyRequest, CallSettings)
public override Task<Policy> SetIamPolicyAsync(SetIamPolicyRequest request, CallSettings callSettings = null)Sets the access control policy on the specified resource. Replaces any existing policy.
| Parameters | |
|---|---|
| Name | Description |
request |
SetIamPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskPolicy |
A Task containing the RPC response. |
TestIamPermissions(TestIamPermissionsRequest, CallSettings)
public override TestIamPermissionsResponse TestIamPermissions(TestIamPermissionsRequest request, CallSettings callSettings = null)Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.
| Parameters | |
|---|---|
| Name | Description |
request |
TestIamPermissionsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TestIamPermissionsResponse |
The RPC response. |
TestIamPermissionsAsync(TestIamPermissionsRequest, CallSettings)
public override Task<TestIamPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRequest request, CallSettings callSettings = null)Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.
| Parameters | |
|---|---|
| Name | Description |
request |
TestIamPermissionsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskTestIamPermissionsResponse |
A Task containing the RPC response. |
UnbindDeviceFromGateway(UnbindDeviceFromGatewayRequest, CallSettings)
public override UnbindDeviceFromGatewayResponse UnbindDeviceFromGateway(UnbindDeviceFromGatewayRequest request, CallSettings callSettings = null)Deletes the association between the device and the gateway.
| Parameters | |
|---|---|
| Name | Description |
request |
UnbindDeviceFromGatewayRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
UnbindDeviceFromGatewayResponse |
The RPC response. |
UnbindDeviceFromGatewayAsync(UnbindDeviceFromGatewayRequest, CallSettings)
public override Task<UnbindDeviceFromGatewayResponse> UnbindDeviceFromGatewayAsync(UnbindDeviceFromGatewayRequest request, CallSettings callSettings = null)Deletes the association between the device and the gateway.
| Parameters | |
|---|---|
| Name | Description |
request |
UnbindDeviceFromGatewayRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskUnbindDeviceFromGatewayResponse |
A Task containing the RPC response. |
UpdateDevice(UpdateDeviceRequest, CallSettings)
public override Device UpdateDevice(UpdateDeviceRequest request, CallSettings callSettings = null)Updates a device.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateDeviceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Device |
The RPC response. |
UpdateDeviceAsync(UpdateDeviceRequest, CallSettings)
public override Task<Device> UpdateDeviceAsync(UpdateDeviceRequest request, CallSettings callSettings = null)Updates a device.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateDeviceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskDevice |
A Task containing the RPC response. |
UpdateDeviceRegistry(UpdateDeviceRegistryRequest, CallSettings)
public override DeviceRegistry UpdateDeviceRegistry(UpdateDeviceRegistryRequest request, CallSettings callSettings = null)Updates a device registry configuration.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateDeviceRegistryRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
DeviceRegistry |
The RPC response. |
UpdateDeviceRegistryAsync(UpdateDeviceRegistryRequest, CallSettings)
public override Task<DeviceRegistry> UpdateDeviceRegistryAsync(UpdateDeviceRegistryRequest request, CallSettings callSettings = null)Updates a device registry configuration.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateDeviceRegistryRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskDeviceRegistry |
A Task containing the RPC response. |