Skip to content

Commit

Permalink
feat(smartdevicemanagement): update the API
Browse files Browse the repository at this point in the history
#### smartdevicemanagement:v1

The following keys were added:
- auth.oauth2.scopes.https://www.googleapis.com/auth/sdm.thermostat.service.description

The following keys were changed:
- resources.enterprises.resources.devices.methods.executeCommand.scopes
- resources.enterprises.resources.devices.methods.get.scopes
- resources.enterprises.resources.devices.methods.list.scopes
- resources.enterprises.resources.structures.methods.get.scopes
- resources.enterprises.resources.structures.methods.list.scopes
- resources.enterprises.resources.structures.resources.rooms.methods.get.scopes
- resources.enterprises.resources.structures.resources.rooms.methods.list.scopes
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed Jun 18, 2021
1 parent f8df017 commit 329db56
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 15 deletions.
26 changes: 18 additions & 8 deletions discovery/smartdevicemanagement-v1.json
Expand Up @@ -4,6 +4,9 @@
"scopes": {
"https://www.googleapis.com/auth/sdm.service": {
"description": "See and/or control the devices that you selected"
},
"https://www.googleapis.com/auth/sdm.thermostat.service": {
"description": "See and control the Nest thermostats that you select"
}
}
}
Expand Down Expand Up @@ -134,7 +137,8 @@
"$ref": "GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse"
},
"scopes": [
"https://www.googleapis.com/auth/sdm.service"
"https://www.googleapis.com/auth/sdm.service",
"https://www.googleapis.com/auth/sdm.thermostat.service"
]
},
"get": {
Expand All @@ -159,7 +163,8 @@
"$ref": "GoogleHomeEnterpriseSdmV1Device"
},
"scopes": [
"https://www.googleapis.com/auth/sdm.service"
"https://www.googleapis.com/auth/sdm.service",
"https://www.googleapis.com/auth/sdm.thermostat.service"
]
},
"list": {
Expand Down Expand Up @@ -200,7 +205,8 @@
"$ref": "GoogleHomeEnterpriseSdmV1ListDevicesResponse"
},
"scopes": [
"https://www.googleapis.com/auth/sdm.service"
"https://www.googleapis.com/auth/sdm.service",
"https://www.googleapis.com/auth/sdm.thermostat.service"
]
}
}
Expand Down Expand Up @@ -229,7 +235,8 @@
"$ref": "GoogleHomeEnterpriseSdmV1Structure"
},
"scopes": [
"https://www.googleapis.com/auth/sdm.service"
"https://www.googleapis.com/auth/sdm.service",
"https://www.googleapis.com/auth/sdm.thermostat.service"
]
},
"list": {
Expand Down Expand Up @@ -270,7 +277,8 @@
"$ref": "GoogleHomeEnterpriseSdmV1ListStructuresResponse"
},
"scopes": [
"https://www.googleapis.com/auth/sdm.service"
"https://www.googleapis.com/auth/sdm.service",
"https://www.googleapis.com/auth/sdm.thermostat.service"
]
}
},
Expand Down Expand Up @@ -299,7 +307,8 @@
"$ref": "GoogleHomeEnterpriseSdmV1Room"
},
"scopes": [
"https://www.googleapis.com/auth/sdm.service"
"https://www.googleapis.com/auth/sdm.service",
"https://www.googleapis.com/auth/sdm.thermostat.service"
]
},
"list": {
Expand Down Expand Up @@ -335,7 +344,8 @@
"$ref": "GoogleHomeEnterpriseSdmV1ListRoomsResponse"
},
"scopes": [
"https://www.googleapis.com/auth/sdm.service"
"https://www.googleapis.com/auth/sdm.service",
"https://www.googleapis.com/auth/sdm.thermostat.service"
]
}
}
Expand All @@ -345,7 +355,7 @@
}
}
},
"revision": "20210224",
"revision": "20210604",
"rootUrl": "https://smartdevicemanagement.googleapis.com/",
"schemas": {
"GoogleHomeEnterpriseSdmV1Device": {
Expand Down
35 changes: 28 additions & 7 deletions src/apis/smartdevicemanagement/v1.ts
Expand Up @@ -282,7 +282,10 @@ export namespace smartdevicemanagement_v1 {
* async function main() {
* const auth = new google.auth.GoogleAuth({
* // Scopes can be specified either as an array or as a single, space-delimited string.
* scopes: ['https://www.googleapis.com/auth/sdm.service'],
* scopes: [
* 'https://www.googleapis.com/auth/sdm.service',
* 'https://www.googleapis.com/auth/sdm.thermostat.service',
* ],
* });
*
* // Acquire an auth client, and bind it to all future calls
Expand Down Expand Up @@ -430,7 +433,10 @@ export namespace smartdevicemanagement_v1 {
* async function main() {
* const auth = new google.auth.GoogleAuth({
* // Scopes can be specified either as an array or as a single, space-delimited string.
* scopes: ['https://www.googleapis.com/auth/sdm.service'],
* scopes: [
* 'https://www.googleapis.com/auth/sdm.service',
* 'https://www.googleapis.com/auth/sdm.thermostat.service',
* ],
* });
*
* // Acquire an auth client, and bind it to all future calls
Expand Down Expand Up @@ -569,7 +575,10 @@ export namespace smartdevicemanagement_v1 {
* async function main() {
* const auth = new google.auth.GoogleAuth({
* // Scopes can be specified either as an array or as a single, space-delimited string.
* scopes: ['https://www.googleapis.com/auth/sdm.service'],
* scopes: [
* 'https://www.googleapis.com/auth/sdm.service',
* 'https://www.googleapis.com/auth/sdm.thermostat.service',
* ],
* });
*
* // Acquire an auth client, and bind it to all future calls
Expand Down Expand Up @@ -763,7 +772,10 @@ export namespace smartdevicemanagement_v1 {
* async function main() {
* const auth = new google.auth.GoogleAuth({
* // Scopes can be specified either as an array or as a single, space-delimited string.
* scopes: ['https://www.googleapis.com/auth/sdm.service'],
* scopes: [
* 'https://www.googleapis.com/auth/sdm.service',
* 'https://www.googleapis.com/auth/sdm.thermostat.service',
* ],
* });
*
* // Acquire an auth client, and bind it to all future calls
Expand Down Expand Up @@ -900,7 +912,10 @@ export namespace smartdevicemanagement_v1 {
* async function main() {
* const auth = new google.auth.GoogleAuth({
* // Scopes can be specified either as an array or as a single, space-delimited string.
* scopes: ['https://www.googleapis.com/auth/sdm.service'],
* scopes: [
* 'https://www.googleapis.com/auth/sdm.service',
* 'https://www.googleapis.com/auth/sdm.thermostat.service',
* ],
* });
*
* // Acquire an auth client, and bind it to all future calls
Expand Down Expand Up @@ -1080,7 +1095,10 @@ export namespace smartdevicemanagement_v1 {
* async function main() {
* const auth = new google.auth.GoogleAuth({
* // Scopes can be specified either as an array or as a single, space-delimited string.
* scopes: ['https://www.googleapis.com/auth/sdm.service'],
* scopes: [
* 'https://www.googleapis.com/auth/sdm.service',
* 'https://www.googleapis.com/auth/sdm.thermostat.service',
* ],
* });
*
* // Acquire an auth client, and bind it to all future calls
Expand Down Expand Up @@ -1217,7 +1235,10 @@ export namespace smartdevicemanagement_v1 {
* async function main() {
* const auth = new google.auth.GoogleAuth({
* // Scopes can be specified either as an array or as a single, space-delimited string.
* scopes: ['https://www.googleapis.com/auth/sdm.service'],
* scopes: [
* 'https://www.googleapis.com/auth/sdm.service',
* 'https://www.googleapis.com/auth/sdm.thermostat.service',
* ],
* });
*
* // Acquire an auth client, and bind it to all future calls
Expand Down

0 comments on commit 329db56

Please sign in to comment.