@googleapis/chromemanagement 1.1.0 → 1.2.2

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/v1.ts CHANGED
@@ -224,6 +224,101 @@ export namespace chromemanagement_v1 {
224
224
  */
225
225
  type?: string | null;
226
226
  }
227
+ /**
228
+ * Battery info
229
+ */
230
+ export interface Schema$GoogleChromeManagementV1BatteryInfo {
231
+ /**
232
+ * Output only. Design capacity (mAmpere-hours).
233
+ */
234
+ designCapacity?: string | null;
235
+ /**
236
+ * Output only. Designed minimum output voltage (mV)
237
+ */
238
+ designMinVoltage?: number | null;
239
+ /**
240
+ * Output only. The date the battery was manufactured.
241
+ */
242
+ manufactureDate?: Schema$GoogleTypeDate;
243
+ /**
244
+ * Output only. Battery manufacturer.
245
+ */
246
+ manufacturer?: string | null;
247
+ /**
248
+ * Output only. Battery serial number.
249
+ */
250
+ serialNumber?: string | null;
251
+ /**
252
+ * Output only. Technology of the battery. Example: Li-ion
253
+ */
254
+ technology?: string | null;
255
+ }
256
+ /**
257
+ * Sampling data for battery.
258
+ */
259
+ export interface Schema$GoogleChromeManagementV1BatterySampleReport {
260
+ /**
261
+ * Output only. Battery charge percentage.
262
+ */
263
+ chargeRate?: number | null;
264
+ /**
265
+ * Output only. Battery current (mA).
266
+ */
267
+ current?: string | null;
268
+ /**
269
+ * Output only. The battery discharge rate measured in mW. Positive if the battery is being discharged, negative if it's being charged.
270
+ */
271
+ dischargeRate?: number | null;
272
+ /**
273
+ * Output only. Battery remaining capacity (mAmpere-hours).
274
+ */
275
+ remainingCapacity?: string | null;
276
+ /**
277
+ * Output only. Timestamp of when the sample was collected on device
278
+ */
279
+ reportTime?: string | null;
280
+ /**
281
+ * Output only. Battery status read from sysfs. Example: Discharging
282
+ */
283
+ status?: string | null;
284
+ /**
285
+ * Output only. Temperature in Celsius degrees.
286
+ */
287
+ temperature?: number | null;
288
+ /**
289
+ * Output only. Battery voltage (millivolt).
290
+ */
291
+ voltage?: string | null;
292
+ }
293
+ /**
294
+ * Status data for battery.
295
+ */
296
+ export interface Schema$GoogleChromeManagementV1BatteryStatusReport {
297
+ /**
298
+ * Output only. Battery health.
299
+ */
300
+ batteryHealth?: string | null;
301
+ /**
302
+ * Output only. Cycle count.
303
+ */
304
+ cycleCount?: number | null;
305
+ /**
306
+ * Output only. Full charge capacity (mAmpere-hours).
307
+ */
308
+ fullChargeCapacity?: string | null;
309
+ /**
310
+ * Output only. Timestamp of when the sample was collected on device
311
+ */
312
+ reportTime?: string | null;
313
+ /**
314
+ * Output only. Sampling data for the battery.
315
+ */
316
+ sample?: Schema$GoogleChromeManagementV1BatterySampleReport[];
317
+ /**
318
+ * Output only. Battery serial number.
319
+ */
320
+ serialNumber?: string | null;
321
+ }
227
322
  /**
228
323
  * Describes a browser version and its install count.
229
324
  */
@@ -392,6 +487,57 @@ export namespace chromemanagement_v1 {
392
487
  */
393
488
  totalSize?: number | null;
394
489
  }
