Skip to content

Commit

Permalink
feat(smartdevicemanagement)!: update the API
Browse files Browse the repository at this point in the history
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
  • Loading branch information
yoshi-automation authored and bcoe committed Oct 28, 2020
1 parent e047b67 commit 380a946
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 51 deletions.
30 changes: 3 additions & 27 deletions discovery/smartdevicemanagement-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down Expand Up @@ -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"
},
Expand Down Expand Up @@ -345,7 +345,7 @@
}
}
},
"revision": "20201003",
"revision": "20201022",
"rootUrl": "https://smartdevicemanagement.googleapis.com/",
"schemas": {
"GoogleHomeEnterpriseSdmV1Device": {
Expand Down Expand Up @@ -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.",
Expand All @@ -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": "",
Expand Down
30 changes: 6 additions & 24 deletions src/apis/smartdevicemanagement/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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',
Expand All @@ -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".
Expand Down Expand Up @@ -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;
/**
Expand Down Expand Up @@ -840,7 +823,6 @@ export namespace smartdevicemanagement_v1 {
* // Example response
* // {
* // "name": "my_name",
* // "parentRelations": [],
* // "traits": {}
* // }
* }
Expand Down Expand Up @@ -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',
Expand All @@ -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".
Expand Down Expand Up @@ -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;
/**
Expand Down

0 comments on commit 380a946

Please sign in to comment.