@googleapis/smartdevicemanagement 1.1.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 +11 -0
- package/build/v1.d.ts +0 -384
- package/build/v1.js.map +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
- package/v1.ts +0 -384
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
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
|
+
|
|
3
14
|
## [1.1.0](https://github.com/googleapis/google-api-nodejs-client/compare/smartdevicemanagement-v1.0.0...smartdevicemanagement-v1.1.0) (2023-07-18)
|
|
4
15
|
|
|
5
16
|
|
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,60 +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: [
|
|
233
|
-
* 'https://www.googleapis.com/auth/sdm.service',
|
|
234
|
-
* 'https://www.googleapis.com/auth/userinfo.email',
|
|
235
|
-
* ],
|
|
236
|
-
* });
|
|
237
|
-
*
|
|
238
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
239
|
-
* const authClient = await auth.getClient();
|
|
240
|
-
* google.options({auth: authClient});
|
|
241
|
-
*
|
|
242
|
-
* // Do the magic
|
|
243
|
-
* const res = await smartdevicemanagement.enterprises.devices.executeCommand({
|
|
244
|
-
* // The name of the device requested. For example: "enterprises/XYZ/devices/123"
|
|
245
|
-
* name: 'enterprises/my-enterprise/devices/my-device',
|
|
246
|
-
*
|
|
247
|
-
* // Request body metadata
|
|
248
|
-
* requestBody: {
|
|
249
|
-
* // request body parameters
|
|
250
|
-
* // {
|
|
251
|
-
* // "command": "my_command",
|
|
252
|
-
* // "params": {}
|
|
253
|
-
* // }
|
|
254
|
-
* },
|
|
255
|
-
* });
|
|
256
|
-
* console.log(res.data);
|
|
257
|
-
*
|
|
258
|
-
* // Example response
|
|
259
|
-
* // {
|
|
260
|
-
* // "results": {}
|
|
261
|
-
* // }
|
|
262
|
-
* }
|
|
263
|
-
*
|
|
264
|
-
* main().catch(e => {
|
|
265
|
-
* console.error(e);
|
|
266
|
-
* throw e;
|
|
267
|
-
* });
|
|
268
|
-
*
|
|
269
|
-
* ```
|
|
270
204
|
*
|
|
271
205
|
* @param params - Parameters for request
|
|
272
206
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -281,54 +215,6 @@ export declare namespace smartdevicemanagement_v1 {
|
|
|
281
215
|
executeCommand(callback: BodyResponseCallback<Schema$GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse>): void;
|
|
282
216
|
/**
|
|
283
217
|
* Gets a device managed by the enterprise.
|
|
284
|
-
* @example
|
|
285
|
-
* ```js
|
|
286
|
-
* // Before running the sample:
|
|
287
|
-
* // - Enable the API at:
|
|
288
|
-
* // https://console.developers.google.com/apis/api/smartdevicemanagement.googleapis.com
|
|
289
|
-
* // - Login into gcloud by running:
|
|
290
|
-
* // `$ gcloud auth application-default login`
|
|
291
|
-
* // - Install the npm module by running:
|
|
292
|
-
* // `$ npm install googleapis`
|
|
293
|
-
*
|
|
294
|
-
* const {google} = require('googleapis');
|
|
295
|
-
* const smartdevicemanagement = google.smartdevicemanagement('v1');
|
|
296
|
-
*
|
|
297
|
-
* async function main() {
|
|
298
|
-
* const auth = new google.auth.GoogleAuth({
|
|
299
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
300
|
-
* scopes: [
|
|
301
|
-
* 'https://www.googleapis.com/auth/sdm.service',
|
|
302
|
-
* 'https://www.googleapis.com/auth/userinfo.email',
|
|
303
|
-
* ],
|
|
304
|
-
* });
|
|
305
|
-
*
|
|
306
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
307
|
-
* const authClient = await auth.getClient();
|
|
308
|
-
* google.options({auth: authClient});
|
|
309
|
-
*
|
|
310
|
-
* // Do the magic
|
|
311
|
-
* const res = await smartdevicemanagement.enterprises.devices.get({
|
|
312
|
-
* // The name of the device requested. For example: "enterprises/XYZ/devices/123"
|
|
313
|
-
* name: 'enterprises/my-enterprise/devices/my-device',
|
|
314
|
-
* });
|
|
315
|
-
* console.log(res.data);
|
|
316
|
-
*
|
|
317
|
-
* // Example response
|
|
318
|
-
* // {
|
|
319
|
-
* // "name": "my_name",
|
|
320
|
-
* // "parentRelations": [],
|
|
321
|
-
* // "traits": {},
|
|
322
|
-
* // "type": "my_type"
|
|
323
|
-
* // }
|
|
324
|
-
* }
|
|
325
|
-
*
|
|
326
|
-
* main().catch(e => {
|
|
327
|
-
* console.error(e);
|
|
328
|
-
* throw e;
|
|
329
|
-
* });
|
|
330
|
-
*
|
|
331
|
-
* ```
|
|
332
218
|
*
|
|
333
219
|
* @param params - Parameters for request
|
|
334
220
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -343,58 +229,6 @@ export declare namespace smartdevicemanagement_v1 {
|
|
|
343
229
|
get(callback: BodyResponseCallback<Schema$GoogleHomeEnterpriseSdmV1Device>): void;
|
|
344
230
|
/**
|
|
345
231
|
* Lists devices managed by the enterprise.
|
|
346
|
-
* @example
|
|
347
|
-
* ```js
|
|
348
|
-
* // Before running the sample:
|
|
349
|
-
* // - Enable the API at:
|
|
350
|
-
* // https://console.developers.google.com/apis/api/smartdevicemanagement.googleapis.com
|
|
351
|
-
* // - Login into gcloud by running:
|
|
352
|
-
* // `$ gcloud auth application-default login`
|
|
353
|
-
* // - Install the npm module by running:
|
|
354
|
-
* // `$ npm install googleapis`
|
|
355
|
-
*
|
|
356
|
-
* const {google} = require('googleapis');
|
|
357
|
-
* const smartdevicemanagement = google.smartdevicemanagement('v1');
|
|
358
|
-
*
|
|
359
|
-
* async function main() {
|
|
360
|
-
* const auth = new google.auth.GoogleAuth({
|
|
361
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
362
|
-
* scopes: [
|
|
363
|
-
* 'https://www.googleapis.com/auth/sdm.service',
|
|
364
|
-
* 'https://www.googleapis.com/auth/userinfo.email',
|
|
365
|
-
* ],
|
|
366
|
-
* });
|
|
367
|
-
*
|
|
368
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
369
|
-
* const authClient = await auth.getClient();
|
|
370
|
-
* google.options({auth: authClient});
|
|
371
|
-
*
|
|
372
|
-
* // Do the magic
|
|
373
|
-
* const res = await smartdevicemanagement.enterprises.devices.list({
|
|
374
|
-
* // Optional filter to list devices. Filters can be done on: Device custom name (substring match): 'customName=wing'
|
|
375
|
-
* filter: 'placeholder-value',
|
|
376
|
-
* // Optional requested page size. Server may return fewer devices than requested. If unspecified, server will pick an appropriate default.
|
|
377
|
-
* pageSize: 'placeholder-value',
|
|
378
|
-
* // Optional token of the page to retrieve.
|
|
379
|
-
* pageToken: 'placeholder-value',
|
|
380
|
-
* // The parent enterprise to list devices under. E.g. "enterprises/XYZ".
|
|
381
|
-
* parent: 'enterprises/my-enterprise',
|
|
382
|
-
* });
|
|
383
|
-
* console.log(res.data);
|
|
384
|
-
*
|
|
385
|
-
* // Example response
|
|
386
|
-
* // {
|
|
387
|
-
* // "devices": [],
|
|
388
|
-
* // "nextPageToken": "my_nextPageToken"
|
|
389
|
-
* // }
|
|
390
|
-
* }
|
|
391
|
-
*
|
|
392
|
-
* main().catch(e => {
|
|
393
|
-
* console.error(e);
|
|
394
|
-
* throw e;
|
|
395
|
-
* });
|
|
396
|
-
*
|
|
397
|
-
* ```
|
|
398
232
|
*
|
|
399
233
|
* @param params - Parameters for request
|
|
400
234
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -429,14 +263,6 @@ export declare namespace smartdevicemanagement_v1 {
|
|
|
429
263
|
* Optional filter to list devices. Filters can be done on: Device custom name (substring match): 'customName=wing'
|
|
430
264
|
*/
|
|
431
265
|
filter?: string;
|
|
432
|
-
/**
|
|
433
|
-
* Optional requested page size. Server may return fewer devices than requested. If unspecified, server will pick an appropriate default.
|
|
434
|
-
*/
|
|
435
|
-
pageSize?: number;
|
|
436
|
-
/**
|
|
437
|
-
* Optional token of the page to retrieve.
|
|
438
|
-
*/
|
|
439
|
-
pageToken?: string;
|
|
440
266
|
/**
|
|
441
267
|
* The parent enterprise to list devices under. E.g. "enterprises/XYZ".
|
|
442
268
|
*/
|
|
@@ -448,52 +274,6 @@ export declare namespace smartdevicemanagement_v1 {
|
|
|
448
274
|
constructor(context: APIRequestContext);
|
|
449
275
|
/**
|
|
450
276
|
* Gets a structure managed by the enterprise.
|
|
451
|
-
* @example
|
|
452
|
-
* ```js
|
|
453
|
-
* // Before running the sample:
|
|
454
|
-
* // - Enable the API at:
|
|
455
|
-
* // https://console.developers.google.com/apis/api/smartdevicemanagement.googleapis.com
|
|
456
|
-
* // - Login into gcloud by running:
|
|
457
|
-
* // `$ gcloud auth application-default login`
|
|
458
|
-
* // - Install the npm module by running:
|
|
459
|
-
* // `$ npm install googleapis`
|
|
460
|
-
*
|
|
461
|
-
* const {google} = require('googleapis');
|
|
462
|
-
* const smartdevicemanagement = google.smartdevicemanagement('v1');
|
|
463
|
-
*
|
|
464
|
-
* async function main() {
|
|
465
|
-
* const auth = new google.auth.GoogleAuth({
|
|
466
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
467
|
-
* scopes: [
|
|
468
|
-
* 'https://www.googleapis.com/auth/sdm.service',
|
|
469
|
-
* 'https://www.googleapis.com/auth/userinfo.email',
|
|
470
|
-
* ],
|
|
471
|
-
* });
|
|
472
|
-
*
|
|
473
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
474
|
-
* const authClient = await auth.getClient();
|
|
475
|
-
* google.options({auth: authClient});
|
|
476
|
-
*
|
|
477
|
-
* // Do the magic
|
|
478
|
-
* const res = await smartdevicemanagement.enterprises.structures.get({
|
|
479
|
-
* // The name of the structure requested. For example: "enterprises/XYZ/structures/ABC".
|
|
480
|
-
* name: 'enterprises/my-enterprise/structures/my-structure',
|
|
481
|
-
* });
|
|
482
|
-
* console.log(res.data);
|
|
483
|
-
*
|
|
484
|
-
* // Example response
|
|
485
|
-
* // {
|
|
486
|
-
* // "name": "my_name",
|
|
487
|
-
* // "traits": {}
|
|
488
|
-
* // }
|
|
489
|
-
* }
|
|
490
|
-
*
|
|
491
|
-
* main().catch(e => {
|
|
492
|
-
* console.error(e);
|
|
493
|
-
* throw e;
|
|
494
|
-
* });
|
|
495
|
-
*
|
|
496
|
-
* ```
|
|
497
277
|
*
|
|
498
278
|
* @param params - Parameters for request
|
|
499
279
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -508,58 +288,6 @@ export declare namespace smartdevicemanagement_v1 {
|
|
|
508
288
|
get(callback: BodyResponseCallback<Schema$GoogleHomeEnterpriseSdmV1Structure>): void;
|
|
509
289
|
/**
|
|
510
290
|
* Lists structures managed by the enterprise.
|
|
511
|
-
* @example
|
|
512
|
-
* ```js
|
|
513
|
-
* // Before running the sample:
|
|
514
|
-
* // - Enable the API at:
|
|
515
|
-
* // https://console.developers.google.com/apis/api/smartdevicemanagement.googleapis.com
|
|
516
|
-
* // - Login into gcloud by running:
|
|
517
|
-
* // `$ gcloud auth application-default login`
|
|
518
|
-
* // - Install the npm module by running:
|
|
519
|
-
* // `$ npm install googleapis`
|
|
520
|
-
*
|
|
521
|
-
* const {google} = require('googleapis');
|
|
522
|
-
* const smartdevicemanagement = google.smartdevicemanagement('v1');
|
|
523
|
-
*
|
|
524
|
-
* async function main() {
|
|
525
|
-
* const auth = new google.auth.GoogleAuth({
|
|
526
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
527
|
-
* scopes: [
|
|
528
|
-
* 'https://www.googleapis.com/auth/sdm.service',
|
|
529
|
-
* 'https://www.googleapis.com/auth/userinfo.email',
|
|
530
|
-
* ],
|
|
531
|
-
* });
|
|
532
|
-
*
|
|
533
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
534
|
-
* const authClient = await auth.getClient();
|
|
535
|
-
* google.options({auth: authClient});
|
|
536
|
-
*
|
|
537
|
-
* // Do the magic
|
|
538
|
-
* const res = await smartdevicemanagement.enterprises.structures.list({
|
|
539
|
-
* // Optional filter to list structures.
|
|
540
|
-
* filter: 'placeholder-value',
|
|
541
|
-
* // Requested page size. Server may return fewer structures than requested. If unspecified, server will pick an appropriate default.
|
|
542
|
-
* pageSize: 'placeholder-value',
|
|
543
|
-
* // The token of the page to retrieve.
|
|
544
|
-
* pageToken: 'placeholder-value',
|
|
545
|
-
* // The parent enterprise to list structures under. E.g. "enterprises/XYZ".
|
|
546
|
-
* parent: 'enterprises/my-enterprise',
|
|
547
|
-
* });
|
|
548
|
-
* console.log(res.data);
|
|
549
|
-
*
|
|
550
|
-
* // Example response
|
|
551
|
-
* // {
|
|
552
|
-
* // "nextPageToken": "my_nextPageToken",
|
|
553
|
-
* // "structures": []
|
|
554
|
-
* // }
|
|
555
|
-
* }
|
|
556
|
-
*
|
|
557
|
-
* main().catch(e => {
|
|
558
|
-
* console.error(e);
|
|
559
|
-
* throw e;
|
|
560
|
-
* });
|
|
561
|
-
*
|
|
562
|
-
* ```
|
|
563
291
|
*
|
|
564
292
|
* @param params - Parameters for request
|
|
565
293
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -584,14 +312,6 @@ export declare namespace smartdevicemanagement_v1 {
|
|
|
584
312
|
* Optional filter to list structures.
|
|
585
313
|
*/
|
|
586
314
|
filter?: string;
|
|
587
|
-
/**
|
|
588
|
-
* Requested page size. Server may return fewer structures than requested. If unspecified, server will pick an appropriate default.
|
|
589
|
-
*/
|
|
590
|
-
pageSize?: number;
|
|
591
|
-
/**
|
|
592
|
-
* The token of the page to retrieve.
|
|
593
|
-
*/
|
|
594
|
-
pageToken?: string;
|
|
595
315
|
/**
|
|
596
316
|
* The parent enterprise to list structures under. E.g. "enterprises/XYZ".
|
|
597
317
|
*/
|
|
@@ -602,52 +322,6 @@ export declare namespace smartdevicemanagement_v1 {
|
|
|
602
322
|
constructor(context: APIRequestContext);
|
|
603
323
|
/**
|
|
604
324
|
* Gets a room managed by the enterprise.
|
|
605
|
-
* @example
|
|
606
|
-
* ```js
|
|
607
|
-
* // Before running the sample:
|
|
608
|
-
* // - Enable the API at:
|
|
609
|
-
* // https://console.developers.google.com/apis/api/smartdevicemanagement.googleapis.com
|
|
610
|
-
* // - Login into gcloud by running:
|
|
611
|
-
* // `$ gcloud auth application-default login`
|
|
612
|
-
* // - Install the npm module by running:
|
|
613
|
-
* // `$ npm install googleapis`
|
|
614
|
-
*
|
|
615
|
-
* const {google} = require('googleapis');
|
|
616
|
-
* const smartdevicemanagement = google.smartdevicemanagement('v1');
|
|
617
|
-
*
|
|
618
|
-
* async function main() {
|
|
619
|
-
* const auth = new google.auth.GoogleAuth({
|
|
620
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
621
|
-
* scopes: [
|
|
622
|
-
* 'https://www.googleapis.com/auth/sdm.service',
|
|
623
|
-
* 'https://www.googleapis.com/auth/userinfo.email',
|
|
624
|
-
* ],
|
|
625
|
-
* });
|
|
626
|
-
*
|
|
627
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
628
|
-
* const authClient = await auth.getClient();
|
|
629
|
-
* google.options({auth: authClient});
|
|
630
|
-
*
|
|
631
|
-
* // Do the magic
|
|
632
|
-
* const res = await smartdevicemanagement.enterprises.structures.rooms.get({
|
|
633
|
-
* // The name of the room requested. For example: "enterprises/XYZ/structures/ABC/rooms/123".
|
|
634
|
-
* name: 'enterprises/my-enterprise/structures/my-structure/rooms/my-room',
|
|
635
|
-
* });
|
|
636
|
-
* console.log(res.data);
|
|
637
|
-
*
|
|
638
|
-
* // Example response
|
|
639
|
-
* // {
|
|
640
|
-
* // "name": "my_name",
|
|
641
|
-
* // "traits": {}
|
|
642
|
-
* // }
|
|
643
|
-
* }
|
|
644
|
-
*
|
|
645
|
-
* main().catch(e => {
|
|
646
|
-
* console.error(e);
|
|
647
|
-
* throw e;
|
|
648
|
-
* });
|
|
649
|
-
*
|
|
650
|
-
* ```
|
|
651
325
|
*
|
|
652
326
|
* @param params - Parameters for request
|
|
653
327
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -662,56 +336,6 @@ export declare namespace smartdevicemanagement_v1 {
|
|
|
662
336
|
get(callback: BodyResponseCallback<Schema$GoogleHomeEnterpriseSdmV1Room>): void;
|
|
663
337
|
/**
|
|
664
338
|
* Lists rooms managed by the enterprise.
|
|
665
|
-
* @example
|
|
666
|
-
* ```js
|
|
667
|
-
* // Before running the sample:
|
|
668
|
-
* // - Enable the API at:
|
|
669
|
-
* // https://console.developers.google.com/apis/api/smartdevicemanagement.googleapis.com
|
|
670
|
-
* // - Login into gcloud by running:
|
|
671
|
-
* // `$ gcloud auth application-default login`
|
|
672
|
-
* // - Install the npm module by running:
|
|
673
|
-
* // `$ npm install googleapis`
|
|
674
|
-
*
|
|
675
|
-
* const {google} = require('googleapis');
|
|
676
|
-
* const smartdevicemanagement = google.smartdevicemanagement('v1');
|
|
677
|
-
*
|
|
678
|
-
* async function main() {
|
|
679
|
-
* const auth = new google.auth.GoogleAuth({
|
|
680
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
681
|
-
* scopes: [
|
|
682
|
-
* 'https://www.googleapis.com/auth/sdm.service',
|
|
683
|
-
* 'https://www.googleapis.com/auth/userinfo.email',
|
|
684
|
-
* ],
|
|
685
|
-
* });
|
|
686
|
-
*
|
|
687
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
688
|
-
* const authClient = await auth.getClient();
|
|
689
|
-
* google.options({auth: authClient});
|
|
690
|
-
*
|
|
691
|
-
* // Do the magic
|
|
692
|
-
* const res = await smartdevicemanagement.enterprises.structures.rooms.list({
|
|
693
|
-
* // Requested page size. Server may return fewer rooms than requested. If unspecified, server will pick an appropriate default.
|
|
694
|
-
* pageSize: 'placeholder-value',
|
|
695
|
-
* // The token of the page to retrieve.
|
|
696
|
-
* pageToken: 'placeholder-value',
|
|
697
|
-
* // The parent resource name of the rooms requested. For example: "enterprises/XYZ/structures/ABC".
|
|
698
|
-
* parent: 'enterprises/my-enterprise/structures/my-structure',
|
|
699
|
-
* });
|
|
700
|
-
* console.log(res.data);
|
|
701
|
-
*
|
|
702
|
-
* // Example response
|
|
703
|
-
* // {
|
|
704
|
-
* // "nextPageToken": "my_nextPageToken",
|
|
705
|
-
* // "rooms": []
|
|
706
|
-
* // }
|
|
707
|
-
* }
|
|
708
|
-
*
|
|
709
|
-
* main().catch(e => {
|
|
710
|
-
* console.error(e);
|
|
711
|
-
* throw e;
|
|
712
|
-
* });
|
|
713
|
-
*
|
|
714
|
-
* ```
|
|
715
339
|
*
|
|
716
340
|
* @param params - Parameters for request
|
|
717
341
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -732,14 +356,6 @@ export declare namespace smartdevicemanagement_v1 {
|
|
|
732
356
|
name?: string;
|
|
733
357
|
}
|
|
734
358
|
export interface Params$Resource$Enterprises$Structures$Rooms$List extends StandardParameters {
|
|
735
|
-
/**
|
|
736
|
-
* Requested page size. Server may return fewer rooms than requested. If unspecified, server will pick an appropriate default.
|
|
737
|
-
*/
|
|
738
|
-
pageSize?: number;
|
|
739
|
-
/**
|
|
740
|
-
* The token of the page to retrieve.
|
|
741
|
-
*/
|
|
742
|
-
pageToken?: string;
|
|
743
359
|
/**
|
|
744
360
|
* The parent resource name of the rooms requested. For example: "enterprises/XYZ/structures/ABC".
|
|
745
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,8CAAq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M,CAAC,MAAM,CACpB;oBACE,GAAG,EAAE,CAAC,OAAO,GAAG,qBAAqB,CAAC,CAAC,OAAO,CAC5C,cAAc,EACd,IAAI,CACL;oBACD,MAAM,EAAE,KAAK;iBACd,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
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,60 +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: [
|
|
285
|
-
* 'https://www.googleapis.com/auth/sdm.service',
|
|
286
|
-
* 'https://www.googleapis.com/auth/userinfo.email',
|
|
287
|
-
* ],
|
|
288
|
-
* });
|
|
289
|
-
*
|
|
290
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
291
|
-
* const authClient = await auth.getClient();
|
|
292
|
-
* google.options({auth: authClient});
|
|
293
|
-
*
|
|
294
|
-
* // Do the magic
|
|
295
|
-
* const res = await smartdevicemanagement.enterprises.devices.executeCommand({
|
|
296
|
-
* // The name of the device requested. For example: "enterprises/XYZ/devices/123"
|
|
297
|
-
* name: 'enterprises/my-enterprise/devices/my-device',
|
|
298
|
-
*
|
|
299
|
-
* // Request body metadata
|
|
300
|
-
* requestBody: {
|
|
301
|
-
* // request body parameters
|
|
302
|
-
* // {
|
|
303
|
-
* // "command": "my_command",
|
|
304
|
-
* // "params": {}
|
|
305
|
-
* // }
|
|
306
|
-
* },
|
|
307
|
-
* });
|
|
308
|
-
* console.log(res.data);
|
|
309
|
-
*
|
|
310
|
-
* // Example response
|
|
311
|
-
* // {
|
|
312
|
-
* // "results": {}
|
|
313
|
-
* // }
|
|
314
|
-
* }
|
|
315
|
-
*
|
|
316
|
-
* main().catch(e => {
|
|
317
|
-
* console.error(e);
|
|
318
|
-
* throw e;
|
|
319
|
-
* });
|
|
320
|
-
*
|
|
321
|
-
* ```
|
|
322
256
|
*
|
|
323
257
|
* @param params - Parameters for request
|
|
324
258
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -416,54 +350,6 @@ export namespace smartdevicemanagement_v1 {
|
|
|
416
350
|
|
|
417
351
|
/**
|
|
418
352
|
* Gets a device managed by the enterprise.
|
|
419
|
-
* @example
|
|
420
|
-
* ```js
|
|
421
|
-
* // Before running the sample:
|
|
422
|
-
* // - Enable the API at:
|
|
423
|
-
* // https://console.developers.google.com/apis/api/smartdevicemanagement.googleapis.com
|
|
424
|
-
* // - Login into gcloud by running:
|
|
425
|
-
* // `$ gcloud auth application-default login`
|
|
426
|
-
* // - Install the npm module by running:
|
|
427
|
-
* // `$ npm install googleapis`
|
|
428
|
-
*
|
|
429
|
-
* const {google} = require('googleapis');
|
|
430
|
-
* const smartdevicemanagement = google.smartdevicemanagement('v1');
|
|
431
|
-
*
|
|
432
|
-
* async function main() {
|
|
433
|
-
* const auth = new google.auth.GoogleAuth({
|
|
434
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
435
|
-
* scopes: [
|
|
436
|
-
* 'https://www.googleapis.com/auth/sdm.service',
|
|
437
|
-
* 'https://www.googleapis.com/auth/userinfo.email',
|
|
438
|
-
* ],
|
|
439
|
-
* });
|
|
440
|
-
*
|
|
441
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
442
|
-
* const authClient = await auth.getClient();
|
|
443
|
-
* google.options({auth: authClient});
|
|
444
|
-
*
|
|
445
|
-
* // Do the magic
|
|
446
|
-
* const res = await smartdevicemanagement.enterprises.devices.get({
|
|
447
|
-
* // The name of the device requested. For example: "enterprises/XYZ/devices/123"
|
|
448
|
-
* name: 'enterprises/my-enterprise/devices/my-device',
|
|
449
|
-
* });
|
|
450
|
-
* console.log(res.data);
|
|
451
|
-
*
|
|
452
|
-
* // Example response
|
|
453
|
-
* // {
|
|
454
|
-
* // "name": "my_name",
|
|
455
|
-
* // "parentRelations": [],
|
|
456
|
-
* // "traits": {},
|
|
457
|
-
* // "type": "my_type"
|
|
458
|
-
* // }
|
|
459
|
-
* }
|
|
460
|
-
*
|
|
461
|
-
* main().catch(e => {
|
|
462
|
-
* console.error(e);
|
|
463
|
-
* throw e;
|
|
464
|
-
* });
|
|
465
|
-
*
|
|
466
|
-
* ```
|
|
467
353
|
*
|
|
468
354
|
* @param params - Parameters for request
|
|
469
355
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -558,58 +444,6 @@ export namespace smartdevicemanagement_v1 {
|
|
|
558
444
|
|
|
559
445
|
/**
|
|
560
446
|
* Lists devices managed by the enterprise.
|
|
561
|
-
* @example
|
|
562
|
-
* ```js
|
|
563
|
-
* // Before running the sample:
|
|
564
|
-
* // - Enable the API at:
|
|
565
|
-
* // https://console.developers.google.com/apis/api/smartdevicemanagement.googleapis.com
|
|
566
|
-
* // - Login into gcloud by running:
|
|
567
|
-
* // `$ gcloud auth application-default login`
|
|
568
|
-
* // - Install the npm module by running:
|
|
569
|
-
* // `$ npm install googleapis`
|
|
570
|
-
*
|
|
571
|
-
* const {google} = require('googleapis');
|
|
572
|
-
* const smartdevicemanagement = google.smartdevicemanagement('v1');
|
|
573
|
-
*
|
|
574
|
-
* async function main() {
|
|
575
|
-
* const auth = new google.auth.GoogleAuth({
|
|
576
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
577
|
-
* scopes: [
|
|
578
|
-
* 'https://www.googleapis.com/auth/sdm.service',
|
|
579
|
-
* 'https://www.googleapis.com/auth/userinfo.email',
|
|
580
|
-
* ],
|
|
581
|
-
* });
|
|
582
|
-
*
|
|
583
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
584
|
-
* const authClient = await auth.getClient();
|
|
585
|
-
* google.options({auth: authClient});
|
|
586
|
-
*
|
|
587
|
-
* // Do the magic
|
|
588
|
-
* const res = await smartdevicemanagement.enterprises.devices.list({
|
|
589
|
-
* // Optional filter to list devices. Filters can be done on: Device custom name (substring match): 'customName=wing'
|
|
590
|
-
* filter: 'placeholder-value',
|
|
591
|
-
* // Optional requested page size. Server may return fewer devices than requested. If unspecified, server will pick an appropriate default.
|
|
592
|
-
* pageSize: 'placeholder-value',
|
|
593
|
-
* // Optional token of the page to retrieve.
|
|
594
|
-
* pageToken: 'placeholder-value',
|
|
595
|
-
* // The parent enterprise to list devices under. E.g. "enterprises/XYZ".
|
|
596
|
-
* parent: 'enterprises/my-enterprise',
|
|
597
|
-
* });
|
|
598
|
-
* console.log(res.data);
|
|
599
|
-
*
|
|
600
|
-
* // Example response
|
|
601
|
-
* // {
|
|
602
|
-
* // "devices": [],
|
|
603
|
-
* // "nextPageToken": "my_nextPageToken"
|
|
604
|
-
* // }
|
|
605
|
-
* }
|
|
606
|
-
*
|
|
607
|
-
* main().catch(e => {
|
|
608
|
-
* console.error(e);
|
|
609
|
-
* throw e;
|
|
610
|
-
* });
|
|
611
|
-
*
|
|
612
|
-
* ```
|
|
613
447
|
*
|
|
614
448
|
* @param params - Parameters for request
|
|
615
449
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -731,14 +565,6 @@ export namespace smartdevicemanagement_v1 {
|
|
|
731
565
|
* Optional filter to list devices. Filters can be done on: Device custom name (substring match): 'customName=wing'
|
|
732
566
|
*/
|
|
733
567
|
filter?: string;
|
|
734
|
-
/**
|
|
735
|
-
* Optional requested page size. Server may return fewer devices than requested. If unspecified, server will pick an appropriate default.
|
|
736
|
-
*/
|
|
737
|
-
pageSize?: number;
|
|
738
|
-
/**
|
|
739
|
-
* Optional token of the page to retrieve.
|
|
740
|
-
*/
|
|
741
|
-
pageToken?: string;
|
|
742
568
|
/**
|
|
743
569
|
* The parent enterprise to list devices under. E.g. "enterprises/XYZ".
|
|
744
570
|
*/
|
|
@@ -755,52 +581,6 @@ export namespace smartdevicemanagement_v1 {
|
|
|
755
581
|
|
|
756
582
|
/**
|
|
757
583
|
* Gets a structure managed by the enterprise.
|
|
758
|
-
* @example
|
|
759
|
-
* ```js
|
|
760
|
-
* // Before running the sample:
|
|
761
|
-
* // - Enable the API at:
|
|
762
|
-
* // https://console.developers.google.com/apis/api/smartdevicemanagement.googleapis.com
|
|
763
|
-
* // - Login into gcloud by running:
|
|
764
|
-
* // `$ gcloud auth application-default login`
|
|
765
|
-
* // - Install the npm module by running:
|
|
766
|
-
* // `$ npm install googleapis`
|
|
767
|
-
*
|
|
768
|
-
* const {google} = require('googleapis');
|
|
769
|
-
* const smartdevicemanagement = google.smartdevicemanagement('v1');
|
|
770
|
-
*
|
|
771
|
-
* async function main() {
|
|
772
|
-
* const auth = new google.auth.GoogleAuth({
|
|
773
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
774
|
-
* scopes: [
|
|
775
|
-
* 'https://www.googleapis.com/auth/sdm.service',
|
|
776
|
-
* 'https://www.googleapis.com/auth/userinfo.email',
|
|
777
|
-
* ],
|
|
778
|
-
* });
|
|
779
|
-
*
|
|
780
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
781
|
-
* const authClient = await auth.getClient();
|
|
782
|
-
* google.options({auth: authClient});
|
|
783
|
-
*
|
|
784
|
-
* // Do the magic
|
|
785
|
-
* const res = await smartdevicemanagement.enterprises.structures.get({
|
|
786
|
-
* // The name of the structure requested. For example: "enterprises/XYZ/structures/ABC".
|
|
787
|
-
* name: 'enterprises/my-enterprise/structures/my-structure',
|
|
788
|
-
* });
|
|
789
|
-
* console.log(res.data);
|
|
790
|
-
*
|
|
791
|
-
* // Example response
|
|
792
|
-
* // {
|
|
793
|
-
* // "name": "my_name",
|
|
794
|
-
* // "traits": {}
|
|
795
|
-
* // }
|
|
796
|
-
* }
|
|
797
|
-
*
|
|
798
|
-
* main().catch(e => {
|
|
799
|
-
* console.error(e);
|
|
800
|
-
* throw e;
|
|
801
|
-
* });
|
|
802
|
-
*
|
|
803
|
-
* ```
|
|
804
584
|
*
|
|
805
585
|
* @param params - Parameters for request
|
|
806
586
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -895,58 +675,6 @@ export namespace smartdevicemanagement_v1 {
|
|
|
895
675
|
|
|
896
676
|
/**
|
|
897
677
|
* Lists structures managed by the enterprise.
|
|
898
|
-
* @example
|
|
899
|
-
* ```js
|
|
900
|
-
* // Before running the sample:
|
|
901
|
-
* // - Enable the API at:
|
|
902
|
-
* // https://console.developers.google.com/apis/api/smartdevicemanagement.googleapis.com
|
|
903
|
-
* // - Login into gcloud by running:
|
|
904
|
-
* // `$ gcloud auth application-default login`
|
|
905
|
-
* // - Install the npm module by running:
|
|
906
|
-
* // `$ npm install googleapis`
|
|
907
|
-
*
|
|
908
|
-
* const {google} = require('googleapis');
|
|
909
|
-
* const smartdevicemanagement = google.smartdevicemanagement('v1');
|
|
910
|
-
*
|
|
911
|
-
* async function main() {
|
|
912
|
-
* const auth = new google.auth.GoogleAuth({
|
|
913
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
914
|
-
* scopes: [
|
|
915
|
-
* 'https://www.googleapis.com/auth/sdm.service',
|
|
916
|
-
* 'https://www.googleapis.com/auth/userinfo.email',
|
|
917
|
-
* ],
|
|
918
|
-
* });
|
|
919
|
-
*
|
|
920
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
921
|
-
* const authClient = await auth.getClient();
|
|
922
|
-
* google.options({auth: authClient});
|
|
923
|
-
*
|
|
924
|
-
* // Do the magic
|
|
925
|
-
* const res = await smartdevicemanagement.enterprises.structures.list({
|
|
926
|
-
* // Optional filter to list structures.
|
|
927
|
-
* filter: 'placeholder-value',
|
|
928
|
-
* // Requested page size. Server may return fewer structures than requested. If unspecified, server will pick an appropriate default.
|
|
929
|
-
* pageSize: 'placeholder-value',
|
|
930
|
-
* // The token of the page to retrieve.
|
|
931
|
-
* pageToken: 'placeholder-value',
|
|
932
|
-
* // The parent enterprise to list structures under. E.g. "enterprises/XYZ".
|
|
933
|
-
* parent: 'enterprises/my-enterprise',
|
|
934
|
-
* });
|
|
935
|
-
* console.log(res.data);
|
|
936
|
-
*
|
|
937
|
-
* // Example response
|
|
938
|
-
* // {
|
|
939
|
-
* // "nextPageToken": "my_nextPageToken",
|
|
940
|
-
* // "structures": []
|
|
941
|
-
* // }
|
|
942
|
-
* }
|
|
943
|
-
*
|
|
944
|
-
* main().catch(e => {
|
|
945
|
-
* console.error(e);
|
|
946
|
-
* throw e;
|
|
947
|
-
* });
|
|
948
|
-
*
|
|
949
|
-
* ```
|
|
950
678
|
*
|
|
951
679
|
* @param params - Parameters for request
|
|
952
680
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1056,14 +784,6 @@ export namespace smartdevicemanagement_v1 {
|
|
|
1056
784
|
* Optional filter to list structures.
|
|
1057
785
|
*/
|
|
1058
786
|
filter?: string;
|
|
1059
|
-
/**
|
|
1060
|
-
* Requested page size. Server may return fewer structures than requested. If unspecified, server will pick an appropriate default.
|
|
1061
|
-
*/
|
|
1062
|
-
pageSize?: number;
|
|
1063
|
-
/**
|
|
1064
|
-
* The token of the page to retrieve.
|
|
1065
|
-
*/
|
|
1066
|
-
pageToken?: string;
|
|
1067
787
|
/**
|
|
1068
788
|
* The parent enterprise to list structures under. E.g. "enterprises/XYZ".
|
|
1069
789
|
*/
|
|
@@ -1078,52 +798,6 @@ export namespace smartdevicemanagement_v1 {
|
|
|
1078
798
|
|
|
1079
799
|
/**
|
|
1080
800
|
* Gets a room managed by the enterprise.
|
|
1081
|
-
* @example
|
|
1082
|
-
* ```js
|
|
1083
|
-
* // Before running the sample:
|
|
1084
|
-
* // - Enable the API at:
|
|
1085
|
-
* // https://console.developers.google.com/apis/api/smartdevicemanagement.googleapis.com
|
|
1086
|
-
* // - Login into gcloud by running:
|
|
1087
|
-
* // `$ gcloud auth application-default login`
|
|
1088
|
-
* // - Install the npm module by running:
|
|
1089
|
-
* // `$ npm install googleapis`
|
|
1090
|
-
*
|
|
1091
|
-
* const {google} = require('googleapis');
|
|
1092
|
-
* const smartdevicemanagement = google.smartdevicemanagement('v1');
|
|
1093
|
-
*
|
|
1094
|
-
* async function main() {
|
|
1095
|
-
* const auth = new google.auth.GoogleAuth({
|
|
1096
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1097
|
-
* scopes: [
|
|
1098
|
-
* 'https://www.googleapis.com/auth/sdm.service',
|
|
1099
|
-
* 'https://www.googleapis.com/auth/userinfo.email',
|
|
1100
|
-
* ],
|
|
1101
|
-
* });
|
|
1102
|
-
*
|
|
1103
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
1104
|
-
* const authClient = await auth.getClient();
|
|
1105
|
-
* google.options({auth: authClient});
|
|
1106
|
-
*
|
|
1107
|
-
* // Do the magic
|
|
1108
|
-
* const res = await smartdevicemanagement.enterprises.structures.rooms.get({
|
|
1109
|
-
* // The name of the room requested. For example: "enterprises/XYZ/structures/ABC/rooms/123".
|
|
1110
|
-
* name: 'enterprises/my-enterprise/structures/my-structure/rooms/my-room',
|
|
1111
|
-
* });
|
|
1112
|
-
* console.log(res.data);
|
|
1113
|
-
*
|
|
1114
|
-
* // Example response
|
|
1115
|
-
* // {
|
|
1116
|
-
* // "name": "my_name",
|
|
1117
|
-
* // "traits": {}
|
|
1118
|
-
* // }
|
|
1119
|
-
* }
|
|
1120
|
-
*
|
|
1121
|
-
* main().catch(e => {
|
|
1122
|
-
* console.error(e);
|
|
1123
|
-
* throw e;
|
|
1124
|
-
* });
|
|
1125
|
-
*
|
|
1126
|
-
* ```
|
|
1127
801
|
*
|
|
1128
802
|
* @param params - Parameters for request
|
|
1129
803
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1218,56 +892,6 @@ export namespace smartdevicemanagement_v1 {
|
|
|
1218
892
|
|
|
1219
893
|
/**
|
|
1220
894
|
* Lists rooms managed by the enterprise.
|
|
1221
|
-
* @example
|
|
1222
|
-
* ```js
|
|
1223
|
-
* // Before running the sample:
|
|
1224
|
-
* // - Enable the API at:
|
|
1225
|
-
* // https://console.developers.google.com/apis/api/smartdevicemanagement.googleapis.com
|
|
1226
|
-
* // - Login into gcloud by running:
|
|
1227
|
-
* // `$ gcloud auth application-default login`
|
|
1228
|
-
* // - Install the npm module by running:
|
|
1229
|
-
* // `$ npm install googleapis`
|
|
1230
|
-
*
|
|
1231
|
-
* const {google} = require('googleapis');
|
|
1232
|
-
* const smartdevicemanagement = google.smartdevicemanagement('v1');
|
|
1233
|
-
*
|
|
1234
|
-
* async function main() {
|
|
1235
|
-
* const auth = new google.auth.GoogleAuth({
|
|
1236
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1237
|
-
* scopes: [
|
|
1238
|
-
* 'https://www.googleapis.com/auth/sdm.service',
|
|
1239
|
-
* 'https://www.googleapis.com/auth/userinfo.email',
|
|
1240
|
-
* ],
|
|
1241
|
-
* });
|
|
1242
|
-
*
|
|
1243
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
1244
|
-
* const authClient = await auth.getClient();
|
|
1245
|
-
* google.options({auth: authClient});
|
|
1246
|
-
*
|
|
1247
|
-
* // Do the magic
|
|
1248
|
-
* const res = await smartdevicemanagement.enterprises.structures.rooms.list({
|
|
1249
|
-
* // Requested page size. Server may return fewer rooms than requested. If unspecified, server will pick an appropriate default.
|
|
1250
|
-
* pageSize: 'placeholder-value',
|
|
1251
|
-
* // The token of the page to retrieve.
|
|
1252
|
-
* pageToken: 'placeholder-value',
|
|
1253
|
-
* // The parent resource name of the rooms requested. For example: "enterprises/XYZ/structures/ABC".
|
|
1254
|
-
* parent: 'enterprises/my-enterprise/structures/my-structure',
|
|
1255
|
-
* });
|
|
1256
|
-
* console.log(res.data);
|
|
1257
|
-
*
|
|
1258
|
-
* // Example response
|
|
1259
|
-
* // {
|
|
1260
|
-
* // "nextPageToken": "my_nextPageToken",
|
|
1261
|
-
* // "rooms": []
|
|
1262
|
-
* // }
|
|
1263
|
-
* }
|
|
1264
|
-
*
|
|
1265
|
-
* main().catch(e => {
|
|
1266
|
-
* console.error(e);
|
|
1267
|
-
* throw e;
|
|
1268
|
-
* });
|
|
1269
|
-
*
|
|
1270
|
-
* ```
|
|
1271
895
|
*
|
|
1272
896
|
* @param params - Parameters for request
|
|
1273
897
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1373,14 +997,6 @@ export namespace smartdevicemanagement_v1 {
|
|
|
1373
997
|
}
|
|
1374
998
|
export interface Params$Resource$Enterprises$Structures$Rooms$List
|
|
1375
999
|
extends StandardParameters {
|
|
1376
|
-
/**
|
|
1377
|
-
* Requested page size. Server may return fewer rooms than requested. If unspecified, server will pick an appropriate default.
|
|
1378
|
-
*/
|
|
1379
|
-
pageSize?: number;
|
|
1380
|
-
/**
|
|
1381
|
-
* The token of the page to retrieve.
|
|
1382
|
-
*/
|
|
1383
|
-
pageToken?: string;
|
|
1384
1000
|
/**
|
|
1385
1001
|
* The parent resource name of the rooms requested. For example: "enterprises/XYZ/structures/ABC".
|
|
1386
1002
|
*/
|