490
+ /**
491
+ * CPU specs for a CPU.
492
+ */
493
+ export interface Schema$GoogleChromeManagementV1CpuInfo {
494
+ /**
495
+ * Output only. The CPU architecture.
496
+ */
497
+ architecture?: string | null;
498
+ /**
499
+ * Output only. The max CPU clock speed in kHz.
500
+ */
501
+ maxClockSpeed?: number | null;
502
+ /**
503
+ * Output only. The CPU model name. Example: Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
504
+ */
505
+ model?: string | null;
506
+ }
507
+ /**
508
+ * Contains samples of the cpu status reports.
509
+ */
510
+ export interface Schema$GoogleChromeManagementV1CpuStatusReport {
511
+ /**
512
+ * Output only. CPU temperature sample info per CPU core in Celsius
513
+ */
514
+ cpuTemperatureInfo?: Schema$GoogleChromeManagementV1CpuTemperatureInfo[];
515
+ /**
516
+ * Output only. Sample of CPU utilization (0-100 percent).
517
+ */
518
+ cpuUtilizationPct?: number | null;
519
+ /**
520
+ * Output only. The timestamp in milliseconds representing time at which this report was sampled.
521
+ */
522
+ reportTime?: string | null;
523
+ /**
524
+ * Output only. Frequency the report is sampled.
525
+ */
526
+ sampleFrequency?: string | null;
527
+ }
528
+ /**
529
+ * CPU temperature of a device. Sampled per CPU core in Celsius
530
+ */
531
+ export interface Schema$GoogleChromeManagementV1CpuTemperatureInfo {
532
+ /**
533
+ * Output only. CPU label. Example: Core 0
534
+ */
535
+ label?: string | null;
536
+ /**
537
+ * Output only. CPU temperature in Celsius.
538
+ */
539
+ temperatureCelsius?: number | null;
540
+ }
395
541
  /**
396
542
  * Describes a device reporting Chrome browser information.
397
543
  */
@@ -405,6 +551,88 @@ export namespace chromemanagement_v1 {
405
551
  */
406
552
  machine?: string | null;
407
553
  }
554
+ /**
555
+ * Status of the single storage device.
556
+ */
557
+ export interface Schema$GoogleChromeManagementV1DiskInfo {
558
+ /**
559
+ * Output only. Number of bytes read since last boot.
560
+ */
561
+ bytesReadThisSession?: string | null;
562
+ /**
563
+ * Output only. Number of bytes written since last boot.
564
+ */
565
+ bytesWrittenThisSession?: string | null;
566
+ /**
567
+ * Output only. Time spent discarding since last boot. Discarding is writing to clear blocks which are no longer in use. Supported on kernels 4.18+.
568
+ */
569
+ discardTimeThisSession?: string | null;
570
+ /**
571
+ * Output only. Disk health.
572
+ */
573
+ health?: string | null;
574
+ /**
575
+ * Output only. Counts the time the disk and queue were busy, so unlike the fields above, parallel requests are not counted multiple times.
576
+ */
577
+ ioTimeThisSession?: string | null;
578
+ /**
579
+ * Output only. Disk manufacturer.
580
+ */
581
+ manufacturer?: string | null;
582
+ /**
583
+ * Output only. Disk model.
584
+ */
585
+ model?: string | null;
586
+ /**
587
+ * Output only. Time spent reading from disk since last boot.
588
+ */
589
+ readTimeThisSession?: string | null;
590
+ /**
591
+ * Output only. Disk serial number.
592
+ */
593
+ serialNumber?: string | null;
594
+ /**
595
+ * Output only. Disk size.
596
+ */
597
+ sizeBytes?: string | null;
598
+ /**
599
+ * Output only. Disk type: eMMC / NVMe / ATA / SCSI.
600
+ */
601
+ type?: string | null;
602
+ /**
603
+ * Output only. Disk volumes.
604
+ */
605
+ volumeIds?: string[] | null;
606
+ /**
607
+ * Output only. Time spent writing to disk since last boot.
608
+ */
609
+ writeTimeThisSession?: string | null;
610
+ }
611
+ /**
612
+ * Information for a display.
613
+ */
614
+ export interface Schema$GoogleChromeManagementV1DisplayInfo {
615
+ /**
616
+ * Output only. Represents the graphics card device id.
617
+ */
618
+ deviceId?: string | null;
619
+ /**
620
+ * Output only. Indicates if display is internal or not.
621
+ */
622
+ isInternal?: boolean | null;
623
+ /**
624
+ * Output only. Refresh rate in Hz.
625
+ */
626
+ refreshRate?: number | null;
627
+ /**
628
+ * Output only. Resolution height in pixels.
629
+ */
630
+ resolutionHeight?: number | null;
631
+ /**
632
+ * Output only. Resolution width in pixels.
633
+ */
634
+ resolutionWidth?: number | null;
635
+ }
408
636
  /**
409
637
  * Response containing a list of devices with queried app installed.
410
638
  */
