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:
- 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
  • Loading branch information
yoshi-automation authored and sofisl committed Oct 20, 2020
1 parent 6e98df4 commit 44adeb0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 35 deletions.
26 changes: 5 additions & 21 deletions discovery/smartdevicemanagement-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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": {
Expand All @@ -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": {
Expand Down Expand Up @@ -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": {
Expand All @@ -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": {
Expand Down
16 changes: 2 additions & 14 deletions src/apis/smartdevicemanagement/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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".
*/
Expand Down Expand Up @@ -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;
/**
Expand All @@ -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;
/**
Expand Down Expand Up @@ -489,7 +485,6 @@ export namespace smartdevicemanagement_v1 {
*
* // Example response
* // {
* // "assignee": "my_assignee",
* // "name": "my_name",
* // "parentRelations": [],
* // "traits": {},
Expand Down Expand Up @@ -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);
*
Expand All @@ -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
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 44adeb0

Please sign in to comment.