From 380a9465503a236af554984084ca4ee6f1db642b Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Wed, 28 Oct 2020 05:21:24 -0700 Subject: [PATCH] feat(smartdevicemanagement)!: update the API BREAKING CHANGE: This release has breaking changes. #### smartdevicemanagement:v1 The following keys were deleted: - schemas.GoogleHomeEnterpriseSdmV1Structure.properties.parentRelations.description - schemas.GoogleHomeEnterpriseSdmV1Structure.properties.parentRelations.items.$ref - schemas.GoogleHomeEnterpriseSdmV1Structure.properties.parentRelations.type - schemas.GoogleHomeEnterpriseSdmV1StructureParentRelation.description - schemas.GoogleHomeEnterpriseSdmV1StructureParentRelation.id - schemas.GoogleHomeEnterpriseSdmV1StructureParentRelation.properties.displayName.description - schemas.GoogleHomeEnterpriseSdmV1StructureParentRelation.properties.displayName.readOnly - schemas.GoogleHomeEnterpriseSdmV1StructureParentRelation.properties.displayName.type - schemas.GoogleHomeEnterpriseSdmV1StructureParentRelation.properties.parent.description - schemas.GoogleHomeEnterpriseSdmV1StructureParentRelation.properties.parent.readOnly - schemas.GoogleHomeEnterpriseSdmV1StructureParentRelation.properties.parent.type - schemas.GoogleHomeEnterpriseSdmV1StructureParentRelation.type The following keys were changed: - resources.enterprises.resources.devices.methods.list.parameters.filter.description - resources.enterprises.resources.structures.methods.list.parameters.filter.description --- discovery/smartdevicemanagement-v1.json | 30 +++---------------------- src/apis/smartdevicemanagement/v1.ts | 30 +++++-------------------- 2 files changed, 9 insertions(+), 51 deletions(-) diff --git a/discovery/smartdevicemanagement-v1.json b/discovery/smartdevicemanagement-v1.json index 2d644a75ecf..c95ad7105bf 100644 --- a/discovery/smartdevicemanagement-v1.json +++ b/discovery/smartdevicemanagement-v1.json @@ -172,7 +172,7 @@ ], "parameters": { "filter": { - "description": "Optional filter to list devices. Filters can match the exact assignee (could be a structure or a room). E.g. 'assignee=enterprises/XYZ/structures/abc' Also could filter by parent (group): 'parent=enterprises/XYZ/groups/jkl' or filter by device custom name (substring match): 'customName=wing'", + "description": "Optional filter to list devices. Filters can be done on: Device custom name (substring match): 'customName=wing'", "location": "query", "type": "string" }, @@ -242,7 +242,7 @@ ], "parameters": { "filter": { - "description": "Optional filter to list structures. Filters can match the exact album assigned to the structure. E.g. 'album=enterprises/XYZ/albums/abc' It also support filtering by parent (only groups for now): E.g. 'parent=enterprises/XYZ/groups/124'", + "description": "Optional filter to list structures.", "location": "query", "type": "string" }, @@ -345,7 +345,7 @@ } } }, - "revision": "20201003", + "revision": "20201022", "rootUrl": "https://smartdevicemanagement.googleapis.com/", "schemas": { "GoogleHomeEnterpriseSdmV1Device": { @@ -514,13 +514,6 @@ "readOnly": true, "type": "string" }, - "parentRelations": { - "description": "Assignee details of the structure.", - "items": { - "$ref": "GoogleHomeEnterpriseSdmV1StructureParentRelation" - }, - "type": "array" - }, "traits": { "additionalProperties": { "description": "Properties of the object.", @@ -531,23 +524,6 @@ } }, "type": "object" - }, - "GoogleHomeEnterpriseSdmV1StructureParentRelation": { - "description": "Represents structure assignee relationships, for instance, group to which the structure is assigned to.", - "id": "GoogleHomeEnterpriseSdmV1StructureParentRelation", - "properties": { - "displayName": { - "description": "Output only. The custom name of the relation -- e.g., group, to which the structure is assigned to.", - "readOnly": true, - "type": "string" - }, - "parent": { - "description": "Output only. The name of the relation -- e.g., group to which the structure is assigned to. For example: \"enterprises/XYZ/groups/ABC\"", - "readOnly": true, - "type": "string" - } - }, - "type": "object" } }, "servicePath": "", diff --git a/src/apis/smartdevicemanagement/v1.ts b/src/apis/smartdevicemanagement/v1.ts index b9e5f843a54..9b0c37c1bfb 100644 --- a/src/apis/smartdevicemanagement/v1.ts +++ b/src/apis/smartdevicemanagement/v1.ts @@ -243,28 +243,11 @@ export namespace smartdevicemanagement_v1 { * Output only. The resource name of the structure. For example: "enterprises/XYZ/structures/ABC". */ name?: string | null; - /** - * Assignee details of the structure. - */ - parentRelations?: Schema$GoogleHomeEnterpriseSdmV1StructureParentRelation[]; /** * Structure traits. */ traits?: {[key: string]: any} | null; } - /** - * Represents structure assignee relationships, for instance, group to which the structure is assigned to. - */ - export interface Schema$GoogleHomeEnterpriseSdmV1StructureParentRelation { - /** - * Output only. The custom name of the relation -- e.g., group, to which the structure is assigned to. - */ - displayName?: string | null; - /** - * Output only. The name of the relation -- e.g., group to which the structure is assigned to. For example: "enterprises/XYZ/groups/ABC" - */ - parent?: string | null; - } export class Resource$Enterprises { context: APIRequestContext; @@ -619,7 +602,7 @@ export namespace smartdevicemanagement_v1 { * * // Do the magic * const res = await smartdevicemanagement.enterprises.devices.list({ - * // Optional filter to list devices. Filters can match the exact assignee (could be a structure or a room). E.g. 'assignee=enterprises/XYZ/structures/abc' Also could filter by parent (group): 'parent=enterprises/XYZ/groups/jkl' or filter by device custom name (substring match): 'customName=wing' + * // Optional filter to list devices. Filters can be done on: Device custom name (substring match): 'customName=wing' * filter: 'placeholder-value', * // Optional requested page size. Server may return fewer devices than requested. If unspecified, server will pick an appropriate default. * pageSize: 'placeholder-value', @@ -646,7 +629,7 @@ export namespace smartdevicemanagement_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.filter Optional filter to list devices. Filters can match the exact assignee (could be a structure or a room). E.g. 'assignee=enterprises/XYZ/structures/abc' Also could filter by parent (group): 'parent=enterprises/XYZ/groups/jkl' or filter by device custom name (substring match): 'customName=wing' + * @param {string=} params.filter Optional filter to list devices. Filters can be done on: Device custom name (substring match): 'customName=wing' * @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". @@ -780,7 +763,7 @@ export namespace smartdevicemanagement_v1 { export interface Params$Resource$Enterprises$Devices$List extends StandardParameters { /** - * Optional filter to list devices. Filters can match the exact assignee (could be a structure or a room). E.g. 'assignee=enterprises/XYZ/structures/abc' Also could filter by parent (group): 'parent=enterprises/XYZ/groups/jkl' or filter by device custom name (substring match): 'customName=wing' + * Optional filter to list devices. Filters can be done on: Device custom name (substring match): 'customName=wing' */ filter?: string; /** @@ -840,7 +823,6 @@ export namespace smartdevicemanagement_v1 { * // Example response * // { * // "name": "my_name", - * // "parentRelations": [], * // "traits": {} * // } * } @@ -972,7 +954,7 @@ export namespace smartdevicemanagement_v1 { * * // Do the magic * const res = await smartdevicemanagement.enterprises.structures.list({ - * // Optional filter to list structures. Filters can match the exact album assigned to the structure. E.g. 'album=enterprises/XYZ/albums/abc' It also support filtering by parent (only groups for now): E.g. 'parent=enterprises/XYZ/groups/124' + * // Optional filter to list structures. * filter: 'placeholder-value', * // Requested page size. Server may return fewer structures than requested. If unspecified, server will pick an appropriate default. * pageSize: 'placeholder-value', @@ -999,7 +981,7 @@ export namespace smartdevicemanagement_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.filter Optional filter to list structures. Filters can match the exact album assigned to the structure. E.g. 'album=enterprises/XYZ/albums/abc' It also support filtering by parent (only groups for now): E.g. 'parent=enterprises/XYZ/groups/124' + * @param {string=} params.filter Optional filter to list structures. * @param {integer=} params.pageSize Requested page size. Server may return fewer structures than requested. If unspecified, server will pick an appropriate default. * @param {string=} params.pageToken The token of the page to retrieve. * @param {string} params.parent The parent enterprise to list structures under. E.g. "enterprises/XYZ". @@ -1120,7 +1102,7 @@ export namespace smartdevicemanagement_v1 { export interface Params$Resource$Enterprises$Structures$List extends StandardParameters { /** - * Optional filter to list structures. Filters can match the exact album assigned to the structure. E.g. 'album=enterprises/XYZ/albums/abc' It also support filtering by parent (only groups for now): E.g. 'parent=enterprises/XYZ/groups/124' + * Optional filter to list structures. */ filter?: string; /**