@@ -422,6 +650,45 @@ export namespace chromemanagement_v1 {
422
650
  */
423
651
  totalSize?: number | null;
424
652
  }
653
+ /**
654
+ * Information of a graphics adapter (GPU).
655
+ */
656
+ export interface Schema$GoogleChromeManagementV1GraphicsAdapterInfo {
657
+ /**
658
+ * Output only. Adapter name. Example: Mesa DRI Intel(R) UHD Graphics 620 (Kabylake GT2).
659
+ */
660
+ adapter?: string | null;
661
+ /**
662
+ * Output only. Represents the graphics card device id.
663
+ */
664
+ deviceId?: string | null;
665
+ /**
666
+ * Output only. Version of the GPU driver.
667
+ */
668
+ driverVersion?: string | null;
669
+ }
670
+ /**
671
+ * Information of the graphics subsystem.
672
+ */
673
+ export interface Schema$GoogleChromeManagementV1GraphicsInfo {
674
+ /**
675
+ * Output only. Information about the graphics adapter (GPU).
676
+ */
677
+ adapterInfo?: Schema$GoogleChromeManagementV1GraphicsAdapterInfo;
678
+ }
679
+ /**
680
+ * Information of the graphics subsystem.
681
+ */
682
+ export interface Schema$GoogleChromeManagementV1GraphicsStatusReport {
683
+ /**
684
+ * Output only. Information about the displays for the device.
685
+ */
686
+ displays?: Schema$GoogleChromeManagementV1DisplayInfo[];
687
+ /**
688
+ * Output only. Time at which the graphics data was reported.
689
+ */
690
+ reportTime?: string | null;
691
+ }
425
692
  /**
426
693
  * Describes an installed app.
427
694
  */
@@ -471,6 +738,224 @@ export namespace chromemanagement_v1 {
471
738
  */
472
739
  permissions?: string[] | null;
473
740
  }
