Class DeviceManagerConnection (2.14.0)

This interface defines virtual methods for each of the user-facing overload sets in DeviceManagerClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type DeviceManagerClient.

To create a concrete instance, see MakeDeviceManagerConnection().

For mocking, see iot_v1_mocks::MockDeviceManagerConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual CreateDeviceRegistry(google::cloud::iot::v1::CreateDeviceRegistryRequest const &)

Parameter
NameDescription
request google::cloud::iot::v1::CreateDeviceRegistryRequest const &
Returns
TypeDescription
StatusOr< google::cloud::iot::v1::DeviceRegistry >

virtual GetDeviceRegistry(google::cloud::iot::v1::GetDeviceRegistryRequest const &)

Parameter
NameDescription
request google::cloud::iot::v1::GetDeviceRegistryRequest const &
Returns
TypeDescription
StatusOr< google::cloud::iot::v1::DeviceRegistry >

virtual UpdateDeviceRegistry(google::cloud::iot::v1::UpdateDeviceRegistryRequest const &)

Parameter
NameDescription
request google::cloud::iot::v1::UpdateDeviceRegistryRequest const &
Returns
TypeDescription
StatusOr< google::cloud::iot::v1::DeviceRegistry >

virtual DeleteDeviceRegistry(google::cloud::iot::v1::DeleteDeviceRegistryRequest const &)

Parameter
NameDescription
request google::cloud::iot::v1::DeleteDeviceRegistryRequest const &
Returns
TypeDescription
Status

virtual ListDeviceRegistries(google::cloud::iot::v1::ListDeviceRegistriesRequest)

Parameter
NameDescription
request google::cloud::iot::v1::ListDeviceRegistriesRequest
Returns
TypeDescription
StreamRange< google::cloud::iot::v1::DeviceRegistry >

virtual CreateDevice(google::cloud::iot::v1::CreateDeviceRequest const &)

Parameter
NameDescription
request google::cloud::iot::v1::CreateDeviceRequest const &
Returns
TypeDescription
StatusOr< google::cloud::iot::v1::Device >

virtual GetDevice(google::cloud::iot::v1::GetDeviceRequest const &)

Parameter
NameDescription
request google::cloud::iot::v1::GetDeviceRequest const &
Returns
TypeDescription
StatusOr< google::cloud::iot::v1::Device >

virtual UpdateDevice(google::cloud::iot::v1::UpdateDeviceRequest const &)

Parameter
NameDescription
request google::cloud::iot::v1::UpdateDeviceRequest const &
Returns
TypeDescription
StatusOr< google::cloud::iot::v1::Device >

virtual DeleteDevice(google::cloud::iot::v1::DeleteDeviceRequest const &)

Parameter
NameDescription
request google::cloud::iot::v1::DeleteDeviceRequest const &
Returns
TypeDescription
Status

virtual ListDevices(google::cloud::iot::v1::ListDevicesRequest)

Parameter
NameDescription
request google::cloud::iot::v1::ListDevicesRequest
Returns
TypeDescription
StreamRange< google::cloud::iot::v1::Device >

virtual ModifyCloudToDeviceConfig(google::cloud::iot::v1::ModifyCloudToDeviceConfigRequest const &)

Parameter
NameDescription
request google::cloud::iot::v1::ModifyCloudToDeviceConfigRequest const &
Returns
TypeDescription
StatusOr< google::cloud::iot::v1::DeviceConfig >

virtual ListDeviceConfigVersions(google::cloud::iot::v1::ListDeviceConfigVersionsRequest const &)

Parameter
NameDescription
request google::cloud::iot::v1::ListDeviceConfigVersionsRequest const &
Returns
TypeDescription
StatusOr< google::cloud::iot::v1::ListDeviceConfigVersionsResponse >

virtual ListDeviceStates(google::cloud::iot::v1::ListDeviceStatesRequest const &)

Parameter
NameDescription
request google::cloud::iot::v1::ListDeviceStatesRequest const &
Returns
TypeDescription
StatusOr< google::cloud::iot::v1::ListDeviceStatesResponse >

virtual SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &)

Parameter
NameDescription
request google::iam::v1::SetIamPolicyRequest const &
Returns
TypeDescription
StatusOr< google::iam::v1::Policy >

virtual GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &)

Parameter
NameDescription
request google::iam::v1::GetIamPolicyRequest const &
Returns
TypeDescription
StatusOr< google::iam::v1::Policy >

virtual TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &)

Parameter
NameDescription
request google::iam::v1::TestIamPermissionsRequest const &
Returns
TypeDescription
StatusOr< google::iam::v1::TestIamPermissionsResponse >

virtual SendCommandToDevice(google::cloud::iot::v1::SendCommandToDeviceRequest const &)

Parameter
NameDescription
request google::cloud::iot::v1::SendCommandToDeviceRequest const &
Returns
TypeDescription
StatusOr< google::cloud::iot::v1::SendCommandToDeviceResponse >

virtual BindDeviceToGateway(google::cloud::iot::v1::BindDeviceToGatewayRequest const &)

Parameter
NameDescription
request google::cloud::iot::v1::BindDeviceToGatewayRequest const &
Returns
TypeDescription
StatusOr< google::cloud::iot::v1::BindDeviceToGatewayResponse >

virtual UnbindDeviceFromGateway(google::cloud::iot::v1::UnbindDeviceFromGatewayRequest const &)

Parameter
NameDescription
request google::cloud::iot::v1::UnbindDeviceFromGatewayRequest const &
Returns
TypeDescription
StatusOr< google::cloud::iot::v1::UnbindDeviceFromGatewayResponse >