Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ option java_multiple_files = true;
option java_outer_classname = "DeviceManagerProto";
option java_package = "com.google.cloud.iot.v1";


// Internet of Things (IoT) service. Securely connect and manage IoT devices.
service DeviceManager {
// Creates a device registry that contains devices.
rpc CreateDeviceRegistry(CreateDeviceRegistryRequest) returns (DeviceRegistry) {
rpc CreateDeviceRegistry(CreateDeviceRegistryRequest)
returns (DeviceRegistry) {
option (google.api.http) = {
post: "/v1/{parent=projects/*/locations/*}/registries"
body: "device_registry"
Expand All @@ -52,22 +52,25 @@ service DeviceManager {
}

// Updates a device registry configuration.
rpc UpdateDeviceRegistry(UpdateDeviceRegistryRequest) returns (DeviceRegistry) {
rpc UpdateDeviceRegistry(UpdateDeviceRegistryRequest)
returns (DeviceRegistry) {
option (google.api.http) = {
patch: "/v1/{device_registry.name=projects/*/locations/*/registries/*}"
body: "device_registry"
};
}

// Deletes a device registry configuration.
rpc DeleteDeviceRegistry(DeleteDeviceRegistryRequest) returns (google.protobuf.Empty) {
rpc DeleteDeviceRegistry(DeleteDeviceRegistryRequest)
returns (google.protobuf.Empty) {
option (google.api.http) = {
delete: "/v1/{name=projects/*/locations/*/registries/*}"
};
}

// Lists device registries.
rpc ListDeviceRegistries(ListDeviceRegistriesRequest) returns (ListDeviceRegistriesResponse) {
rpc ListDeviceRegistries(ListDeviceRegistriesRequest)
returns (ListDeviceRegistriesResponse) {
option (google.api.http) = {
get: "/v1/{parent=projects/*/locations/*}/registries"
};
Expand Down Expand Up @@ -123,7 +126,8 @@ service DeviceManager {
// Modifies the configuration for the device, which is eventually sent from
// the Cloud IoT Core servers. Returns the modified configuration version and
// its metadata.
rpc ModifyCloudToDeviceConfig(ModifyCloudToDeviceConfigRequest) returns (DeviceConfig) {
rpc ModifyCloudToDeviceConfig(ModifyCloudToDeviceConfigRequest)
returns (DeviceConfig) {
option (google.api.http) = {
post: "/v1/{name=projects/*/locations/*/registries/*/devices/*}:modifyCloudToDeviceConfig"
body: "*"
Expand All @@ -136,7 +140,8 @@ service DeviceManager {

// Lists the last few versions of the device configuration in descending
// order (i.e.: newest first).
rpc ListDeviceConfigVersions(ListDeviceConfigVersionsRequest) returns (ListDeviceConfigVersionsResponse) {
rpc ListDeviceConfigVersions(ListDeviceConfigVersionsRequest)
returns (ListDeviceConfigVersionsResponse) {
option (google.api.http) = {
get: "/v1/{name=projects/*/locations/*/registries/*/devices/*}/configVersions"
additional_bindings {
Expand All @@ -147,7 +152,8 @@ service DeviceManager {

// Lists the last few versions of the device state in descending order (i.e.:
// newest first).
rpc ListDeviceStates(ListDeviceStatesRequest) returns (ListDeviceStatesResponse) {
rpc ListDeviceStates(ListDeviceStatesRequest)
returns (ListDeviceStatesResponse) {
option (google.api.http) = {
get: "/v1/{name=projects/*/locations/*/registries/*/devices/*}/states"
additional_bindings {
Expand All @@ -158,7 +164,8 @@ service DeviceManager {

// Sets the access control policy on the specified resource. Replaces any
// existing policy.
rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) {
rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest)
returns (google.iam.v1.Policy) {
option (google.api.http) = {
post: "/v1/{resource=projects/*/locations/*/registries/*}:setIamPolicy"
body: "*"
Expand All @@ -172,7 +179,8 @@ service DeviceManager {
// Gets the access control policy for a resource.
// Returns an empty policy if the resource exists and does not have a policy
// set.
rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) returns (google.iam.v1.Policy) {
rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest)
returns (google.iam.v1.Policy) {
option (google.api.http) = {
post: "/v1/{resource=projects/*/locations/*/registries/*}:getIamPolicy"
body: "*"
Expand All @@ -186,7 +194,8 @@ service DeviceManager {
// 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.
rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) returns (google.iam.v1.TestIamPermissionsResponse) {
rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest)
returns (google.iam.v1.TestIamPermissionsResponse) {
option (google.api.http) = {
post: "/v1/{resource=projects/*/locations/*/registries/*}:testIamPermissions"
body: "*"
Expand All @@ -210,7 +219,8 @@ service DeviceManager {
// 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.
rpc SendCommandToDevice(SendCommandToDeviceRequest) returns (SendCommandToDeviceResponse) {
rpc SendCommandToDevice(SendCommandToDeviceRequest)
returns (SendCommandToDeviceResponse) {
option (google.api.http) = {
post: "/v1/{name=projects/*/locations/*/registries/*/devices/*}:sendCommandToDevice"
body: "*"
Expand All @@ -222,7 +232,8 @@ service DeviceManager {
}

// Associates the device with the gateway.
rpc BindDeviceToGateway(BindDeviceToGatewayRequest) returns (BindDeviceToGatewayResponse) {
rpc BindDeviceToGateway(BindDeviceToGatewayRequest)
returns (BindDeviceToGatewayResponse) {
option (google.api.http) = {
post: "/v1/{parent=projects/*/locations/*/registries/*}:bindDeviceToGateway"
body: "*"
Expand All @@ -234,7 +245,8 @@ service DeviceManager {
}

// Deletes the association between the device and the gateway.
rpc UnbindDeviceFromGateway(UnbindDeviceFromGatewayRequest) returns (UnbindDeviceFromGatewayResponse) {
rpc UnbindDeviceFromGateway(UnbindDeviceFromGatewayRequest)
returns (UnbindDeviceFromGatewayResponse) {
option (google.api.http) = {
post: "/v1/{parent=projects/*/locations/*/registries/*}:unbindDeviceFromGateway"
body: "*"
Expand Down Expand Up @@ -509,9 +521,7 @@ message SendCommandToDeviceRequest {
}

// Response for `SendCommandToDevice`.
message SendCommandToDeviceResponse {

}
message SendCommandToDeviceResponse {}

// Request for `BindDeviceToGateway`.
message BindDeviceToGatewayRequest {
Expand All @@ -530,9 +540,7 @@ message BindDeviceToGatewayRequest {
}

// Response for `BindDeviceToGateway`.
message BindDeviceToGatewayResponse {

}
message BindDeviceToGatewayResponse {}

// Request for `UnbindDeviceFromGateway`.
message UnbindDeviceFromGatewayRequest {
Expand All @@ -551,6 +559,4 @@ message UnbindDeviceFromGatewayRequest {
}

// Response for `UnbindDeviceFromGateway`.
message UnbindDeviceFromGatewayResponse {

}
message UnbindDeviceFromGatewayResponse {}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ option java_multiple_files = true;
option java_outer_classname = "ResourcesProto";
option java_package = "com.google.cloud.iot.v1";


// The device resource.
message Device {
// The user-defined device identifier. The device ID must be unique
Expand Down
10 changes: 5 additions & 5 deletions google-cloud-clients/google-cloud-iot/synth.metadata
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"updateTime": "2019-01-17T08:44:51.668915Z",
"updateTime": "2019-02-26T08:44:30.879833Z",
"sources": [
{
"generator": {
"name": "artman",
"version": "0.16.6",
"dockerImage": "googleapis/artman@sha256:12722f2ca3fbc3b53cc6aa5f0e569d7d221b46bd876a2136497089dec5e3634e"
"version": "0.16.14",
"dockerImage": "googleapis/artman@sha256:f3d61ae45abaeefb6be5f228cda22732c2f1b00fb687c79c4bd4f2c42bb1e1a7"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "0ac60e21a1aa86c07c1836865b35308ba8178b05",
"internalRef": "229626798"
"sha": "29f098cb03a9983cc9cb15993de5da64419046f2",
"internalRef": "235621085"
}
}
],
Expand Down