741
+ export interface Schema$GoogleChromeManagementV1ListTelemetryDevicesResponse {
742
+ /**
743
+ * Telemetry devices returned in the response.
744
+ */
745
+ devices?: Schema$GoogleChromeManagementV1TelemetryDevice[];
746
+ /**
747
+ * Token to specify next page in the list.
748
+ */
749
+ nextPageToken?: string | null;
750
+ }
751
+ /**
752
+ * Memory information of a device.
753
+ */
754
+ export interface Schema$GoogleChromeManagementV1MemoryInfo {
755
+ /**
756
+ * Output only. Amount of available RAM in bytes.
757
+ */
758
+ availableRamBytes?: string | null;
759
+ /**
760
+ * Output only. Total RAM in bytes.
761
+ */
762
+ totalRamBytes?: string | null;
763
+ }
764
+ /**
765
+ * Contains samples of memory status reports.
766
+ */
767
+ export interface Schema$GoogleChromeManagementV1MemoryStatusReport {
768
+ /**
769
+ * Output only. Number of page faults during this collection
770
+ */
771
+ pageFaults?: number | null;
772
+ /**
773
+ * Output only. The timestamp in milliseconds representing time at which this report was sampled.
774
+ */
775
+ reportTime?: string | null;
776
+ /**
777
+ * Output only. Frequency the report is sampled.
778
+ */
779
+ sampleFrequency?: string | null;
780
+ /**
781
+ * Output only. Amount of free RAM in bytes (unreliable due to Garbage Collection).
782
+ */
783
+ systemRamFreeBytes?: string | null;
784
+ }
785
+ /**
786
+ * State of visible/configured networks.
787
+ */
788
+ export interface Schema$GoogleChromeManagementV1NetworkStatusReport {
789
+ /**
790
+ * Output only. Gateway IP address.
791
+ */
792
+ gatewayIpAddress?: string | null;
793
+ /**
794
+ * Output only. LAN IP address.
795
+ */
796
+ lanIpAddress?: string | null;
797
+ /**
798
+ * Output only. Time at which the network state was reported.
799
+ */
800
+ reportTime?: string | null;
801
+ /**
802
+ * Output only. Frequency the report is sampled.
803
+ */
804
+ sampleFrequency?: string | null;
805
+ /**
806
+ * Output only. Signal strength for wireless networks measured in decibels.
807
+ */
808
+ signalStrengthDbm?: number | null;
809
+ }
810
+ /**
811
+ * Contains information regarding the current OS update status.
812
+ */
813
+ export interface Schema$GoogleChromeManagementV1OsUpdateStatus {
814
+ /**
815
+ * Output only. Timestamp of the last reboot.
816
+ */
817
+ lastRebootTime?: string | null;
818
+ /**
819
+ * Output only. Timestamp of the last update check.
820
+ */
821
+ lastUpdateCheckTime?: string | null;
822
+ /**
823
+ * Output only. Timestamp of the last successful update.
824
+ */
825
+ lastUpdateTime?: string | null;
826
+ /**
827
+ * Output only. New platform version of the os image being downloaded and applied. It is only set when update status is OS_IMAGE_DOWNLOAD_IN_PROGRESS or OS_UPDATE_NEED_REBOOT. Note this could be a dummy "0.0.0.0" for OS_UPDATE_NEED_REBOOT status for some edge cases, e.g. update engine is restarted without a reboot.
828
+ */
829
+ newPlatformVersion?: string | null;
830
+ /**
831
+ * Output only. New requested platform version from the pending updated kiosk app.
832
+ */
833
+ newRequestedPlatformVersion?: string | null;
834
+ /**
835
+ * Output only. Current state of the os update.
836
+ */
837
+ updateState?: string | null;
838
+ }
839
+ /**
840
+ * Status data for storage.
841
+ */
842
+ export interface Schema$GoogleChromeManagementV1StorageInfo {
843
+ /**
844
+ * The available space for user data storage in the device in bytes.
845
+ */
846
+ availableDiskBytes?: string | null;
847
+ /**
848
+ * The total space for user data storage in the device in bytes.
849
+ */
850
+ totalDiskBytes?: string | null;
851
+ /**
852
+ * Information for disk volumes
853
+ */
854
+ volume?: Schema$GoogleChromeManagementV1StorageInfoDiskVolume[];
855
+ }
856
+ /**
857
+ * Information for disk volumes
858
+ */
859
+ export interface Schema$GoogleChromeManagementV1StorageInfoDiskVolume {
860
+ /**
861
+ * Free storage space in bytes.
862
+ */
863
+ storageFreeBytes?: string | null;
864
+ /**
865
+ * Total storage space in bytes.
866
+ */
867
+ storageTotalBytes?: string | null;
868
+ /**
869
+ * Disk volume id.
870
+ */
871
+ volumeId?: string | null;
872
+ }
873
+ /**
874
+ * Status data for storage.
875
+ */
876
+ export interface Schema$GoogleChromeManagementV1StorageStatusReport {
877
+ /**
878
+ * Output only. Reports on disk
879
+ */
880
+ disk?: Schema$GoogleChromeManagementV1DiskInfo[];
881
+ /**
882
+ * Output only. Timestamp of when the sample was collected on device
883
+ */
884
+ reportTime?: string | null;
885
+ }
886
+ /**
887
+ * Telemetry data collected from a managed device.
888
+ */
889
+ export interface Schema$GoogleChromeManagementV1TelemetryDevice {
890
+ /**
891
+ * Output only. Information on battery specs for the device.
892
+ */
893
+ batteryInfo?: Schema$GoogleChromeManagementV1BatteryInfo[];
894
+ /**
895
+ * Output only. Battery reports collected periodically.
896
+ */
897
+ batteryStatusReport?: Schema$GoogleChromeManagementV1BatteryStatusReport[];
898
+ /**
899
+ * Output only. Information regarding CPU specs for the device.
900
+ */
901
+ cpuInfo?: Schema$GoogleChromeManagementV1CpuInfo[];
902
+ /**
903
+ * Output only. CPU status reports collected periodically.
904
+ */
905
+ cpuStatusReport?: Schema$GoogleChromeManagementV1CpuStatusReport[];
906
+ /**
907
+ * Output only. Google Workspace Customer whose enterprise enrolled the device.
908
+ */
909
+ customer?: string | null;
910
+ /**
911
+ * Output only. The unique Directory API ID of the device. This value is the same as the Admin Console's Directory API ID in the Chrome OS Devices tab
912
+ */
913
+ deviceId?: string | null;
914
+ /**
915
+ * Output only. Contains information regarding Graphic peripherals for the device.
916
+ */
917
+ graphicsInfo?: Schema$GoogleChromeManagementV1GraphicsInfo;
918
+ /**
919
+ * Output only. Graphics reports collected periodically.
920
+ */
921
+ graphicsStatusReport?: Schema$GoogleChromeManagementV1GraphicsStatusReport[];
922
+ /**
923
+ * Output only. Information regarding memory specs for the device.
924
+ */
925
+ memoryInfo?: Schema$GoogleChromeManagementV1MemoryInfo;
926
+ /**
927
+ * Output only. Memory status reports collected periodically.
928
+ */
929
+ memoryStatusReport?: Schema$GoogleChromeManagementV1MemoryStatusReport[];
930
+ /**
931
+ * Output only. Resource name of the device.
932
+ */
933
+ name?: string | null;
934
+ /**
935
+ * Output only. Network specs collected periodically.
936
+ */
937
+ networkStatusReport?: Schema$GoogleChromeManagementV1NetworkStatusReport[];
938
+ /**
939
+ * Output only. Organization unit ID of the device.
940
+ */
941
+ orgUnitId?: string | null;
942
+ /**
943
+ * Output only. Contains relevant information regarding ChromeOS update status.
944
+ */
945
+ osUpdateStatus?: Schema$GoogleChromeManagementV1OsUpdateStatus[];
946
+ /**
947
+ * Output only. Device serial number. This value is the same as the Admin Console's Serial Number in the Chrome OS Devices tab.
948
+ */
949
+ serialNumber?: string | null;
950
+ /**
951
+ * Output only. Information of storage specs for the device.
952
+ */
953
+ storageInfo?: Schema$GoogleChromeManagementV1StorageInfo;
954
+ /**
955
+ * Output only. Storage reports collected periodically.
956
+ */
957
+ storageStatusReport?: Schema$GoogleChromeManagementV1StorageStatusReport[];
958
+ }
474
959
  /**
475
960
  * The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
476
961
  */
@@ -488,15 +973,34 @@ export namespace chromemanagement_v1 {
488
973
  */
489
974
  message?: string | null;
490
975
  }
976
+ /**
977
+ * Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
978
+ */
979
+ export interface Schema$GoogleTypeDate {
980
+ /**
981
+ * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
982
+ */
983
+ day?: number | null;
984
+ /**
985
+ * Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
986
+ */
987
+ month?: number | null;
988
+ /**
989
+ * Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
990
+ */
991
+ year?: number | null;
992
+ }
491
993
 
492
994
  export class Resource$Customers {
493
995
  context: APIRequestContext;
494
996
  apps: Resource$Customers$Apps;
495
997
  reports: Resource$Customers$Reports;
998
+ telemetry: Resource$Customers$Telemetry;
496
999
  constructor(context: APIRequestContext) {
497
1000
  this.context = context;
498
1001
  this.apps = new Resource$Customers$Apps(this.context);
499
1002
  this.reports = new Resource$Customers$Reports(this.context);
1003
+ this.telemetry = new Resource$Customers$Telemetry(this.context);
500
1004
  }
501
1005
  }
502
1006
 
@@ -1751,4 +2255,194 @@ export namespace chromemanagement_v1 {
1751
2255
  */
1752
2256
  pageToken?: string;
1753
2257
  }
2258
+
2259
+ export class Resource$Customers$Telemetry {
2260
+ context: APIRequestContext;
2261
+ devices: Resource$Customers$Telemetry$Devices;
2262
+ constructor(context: APIRequestContext) {
2263
+ this.context = context;
2264
+ this.devices = new Resource$Customers$Telemetry$Devices(this.context);
2265
+ }
2266
+ }
2267
+
2268
+ export class Resource$Customers$Telemetry$Devices {
2269
+ context: APIRequestContext;
2270
+ constructor(context: APIRequestContext) {
2271
+ this.context = context;
2272
+ }
2273
+
2274
+ /**
2275
+ * List all telemetry devices.
2276
+ * @example
2277
+ * ```js
2278
+ * // Before running the sample:
2279
+ * // - Enable the API at:
2280
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
2281
+ * // - Login into gcloud by running:
2282
+ * // `$ gcloud auth application-default login`
2283
+ * // - Install the npm module by running:
2284
+ * // `$ npm install googleapis`
2285
+ *
2286
+ * const {google} = require('googleapis');
2287
+ * const chromemanagement = google.chromemanagement('v1');
2288
+ *
2289
+ * async function main() {
2290
+ * const auth = new google.auth.GoogleAuth({
2291
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2292
+ * scopes: [
2293
+ * 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
2294
+ * ],
2295
+ * });
2296
+ *
2297
+ * // Acquire an auth client, and bind it to all future calls
2298
+ * const authClient = await auth.getClient();
2299
+ * google.options({auth: authClient});
2300
+ *
2301
+ * // Do the magic
2302
+ * const res = await chromemanagement.customers.telemetry.devices.list({
2303
+ * // Optional. Only include resources that match the filter. Supported filter fields: - org_unit_id - serial_number
2304
+ * filter: 'placeholder-value',
2305
+ * // Maximum number of results to return. Default value is 100. Maximum value is 200.
2306
+ * pageSize: 'placeholder-value',
2307
+ * // Token to specify next page in the list.
2308
+ * pageToken: 'placeholder-value',
2309
+ * // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
2310
+ * parent: 'customers/my-customer',
2311
+ * // Required. Read mask to specify which fields to return.
2312
+ * readMask: 'placeholder-value',
2313
+ * });
2314
+ * console.log(res.data);
2315
+ *
2316
+ * // Example response
2317
+ * // {
2318
+ * // "devices": [],
2319
+ * // "nextPageToken": "my_nextPageToken"
2320
+ * // }
2321
+ * }
2322
+ *
2323
+ * main().catch(e => {
2324
+ * console.error(e);
2325
+ * throw e;
2326
+ * });
2327
+ *
2328
+ * ```
2329
+ *
2330
+ * @param params - Parameters for request
2331
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2332
+ * @param callback - Optional callback that handles the response.
2333
+ * @returns A promise if used with async/await, or void if used with a callback.
2334
+ */
2335
+ list(
2336
+ params: Params$Resource$Customers$Telemetry$Devices$List,
2337
+ options: StreamMethodOptions
2338
+ ): GaxiosPromise<Readable>;
2339
+ list(
2340
+ params?: Params$Resource$Customers$Telemetry$Devices$List,
2341
+ options?: MethodOptions
2342
+ ): GaxiosPromise<Schema$GoogleChromeManagementV1ListTelemetryDevicesResponse>;
2343
+ list(
2344
+ params: Params$Resource$Customers$Telemetry$Devices$List,
2345
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
2346
+ callback: BodyResponseCallback<Readable>
2347
+ ): void;
2348
+ list(
2349
+ params: Params$Resource$Customers$Telemetry$Devices$List,
2350
+ options:
2351
+ | MethodOptions
2352
+ | BodyResponseCallback<Schema$GoogleChromeManagementV1ListTelemetryDevicesResponse>,
2353
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementV1ListTelemetryDevicesResponse>
2354
+ ): void;
2355
+ list(
2356
+ params: Params$Resource$Customers$Telemetry$Devices$List,
2357
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementV1ListTelemetryDevicesResponse>
2358
+ ): void;
2359
+ list(
2360
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementV1ListTelemetryDevicesResponse>
2361
+ ): void;
2362
+ list(
2363
+ paramsOrCallback?:
2364
+ | Params$Resource$Customers$Telemetry$Devices$List
2365
+ | BodyResponseCallback<Schema$GoogleChromeManagementV1ListTelemetryDevicesResponse>
2366
+ | BodyResponseCallback<Readable>,
2367
+ optionsOrCallback?:
2368
+ | MethodOptions
2369
+ | StreamMethodOptions
2370
+ | BodyResponseCallback<Schema$GoogleChromeManagementV1ListTelemetryDevicesResponse>
2371
+ | BodyResponseCallback<Readable>,
2372
+ callback?:
2373
+ | BodyResponseCallback<Schema$GoogleChromeManagementV1ListTelemetryDevicesResponse>
2374
+ | BodyResponseCallback<Readable>
2375
+ ):
2376
+ | void
2377
+ | GaxiosPromise<Schema$GoogleChromeManagementV1ListTelemetryDevicesResponse>
2378
+ | GaxiosPromise<Readable> {
2379
+ let params = (paramsOrCallback ||
2380
+ {}) as Params$Resource$Customers$Telemetry$Devices$List;
2381
+ let options = (optionsOrCallback || {}) as MethodOptions;
2382
+
2383
+ if (typeof paramsOrCallback === 'function') {
2384
+ callback = paramsOrCallback;
2385
+ params = {} as Params$Resource$Customers$Telemetry$Devices$List;
2386
+ options = {};
2387
+ }
2388
+
2389
+ if (typeof optionsOrCallback === 'function') {
2390
+ callback = optionsOrCallback;
2391
+ options = {};
2392
+ }
2393
+
2394
+ const rootUrl =
2395
+ options.rootUrl || 'https://chromemanagement.googleapis.com/';
2396
+ const parameters = {
2397
+ options: Object.assign(
2398
+ {
2399
+ url: (rootUrl + '/v1/{+parent}/telemetry/devices').replace(
2400
+ /([^:]\/)\/+/g,
2401
+ '$1'
2402
+ ),
2403
+ method: 'GET',
2404
+ },
2405
+ options
2406
+ ),
2407
+ params,
2408
+ requiredParams: ['parent'],
2409
+ pathParams: ['parent'],
2410
+ context: this.context,
2411
+ };
2412
+ if (callback) {
2413
+ createAPIRequest<Schema$GoogleChromeManagementV1ListTelemetryDevicesResponse>(
2414
+ parameters,
2415
+ callback as BodyResponseCallback<unknown>
2416
+ );
2417
+ } else {
2418
+ return createAPIRequest<Schema$GoogleChromeManagementV1ListTelemetryDevicesResponse>(
2419
+ parameters
2420
+ );
2421
+ }
2422
+ }
2423
+ }
2424
+
2425
+ export interface Params$Resource$Customers$Telemetry$Devices$List
2426
+ extends StandardParameters {
2427
+ /**
2428
+ * Optional. Only include resources that match the filter. Supported filter fields: - org_unit_id - serial_number
2429
+ */
2430
+ filter?: string;
2431
+ /**
2432
+ * Maximum number of results to return. Default value is 100. Maximum value is 200.
2433
+ */
2434
+ pageSize?: number;
2435
+ /**
2436
+ * Token to specify next page in the list.
2437
+ */
2438
+ pageToken?: string;
2439
+ /**
2440
+ * Required. Customer id or "my_customer" to use the customer associated to the account making the request.
2441
+ */
2442
+ parent?: string;
2443
+ /**
2444
+ * Required. Read mask to specify which fields to return.
2445
+ */
2446
+ readMask?: string;
2447
+ }
1754
2448
  }