@googleapis/smartdevicemanagement 1.0.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/build/v1.d.ts +0 -363
- package/build/v1.js.map +1 -1
- package/index.ts +1 -1
- package/package.json +2 -2
- package/v1.ts +0 -363
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/smartdevicemanagement-v1.1.0...smartdevicemanagement-v2.0.0) (2023-08-09)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### ⚠ BREAKING CHANGES
|
|
7
|
+
|
|
8
|
+
* **smartdevicemanagement:** This release has breaking changes.
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* **smartdevicemanagement:** update the API ([cc5c86e](https://github.com/googleapis/google-api-nodejs-client/commit/cc5c86e75815e78f3eb66823581fad281ca31be2))
|
|
13
|
+
|
|
14
|
+
## [1.1.0](https://github.com/googleapis/google-api-nodejs-client/compare/smartdevicemanagement-v1.0.0...smartdevicemanagement-v1.1.0) (2023-07-18)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* regenerate index files ([46817cf](https://github.com/googleapis/google-api-nodejs-client/commit/46817cfbbdb7030ef55c89dcd5dd54b85d14da5b))
|
|
20
|
+
* **smartdevicemanagement:** update the API ([dd15bc4](https://github.com/googleapis/google-api-nodejs-client/commit/dd15bc4a61d10efd612fe25df2d1d229b12a3bf4))
|
|
21
|
+
|
|
3
22
|
## [1.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/smartdevicemanagement-v0.4.2...smartdevicemanagement-v1.0.0) (2022-10-28)
|
|
4
23
|
|
|
5
24
|
|
package/build/v1.d.ts
CHANGED
|
@@ -128,19 +128,11 @@ export declare namespace smartdevicemanagement_v1 {
|
|
|
128
128
|
* The list of devices.
|
|
129
129
|
*/
|
|
130
130
|
devices?: Schema$GoogleHomeEnterpriseSdmV1Device[];
|
|
131
|
-
/**
|
|
132
|
-
* The pagination token to retrieve the next page of results.
|
|
133
|
-
*/
|
|
134
|
-
nextPageToken?: string | null;
|
|
135
131
|
}
|
|
136
132
|
/**
|
|
137
133
|
* Response message for SmartDeviceManagementService.ListRooms
|
|
138
134
|
*/
|
|
139
135
|
export interface Schema$GoogleHomeEnterpriseSdmV1ListRoomsResponse {
|
|
140
|
-
/**
|
|
141
|
-
* The pagination token to retrieve the next page of results. If this field is omitted, there are no subsequent pages.
|
|
142
|
-
*/
|
|
143
|
-
nextPageToken?: string | null;
|
|
144
136
|
/**
|
|
145
137
|
* The list of rooms.
|
|
146
138
|
*/
|
|
@@ -150,10 +142,6 @@ export declare namespace smartdevicemanagement_v1 {
|
|
|
150
142
|
* Response message for SmartDeviceManagementService.ListStructures
|
|
151
143
|
*/
|
|
152
144
|
export interface Schema$GoogleHomeEnterpriseSdmV1ListStructuresResponse {
|
|
153
|
-
/**
|
|
154
|
-
* The pagination token to retrieve the next page of results. If this field is omitted, there are no subsequent pages.
|
|
155
|
-
*/
|
|
156
|
-
nextPageToken?: string | null;
|
|
157
145
|
/**
|
|
158
146
|
* The list of structures.
|
|
159
147
|
*/
|
|
@@ -213,57 +201,6 @@ export declare namespace smartdevicemanagement_v1 {
|
|
|
213
201
|
constructor(context: APIRequestContext);
|
|
214
202
|
/**
|
|
215
203
|
* Executes a command to device managed by the enterprise.
|
|
216
|
-
* @example
|
|
217
|
-
* ```js
|
|
218
|
-
* // Before running the sample:
|
|
219
|
-
* // - Enable the API at:
|
|
220
|
-
* // https://console.developers.google.com/apis/api/smartdevicemanagement.googleapis.com
|
|
221
|
-
* // - Login into gcloud by running:
|
|
222
|
-
* // `$ gcloud auth application-default login`
|
|
223
|
-
* // - Install the npm module by running:
|
|
224
|
-
* // `$ npm install googleapis`
|
|
225
|
-
*
|
|
226
|
-
* const {google} = require('googleapis');
|
|
227
|
-
* const smartdevicemanagement = google.smartdevicemanagement('v1');
|
|
228
|
-
*
|
|
229
|
-
* async function main() {
|
|
230
|
-
* const auth = new google.auth.GoogleAuth({
|
|
231
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
232
|
-
* scopes: ['https://www.googleapis.com/auth/sdm.service'],
|
|
233
|
-
* });
|
|
234
|
-
*
|
|
235
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
236
|
-
* const authClient = await auth.getClient();
|
|
237
|
-
* google.options({auth: authClient});
|
|
238
|
-
*
|
|
239
|
-
* // Do the magic
|
|
240
|
-
* const res = await smartdevicemanagement.enterprises.devices.executeCommand({
|
|
241
|
-
* // The name of the device requested. For example: "enterprises/XYZ/devices/123"
|
|
242
|
-
* name: 'enterprises/my-enterprise/devices/my-device',
|
|
243
|
-
*
|
|
244
|
-
* // Request body metadata
|
|
245
|
-
* requestBody: {
|
|
246
|
-
* // request body parameters
|
|
247
|
-
* // {
|
|
248
|
-
* // "command": "my_command",
|
|
249
|
-
* // "params": {}
|
|
250
|
-
* // }
|
|
251
|
-
* },
|
|
252
|
-
* });
|
|
253
|
-
* console.log(res.data);
|
|
254
|
-
*
|
|
255
|
-
* // Example response
|
|
256
|
-
* // {
|
|
257
|
-
* // "results": {}
|
|
258
|
-
* // }
|
|
259
|
-
* }
|
|
260
|
-
*
|
|
261
|
-
* main().catch(e => {
|
|
262
|
-
* console.error(e);
|
|
263
|
-
* throw e;
|
|
264
|
-
* });
|
|
265
|
-
*
|
|
266
|
-
* ```
|
|
267
204
|
*
|
|
268
205
|
* @param params - Parameters for request
|
|
269
206
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -278,51 +215,6 @@ export declare namespace smartdevicemanagement_v1 {
|
|
|
278
215
|
executeCommand(callback: BodyResponseCallback<Schema$GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse>): void;
|
|
279
216
|
/**
|
|
280
217
|
* Gets a device managed by the enterprise.
|
|
281
|
-
* @example
|
|
282
|
-
* ```js
|
|
283
|
-
* // Before running the sample:
|
|
284
|
-
* // - Enable the API at:
|
|
285
|
-
* // https://console.developers.google.com/apis/api/smartdevicemanagement.googleapis.com
|
|
286
|
-
* // - Login into gcloud by running:
|
|
287
|
-
* // `$ gcloud auth application-default login`
|
|
288
|
-
* // - Install the npm module by running:
|
|
289
|
-
* // `$ npm install googleapis`
|
|
290
|
-
*
|
|
291
|
-
* const {google} = require('googleapis');
|
|
292
|
-
* const smartdevicemanagement = google.smartdevicemanagement('v1');
|
|
293
|
-
*
|
|
294
|
-
* async function main() {
|
|
295
|
-
* const auth = new google.auth.GoogleAuth({
|
|
296
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
297
|
-
* scopes: ['https://www.googleapis.com/auth/sdm.service'],
|
|
298
|
-
* });
|
|
299
|
-
*
|
|
300
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
301
|
-
* const authClient = await auth.getClient();
|
|
302
|
-
* google.options({auth: authClient});
|
|
303
|
-
*
|
|
304
|
-
* // Do the magic
|
|
305
|
-
* const res = await smartdevicemanagement.enterprises.devices.get({
|
|
306
|
-
* // The name of the device requested. For example: "enterprises/XYZ/devices/123"
|
|
307
|
-
* name: 'enterprises/my-enterprise/devices/my-device',
|
|
308
|
-
* });
|
|
309
|
-
* console.log(res.data);
|
|
310
|
-
*
|
|
311
|
-
* // Example response
|
|
312
|
-
* // {
|
|
313
|
-
* // "name": "my_name",
|
|
314
|
-
* // "parentRelations": [],
|
|
315
|
-
* // "traits": {},
|
|
316
|
-
* // "type": "my_type"
|
|
317
|
-
* // }
|
|
318
|
-
* }
|
|
319
|
-
*
|
|
320
|
-
* main().catch(e => {
|
|
321
|
-
* console.error(e);
|
|
322
|
-
* throw e;
|
|
323
|
-
* });
|
|
324
|
-
*
|
|
325
|
-
* ```
|
|
326
218
|
*
|
|
327
219
|
* @param params - Parameters for request
|
|
328
220
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -337,55 +229,6 @@ export declare namespace smartdevicemanagement_v1 {
|
|
|
337
229
|
get(callback: BodyResponseCallback<Schema$GoogleHomeEnterpriseSdmV1Device>): void;
|
|
338
230
|
/**
|
|
339
231
|
* Lists devices managed by the enterprise.
|
|
340
|
-
* @example
|
|
341
|
-
* ```js
|
|
342
|
-
* // Before running the sample:
|
|
343
|
-
* // - Enable the API at:
|
|
344
|
-
* // https://console.developers.google.com/apis/api/smartdevicemanagement.googleapis.com
|
|
345
|
-
* // - Login into gcloud by running:
|
|
346
|
-
* // `$ gcloud auth application-default login`
|
|
347
|
-
* // - Install the npm module by running:
|
|
348
|
-
* // `$ npm install googleapis`
|
|
349
|
-
*
|
|
350
|
-
* const {google} = require('googleapis');
|
|
351
|
-
* const smartdevicemanagement = google.smartdevicemanagement('v1');
|
|
352
|
-
*
|
|
353
|
-
* async function main() {
|
|
354
|
-
* const auth = new google.auth.GoogleAuth({
|
|
355
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
356
|
-
* scopes: ['https://www.googleapis.com/auth/sdm.service'],
|
|
357
|
-
* });
|
|
358
|
-
*
|
|
359
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
360
|
-
* const authClient = await auth.getClient();
|
|
361
|
-
* google.options({auth: authClient});
|
|
362
|
-
*
|
|
363
|
-
* // Do the magic
|
|
364
|
-
* const res = await smartdevicemanagement.enterprises.devices.list({
|
|
365
|
-
* // Optional filter to list devices. Filters can be done on: Device custom name (substring match): 'customName=wing'
|
|
366
|
-
* filter: 'placeholder-value',
|
|
367
|
-
* // Optional requested page size. Server may return fewer devices than requested. If unspecified, server will pick an appropriate default.
|
|
368
|
-
* pageSize: 'placeholder-value',
|
|
369
|
-
* // Optional token of the page to retrieve.
|
|
370
|
-
* pageToken: 'placeholder-value',
|
|
371
|
-
* // The parent enterprise to list devices under. E.g. "enterprises/XYZ".
|
|
372
|
-
* parent: 'enterprises/my-enterprise',
|
|
373
|
-
* });
|
|
374
|
-
* console.log(res.data);
|
|
375
|
-
*
|
|
376
|
-
* // Example response
|
|
377
|
-
* // {
|
|
378
|
-
* // "devices": [],
|
|
379
|
-
* // "nextPageToken": "my_nextPageToken"
|
|
380
|
-
* // }
|
|
381
|
-
* }
|
|
382
|
-
*
|
|
383
|
-
* main().catch(e => {
|
|
384
|
-
* console.error(e);
|
|
385
|
-
* throw e;
|
|
386
|
-
* });
|
|
387
|
-
*
|
|
388
|
-
* ```
|
|
389
232
|
*
|
|
390
233
|
* @param params - Parameters for request
|
|
391
234
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -420,14 +263,6 @@ export declare namespace smartdevicemanagement_v1 {
|
|
|
420
263
|
* Optional filter to list devices. Filters can be done on: Device custom name (substring match): 'customName=wing'
|
|
421
264
|
*/
|
|
422
265
|
filter?: string;
|
|
423
|
-
/**
|
|
424
|
-
* Optional requested page size. Server may return fewer devices than requested. If unspecified, server will pick an appropriate default.
|
|
425
|
-
*/
|
|
426
|
-
pageSize?: number;
|
|
427
|
-
/**
|
|
428
|
-
* Optional token of the page to retrieve.
|
|
429
|
-
*/
|
|
430
|
-
pageToken?: string;
|
|
431
266
|
/**
|
|
432
267
|
* The parent enterprise to list devices under. E.g. "enterprises/XYZ".
|
|
433
268
|
*/
|
|
@@ -439,49 +274,6 @@ export declare namespace smartdevicemanagement_v1 {
|
|
|
439
274
|
constructor(context: APIRequestContext);
|
|
440
275
|
/**
|
|
441
276
|
* Gets a structure managed by the enterprise.
|
|
442
|
-
* @example
|
|
443
|
-
* ```js
|
|
444
|
-
* // Before running the sample:
|
|
445
|
-
* // - Enable the API at:
|
|
446
|
-
* // https://console.developers.google.com/apis/api/smartdevicemanagement.googleapis.com
|
|
447
|
-
* // - Login into gcloud by running:
|
|
448
|
-
* // `$ gcloud auth application-default login`
|
|
449
|
-
* // - Install the npm module by running:
|
|
450
|
-
* // `$ npm install googleapis`
|
|
451
|
-
*
|
|
452
|
-
* const {google} = require('googleapis');
|
|
453
|
-
* const smartdevicemanagement = google.smartdevicemanagement('v1');
|
|
454
|
-
*
|
|
455
|
-
* async function main() {
|
|
456
|
-
* const auth = new google.auth.GoogleAuth({
|
|
457
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
458
|
-
* scopes: ['https://www.googleapis.com/auth/sdm.service'],
|
|
459
|
-
* });
|
|
460
|
-
*
|
|
461
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
462
|
-
* const authClient = await auth.getClient();
|
|
463
|
-
* google.options({auth: authClient});
|
|
464
|
-
*
|
|
465
|
-
* // Do the magic
|
|
466
|
-
* const res = await smartdevicemanagement.enterprises.structures.get({
|
|
467
|
-
* // The name of the structure requested. For example: "enterprises/XYZ/structures/ABC".
|
|
468
|
-
* name: 'enterprises/my-enterprise/structures/my-structure',
|
|
469
|
-
* });
|
|
470
|
-
* console.log(res.data);
|
|
471
|
-
*
|
|
472
|
-
* // Example response
|
|
473
|
-
* // {
|
|
474
|
-
* // "name": "my_name",
|
|
475
|
-
* // "traits": {}
|
|
476
|
-
* // }
|
|
477
|
-
* }
|
|
478
|
-
*
|
|
479
|
-
* main().catch(e => {
|
|
480
|
-
* console.error(e);
|
|
481
|
-
* throw e;
|
|
482
|
-
* });
|
|
483
|
-
*
|
|
484
|
-
* ```
|
|
485
277
|
*
|
|
486
278
|
* @param params - Parameters for request
|
|
487
279
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -496,55 +288,6 @@ export declare namespace smartdevicemanagement_v1 {
|
|
|
496
288
|
get(callback: BodyResponseCallback<Schema$GoogleHomeEnterpriseSdmV1Structure>): void;
|
|
497
289
|
/**
|
|
498
290
|
* Lists structures managed by the enterprise.
|
|
499
|
-
* @example
|
|
500
|
-
* ```js
|
|
501
|
-
* // Before running the sample:
|
|
502
|
-
* // - Enable the API at:
|
|
503
|
-
* // https://console.developers.google.com/apis/api/smartdevicemanagement.googleapis.com
|
|
504
|
-
* // - Login into gcloud by running:
|
|
505
|
-
* // `$ gcloud auth application-default login`
|
|
506
|
-
* // - Install the npm module by running:
|
|
507
|
-
* // `$ npm install googleapis`
|
|
508
|
-
*
|
|
509
|
-
* const {google} = require('googleapis');
|
|
510
|
-
* const smartdevicemanagement = google.smartdevicemanagement('v1');
|
|
511
|
-
*
|
|
512
|
-
* async function main() {
|
|
513
|
-
* const auth = new google.auth.GoogleAuth({
|
|
514
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
515
|
-
* scopes: ['https://www.googleapis.com/auth/sdm.service'],
|
|
516
|
-
* });
|
|
517
|
-
*
|
|
518
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
519
|
-
* const authClient = await auth.getClient();
|
|
520
|
-
* google.options({auth: authClient});
|
|
521
|
-
*
|
|
522
|
-
* // Do the magic
|
|
523
|
-
* const res = await smartdevicemanagement.enterprises.structures.list({
|
|
524
|
-
* // Optional filter to list structures.
|
|
525
|
-
* filter: 'placeholder-value',
|
|
526
|
-
* // Requested page size. Server may return fewer structures than requested. If unspecified, server will pick an appropriate default.
|
|
527
|
-
* pageSize: 'placeholder-value',
|
|
528
|
-
* // The token of the page to retrieve.
|
|
529
|
-
* pageToken: 'placeholder-value',
|
|
530
|
-
* // The parent enterprise to list structures under. E.g. "enterprises/XYZ".
|
|
531
|
-
* parent: 'enterprises/my-enterprise',
|
|
532
|
-
* });
|
|
533
|
-
* console.log(res.data);
|
|
534
|
-
*
|
|
535
|
-
* // Example response
|
|
536
|
-
* // {
|
|
537
|
-
* // "nextPageToken": "my_nextPageToken",
|
|
538
|
-
* // "structures": []
|
|
539
|
-
* // }
|
|
540
|
-
* }
|
|
541
|
-
*
|
|
542
|
-
* main().catch(e => {
|
|
543
|
-
* console.error(e);
|
|
544
|
-
* throw e;
|
|
545
|
-
* });
|
|
546
|
-
*
|
|
547
|
-
* ```
|
|
548
291
|
*
|
|
549
292
|
* @param params - Parameters for request
|
|
550
293
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -569,14 +312,6 @@ export declare namespace smartdevicemanagement_v1 {
|
|
|
569
312
|
* Optional filter to list structures.
|
|
570
313
|
*/
|
|
571
314
|
filter?: string;
|
|
572
|
-
/**
|
|
573
|
-
* Requested page size. Server may return fewer structures than requested. If unspecified, server will pick an appropriate default.
|
|
574
|
-
*/
|
|
575
|
-
pageSize?: number;
|
|
576
|
-
/**
|
|
577
|
-
* The token of the page to retrieve.
|
|
578
|
-
*/
|
|
579
|
-
pageToken?: string;
|
|
580
315
|
/**
|
|
581
316
|
* The parent enterprise to list structures under. E.g. "enterprises/XYZ".
|
|
582
317
|
*/
|
|
@@ -587,49 +322,6 @@ export declare namespace smartdevicemanagement_v1 {
|
|
|
587
322
|
constructor(context: APIRequestContext);
|
|
588
323
|
/**
|
|
589
324
|
* Gets a room managed by the enterprise.
|
|
590
|
-
* @example
|
|
591
|
-
* ```js
|
|
592
|
-
* // Before running the sample:
|
|
593
|
-
* // - Enable the API at:
|
|
594
|
-
* // https://console.developers.google.com/apis/api/smartdevicemanagement.googleapis.com
|
|
595
|
-
* // - Login into gcloud by running:
|
|
596
|
-
* // `$ gcloud auth application-default login`
|
|
597
|
-
* // - Install the npm module by running:
|
|
598
|
-
* // `$ npm install googleapis`
|
|
599
|
-
*
|
|
600
|
-
* const {google} = require('googleapis');
|
|
601
|
-
* const smartdevicemanagement = google.smartdevicemanagement('v1');
|
|
602
|
-
*
|
|
603
|
-
* async function main() {
|
|
604
|
-
* const auth = new google.auth.GoogleAuth({
|
|
605
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
606
|
-
* scopes: ['https://www.googleapis.com/auth/sdm.service'],
|
|
607
|
-
* });
|
|
608
|
-
*
|
|
609
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
610
|
-
* const authClient = await auth.getClient();
|
|
611
|
-
* google.options({auth: authClient});
|
|
612
|
-
*
|
|
613
|
-
* // Do the magic
|
|
614
|
-
* const res = await smartdevicemanagement.enterprises.structures.rooms.get({
|
|
615
|
-
* // The name of the room requested. For example: "enterprises/XYZ/structures/ABC/rooms/123".
|
|
616
|
-
* name: 'enterprises/my-enterprise/structures/my-structure/rooms/my-room',
|
|
617
|
-
* });
|
|
618
|
-
* console.log(res.data);
|
|
619
|
-
*
|
|
620
|
-
* // Example response
|
|
621
|
-
* // {
|
|
622
|
-
* // "name": "my_name",
|
|
623
|
-
* // "traits": {}
|
|
624
|
-
* // }
|
|
625
|
-
* }
|
|
626
|
-
*
|
|
627
|
-
* main().catch(e => {
|
|
628
|
-
* console.error(e);
|
|
629
|
-
* throw e;
|
|
630
|
-
* });
|
|
631
|
-
*
|
|
632
|
-
* ```
|
|
633
325
|
*
|
|
634
326
|
* @param params - Parameters for request
|
|
635
327
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -644,53 +336,6 @@ export declare namespace smartdevicemanagement_v1 {
|
|
|
644
336
|
get(callback: BodyResponseCallback<Schema$GoogleHomeEnterpriseSdmV1Room>): void;
|
|
645
337
|
/**
|
|
646
338
|
* Lists rooms managed by the enterprise.
|
|
647
|
-
* @example
|
|
648
|
-
* ```js
|
|
649
|
-
* // Before running the sample:
|
|
650
|
-
* // - Enable the API at:
|
|
651
|
-
* // https://console.developers.google.com/apis/api/smartdevicemanagement.googleapis.com
|
|
652
|
-
* // - Login into gcloud by running:
|
|
653
|
-
* // `$ gcloud auth application-default login`
|
|
654
|
-
* // - Install the npm module by running:
|
|
655
|
-
* // `$ npm install googleapis`
|
|
656
|
-
*
|
|
657
|
-
* const {google} = require('googleapis');
|
|
658
|
-
* const smartdevicemanagement = google.smartdevicemanagement('v1');
|
|
659
|
-
*
|
|
660
|
-
* async function main() {
|
|
661
|
-
* const auth = new google.auth.GoogleAuth({
|
|
662
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
663
|
-
* scopes: ['https://www.googleapis.com/auth/sdm.service'],
|
|
664
|
-
* });
|
|
665
|
-
*
|
|
666
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
667
|
-
* const authClient = await auth.getClient();
|
|
668
|
-
* google.options({auth: authClient});
|
|
669
|
-
*
|
|
670
|
-
* // Do the magic
|
|
671
|
-
* const res = await smartdevicemanagement.enterprises.structures.rooms.list({
|
|
672
|
-
* // Requested page size. Server may return fewer rooms than requested. If unspecified, server will pick an appropriate default.
|
|
673
|
-
* pageSize: 'placeholder-value',
|
|
674
|
-
* // The token of the page to retrieve.
|
|
675
|
-
* pageToken: 'placeholder-value',
|
|
676
|
-
* // The parent resource name of the rooms requested. For example: "enterprises/XYZ/structures/ABC".
|
|
677
|
-
* parent: 'enterprises/my-enterprise/structures/my-structure',
|
|
678
|
-
* });
|
|
679
|
-
* console.log(res.data);
|
|
680
|
-
*
|
|
681
|
-
* // Example response
|
|
682
|
-
* // {
|
|
683
|
-
* // "nextPageToken": "my_nextPageToken",
|
|
684
|
-
* // "rooms": []
|
|
685
|
-
* // }
|
|
686
|
-
* }
|
|
687
|
-
*
|
|
688
|
-
* main().catch(e => {
|
|
689
|
-
* console.error(e);
|
|
690
|
-
* throw e;
|
|
691
|
-
* });
|
|
692
|
-
*
|
|
693
|
-
* ```
|
|
694
339
|
*
|
|
695
340
|
* @param params - Parameters for request
|
|
696
341
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -711,14 +356,6 @@ export declare namespace smartdevicemanagement_v1 {
|
|
|
711
356
|
name?: string;
|
|
712
357
|
}
|
|
713
358
|
export interface Params$Resource$Enterprises$Structures$Rooms$List extends StandardParameters {
|
|
714
|
-
/**
|
|
715
|
-
* Requested page size. Server may return fewer rooms than requested. If unspecified, server will pick an appropriate default.
|
|
716
|
-
*/
|
|
717
|
-
pageSize?: number;
|
|
718
|
-
/**
|
|
719
|
-
* The token of the page to retrieve.
|
|
720
|
-
*/
|
|
721
|
-
pageToken?: string;
|
|
722
359
|
/**
|
|
723
360
|
* The parent resource name of the rooms requested. For example: "enterprises/XYZ/structures/ABC".
|
|
724
361
|
*/
|
package/build/v1.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../v1.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uDAAuD;AACvD,sDAAsD;AACtD,0DAA0D;AAC1D,oDAAoD;AACpD,4CAA4C;AAE5C,yDAe2B;AAG3B,IAAiB,wBAAwB,
|
|
1
|
+
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../v1.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uDAAuD;AACvD,sDAAsD;AACtD,0DAA0D;AAC1D,oDAAoD;AACpD,4CAA4C;AAE5C,yDAe2B;AAG3B,IAAiB,wBAAwB,CAu8BxC;AAv8BD,WAAiB,wBAAwB;IAgEvC;;;;;;;;;;OAUG;IACH,MAAa,qBAAqB;QAIhC,YAAY,OAAsB,EAAE,MAA2B;YAC7D,IAAI,CAAC,OAAO,GAAG;gBACb,QAAQ,EAAE,OAAO,IAAI,EAAE;gBACvB,MAAM;aACP,CAAC;YAEF,IAAI,CAAC,WAAW,GAAG,IAAI,oBAAoB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5D,CAAC;KACF;IAZY,8CAAqB,wBAYjC,CAAA;IAgHD,MAAa,oBAAoB;QAI/B,YAAY,OAA0B;YACpC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;YACvB,IAAI,CAAC,OAAO,GAAG,IAAI,4B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d,EACD,OAAO,CACR;gBACD,MAAM;gBACN,cAAc,EAAE,CAAC,QAAQ,CAAC;gBAC1B,UAAU,EAAE,CAAC,QAAQ,CAAC;gBACtB,OAAO,EAAE,IAAI,CAAC,OAAO;aACtB,CAAC;YACF,IAAI,QAAQ,EAAE;gBACZ,IAAA,oCAAgB,EACd,UAAU,EACV,QAAyC,CAC1C,CAAC;aACH;iBAAM;gBACL,OAAO,IAAA,oCAAgB,EACrB,UAAU,CACX,CAAC;aACH;QACH,CAAC;KACF;IApMY,8DAAqC,wCAoMjD,CAAA;AAgBH,CAAC,EAv8BgB,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAu8BxC"}
|
package/index.ts
CHANGED
|
@@ -27,7 +27,7 @@ export function smartdevicemanagement(
|
|
|
27
27
|
options: smartdevicemanagement_v1.Options
|
|
28
28
|
): smartdevicemanagement_v1.Smartdevicemanagement;
|
|
29
29
|
export function smartdevicemanagement<
|
|
30
|
-
T = smartdevicemanagement_v1.Smartdevicemanagement
|
|
30
|
+
T = smartdevicemanagement_v1.Smartdevicemanagement,
|
|
31
31
|
>(
|
|
32
32
|
this: GoogleConfigurable,
|
|
33
33
|
versionOrOptions: 'v1' | smartdevicemanagement_v1.Options
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@googleapis/smartdevicemanagement",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "smartdevicemanagement",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -38,6 +38,6 @@
|
|
|
38
38
|
"ts-loader": "^9.0.0",
|
|
39
39
|
"typescript": "~4.8.4",
|
|
40
40
|
"webpack": "^5.0.0",
|
|
41
|
-
"webpack-cli": "^
|
|
41
|
+
"webpack-cli": "^5.0.0"
|
|
42
42
|
}
|
|
43
43
|
}
|
package/v1.ts
CHANGED
|
@@ -175,19 +175,11 @@ export namespace smartdevicemanagement_v1 {
|
|
|
175
175
|
* The list of devices.
|
|
176
176
|
*/
|
|
177
177
|
devices?: Schema$GoogleHomeEnterpriseSdmV1Device[];
|
|
178
|
-
/**
|
|
179
|
-
* The pagination token to retrieve the next page of results.
|
|
180
|
-
*/
|
|
181
|
-
nextPageToken?: string | null;
|
|
182
178
|
}
|
|
183
179
|
/**
|
|
184
180
|
* Response message for SmartDeviceManagementService.ListRooms
|
|
185
181
|
*/
|
|
186
182
|
export interface Schema$GoogleHomeEnterpriseSdmV1ListRoomsResponse {
|
|
187
|
-
/**
|
|
188
|
-
* The pagination token to retrieve the next page of results. If this field is omitted, there are no subsequent pages.
|
|
189
|
-
*/
|
|
190
|
-
nextPageToken?: string | null;
|
|
191
183
|
/**
|
|
192
184
|
* The list of rooms.
|
|
193
185
|
*/
|
|
@@ -197,10 +189,6 @@ export namespace smartdevicemanagement_v1 {
|
|
|
197
189
|
* Response message for SmartDeviceManagementService.ListStructures
|
|
198
190
|
*/
|
|
199
191
|
export interface Schema$GoogleHomeEnterpriseSdmV1ListStructuresResponse {
|
|
200
|
-
/**
|
|
201
|
-
* The pagination token to retrieve the next page of results. If this field is omitted, there are no subsequent pages.
|
|
202
|
-
*/
|
|
203
|
-
nextPageToken?: string | null;
|
|
204
192
|
/**
|
|
205
193
|
* The list of structures.
|
|
206
194
|
*/
|
|
@@ -265,57 +253,6 @@ export namespace smartdevicemanagement_v1 {
|
|
|
265
253
|
|
|
266
254
|
/**
|
|
267
255
|
* Executes a command to device managed by the enterprise.
|
|
268
|
-
* @example
|
|
269
|
-
* ```js
|
|
270
|
-
* // Before running the sample:
|
|
271
|
-
* // - Enable the API at:
|
|
272
|
-
* // https://console.developers.google.com/apis/api/smartdevicemanagement.googleapis.com
|
|
273
|
-
* // - Login into gcloud by running:
|
|
274
|
-
* // `$ gcloud auth application-default login`
|
|
275
|
-
* // - Install the npm module by running:
|
|
276
|
-
* // `$ npm install googleapis`
|
|
277
|
-
*
|
|
278
|
-
* const {google} = require('googleapis');
|
|
279
|
-
* const smartdevicemanagement = google.smartdevicemanagement('v1');
|
|
280
|
-
*
|
|
281
|
-
* async function main() {
|
|
282
|
-
* const auth = new google.auth.GoogleAuth({
|
|
283
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
284
|
-
* scopes: ['https://www.googleapis.com/auth/sdm.service'],
|
|
285
|
-
* });
|
|
286
|
-
*
|
|
287
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
288
|
-
* const authClient = await auth.getClient();
|
|
289
|
-
* google.options({auth: authClient});
|
|
290
|
-
*
|
|
291
|
-
* // Do the magic
|
|
292
|
-
* const res = await smartdevicemanagement.enterprises.devices.executeCommand({
|
|
293
|
-
* // The name of the device requested. For example: "enterprises/XYZ/devices/123"
|
|
294
|
-
* name: 'enterprises/my-enterprise/devices/my-device',
|
|
295
|
-
*
|
|
296
|
-
* // Request body metadata
|
|
297
|
-
* requestBody: {
|
|
298
|
-
* // request body parameters
|
|
299
|
-
* // {
|
|
300
|
-
* // "command": "my_command",
|
|
301
|
-
* // "params": {}
|
|
302
|
-
* // }
|
|
303
|
-
* },
|
|
304
|
-
* });
|
|
305
|
-
* console.log(res.data);
|
|
306
|
-
*
|
|
307
|
-
* // Example response
|
|
308
|
-
* // {
|
|
309
|
-
* // "results": {}
|
|
310
|
-
* // }
|
|
311
|
-
* }
|
|
312
|
-
*
|
|
313
|
-
* main().catch(e => {
|
|
314
|
-
* console.error(e);
|
|
315
|
-
* throw e;
|
|
316
|
-
* });
|
|
317
|
-
*
|
|
318
|
-
* ```
|
|
319
256
|
*
|
|
320
257
|
* @param params - Parameters for request
|
|
321
258
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -413,51 +350,6 @@ export namespace smartdevicemanagement_v1 {
|
|
|
413
350
|
|
|
414
351
|
/**
|
|
415
352
|
* Gets a device managed by the enterprise.
|
|
416
|
-
* @example
|
|
417
|
-
* ```js
|
|
418
|
-
* // Before running the sample:
|
|
419
|
-
* // - Enable the API at:
|
|
420
|
-
* // https://console.developers.google.com/apis/api/smartdevicemanagement.googleapis.com
|
|
421
|
-
* // - Login into gcloud by running:
|
|
422
|
-
* // `$ gcloud auth application-default login`
|
|
423
|
-
* // - Install the npm module by running:
|
|
424
|
-
* // `$ npm install googleapis`
|
|
425
|
-
*
|
|
426
|
-
* const {google} = require('googleapis');
|
|
427
|
-
* const smartdevicemanagement = google.smartdevicemanagement('v1');
|
|
428
|
-
*
|
|
429
|
-
* async function main() {
|
|
430
|
-
* const auth = new google.auth.GoogleAuth({
|
|
431
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
432
|
-
* scopes: ['https://www.googleapis.com/auth/sdm.service'],
|
|
433
|
-
* });
|
|
434
|
-
*
|
|
435
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
436
|
-
* const authClient = await auth.getClient();
|
|
437
|
-
* google.options({auth: authClient});
|
|
438
|
-
*
|
|
439
|
-
* // Do the magic
|
|
440
|
-
* const res = await smartdevicemanagement.enterprises.devices.get({
|
|
441
|
-
* // The name of the device requested. For example: "enterprises/XYZ/devices/123"
|
|
442
|
-
* name: 'enterprises/my-enterprise/devices/my-device',
|
|
443
|
-
* });
|
|
444
|
-
* console.log(res.data);
|
|
445
|
-
*
|
|
446
|
-
* // Example response
|
|
447
|
-
* // {
|
|
448
|
-
* // "name": "my_name",
|
|
449
|
-
* // "parentRelations": [],
|
|
450
|
-
* // "traits": {},
|
|
451
|
-
* // "type": "my_type"
|
|
452
|
-
* // }
|
|
453
|
-
* }
|
|
454
|
-
*
|
|
455
|
-
* main().catch(e => {
|
|
456
|
-
* console.error(e);
|
|
457
|
-
* throw e;
|
|
458
|
-
* });
|
|
459
|
-
*
|
|
460
|
-
* ```
|
|
461
353
|
*
|
|
462
354
|
* @param params - Parameters for request
|
|
463
355
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -552,55 +444,6 @@ export namespace smartdevicemanagement_v1 {
|
|
|
552
444
|
|
|
553
445
|
/**
|
|
554
446
|
* Lists devices managed by the enterprise.
|
|
555
|
-
* @example
|
|
556
|
-
* ```js
|
|
557
|
-
* // Before running the sample:
|
|
558
|
-
* // - Enable the API at:
|
|
559
|
-
* // https://console.developers.google.com/apis/api/smartdevicemanagement.googleapis.com
|
|
560
|
-
* // - Login into gcloud by running:
|
|
561
|
-
* // `$ gcloud auth application-default login`
|
|
562
|
-
* // - Install the npm module by running:
|
|
563
|
-
* // `$ npm install googleapis`
|
|
564
|
-
*
|
|
565
|
-
* const {google} = require('googleapis');
|
|
566
|
-
* const smartdevicemanagement = google.smartdevicemanagement('v1');
|
|
567
|
-
*
|
|
568
|
-
* async function main() {
|
|
569
|
-
* const auth = new google.auth.GoogleAuth({
|
|
570
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
571
|
-
* scopes: ['https://www.googleapis.com/auth/sdm.service'],
|
|
572
|
-
* });
|
|
573
|
-
*
|
|
574
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
575
|
-
* const authClient = await auth.getClient();
|
|
576
|
-
* google.options({auth: authClient});
|
|
577
|
-
*
|
|
578
|
-
* // Do the magic
|
|
579
|
-
* const res = await smartdevicemanagement.enterprises.devices.list({
|
|
580
|
-
* // Optional filter to list devices. Filters can be done on: Device custom name (substring match): 'customName=wing'
|
|
581
|
-
* filter: 'placeholder-value',
|
|
582
|
-
* // Optional requested page size. Server may return fewer devices than requested. If unspecified, server will pick an appropriate default.
|
|
583
|
-
* pageSize: 'placeholder-value',
|
|
584
|
-
* // Optional token of the page to retrieve.
|
|
585
|
-
* pageToken: 'placeholder-value',
|
|
586
|
-
* // The parent enterprise to list devices under. E.g. "enterprises/XYZ".
|
|
587
|
-
* parent: 'enterprises/my-enterprise',
|
|
588
|
-
* });
|
|
589
|
-
* console.log(res.data);
|
|
590
|
-
*
|
|
591
|
-
* // Example response
|
|
592
|
-
* // {
|
|
593
|
-
* // "devices": [],
|
|
594
|
-
* // "nextPageToken": "my_nextPageToken"
|
|
595
|
-
* // }
|
|
596
|
-
* }
|
|
597
|
-
*
|
|
598
|
-
* main().catch(e => {
|
|
599
|
-
* console.error(e);
|
|
600
|
-
* throw e;
|
|
601
|
-
* });
|
|
602
|
-
*
|
|
603
|
-
* ```
|
|
604
447
|
*
|
|
605
448
|
* @param params - Parameters for request
|
|
606
449
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -722,14 +565,6 @@ export namespace smartdevicemanagement_v1 {
|
|
|
722
565
|
* Optional filter to list devices. Filters can be done on: Device custom name (substring match): 'customName=wing'
|
|
723
566
|
*/
|
|
724
567
|
filter?: string;
|
|
725
|
-
/**
|
|
726
|
-
* Optional requested page size. Server may return fewer devices than requested. If unspecified, server will pick an appropriate default.
|
|
727
|
-
*/
|
|
728
|
-
pageSize?: number;
|
|
729
|
-
/**
|
|
730
|
-
* Optional token of the page to retrieve.
|
|
731
|
-
*/
|
|
732
|
-
pageToken?: string;
|
|
733
568
|
/**
|
|
734
569
|
* The parent enterprise to list devices under. E.g. "enterprises/XYZ".
|
|
735
570
|
*/
|
|
@@ -746,49 +581,6 @@ export namespace smartdevicemanagement_v1 {
|
|
|
746
581
|
|
|
747
582
|
/**
|
|
748
583
|
* Gets a structure managed by the enterprise.
|
|
749
|
-
* @example
|
|
750
|
-
* ```js
|
|
751
|
-
* // Before running the sample:
|
|
752
|
-
* // - Enable the API at:
|
|
753
|
-
* // https://console.developers.google.com/apis/api/smartdevicemanagement.googleapis.com
|
|
754
|
-
* // - Login into gcloud by running:
|
|
755
|
-
* // `$ gcloud auth application-default login`
|
|
756
|
-
* // - Install the npm module by running:
|
|
757
|
-
* // `$ npm install googleapis`
|
|
758
|
-
*
|
|
759
|
-
* const {google} = require('googleapis');
|
|
760
|
-
* const smartdevicemanagement = google.smartdevicemanagement('v1');
|
|
761
|
-
*
|
|
762
|
-
* async function main() {
|
|
763
|
-
* const auth = new google.auth.GoogleAuth({
|
|
764
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
765
|
-
* scopes: ['https://www.googleapis.com/auth/sdm.service'],
|
|
766
|
-
* });
|
|
767
|
-
*
|
|
768
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
769
|
-
* const authClient = await auth.getClient();
|
|
770
|
-
* google.options({auth: authClient});
|
|
771
|
-
*
|
|
772
|
-
* // Do the magic
|
|
773
|
-
* const res = await smartdevicemanagement.enterprises.structures.get({
|
|
774
|
-
* // The name of the structure requested. For example: "enterprises/XYZ/structures/ABC".
|
|
775
|
-
* name: 'enterprises/my-enterprise/structures/my-structure',
|
|
776
|
-
* });
|
|
777
|
-
* console.log(res.data);
|
|
778
|
-
*
|
|
779
|
-
* // Example response
|
|
780
|
-
* // {
|
|
781
|
-
* // "name": "my_name",
|
|
782
|
-
* // "traits": {}
|
|
783
|
-
* // }
|
|
784
|
-
* }
|
|
785
|
-
*
|
|
786
|
-
* main().catch(e => {
|
|
787
|
-
* console.error(e);
|
|
788
|
-
* throw e;
|
|
789
|
-
* });
|
|
790
|
-
*
|
|
791
|
-
* ```
|
|
792
584
|
*
|
|
793
585
|
* @param params - Parameters for request
|
|
794
586
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -883,55 +675,6 @@ export namespace smartdevicemanagement_v1 {
|
|
|
883
675
|
|
|
884
676
|
/**
|
|
885
677
|
* Lists structures managed by the enterprise.
|
|
886
|
-
* @example
|
|
887
|
-
* ```js
|
|
888
|
-
* // Before running the sample:
|
|
889
|
-
* // - Enable the API at:
|
|
890
|
-
* // https://console.developers.google.com/apis/api/smartdevicemanagement.googleapis.com
|
|
891
|
-
* // - Login into gcloud by running:
|
|
892
|
-
* // `$ gcloud auth application-default login`
|
|
893
|
-
* // - Install the npm module by running:
|
|
894
|
-
* // `$ npm install googleapis`
|
|
895
|
-
*
|
|
896
|
-
* const {google} = require('googleapis');
|
|
897
|
-
* const smartdevicemanagement = google.smartdevicemanagement('v1');
|
|
898
|
-
*
|
|
899
|
-
* async function main() {
|
|
900
|
-
* const auth = new google.auth.GoogleAuth({
|
|
901
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
902
|
-
* scopes: ['https://www.googleapis.com/auth/sdm.service'],
|
|
903
|
-
* });
|
|
904
|
-
*
|
|
905
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
906
|
-
* const authClient = await auth.getClient();
|
|
907
|
-
* google.options({auth: authClient});
|
|
908
|
-
*
|
|
909
|
-
* // Do the magic
|
|
910
|
-
* const res = await smartdevicemanagement.enterprises.structures.list({
|
|
911
|
-
* // Optional filter to list structures.
|
|
912
|
-
* filter: 'placeholder-value',
|
|
913
|
-
* // Requested page size. Server may return fewer structures than requested. If unspecified, server will pick an appropriate default.
|
|
914
|
-
* pageSize: 'placeholder-value',
|
|
915
|
-
* // The token of the page to retrieve.
|
|
916
|
-
* pageToken: 'placeholder-value',
|
|
917
|
-
* // The parent enterprise to list structures under. E.g. "enterprises/XYZ".
|
|
918
|
-
* parent: 'enterprises/my-enterprise',
|
|
919
|
-
* });
|
|
920
|
-
* console.log(res.data);
|
|
921
|
-
*
|
|
922
|
-
* // Example response
|
|
923
|
-
* // {
|
|
924
|
-
* // "nextPageToken": "my_nextPageToken",
|
|
925
|
-
* // "structures": []
|
|
926
|
-
* // }
|
|
927
|
-
* }
|
|
928
|
-
*
|
|
929
|
-
* main().catch(e => {
|
|
930
|
-
* console.error(e);
|
|
931
|
-
* throw e;
|
|
932
|
-
* });
|
|
933
|
-
*
|
|
934
|
-
* ```
|
|
935
678
|
*
|
|
936
679
|
* @param params - Parameters for request
|
|
937
680
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1041,14 +784,6 @@ export namespace smartdevicemanagement_v1 {
|
|
|
1041
784
|
* Optional filter to list structures.
|
|
1042
785
|
*/
|
|
1043
786
|
filter?: string;
|
|
1044
|
-
/**
|
|
1045
|
-
* Requested page size. Server may return fewer structures than requested. If unspecified, server will pick an appropriate default.
|
|
1046
|
-
*/
|
|
1047
|
-
pageSize?: number;
|
|
1048
|
-
/**
|
|
1049
|
-
* The token of the page to retrieve.
|
|
1050
|
-
*/
|
|
1051
|
-
pageToken?: string;
|
|
1052
787
|
/**
|
|
1053
788
|
* The parent enterprise to list structures under. E.g. "enterprises/XYZ".
|
|
1054
789
|
*/
|
|
@@ -1063,49 +798,6 @@ export namespace smartdevicemanagement_v1 {
|
|
|
1063
798
|
|
|
1064
799
|
/**
|
|
1065
800
|
* Gets a room managed by the enterprise.
|
|
1066
|
-
* @example
|
|
1067
|
-
* ```js
|
|
1068
|
-
* // Before running the sample:
|
|
1069
|
-
* // - Enable the API at:
|
|
1070
|
-
* // https://console.developers.google.com/apis/api/smartdevicemanagement.googleapis.com
|
|
1071
|
-
* // - Login into gcloud by running:
|
|
1072
|
-
* // `$ gcloud auth application-default login`
|
|
1073
|
-
* // - Install the npm module by running:
|
|
1074
|
-
* // `$ npm install googleapis`
|
|
1075
|
-
*
|
|
1076
|
-
* const {google} = require('googleapis');
|
|
1077
|
-
* const smartdevicemanagement = google.smartdevicemanagement('v1');
|
|
1078
|
-
*
|
|
1079
|
-
* async function main() {
|
|
1080
|
-
* const auth = new google.auth.GoogleAuth({
|
|
1081
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1082
|
-
* scopes: ['https://www.googleapis.com/auth/sdm.service'],
|
|
1083
|
-
* });
|
|
1084
|
-
*
|
|
1085
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
1086
|
-
* const authClient = await auth.getClient();
|
|
1087
|
-
* google.options({auth: authClient});
|
|
1088
|
-
*
|
|
1089
|
-
* // Do the magic
|
|
1090
|
-
* const res = await smartdevicemanagement.enterprises.structures.rooms.get({
|
|
1091
|
-
* // The name of the room requested. For example: "enterprises/XYZ/structures/ABC/rooms/123".
|
|
1092
|
-
* name: 'enterprises/my-enterprise/structures/my-structure/rooms/my-room',
|
|
1093
|
-
* });
|
|
1094
|
-
* console.log(res.data);
|
|
1095
|
-
*
|
|
1096
|
-
* // Example response
|
|
1097
|
-
* // {
|
|
1098
|
-
* // "name": "my_name",
|
|
1099
|
-
* // "traits": {}
|
|
1100
|
-
* // }
|
|
1101
|
-
* }
|
|
1102
|
-
*
|
|
1103
|
-
* main().catch(e => {
|
|
1104
|
-
* console.error(e);
|
|
1105
|
-
* throw e;
|
|
1106
|
-
* });
|
|
1107
|
-
*
|
|
1108
|
-
* ```
|
|
1109
801
|
*
|
|
1110
802
|
* @param params - Parameters for request
|
|
1111
803
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1200,53 +892,6 @@ export namespace smartdevicemanagement_v1 {
|
|
|
1200
892
|
|
|
1201
893
|
/**
|
|
1202
894
|
* Lists rooms managed by the enterprise.
|
|
1203
|
-
* @example
|
|
1204
|
-
* ```js
|
|
1205
|
-
* // Before running the sample:
|
|
1206
|
-
* // - Enable the API at:
|
|
1207
|
-
* // https://console.developers.google.com/apis/api/smartdevicemanagement.googleapis.com
|
|
1208
|
-
* // - Login into gcloud by running:
|
|
1209
|
-
* // `$ gcloud auth application-default login`
|
|
1210
|
-
* // - Install the npm module by running:
|
|
1211
|
-
* // `$ npm install googleapis`
|
|
1212
|
-
*
|
|
1213
|
-
* const {google} = require('googleapis');
|
|
1214
|
-
* const smartdevicemanagement = google.smartdevicemanagement('v1');
|
|
1215
|
-
*
|
|
1216
|
-
* async function main() {
|
|
1217
|
-
* const auth = new google.auth.GoogleAuth({
|
|
1218
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1219
|
-
* scopes: ['https://www.googleapis.com/auth/sdm.service'],
|
|
1220
|
-
* });
|
|
1221
|
-
*
|
|
1222
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
1223
|
-
* const authClient = await auth.getClient();
|
|
1224
|
-
* google.options({auth: authClient});
|
|
1225
|
-
*
|
|
1226
|
-
* // Do the magic
|
|
1227
|
-
* const res = await smartdevicemanagement.enterprises.structures.rooms.list({
|
|
1228
|
-
* // Requested page size. Server may return fewer rooms than requested. If unspecified, server will pick an appropriate default.
|
|
1229
|
-
* pageSize: 'placeholder-value',
|
|
1230
|
-
* // The token of the page to retrieve.
|
|
1231
|
-
* pageToken: 'placeholder-value',
|
|
1232
|
-
* // The parent resource name of the rooms requested. For example: "enterprises/XYZ/structures/ABC".
|
|
1233
|
-
* parent: 'enterprises/my-enterprise/structures/my-structure',
|
|
1234
|
-
* });
|
|
1235
|
-
* console.log(res.data);
|
|
1236
|
-
*
|
|
1237
|
-
* // Example response
|
|
1238
|
-
* // {
|
|
1239
|
-
* // "nextPageToken": "my_nextPageToken",
|
|
1240
|
-
* // "rooms": []
|
|
1241
|
-
* // }
|
|
1242
|
-
* }
|
|
1243
|
-
*
|
|
1244
|
-
* main().catch(e => {
|
|
1245
|
-
* console.error(e);
|
|
1246
|
-
* throw e;
|
|
1247
|
-
* });
|
|
1248
|
-
*
|
|
1249
|
-
* ```
|
|
1250
895
|
*
|
|
1251
896
|
* @param params - Parameters for request
|
|
1252
897
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1352,14 +997,6 @@ export namespace smartdevicemanagement_v1 {
|
|
|
1352
997
|
}
|
|
1353
998
|
export interface Params$Resource$Enterprises$Structures$Rooms$List
|
|
1354
999
|
extends StandardParameters {
|
|
1355
|
-
/**
|
|
1356
|
-
* Requested page size. Server may return fewer rooms than requested. If unspecified, server will pick an appropriate default.
|
|
1357
|
-
*/
|
|
1358
|
-
pageSize?: number;
|
|
1359
|
-
/**
|
|
1360
|
-
* The token of the page to retrieve.
|
|
1361
|
-
*/
|
|
1362
|
-
pageToken?: string;
|
|
1363
1000
|
/**
|
|
1364
1001
|
* The parent resource name of the rooms requested. For example: "enterprises/XYZ/structures/ABC".
|
|
1365
1002
|
*/
|