{ "name": "smartdevicemanagement", "resources": { "enterprises": { "resources": { "devices": { "methods": { "get": { "scopes": [ "https://www.googleapis.com/auth/sdm.service" ], "parameterOrder": [ "name" ], "response": { "$ref": "GoogleHomeEnterpriseSdmV1Device" }, "path": "v1/{+name}", "description": "Gets a device managed by the enterprise.", "httpMethod": "GET", "parameters": { "name": { "description": "The name of the device requested. For example: \"enterprises/XYZ/devices/123\"", "pattern": "^enterprises/[^/]+/devices/[^/]+$", "location": "path", "required": true, "type": "string" } }, "id": "smartdevicemanagement.enterprises.devices.get", "flatPath": "v1/enterprises/{enterprisesId}/devices/{devicesId}" }, "list": { "parameters": { "parent": { "required": true, "description": "The parent enterprise to list devices under. E.g. \"enterprises/XYZ\".", "location": "path", "pattern": "^enterprises/[^/]+$", "type": "string" }, "filter": { "type": "string", "description": "Optional filter to list devices. Filters can be done on: Device custom name (substring match): 'customName=wing'", "location": "query" } }, "parameterOrder": [ "parent" ], "path": "v1/{+parent}/devices", "response": { "$ref": "GoogleHomeEnterpriseSdmV1ListDevicesResponse" }, "description": "Lists devices managed by the enterprise.", "scopes": [ "https://www.googleapis.com/auth/sdm.service" ], "flatPath": "v1/enterprises/{enterprisesId}/devices", "httpMethod": "GET", "id": "smartdevicemanagement.enterprises.devices.list" }, "executeCommand": { "httpMethod": "POST", "response": { "$ref": "GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse" }, "scopes": [ "https://www.googleapis.com/auth/sdm.service" ], "parameters": { "name": { "type": "string", "required": true, "location": "path", "pattern": "^enterprises/[^/]+/devices/[^/]+$", "description": "The name of the device requested. For example: \"enterprises/XYZ/devices/123\"" } }, "parameterOrder": [ "name" ], "id": "smartdevicemanagement.enterprises.devices.executeCommand", "flatPath": "v1/enterprises/{enterprisesId}/devices/{devicesId}:executeCommand", "description": "Executes a command to device managed by the enterprise.", "path": "v1/{+name}:executeCommand", "request": { "$ref": "GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandRequest" } } } }, "structures": { "methods": { "get": { "httpMethod": "GET", "description": "Gets a structure managed by the enterprise.", "path": "v1/{+name}", "parameterOrder": [ "name" ], "response": { "$ref": "GoogleHomeEnterpriseSdmV1Structure" }, "id": "smartdevicemanagement.enterprises.structures.get", "scopes": [ "https://www.googleapis.com/auth/sdm.service" ], "flatPath": "v1/enterprises/{enterprisesId}/structures/{structuresId}", "parameters": { "name": { "location": "path", "pattern": "^enterprises/[^/]+/structures/[^/]+$", "type": "string", "required": true, "description": "The name of the structure requested. For example: \"enterprises/XYZ/structures/ABC\"." } } }, "list": { "parameters": { "filter": { "type": "string", "description": "Optional filter to list structures.", "location": "query" }, "parent": { "pattern": "^enterprises/[^/]+$", "description": "The parent enterprise to list structures under. E.g. \"enterprises/XYZ\".", "required": true, "type": "string", "location": "path" } }, "httpMethod": "GET", "id": "smartdevicemanagement.enterprises.structures.list", "response": { "$ref": "GoogleHomeEnterpriseSdmV1ListStructuresResponse" }, "path": "v1/{+parent}/structures", "description": "Lists structures managed by the enterprise.", "scopes": [ "https://www.googleapis.com/auth/sdm.service" ], "flatPath": "v1/enterprises/{enterprisesId}/structures", "parameterOrder": [ "parent" ] } }, "resources": { "rooms": { "methods": { "list": { "parameterOrder": [ "parent" ], "path": "v1/{+parent}/rooms", "description": "Lists rooms managed by the enterprise.", "scopes": [ "https://www.googleapis.com/auth/sdm.service" ], "id": "smartdevicemanagement.enterprises.structures.rooms.list", "parameters": { "parent": { "location": "path", "description": "The parent resource name of the rooms requested. For example: \"enterprises/XYZ/structures/ABC\".", "pattern": "^enterprises/[^/]+/structures/[^/]+$", "type": "string", "required": true } }, "flatPath": "v1/enterprises/{enterprisesId}/structures/{structuresId}/rooms", "response": { "$ref": "GoogleHomeEnterpriseSdmV1ListRoomsResponse" }, "httpMethod": "GET" }, "get": { "scopes": [ "https://www.googleapis.com/auth/sdm.service" ], "flatPath": "v1/enterprises/{enterprisesId}/structures/{structuresId}/rooms/{roomsId}", "parameters": { "name": { "description": "The name of the room requested. For example: \"enterprises/XYZ/structures/ABC/rooms/123\".", "location": "path", "type": "string", "required": true, "pattern": "^enterprises/[^/]+/structures/[^/]+/rooms/[^/]+$" } }, "id": "smartdevicemanagement.enterprises.structures.rooms.get", "httpMethod": "GET", "parameterOrder": [ "name" ], "description": "Gets a room managed by the enterprise.", "path": "v1/{+name}", "response": { "$ref": "GoogleHomeEnterpriseSdmV1Room" } } } } } } } } }, "revision": "20231119", "servicePath": "", "icons": { "x16": "http://www.google.com/images/icons/product/search-16.gif", "x32": "http://www.google.com/images/icons/product/search-32.gif" }, "documentationLink": "https://developers.google.com/nest/device-access", "version": "v1", "rootUrl": "https://smartdevicemanagement.googleapis.com/", "ownerDomain": "google.com", "mtlsRootUrl": "https://smartdevicemanagement.mtls.googleapis.com/", "parameters": { "alt": { "type": "string", "enum": [ "json", "media", "proto" ], "location": "query", "description": "Data format for response.", "enumDescriptions": [ "Responses with Content-Type of application/json", "Media download with context-dependent Content-Type", "Responses with Content-Type of application/x-protobuf" ], "default": "json" }, "uploadType": { "location": "query", "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", "type": "string" }, "key": { "type": "string", "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", "location": "query" }, "quotaUser": { "location": "query", "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", "type": "string" }, "oauth_token": { "location": "query", "type": "string", "description": "OAuth 2.0 token for the current user." }, "upload_protocol": { "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", "location": "query", "type": "string" }, "access_token": { "type": "string", "location": "query", "description": "OAuth access token." }, "$.xgafv": { "description": "V1 error format.", "type": "string", "enumDescriptions": [ "v1 error format", "v2 error format" ], "location": "query", "enum": [ "1", "2" ] }, "prettyPrint": { "location": "query", "description": "Returns response with indentations and line breaks.", "type": "boolean", "default": "true" }, "callback": { "description": "JSONP", "type": "string", "location": "query" }, "fields": { "location": "query", "description": "Selector specifying which fields to include in a partial response.", "type": "string" } }, "kind": "discovery#restDescription", "protocol": "rest", "title": "Smart Device Management API", "canonicalName": "Smart Device Management", "discoveryVersion": "v1", "ownerName": "Google", "schemas": { "GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse": { "properties": { "results": { "additionalProperties": { "type": "any", "description": "Properties of the object." }, "type": "object", "description": "The results of executing the command." } }, "description": "Response message for SmartDeviceManagementService.ExecuteDeviceCommand", "type": "object", "id": "GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse" }, "GoogleHomeEnterpriseSdmV1Device": { "id": "GoogleHomeEnterpriseSdmV1Device", "description": "Device resource represents an instance of enterprise managed device in the property.", "type": "object", "properties": { "name": { "description": "Required. The resource name of the device. For example: \"enterprises/XYZ/devices/123\".", "type": "string" }, "parentRelations": { "items": { "$ref": "GoogleHomeEnterpriseSdmV1ParentRelation" }, "description": "Assignee details of the device.", "type": "array" }, "type": { "type": "string", "description": "Output only. Type of the device for general display purposes. For example: \"THERMOSTAT\". The device type should not be used to deduce or infer functionality of the actual device it is assigned to. Instead, use the returned traits for the device.", "readOnly": true }, "traits": { "additionalProperties": { "type": "any", "description": "Properties of the object." }, "description": "Output only. Device traits.", "readOnly": true, "type": "object" } } }, "GoogleHomeEnterpriseSdmV1ListStructuresResponse": { "id": "GoogleHomeEnterpriseSdmV1ListStructuresResponse", "type": "object", "properties": { "structures": { "description": "The list of structures.", "type": "array", "items": { "$ref": "GoogleHomeEnterpriseSdmV1Structure" } } }, "description": "Response message for SmartDeviceManagementService.ListStructures" }, "GoogleHomeEnterpriseSdmV1Structure": { "properties": { "traits": { "type": "object", "additionalProperties": { "description": "Properties of the object.", "type": "any" }, "description": "Structure traits." }, "name": { "description": "Output only. The resource name of the structure. For example: \"enterprises/XYZ/structures/ABC\".", "type": "string", "readOnly": true } }, "id": "GoogleHomeEnterpriseSdmV1Structure", "type": "object", "description": "Structure resource represents an instance of enterprise managed home or hotel room." }, "GoogleHomeEnterpriseSdmV1Room": { "id": "GoogleHomeEnterpriseSdmV1Room", "properties": { "traits": { "additionalProperties": { "type": "any", "description": "Properties of the object." }, "description": "Room traits.", "type": "object" }, "name": { "description": "Output only. The resource name of the room. For example: \"enterprises/XYZ/structures/ABC/rooms/123\".", "readOnly": true, "type": "string" } }, "type": "object", "description": "Room resource represents an instance of sub-space within a structure such as rooms in a hotel suite or rental apartment." }, "GoogleHomeEnterpriseSdmV1ParentRelation": { "description": "Represents device relationships, for instance, structure/room to which the device is assigned to.", "type": "object", "properties": { "displayName": { "type": "string", "readOnly": true, "description": "Output only. The custom name of the relation -- e.g., structure/room where the device is assigned to." }, "parent": { "description": "Output only. The name of the relation -- e.g., structure/room where the device is assigned to. For example: \"enterprises/XYZ/structures/ABC\" or \"enterprises/XYZ/structures/ABC/rooms/123\"", "type": "string", "readOnly": true } }, "id": "GoogleHomeEnterpriseSdmV1ParentRelation" }, "GoogleHomeEnterpriseSdmV1ListRoomsResponse": { "id": "GoogleHomeEnterpriseSdmV1ListRoomsResponse", "description": "Response message for SmartDeviceManagementService.ListRooms", "type": "object", "properties": { "rooms": { "description": "The list of rooms.", "type": "array", "items": { "$ref": "GoogleHomeEnterpriseSdmV1Room" } } } }, "GoogleHomeEnterpriseSdmV1ListDevicesResponse": { "properties": { "devices": { "items": { "$ref": "GoogleHomeEnterpriseSdmV1Device" }, "type": "array", "description": "The list of devices." } }, "description": "Response message for SmartDeviceManagementService.ListDevices", "type": "object", "id": "GoogleHomeEnterpriseSdmV1ListDevicesResponse" }, "GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandRequest": { "description": "Request message for SmartDeviceManagementService.ExecuteDeviceCommand", "id": "GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandRequest", "properties": { "params": { "additionalProperties": { "description": "Properties of the object.", "type": "any" }, "description": "The command message to execute, represented as a Struct.", "type": "object" }, "command": { "description": "The command name to execute, represented by the fully qualified protobuf message name.", "type": "string" } }, "type": "object" } }, "id": "smartdevicemanagement:v1", "batchPath": "batch", "version_module": true, "description": "Allow select enterprise partners to access, control, and manage Google and Nest devices programmatically.", "baseUrl": "https://smartdevicemanagement.googleapis.com/", "auth": { "oauth2": { "scopes": { "https://www.googleapis.com/auth/sdm.service": { "description": "See and/or control the devices that you selected" } } } }, "fullyEncodeReservedExpansion": true, "basePath": "" }