From 44adeb0e1e21b065e04576e022294662f1d54b6e Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Tue, 20 Oct 2020 05:20:44 -0700 Subject: [PATCH] feat(smartdevicemanagement)!: update the API BREAKING CHANGE: This release has breaking changes. #### smartdevicemanagement:v1 The following keys were deleted: - resources.enterprises.resources.devices.methods.list.parameters.view.description - resources.enterprises.resources.devices.methods.list.parameters.view.enum - resources.enterprises.resources.devices.methods.list.parameters.view.enumDescriptions - resources.enterprises.resources.devices.methods.list.parameters.view.location - resources.enterprises.resources.devices.methods.list.parameters.view.type - schemas.GoogleHomeEnterpriseSdmV1Device.properties.assignee.description - schemas.GoogleHomeEnterpriseSdmV1Device.properties.assignee.readOnly - schemas.GoogleHomeEnterpriseSdmV1Device.properties.assignee.type The following keys were added: - schemas.GoogleHomeEnterpriseSdmV1Room.properties.name.readOnly - schemas.GoogleHomeEnterpriseSdmV1Structure.properties.name.readOnly The following keys were changed: - schemas.GoogleHomeEnterpriseSdmV1ListRoomsResponse.properties.nextPageToken.description - schemas.GoogleHomeEnterpriseSdmV1ListStructuresResponse.properties.nextPageToken.description --- discovery/smartdevicemanagement-v1.json | 26 +++++-------------------- src/apis/smartdevicemanagement/v1.ts | 16 ++------------- 2 files changed, 7 insertions(+), 35 deletions(-) diff --git a/discovery/smartdevicemanagement-v1.json b/discovery/smartdevicemanagement-v1.json index b7d1599ccce..2d644a75ecf 100644 --- a/discovery/smartdevicemanagement-v1.json +++ b/discovery/smartdevicemanagement-v1.json @@ -193,19 +193,6 @@ "pattern": "^enterprises/[^/]+$", "required": true, "type": "string" - }, - "view": { - "description": "Additional details that need to be provided for the device.", - "enum": [ - "DEVICE_DETAILS_VIEW_UNSPECIFIED", - "DEVICE_CONSOLE_VIEW" - ], - "enumDescriptions": [ - "Default option this would return basic details for both Get and Listd Devices. Currently this view is supported only for device types, SPEAKER, DISPLAY,", - "Selecting this option would return the structureId and structure name to which the device is assigned alongwith other basic details. Currently this view is supported only for device types -- sdm.devices.types.SPEAKER -- sdm.devices.types.CHROMECAST -- sdm.devices.types.DISPLAY -- sdm.devices.types.CAMERA Any other device type would only return a basic view during ListDevices invocation." - ], - "location": "query", - "type": "string" } }, "path": "v1/{+parent}/devices", @@ -358,18 +345,13 @@ } } }, - "revision": "20200910", + "revision": "20201003", "rootUrl": "https://smartdevicemanagement.googleapis.com/", "schemas": { "GoogleHomeEnterpriseSdmV1Device": { "description": "Device resource represents an instance of enterprise managed device in the property.", "id": "GoogleHomeEnterpriseSdmV1Device", "properties": { - "assignee": { - "description": "Output only. The name of the structure/room where the device is assigned to. For example: \"enterprises/XYZ/structures/ABC\" or \"enterprises/XYZ/structures/ABC/rooms/123\"", - "readOnly": true, - "type": "string" - }, "name": { "description": "Required. The resource name of the device. For example: \"enterprises/XYZ/devices/123\".", "type": "string" @@ -455,7 +437,7 @@ "id": "GoogleHomeEnterpriseSdmV1ListRoomsResponse", "properties": { "nextPageToken": { - "description": "The pagination token to retrieve the next page of results.", + "description": "The pagination token to retrieve the next page of results. If this field is omitted, there are no subsequent pages.", "type": "string" }, "rooms": { @@ -473,7 +455,7 @@ "id": "GoogleHomeEnterpriseSdmV1ListStructuresResponse", "properties": { "nextPageToken": { - "description": "The pagination token to retrieve the next page of results.", + "description": "The pagination token to retrieve the next page of results. If this field is omitted, there are no subsequent pages.", "type": "string" }, "structures": { @@ -509,6 +491,7 @@ "properties": { "name": { "description": "Output only. The resource name of the room. For example: \"enterprises/XYZ/structures/ABC/rooms/123\".", + "readOnly": true, "type": "string" }, "traits": { @@ -528,6 +511,7 @@ "properties": { "name": { "description": "Output only. The resource name of the structure. For example: \"enterprises/XYZ/structures/ABC\".", + "readOnly": true, "type": "string" }, "parentRelations": { diff --git a/src/apis/smartdevicemanagement/v1.ts b/src/apis/smartdevicemanagement/v1.ts index c8301c4cc9b..b9e5f843a54 100644 --- a/src/apis/smartdevicemanagement/v1.ts +++ b/src/apis/smartdevicemanagement/v1.ts @@ -131,10 +131,6 @@ export namespace smartdevicemanagement_v1 { * Device resource represents an instance of enterprise managed device in the property. */ export interface Schema$GoogleHomeEnterpriseSdmV1Device { - /** - * Output only. The name of the structure/room where the device is assigned to. For example: "enterprises/XYZ/structures/ABC" or "enterprises/XYZ/structures/ABC/rooms/123" - */ - assignee?: string | null; /** * Required. The resource name of the device. For example: "enterprises/XYZ/devices/123". */ @@ -192,7 +188,7 @@ export namespace smartdevicemanagement_v1 { */ export interface Schema$GoogleHomeEnterpriseSdmV1ListRoomsResponse { /** - * The pagination token to retrieve the next page of results. + * The pagination token to retrieve the next page of results. If this field is omitted, there are no subsequent pages. */ nextPageToken?: string | null; /** @@ -205,7 +201,7 @@ export namespace smartdevicemanagement_v1 { */ export interface Schema$GoogleHomeEnterpriseSdmV1ListStructuresResponse { /** - * The pagination token to retrieve the next page of results. + * The pagination token to retrieve the next page of results. If this field is omitted, there are no subsequent pages. */ nextPageToken?: string | null; /** @@ -489,7 +485,6 @@ export namespace smartdevicemanagement_v1 { * * // Example response * // { - * // "assignee": "my_assignee", * // "name": "my_name", * // "parentRelations": [], * // "traits": {}, @@ -632,8 +627,6 @@ export namespace smartdevicemanagement_v1 { * pageToken: 'placeholder-value', * // The parent enterprise to list devices under. E.g. "enterprises/XYZ". * parent: 'enterprises/my-enterprise', - * // Additional details that need to be provided for the device. - * view: 'placeholder-value', * }); * console.log(res.data); * @@ -657,7 +650,6 @@ export namespace smartdevicemanagement_v1 { * @param {integer=} params.pageSize Optional requested page size. Server may return fewer devices than requested. If unspecified, server will pick an appropriate default. * @param {string=} params.pageToken Optional token of the page to retrieve. * @param {string} params.parent The parent enterprise to list devices under. E.g. "enterprises/XYZ". - * @param {string=} params.view Additional details that need to be provided for the device. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object @@ -803,10 +795,6 @@ export namespace smartdevicemanagement_v1 { * The parent enterprise to list devices under. E.g. "enterprises/XYZ". */ parent?: string; - /** - * Additional details that need to be provided for the device. - */ - view?: string; } export class Resource$Enterprises$Structures {