@maxim_mazurok/gapi.client.smartdevicemanagement-v1 0.0.20230424 → 0.0.20230425

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.
Files changed (3) hide show
  1. package/index.d.ts +255 -128
  2. package/package.json +1 -1
  3. package/tests.ts +1 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://smartdevicemanagement.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20230424
12
+ // Revision: 20230425
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -24,310 +24,437 @@ declare namespace gapi.client {
24
24
  namespace smartdevicemanagement {
25
25
  interface GoogleHomeEnterpriseSdmV1Device {
26
26
  /** Required. The resource name of the device. For example: "enterprises/XYZ/devices/123". */
27
- name?: string;
27
+ name?:
28
+ string;
28
29
  /** Assignee details of the device. */
29
- parentRelations?: GoogleHomeEnterpriseSdmV1ParentRelation[];
30
+ parentRelations?:
31
+ GoogleHomeEnterpriseSdmV1ParentRelation[];
30
32
  /** Output only. Device traits. */
31
- traits?: { [P in string]: any };
33
+ traits?:
34
+ { [P in string]: any };
32
35
  /**
33
36
  * Output only. Type of the device for general display purposes. For example: "THERMOSTAT". The device type should not be used to deduce or infer functionality of the actual device it
34
37
  * is assigned to. Instead, use the returned traits for the device.
35
38
  */
36
- type?: string;
39
+ type?:
40
+ string;
37
41
  }
38
42
  interface GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandRequest {
39
43
  /** The command name to execute, represented by the fully qualified protobuf message name. */
40
- command?: string;
44
+ command?:
45
+ string;
41
46
  /** The command message to execute, represented as a Struct. */
42
- params?: { [P in string]: any };
47
+ params?:
48
+ { [P in string]: any };
43
49
  }
44
50
  interface GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse {
45
51
  /** The results of executing the command. */
46
- results?: { [P in string]: any };
52
+ results?:
53
+ { [P in string]: any };
47
54
  }
48
55
  interface GoogleHomeEnterpriseSdmV1ListDevicesResponse {
49
56
  /** The list of devices. */
50
- devices?: GoogleHomeEnterpriseSdmV1Device[];
57
+ devices?:
58
+ GoogleHomeEnterpriseSdmV1Device[];
51
59
  /** The pagination token to retrieve the next page of results. */
52
- nextPageToken?: string;
60
+ nextPageToken?:
61
+ string;
53
62
  }
54
63
  interface GoogleHomeEnterpriseSdmV1ListRoomsResponse {
55
64
  /** The pagination token to retrieve the next page of results. If this field is omitted, there are no subsequent pages. */
56
- nextPageToken?: string;
65
+ nextPageToken?:
66
+ string;
57
67
  /** The list of rooms. */
58
- rooms?: GoogleHomeEnterpriseSdmV1Room[];
68
+ rooms?:
69
+ GoogleHomeEnterpriseSdmV1Room[];
59
70
  }
60
71
  interface GoogleHomeEnterpriseSdmV1ListStructuresResponse {
61
72
  /** The pagination token to retrieve the next page of results. If this field is omitted, there are no subsequent pages. */
62
- nextPageToken?: string;
73
+ nextPageToken?:
74
+ string;
63
75
  /** The list of structures. */
64
- structures?: GoogleHomeEnterpriseSdmV1Structure[];
76
+ structures?:
77
+ GoogleHomeEnterpriseSdmV1Structure[];
65
78
  }
66
79
  interface GoogleHomeEnterpriseSdmV1ParentRelation {
67
80
  /** Output only. The custom name of the relation -- e.g., structure/room where the device is assigned to. */
68
- displayName?: string;
81
+ displayName?:
82
+ string;
69
83
  /**
70
84
  * Output only. The name of the relation -- e.g., structure/room where the device is assigned to. For example: "enterprises/XYZ/structures/ABC" or
71
85
  * "enterprises/XYZ/structures/ABC/rooms/123"
72
86
  */
73
- parent?: string;
87
+ parent?:
88
+ string;
74
89
  }
75
90
  interface GoogleHomeEnterpriseSdmV1Room {
76
91
  /** Output only. The resource name of the room. For example: "enterprises/XYZ/structures/ABC/rooms/123". */
77
- name?: string;
92
+ name?:
93
+ string;
78
94
  /** Room traits. */
79
- traits?: { [P in string]: any };
95
+ traits?:
96
+ { [P in string]: any };
80
97
  }
81
98
  interface GoogleHomeEnterpriseSdmV1Structure {
82
99
  /** Output only. The resource name of the structure. For example: "enterprises/XYZ/structures/ABC". */
83
- name?: string;
100
+ name?:
101
+ string;
84
102
  /** Structure traits. */
85
- traits?: { [P in string]: any };
103
+ traits?:
104
+ { [P in string]: any };
86
105
  }
87
106
  interface DevicesResource {
88
107
  /** Executes a command to device managed by the enterprise. */
89
108
  executeCommand(request: {
90
109
  /** V1 error format. */
91
- "$.xgafv"?: string;
110
+ "$.xgafv"?:
111
+ string;
92
112
  /** OAuth access token. */
93
- access_token?: string;
113
+ access_token?:
114
+ string;
94
115
  /** Data format for response. */
95
- alt?: string;
116
+ alt?:
117
+ string;
96
118
  /** JSONP */
97
- callback?: string;
119
+ callback?:
120
+ string;
98
121
  /** Selector specifying which fields to include in a partial response. */
99
- fields?: string;
122
+ fields?:
123
+ string;
100
124
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
101
- key?: string;
125
+ key?:
126
+ string;
102
127
  /** The name of the device requested. For example: "enterprises/XYZ/devices/123" */
103
- name: string;
128
+ name:
129
+ string;
104
130
  /** OAuth 2.0 token for the current user. */
105
- oauth_token?: string;
131
+ oauth_token?:
132
+ string;
106
133
  /** Returns response with indentations and line breaks. */
107
- prettyPrint?: boolean;
134
+ prettyPrint?:
135
+ boolean;
108
136
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
109
- quotaUser?: string;
137
+ quotaUser?:
138
+ string;
110
139
  /** Upload protocol for media (e.g. "raw", "multipart"). */
111
- upload_protocol?: string;
140
+ upload_protocol?:
141
+ string;
112
142
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
113
- uploadType?: string;
143
+ uploadType?:
144
+ string;
114
145
  /** Request body */
115
- resource: GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandRequest;
146
+ resource:
147
+ GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandRequest;
116
148
  }): Request<GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse>;
117
149
  executeCommand(request: {
118
150
  /** V1 error format. */
119
- "$.xgafv"?: string;
151
+ "$.xgafv"?:
152
+ string;
120
153
  /** OAuth access token. */
121
- access_token?: string;
154
+ access_token?:
155
+ string;
122
156
  /** Data format for response. */
123
- alt?: string;
157
+ alt?:
158
+ string;
124
159
  /** JSONP */
125
- callback?: string;
160
+ callback?:
161
+ string;
126
162
  /** Selector specifying which fields to include in a partial response. */
127
- fields?: string;
163
+ fields?:
164
+ string;
128
165
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
129
- key?: string;
166
+ key?:
167
+ string;
130
168
  /** The name of the device requested. For example: "enterprises/XYZ/devices/123" */
131
- name: string;
169
+ name:
170
+ string;
132
171
  /** OAuth 2.0 token for the current user. */
133
- oauth_token?: string;
172
+ oauth_token?:
173
+ string;
134
174
  /** Returns response with indentations and line breaks. */
135
- prettyPrint?: boolean;
175
+ prettyPrint?:
176
+ boolean;
136
177
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
137
- quotaUser?: string;
178
+ quotaUser?:
179
+ string;
138
180
  /** Upload protocol for media (e.g. "raw", "multipart"). */
139
- upload_protocol?: string;
181
+ upload_protocol?:
182
+ string;
140
183
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
141
- uploadType?: string;
184
+ uploadType?:
185
+ string;
142
186
  },
143
187
  body: GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandRequest): Request<GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse>;
144
188
  /** Gets a device managed by the enterprise. */
145
189
  get(request?: {
146
190
  /** V1 error format. */
147
- "$.xgafv"?: string;
191
+ "$.xgafv"?:
192
+ string;
148
193
  /** OAuth access token. */
149
- access_token?: string;
194
+ access_token?:
195
+ string;
150
196
  /** Data format for response. */
151
- alt?: string;
197
+ alt?:
198
+ string;
152
199
  /** JSONP */
153
- callback?: string;
200
+ callback?:
201
+ string;
154
202
  /** Selector specifying which fields to include in a partial response. */
155
- fields?: string;
203
+ fields?:
204
+ string;
156
205
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
157
- key?: string;
206
+ key?:
207
+ string;
158
208
  /** The name of the device requested. For example: "enterprises/XYZ/devices/123" */
159
- name: string;
209
+ name:
210
+ string;
160
211
  /** OAuth 2.0 token for the current user. */
161
- oauth_token?: string;
212
+ oauth_token?:
213
+ string;
162
214
  /** Returns response with indentations and line breaks. */
163
- prettyPrint?: boolean;
215
+ prettyPrint?:
216
+ boolean;
164
217
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
165
- quotaUser?: string;
218
+ quotaUser?:
219
+ string;
166
220
  /** Upload protocol for media (e.g. "raw", "multipart"). */
167
- upload_protocol?: string;
221
+ upload_protocol?:
222
+ string;
168
223
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
169
- uploadType?: string;
224
+ uploadType?:
225
+ string;
170
226
  }): Request<GoogleHomeEnterpriseSdmV1Device>;
171
227
  /** Lists devices managed by the enterprise. */
172
228
  list(request?: {
173
229
  /** V1 error format. */
174
- "$.xgafv"?: string;
230
+ "$.xgafv"?:
231
+ string;
175
232
  /** OAuth access token. */
176
- access_token?: string;
233
+ access_token?:
234
+ string;
177
235
  /** Data format for response. */
178
- alt?: string;
236
+ alt?:
237
+ string;
179
238
  /** JSONP */
180
- callback?: string;
239
+ callback?:
240
+ string;
181
241
  /** Selector specifying which fields to include in a partial response. */
182
- fields?: string;
242
+ fields?:
243
+ string;
183
244
  /** Optional filter to list devices. Filters can be done on: Device custom name (substring match): 'customName=wing' */
184
- filter?: string;
245
+ filter?:
246
+ string;
185
247
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
186
- key?: string;
248
+ key?:
249
+ string;
187
250
  /** OAuth 2.0 token for the current user. */
188
- oauth_token?: string;
251
+ oauth_token?:
252
+ string;
189
253
  /** Optional requested page size. Server may return fewer devices than requested. If unspecified, server will pick an appropriate default. */
190
- pageSize?: number;
254
+ pageSize?:
255
+ number;
191
256
  /** Optional token of the page to retrieve. */
192
- pageToken?: string;
257
+ pageToken?:
258
+ string;
193
259
  /** The parent enterprise to list devices under. E.g. "enterprises/XYZ". */
194
- parent: string;
260
+ parent:
261
+ string;
195
262
  /** Returns response with indentations and line breaks. */
196
- prettyPrint?: boolean;
263
+ prettyPrint?:
264
+ boolean;
197
265
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
198
- quotaUser?: string;
266
+ quotaUser?:
267
+ string;
199
268
  /** Upload protocol for media (e.g. "raw", "multipart"). */
200
- upload_protocol?: string;
269
+ upload_protocol?:
270
+ string;
201
271
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
202
- uploadType?: string;
272
+ uploadType?:
273
+ string;
203
274
  }): Request<GoogleHomeEnterpriseSdmV1ListDevicesResponse>;
204
275
  }
205
276
  interface RoomsResource {
206
277
  /** Gets a room managed by the enterprise. */
207
278
  get(request?: {
208
279
  /** V1 error format. */
209
- "$.xgafv"?: string;
280
+ "$.xgafv"?:
281
+ string;
210
282
  /** OAuth access token. */
211
- access_token?: string;
283
+ access_token?:
284
+ string;
212
285
  /** Data format for response. */
213
- alt?: string;
286
+ alt?:
287
+ string;
214
288
  /** JSONP */
215
- callback?: string;
289
+ callback?:
290
+ string;
216
291
  /** Selector specifying which fields to include in a partial response. */
217
- fields?: string;
292
+ fields?:
293
+ string;
218
294
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
219
- key?: string;
295
+ key?:
296
+ string;
220
297
  /** The name of the room requested. For example: "enterprises/XYZ/structures/ABC/rooms/123". */
221
- name: string;
298
+ name:
299
+ string;
222
300
  /** OAuth 2.0 token for the current user. */
223
- oauth_token?: string;
301
+ oauth_token?:
302
+ string;
224
303
  /** Returns response with indentations and line breaks. */
225
- prettyPrint?: boolean;
304
+ prettyPrint?:
305
+ boolean;
226
306
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
227
- quotaUser?: string;
307
+ quotaUser?:
308
+ string;
228
309
  /** Upload protocol for media (e.g. "raw", "multipart"). */
229
- upload_protocol?: string;
310
+ upload_protocol?:
311
+ string;
230
312
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
231
- uploadType?: string;
313
+ uploadType?:
314
+ string;
232
315
  }): Request<GoogleHomeEnterpriseSdmV1Room>;
233
316
  /** Lists rooms managed by the enterprise. */
234
317
  list(request?: {
235
318
  /** V1 error format. */
236
- "$.xgafv"?: string;
319
+ "$.xgafv"?:
320
+ string;
237
321
  /** OAuth access token. */
238
- access_token?: string;
322
+ access_token?:
323
+ string;
239
324
  /** Data format for response. */
240
- alt?: string;
325
+ alt?:
326
+ string;
241
327
  /** JSONP */
242
- callback?: string;
328
+ callback?:
329
+ string;
243
330
  /** Selector specifying which fields to include in a partial response. */
244
- fields?: string;
331
+ fields?:
332
+ string;
245
333
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
246
- key?: string;
334
+ key?:
335
+ string;
247
336
  /** OAuth 2.0 token for the current user. */
248
- oauth_token?: string;
337
+ oauth_token?:
338
+ string;
249
339
  /** Requested page size. Server may return fewer rooms than requested. If unspecified, server will pick an appropriate default. */
250
- pageSize?: number;
340
+ pageSize?:
341
+ number;
251
342
  /** The token of the page to retrieve. */
252
- pageToken?: string;
343
+ pageToken?:
344
+ string;
253
345
  /** The parent resource name of the rooms requested. For example: "enterprises/XYZ/structures/ABC". */
254
- parent: string;
346
+ parent:
347
+ string;
255
348
  /** Returns response with indentations and line breaks. */
256
- prettyPrint?: boolean;
349
+ prettyPrint?:
350
+ boolean;
257
351
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
258
- quotaUser?: string;
352
+ quotaUser?:
353
+ string;
259
354
  /** Upload protocol for media (e.g. "raw", "multipart"). */
260
- upload_protocol?: string;
355
+ upload_protocol?:
356
+ string;
261
357
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
262
- uploadType?: string;
358
+ uploadType?:
359
+ string;
263
360
  }): Request<GoogleHomeEnterpriseSdmV1ListRoomsResponse>;
264
361
  }
265
362
  interface StructuresResource {
266
363
  /** Gets a structure managed by the enterprise. */
267
364
  get(request?: {
268
365
  /** V1 error format. */
269
- "$.xgafv"?: string;
366
+ "$.xgafv"?:
367
+ string;
270
368
  /** OAuth access token. */
271
- access_token?: string;
369
+ access_token?:
370
+ string;
272
371
  /** Data format for response. */
273
- alt?: string;
372
+ alt?:
373
+ string;
274
374
  /** JSONP */
275
- callback?: string;
375
+ callback?:
376
+ string;
276
377
  /** Selector specifying which fields to include in a partial response. */
277
- fields?: string;
378
+ fields?:
379
+ string;
278
380
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
279
- key?: string;
381
+ key?:
382
+ string;
280
383
  /** The name of the structure requested. For example: "enterprises/XYZ/structures/ABC". */
281
- name: string;
384
+ name:
385
+ string;
282
386
  /** OAuth 2.0 token for the current user. */
283
- oauth_token?: string;
387
+ oauth_token?:
388
+ string;
284
389
  /** Returns response with indentations and line breaks. */
285
- prettyPrint?: boolean;
390
+ prettyPrint?:
391
+ boolean;
286
392
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
287
- quotaUser?: string;
393
+ quotaUser?:
394
+ string;
288
395
  /** Upload protocol for media (e.g. "raw", "multipart"). */
289
- upload_protocol?: string;
396
+ upload_protocol?:
397
+ string;
290
398
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
291
- uploadType?: string;
399
+ uploadType?:
400
+ string;
292
401
  }): Request<GoogleHomeEnterpriseSdmV1Structure>;
293
402
  /** Lists structures managed by the enterprise. */
294
403
  list(request?: {
295
404
  /** V1 error format. */
296
- "$.xgafv"?: string;
405
+ "$.xgafv"?:
406
+ string;
297
407
  /** OAuth access token. */
298
- access_token?: string;
408
+ access_token?:
409
+ string;
299
410
  /** Data format for response. */
300
- alt?: string;
411
+ alt?:
412
+ string;
301
413
  /** JSONP */
302
- callback?: string;
414
+ callback?:
415
+ string;
303
416
  /** Selector specifying which fields to include in a partial response. */
304
- fields?: string;
417
+ fields?:
418
+ string;
305
419
  /** Optional filter to list structures. */
306
- filter?: string;
420
+ filter?:
421
+ string;
307
422
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
308
- key?: string;
423
+ key?:
424
+ string;
309
425
  /** OAuth 2.0 token for the current user. */
310
- oauth_token?: string;
426
+ oauth_token?:
427
+ string;
311
428
  /** Requested page size. Server may return fewer structures than requested. If unspecified, server will pick an appropriate default. */
312
- pageSize?: number;
429
+ pageSize?:
430
+ number;
313
431
  /** The token of the page to retrieve. */
314
- pageToken?: string;
432
+ pageToken?:
433
+ string;
315
434
  /** The parent enterprise to list structures under. E.g. "enterprises/XYZ". */
316
- parent: string;
435
+ parent:
436
+ string;
317
437
  /** Returns response with indentations and line breaks. */
318
- prettyPrint?: boolean;
438
+ prettyPrint?:
439
+ boolean;
319
440
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
320
- quotaUser?: string;
441
+ quotaUser?:
442
+ string;
321
443
  /** Upload protocol for media (e.g. "raw", "multipart"). */
322
- upload_protocol?: string;
444
+ upload_protocol?:
445
+ string;
323
446
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
324
- uploadType?: string;
447
+ uploadType?:
448
+ string;
325
449
  }): Request<GoogleHomeEnterpriseSdmV1ListStructuresResponse>;
326
- rooms: RoomsResource;
450
+ rooms:
451
+ RoomsResource;
327
452
  }
328
453
  interface EnterprisesResource {
329
- devices: DevicesResource;
330
- structures: StructuresResource;
454
+ devices:
455
+ DevicesResource;
456
+ structures:
457
+ StructuresResource;
331
458
  }
332
459
 
333
460
  const enterprises: EnterprisesResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.smartdevicemanagement-v1",
3
- "version": "0.0.20230424",
3
+ "version": "0.0.20230425",
4
4
  "description": "TypeScript typings for Smart Device Management API v1",
5
5
  "license": "MIT",
6
6
  "author": {
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20230424
6
+ // Revision: 20230425
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */