|
|
|
@ -1,4 +1,4 @@ |
|
|
|
|
// Copyright 2020 Google LLC |
|
|
|
|
// Copyright 2022 Google LLC |
|
|
|
|
// |
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
|
// you may not use this file except in compliance with the License. |
|
|
|
@ -18,6 +18,8 @@ package google.home.enterprise.sdm.v1; |
|
|
|
|
|
|
|
|
|
import "google/api/annotations.proto"; |
|
|
|
|
import "google/api/client.proto"; |
|
|
|
|
import "google/api/field_behavior.proto"; |
|
|
|
|
import "google/api/resource.proto"; |
|
|
|
|
import "google/home/enterprise/sdm/v1/device.proto"; |
|
|
|
|
import "google/home/enterprise/sdm/v1/site.proto"; |
|
|
|
|
import "google/protobuf/struct.proto"; |
|
|
|
@ -38,7 +40,8 @@ option php_namespace = "Google\\Home\\Enterprise\\Sdm\\V1"; |
|
|
|
|
// Home structures and devices for enterprise use cases. |
|
|
|
|
service SmartDeviceManagementService { |
|
|
|
|
option (google.api.default_host) = "smartdevicemanagement.googleapis.com"; |
|
|
|
|
option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/sdm.service"; |
|
|
|
|
option (google.api.oauth_scopes) = |
|
|
|
|
"https://www.googleapis.com/auth/sdm.service"; |
|
|
|
|
|
|
|
|
|
// Gets a device managed by the enterprise. |
|
|
|
|
rpc GetDevice(GetDeviceRequest) returns (Device) { |
|
|
|
@ -55,7 +58,8 @@ service SmartDeviceManagementService { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Executes a command to device managed by the enterprise. |
|
|
|
|
rpc ExecuteDeviceCommand(ExecuteDeviceCommandRequest) returns (ExecuteDeviceCommandResponse) { |
|
|
|
|
rpc ExecuteDeviceCommand(ExecuteDeviceCommandRequest) |
|
|
|
|
returns (ExecuteDeviceCommandResponse) { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
post: "/v1/{name=enterprises/*/devices/*}:executeCommand" |
|
|
|
|
body: "*" |
|
|
|
@ -112,9 +116,8 @@ message ListDevicesRequest { |
|
|
|
|
|
|
|
|
|
// Optional filter to list devices. |
|
|
|
|
// |
|
|
|
|
// Filters can match the exact parent (could be a structure or a room): |
|
|
|
|
// 'parent=enterprises/XYZ/structures/jkl' |
|
|
|
|
// or filter by device custom name (substring match): |
|
|
|
|
// Filters can be done on: |
|
|
|
|
// Device custom name (substring match): |
|
|
|
|
// 'customName=wing' |
|
|
|
|
string filter = 4; |
|
|
|
|
} |
|
|
|
|