@googleapis/chromemanagement 2.1.0 → 3.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 +25 -0
- package/build/index.js +4 -3
- package/build/index.js.map +1 -1
- package/build/v1.d.ts +401 -22
- package/build/v1.js +118 -18
- package/build/v1.js.map +1 -1
- package/package.json +5 -5
- package/v1.ts +656 -22
package/v1.ts
CHANGED
|
@@ -224,7 +224,7 @@ export namespace chromemanagement_v1 {
|
|
|
224
224
|
type?: string | null;
|
|
225
225
|
}
|
|
226
226
|
/**
|
|
227
|
-
*
|
|
227
|
+
* Status data for storage. * This field is telemetry information and this will change over time as the device is utilized. * Data for this field is controlled via policy: [ReportDeviceAudioStatus](https://chromeenterprise.google/policies/#ReportDeviceAudioStatus) * Data Collection Frequency: 10 minutes * Default Data Reporting Frequency: 3 hours - Policy Controlled: Yes * Cache: If the device is offline, the collected data is stored locally, and will be reported when the device is next online: No * Reported for affiliated users only: N/A
|
|
228
228
|
*/
|
|
229
229
|
export interface Schema$GoogleChromeManagementV1AudioStatusReport {
|
|
230
230
|
/**
|
|
@@ -257,7 +257,7 @@ export namespace chromemanagement_v1 {
|
|
|
257
257
|
reportTime?: string | null;
|
|
258
258
|
}
|
|
259
259
|
/**
|
|
260
|
-
*
|
|
260
|
+
* Information about the battery. * This field provides device information, which is static and will not change over time. * Data for this field is controlled via policy: [ReportDevicePowerStatus](https://chromeenterprise.google/policies/#ReportDevicePowerStatus) * Data Collection Frequency: Only at Upload * Default Data Reporting Frequency: 3 hours - Policy Controlled: Yes * Cache: If the device is offline, the collected data is stored locally, and will be reported when the device is next online: No * Reported for affiliated users only: N/A
|
|
261
261
|
*/
|
|
262
262
|
export interface Schema$GoogleChromeManagementV1BatteryInfo {
|
|
263
263
|
/**
|
|
@@ -286,7 +286,7 @@ export namespace chromemanagement_v1 {
|
|
|
286
286
|
technology?: string | null;
|
|
287
287
|
}
|
|
288
288
|
/**
|
|
289
|
-
* Sampling data for battery.
|
|
289
|
+
* Sampling data for battery. * This field is telemetry information and this will change over time as the device is utilized. * Data for this field is controlled via policy: [ReportDevicePowerStatus](https://chromeenterprise.google/policies/#ReportDevicePowerStatus) * Data Collection Frequency: Only at Upload * Default Data Reporting Frequency: 3 hours - Policy Controlled: Yes * Cache: If the device is offline, the collected data is stored locally, and will be reported when the device is next online: No * Reported for affiliated users only: N/A
|
|
290
290
|
*/
|
|
291
291
|
export interface Schema$GoogleChromeManagementV1BatterySampleReport {
|
|
292
292
|
/**
|
|
@@ -323,7 +323,7 @@ export namespace chromemanagement_v1 {
|
|
|
323
323
|
voltage?: string | null;
|
|
324
324
|
}
|
|
325
325
|
/**
|
|
326
|
-
* Status data for battery.
|
|
326
|
+
* Status data for battery. * This field is telemetry information and this will change over time as the device is utilized. * Data for this field is controlled via policy: [ReportDevicePowerStatus](https://chromeenterprise.google/policies/#ReportDevicePowerStatus) * Data Collection Frequency: Only at Upload * Default Data Reporting Frequency: 3 hours - Policy Controlled: Yes * Cache: If the device is offline, the collected data is stored locally, and will be reported when the device is next online: No * Reported for affiliated users only: N/A
|
|
327
327
|
*/
|
|
328
328
|
export interface Schema$GoogleChromeManagementV1BatteryStatusReport {
|
|
329
329
|
/**
|
|
@@ -351,6 +351,35 @@ export namespace chromemanagement_v1 {
|
|
|
351
351
|
*/
|
|
352
352
|
serialNumber?: string | null;
|
|
353
353
|
}
|
|
354
|
+
/**
|
|
355
|
+
* Boot performance report of a device. * This field is telemetry information and this will change over time as the device is utilized. * Data for this field is controlled via policy: [ReportDeviceBootMode](https://chromeenterprise.google/policies/#ReportDeviceBootMode) * Data Collection Frequency: On every boot up event * Default Data Reporting Frequency: 3 hours - Policy Controlled: Yes * Cache: If the device is offline, the collected data is stored locally, and will be reported when the device is next online: Yes * Reported for affiliated users only: N/A
|
|
356
|
+
*/
|
|
357
|
+
export interface Schema$GoogleChromeManagementV1BootPerformanceReport {
|
|
358
|
+
/**
|
|
359
|
+
* Total time to boot up.
|
|
360
|
+
*/
|
|
361
|
+
bootUpDuration?: string | null;
|
|
362
|
+
/**
|
|
363
|
+
* The timestamp when power came on.
|
|
364
|
+
*/
|
|
365
|
+
bootUpTime?: string | null;
|
|
366
|
+
/**
|
|
367
|
+
* Timestamp when the report was collected.
|
|
368
|
+
*/
|
|
369
|
+
reportTime?: string | null;
|
|
370
|
+
/**
|
|
371
|
+
* Total time since shutdown start to power off.
|
|
372
|
+
*/
|
|
373
|
+
shutdownDuration?: string | null;
|
|
374
|
+
/**
|
|
375
|
+
* The shutdown reason.
|
|
376
|
+
*/
|
|
377
|
+
shutdownReason?: string | null;
|
|
378
|
+
/**
|
|
379
|
+
* The timestamp when shutdown.
|
|
380
|
+
*/
|
|
381
|
+
shutdownTime?: string | null;
|
|
382
|
+
}
|
|
354
383
|
/**
|
|
355
384
|
* Describes a browser version and its install count.
|
|
356
385
|
*/
|
|
@@ -388,6 +417,10 @@ export namespace chromemanagement_v1 {
|
|
|
388
417
|
* Output only. Whether the app or extension is in a published state in the Chrome Web Store.
|
|
389
418
|
*/
|
|
390
419
|
isCwsHosted?: boolean | null;
|
|
420
|
+
/**
|
|
421
|
+
* Output only. Whether an app supports policy for extensions.
|
|
422
|
+
*/
|
|
423
|
+
isExtensionPolicySupported?: boolean | null;
|
|
391
424
|
/**
|
|
392
425
|
* Output only. Whether the app is only for Kiosk mode on ChromeOS devices
|
|
393
426
|
*/
|
|
@@ -493,6 +526,61 @@ export namespace chromemanagement_v1 {
|
|
|
493
526
|
*/
|
|
494
527
|
totalSize?: number | null;
|
|
495
528
|
}
|
|
529
|
+
/**
|
|
530
|
+
* Response containing a list of devices expiring in each month of a selected time frame. Counts are grouped by model and Auto Update Expiration date.
|
|
531
|
+
*/
|
|
532
|
+
export interface Schema$GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse {
|
|
533
|
+
/**
|
|
534
|
+
* The list of reports sorted by auto update expiration date in ascending order.
|
|
535
|
+
*/
|
|
536
|
+
deviceAueCountReports?: Schema$GoogleChromeManagementV1DeviceAueCountReport[];
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* Response containing counts for devices that need attention.
|
|
540
|
+
*/
|
|
541
|
+
export interface Schema$GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse {
|
|
542
|
+
/**
|
|
543
|
+
* Number of ChromeOS devices have not synced policies in the past 28 days.
|
|
544
|
+
*/
|
|
545
|
+
noRecentPolicySyncCount?: string | null;
|
|
546
|
+
/**
|
|
547
|
+
* Number of ChromeOS devices that have not seen any user activity in the past 28 days.
|
|
548
|
+
*/
|
|
549
|
+
noRecentUserActivityCount?: string | null;
|
|
550
|
+
/**
|
|
551
|
+
* Number of devices whose OS version is not compliant.
|
|
552
|
+
*/
|
|
553
|
+
osVersionNotCompliantCount?: string | null;
|
|
554
|
+
/**
|
|
555
|
+
* Number of devices that are pending an OS update.
|
|
556
|
+
*/
|
|
557
|
+
pendingUpdate?: string | null;
|
|
558
|
+
/**
|
|
559
|
+
* Number of devices that are unable to apply a policy due to an OS version mismatch.
|
|
560
|
+
*/
|
|
561
|
+
unsupportedPolicyCount?: string | null;
|
|
562
|
+
}
|
|
563
|
+
/**
|
|
564
|
+
* Response containing a list of devices with a specific type of hardware specification from the requested hardware type.
|
|
565
|
+
*/
|
|
566
|
+
export interface Schema$GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse {
|
|
567
|
+
/**
|
|
568
|
+
* The DeviceHardwareCountReport for device cpu type (for example Intel(R) Core(TM) i7-10610U CPU @ 1.80GHz).
|
|
569
|
+
*/
|
|
570
|
+
cpuReports?: Schema$GoogleChromeManagementV1DeviceHardwareCountReport[];
|
|
571
|
+
/**
|
|
572
|
+
* The DeviceHardwareCountReport for device memory amount in gigabytes (for example 16).
|
|
573
|
+
*/
|
|
574
|
+
memoryReports?: Schema$GoogleChromeManagementV1DeviceHardwareCountReport[];
|
|
575
|
+
/**
|
|
576
|
+
* The DeviceHardwareCountReport for device model type (for example Acer C7 Chromebook).
|
|
577
|
+
*/
|
|
578
|
+
modelReports?: Schema$GoogleChromeManagementV1DeviceHardwareCountReport[];
|
|
579
|
+
/**
|
|
580
|
+
* The DeviceHardwareCountReport for device storage amount in gigabytes (for example 128).
|
|
581
|
+
*/
|
|
582
|
+
storageReports?: Schema$GoogleChromeManagementV1DeviceHardwareCountReport[];
|
|
583
|
+
}
|
|
496
584
|
/**
|
|
497
585
|
* Response containing requested browser versions details and counts.
|
|
498
586
|
*/
|
|
@@ -528,11 +616,11 @@ export namespace chromemanagement_v1 {
|
|
|
528
616
|
totalSize?: number | null;
|
|
529
617
|
}
|
|
530
618
|
/**
|
|
531
|
-
* CPU
|
|
619
|
+
* CPU specifications for the device * This field provides device information, which is static and will not change over time. * Data for this field is controlled via policy: [ReportDeviceCpuInfo](https://chromeenterprise.google/policies/#ReportDeviceCpuInfo) * Data Collection Frequency: Only at Upload * Default Data Reporting Frequency: 3 hours - Policy Controlled: Yes * Cache: If the device is offline, the collected data is stored locally, and will be reported when the device is next online: No * Reported for affiliated users only: N/A
|
|
532
620
|
*/
|
|
533
621
|
export interface Schema$GoogleChromeManagementV1CpuInfo {
|
|
534
622
|
/**
|
|
535
|
-
* Output only.
|
|
623
|
+
* Output only. Architecture type for the CPU. * This field provides device information, which is static and will not change over time. * Data for this field is controlled via policy: [ReportDeviceCpuInfo](https://chromeenterprise.google/policies/#ReportDeviceCpuInfo) * Data Collection Frequency: Only at Upload * Default Data Reporting Frequency: 3 hours - Policy Controlled: Yes * Cache: If the device is offline, the collected data is stored locally, and will be reported when the device is next online: No * Reported for affiliated users only: N/A
|
|
536
624
|
*/
|
|
537
625
|
architecture?: string | null;
|
|
538
626
|
/**
|
|
@@ -553,7 +641,7 @@ export namespace chromemanagement_v1 {
|
|
|
553
641
|
model?: string | null;
|
|
554
642
|
}
|
|
555
643
|
/**
|
|
556
|
-
*
|
|
644
|
+
* Provides information about the status of the CPU. * This field is telemetry information and this will change over time as the device is utilized. * Data for this field is controlled via policy: [ReportDeviceCpuInfo](https://chromeenterprise.google/policies/#ReportDeviceCpuInfo) * Data Collection Frequency: Every 10 minutes * Default Data Reporting Frequency: 3 hours - Policy Controlled: Yes * Cache: If the device is offline, the collected data is stored locally, and will be reported when the device is next online: No * Reported for affiliated users only: N/A
|
|
557
645
|
*/
|
|
558
646
|
export interface Schema$GoogleChromeManagementV1CpuStatusReport {
|
|
559
647
|
/**
|
|
@@ -574,7 +662,7 @@ export namespace chromemanagement_v1 {
|
|
|
574
662
|
sampleFrequency?: string | null;
|
|
575
663
|
}
|
|
576
664
|
/**
|
|
577
|
-
* CPU temperature of a device. Sampled per CPU core in Celsius
|
|
665
|
+
* CPU temperature of a device. Sampled per CPU core in Celsius. * This field is telemetry information and this will change over time as the device is utilized. * Data for this field is controlled via policy: [ReportDeviceCpuInfo](https://chromeenterprise.google/policies/#ReportDeviceCpuInfo) * Data Collection Frequency: Every 10 minutes * Default Data Reporting Frequency: 3 hours - Policy Controlled: Yes * Cache: If the device is offline, the collected data is stored locally, and will be reported when the device is next online: No * Reported for affiliated users only: N/A
|
|
578
666
|
*/
|
|
579
667
|
export interface Schema$GoogleChromeManagementV1CpuTemperatureInfo {
|
|
580
668
|
/**
|
|
@@ -599,6 +687,44 @@ export namespace chromemanagement_v1 {
|
|
|
599
687
|
*/
|
|
600
688
|
machine?: string | null;
|
|
601
689
|
}
|
|
690
|
+
/**
|
|
691
|
+
* Report for CountChromeDevicesPerAueDateResponse, contains the count of devices of a specific model and auto update expiration range.
|
|
692
|
+
*/
|
|
693
|
+
export interface Schema$GoogleChromeManagementV1DeviceAueCountReport {
|
|
694
|
+
/**
|
|
695
|
+
* Enum value of month corresponding to the auto update expiration date in UTC time zone. If the device is already expired, this field is empty.
|
|
696
|
+
*/
|
|
697
|
+
aueMonth?: string | null;
|
|
698
|
+
/**
|
|
699
|
+
* Int value of year corresponding to the Auto Update Expiration date in UTC time zone. If the device is already expired, this field is empty.
|
|
700
|
+
*/
|
|
701
|
+
aueYear?: string | null;
|
|
702
|
+
/**
|
|
703
|
+
* Count of devices of this model.
|
|
704
|
+
*/
|
|
705
|
+
count?: string | null;
|
|
706
|
+
/**
|
|
707
|
+
* Boolean value for whether or not the device has already expired.
|
|
708
|
+
*/
|
|
709
|
+
expired?: boolean | null;
|
|
710
|
+
/**
|
|
711
|
+
* Public model name of the devices.
|
|
712
|
+
*/
|
|
713
|
+
model?: string | null;
|
|
714
|
+
}
|
|
715
|
+
/**
|
|
716
|
+
* Report for CountChromeDevicesPerHardwareSpecResponse, contains the count of devices with a unique hardware specification.
|
|
717
|
+
*/
|
|
718
|
+
export interface Schema$GoogleChromeManagementV1DeviceHardwareCountReport {
|
|
719
|
+
/**
|
|
720
|
+
* Public name of the hardware specification.
|
|
721
|
+
*/
|
|
722
|
+
bucket?: string | null;
|
|
723
|
+
/**
|
|
724
|
+
* Count of devices with a unique hardware specification.
|
|
725
|
+
*/
|
|
726
|
+
count?: string | null;
|
|
727
|
+
}
|
|
602
728
|
/**
|
|
603
729
|
* Status of the single storage device.
|
|
604
730
|
*/
|
|
@@ -716,7 +842,7 @@ export namespace chromemanagement_v1 {
|
|
|
716
842
|
driverVersion?: string | null;
|
|
717
843
|
}
|
|
718
844
|
/**
|
|
719
|
-
* Information of the graphics subsystem.
|
|
845
|
+
* Information of the graphics subsystem. * This field provides device information, which is static and will not change over time. * Data for this field is controlled via policy: [ReportDeviceGraphicsStatus](https://chromeenterprise.google/policies/#ReportDeviceGraphicsStatus) * Data Collection Frequency: Only at Upload * Default Data Reporting Frequency: 3 hours - Policy Controlled: Yes * Cache: If the device is offline, the collected data is stored locally, and will be reported when the device is next online: No * Reported for affiliated users only: N/A
|
|
720
846
|
*/
|
|
721
847
|
export interface Schema$GoogleChromeManagementV1GraphicsInfo {
|
|
722
848
|
/**
|
|
@@ -725,7 +851,7 @@ export namespace chromemanagement_v1 {
|
|
|
725
851
|
adapterInfo?: Schema$GoogleChromeManagementV1GraphicsAdapterInfo;
|
|
726
852
|
}
|
|
727
853
|
/**
|
|
728
|
-
* Information of the graphics subsystem.
|
|
854
|
+
* Information of the graphics subsystem. * This field is telemetry information and this will change over time as the device is utilized. * Data for this field is controlled via policy: [ReportDeviceGraphicsInfo](https://chromeenterprise.google/policies/#ReportDeviceGraphicsInfo) * Data Collection Frequency: Only at Upload * Default Data Reporting Frequency: 3 hours - Policy Controlled: Yes * Cache: If the device is offline, the collected data is stored locally, and will be reported when the device is next online: No * Reported for affiliated users only: N/A
|
|
729
855
|
*/
|
|
730
856
|
export interface Schema$GoogleChromeManagementV1GraphicsStatusReport {
|
|
731
857
|
/**
|
|
@@ -810,7 +936,7 @@ export namespace chromemanagement_v1 {
|
|
|
810
936
|
nextPageToken?: string | null;
|
|
811
937
|
}
|
|
812
938
|
/**
|
|
813
|
-
* Memory information of a device.
|
|
939
|
+
* Memory information of a device. * This field has both telemetry and device information: - `totalRamBytes` - Device information - `availableRamBytes` - Telemetry information - `totalMemoryEncryption` - Device information * Data for this field is controlled via policy: [ReportDeviceMemoryInfo](https://chromeenterprise.google/policies/#ReportDeviceMemoryInfo) * Data Collection Frequency: - `totalRamBytes` - Only at upload - `availableRamBytes` - Every 10 minutes - `totalMemoryEncryption` - at device startup * Default Data Reporting Frequency: - `totalRamBytes` - 3 hours - `availableRamBytes` - 3 hours - `totalMemoryEncryption` - at device startup - Policy Controlled: Yes * Cache: If the device is offline, the collected data is stored locally, and will be reported when the device is next online: only for `totalMemoryEncryption` * Reported for affiliated users only: N/A
|
|
814
940
|
*/
|
|
815
941
|
export interface Schema$GoogleChromeManagementV1MemoryInfo {
|
|
816
942
|
/**
|
|
@@ -827,7 +953,7 @@ export namespace chromemanagement_v1 {
|
|
|
827
953
|
totalRamBytes?: string | null;
|
|
828
954
|
}
|
|
829
955
|
/**
|
|
830
|
-
* Contains samples of memory status reports.
|
|
956
|
+
* Contains samples of memory status reports. * This field is telemetry information and this will change over time as the device is utilized. * Data for this field is controlled via policy: [ReportDeviceMemoryInfo](https://chromeenterprise.google/policies/#ReportDeviceMemoryInfo) * Data Collection Frequency: Only at upload, SystemRamFreeByes is collected every 10 minutes * Default Data Reporting Frequency: Every 3 hours - Policy Controlled: Yes * Cache: If the device is offline, the collected data is stored locally, and will be reported when the device is next online: No * Reported for affiliated users only: N/A
|
|
831
957
|
*/
|
|
832
958
|
export interface Schema$GoogleChromeManagementV1MemoryStatusReport {
|
|
833
959
|
/**
|
|
@@ -848,7 +974,7 @@ export namespace chromemanagement_v1 {
|
|
|
848
974
|
systemRamFreeBytes?: string | null;
|
|
849
975
|
}
|
|
850
976
|
/**
|
|
851
|
-
*
|
|
977
|
+
* Details about the network device. * This field provides device information, which is static and will not change over time. * Data for this field is controlled via policy: [ReportNetworkDeviceConfiguration](https://chromeenterprise.google/policies/#ReportNetworkDeviceConfiguration) * Data Collection Frequency: At device startup * Default Data Reporting Frequency: At device startup - Policy Controlled: Yes * Cache: If the device is offline, the collected data is stored locally, and will be reported when the device is next online: Yes * Reported for affiliated users only: N/A
|
|
852
978
|
*/
|
|
853
979
|
export interface Schema$GoogleChromeManagementV1NetworkDevice {
|
|
854
980
|
/**
|
|
@@ -890,7 +1016,7 @@ export namespace chromemanagement_v1 {
|
|
|
890
1016
|
reportTime?: string | null;
|
|
891
1017
|
}
|
|
892
1018
|
/**
|
|
893
|
-
* Network
|
|
1019
|
+
* Network device information. * This field provides device information, which is static and will not change over time. * Data for this field is controlled via policy: [ReportNetworkDeviceConfiguration](https://chromeenterprise.google/policies/#ReportNetworkDeviceConfiguration) * Data Collection Frequency: At device startup * Default Data Reporting Frequency: At device startup - Policy Controlled: Yes * Cache: If the device is offline, the collected data is stored locally, and will be reported when the device is next online: Yes * Reported for affiliated users only: N/A
|
|
894
1020
|
*/
|
|
895
1021
|
export interface Schema$GoogleChromeManagementV1NetworkInfo {
|
|
896
1022
|
/**
|
|
@@ -899,7 +1025,7 @@ export namespace chromemanagement_v1 {
|
|
|
899
1025
|
networkDevices?: Schema$GoogleChromeManagementV1NetworkDevice[];
|
|
900
1026
|
}
|
|
901
1027
|
/**
|
|
902
|
-
* State of visible/configured networks.
|
|
1028
|
+
* State of visible/configured networks. * This field is telemetry information and this will change over time as the device is utilized. * Data for this field is controlled via policy: [ReportNetworkStatus](https://chromeenterprise.google/policies/#ReportNetworkStatus) * Data Collection Frequency: 60 minutes * Default Data Reporting Frequency: 3 hours - Policy Controlled: Yes * Cache: If the device is offline, the collected data is stored locally, and will be reported when the device is next online: Yes * Reported for affiliated users only: Yes
|
|
903
1029
|
*/
|
|
904
1030
|
export interface Schema$GoogleChromeManagementV1NetworkStatusReport {
|
|
905
1031
|
/**
|
|
@@ -927,7 +1053,7 @@ export namespace chromemanagement_v1 {
|
|
|
927
1053
|
*/
|
|
928
1054
|
lanIpAddress?: string | null;
|
|
929
1055
|
/**
|
|
930
|
-
* Output only. Receiving bit rate measured in
|
|
1056
|
+
* Output only. Receiving bit rate measured in Megabits per second.
|
|
931
1057
|
*/
|
|
932
1058
|
receivingBitRateMbps?: string | null;
|
|
933
1059
|
/**
|
|
@@ -943,7 +1069,7 @@ export namespace chromemanagement_v1 {
|
|
|
943
1069
|
*/
|
|
944
1070
|
signalStrengthDbm?: number | null;
|
|
945
1071
|
/**
|
|
946
|
-
* Output only. Transmission bit rate measured in
|
|
1072
|
+
* Output only. Transmission bit rate measured in Megabits per second.
|
|
947
1073
|
*/
|
|
948
1074
|
transmissionBitRateMbps?: string | null;
|
|
949
1075
|
/**
|
|
@@ -960,7 +1086,7 @@ export namespace chromemanagement_v1 {
|
|
|
960
1086
|
wifiPowerManagementEnabled?: boolean | null;
|
|
961
1087
|
}
|
|
962
1088
|
/**
|
|
963
|
-
* Contains information regarding the current OS update status.
|
|
1089
|
+
* Contains information regarding the current OS update status. * This field is telemetry information and this will change over time as the device is utilized. * Data for this field is controlled via policy: [ReportDeviceOsUpdateStatus](https://chromeenterprise.google/policies/#ReportDeviceOsUpdateStatus) * Data Collection Frequency: Only at Upload * Default Data Reporting Frequency: 3 hours - Policy Controlled: Yes * Cache: If the device is offline, the collected data is stored locally, and will be reported when the device is next online: No * Reported for affiliated users only: N/A
|
|
964
1090
|
*/
|
|
965
1091
|
export interface Schema$GoogleChromeManagementV1OsUpdateStatus {
|
|
966
1092
|
/**
|
|
@@ -989,7 +1115,7 @@ export namespace chromemanagement_v1 {
|
|
|
989
1115
|
updateState?: string | null;
|
|
990
1116
|
}
|
|
991
1117
|
/**
|
|
992
|
-
* Status data for storage.
|
|
1118
|
+
* Status data for storage. * This field is telemetry information and this will change over time as the device is utilized. * Data for this field is controlled via policy: [ReportDeviceStorageStatus](https://chromeenterprise.google/policies/#ReportDeviceStorageStatus) * Data Collection Frequency: Only at Upload * Default Data Reporting Frequency: 3 hours - Policy Controlled: Yes * Cache: If the device is offline, the collected data is stored locally, and will be reported when the device is next online: No * Reported for affiliated users only: N/A
|
|
993
1119
|
*/
|
|
994
1120
|
export interface Schema$GoogleChromeManagementV1StorageInfo {
|
|
995
1121
|
/**
|
|
@@ -1023,7 +1149,7 @@ export namespace chromemanagement_v1 {
|
|
|
1023
1149
|
volumeId?: string | null;
|
|
1024
1150
|
}
|
|
1025
1151
|
/**
|
|
1026
|
-
* Status data for storage.
|
|
1152
|
+
* Status data for storage. * This field is telemetry information and this will change over time as the device is utilized. * Data for this field is controlled via policy: [ReportDeviceStorageStatus](https://chromeenterprise.google/policies/#ReportDeviceStorageStatus) * Data Collection Frequency: Only at Upload * Default Data Reporting Frequency: 3 hours - Policy Controlled: Yes * Cache: If the device is offline, the collected data is stored locally, and will be reported when the device is next online: No * Reported for affiliated users only: N/A
|
|
1027
1153
|
*/
|
|
1028
1154
|
export interface Schema$GoogleChromeManagementV1StorageStatusReport {
|
|
1029
1155
|
/**
|
|
@@ -1051,6 +1177,10 @@ export namespace chromemanagement_v1 {
|
|
|
1051
1177
|
* Output only. Battery reports collected periodically.
|
|
1052
1178
|
*/
|
|
1053
1179
|
batteryStatusReport?: Schema$GoogleChromeManagementV1BatteryStatusReport[];
|
|
1180
|
+
/**
|
|
1181
|
+
* Output only. Boot performance reports of the device.
|
|
1182
|
+
*/
|
|
1183
|
+
bootPerformanceReport?: Schema$GoogleChromeManagementV1BootPerformanceReport[];
|
|
1054
1184
|
/**
|
|
1055
1185
|
* Output only. Information regarding CPU specs for the device.
|
|
1056
1186
|
*/
|
|
@@ -1125,7 +1255,7 @@ export namespace chromemanagement_v1 {
|
|
|
1125
1255
|
thunderboltInfo?: Schema$GoogleChromeManagementV1ThunderboltInfo[];
|
|
1126
1256
|
}
|
|
1127
1257
|
/**
|
|
1128
|
-
* Thunderbolt bus info.
|
|
1258
|
+
* Thunderbolt bus info. * This field provides device information, which is static and will not change over time. * Data for this field is controlled via policy: [ReportDeviceSecurityStatus](https://chromeenterprise.google/policies/#ReportDeviceSecurityStatus) * Data Collection Frequency: At device startup * Default Data Reporting Frequency: At device startup - Policy Controlled: No * Cache: If the device is offline, the collected data is stored locally, and will be reported when the device is next online: Yes * Reported for affiliated users only: N/A
|
|
1129
1259
|
*/
|
|
1130
1260
|
export interface Schema$GoogleChromeManagementV1ThunderboltInfo {
|
|
1131
1261
|
/**
|
|
@@ -1134,7 +1264,7 @@ export namespace chromemanagement_v1 {
|
|
|
1134
1264
|
securityLevel?: string | null;
|
|
1135
1265
|
}
|
|
1136
1266
|
/**
|
|
1137
|
-
* Memory encryption information of a device.
|
|
1267
|
+
* Memory encryption information of a device. * This field provides device information, which is static and will not change over time. * Data for this field is controlled via policy: [ReportDeviceMemoryInfo](https://chromeenterprise.google/policies/#ReportDeviceMemoryInfo) * Data Collection Frequency: At device startup * Default Data Reporting Frequency: At device startup - Policy Controlled: Yes * Cache: If the device is offline, the collected data is stored locally, and will be reported when the device is next online: Yes * Reported for affiliated users only: N/A
|
|
1138
1268
|
*/
|
|
1139
1269
|
export interface Schema$GoogleChromeManagementV1TotalMemoryEncryptionInfo {
|
|
1140
1270
|
/**
|
|
@@ -1908,6 +2038,460 @@ export namespace chromemanagement_v1 {
|
|
|
1908
2038
|
this.context = context;
|
|
1909
2039
|
}
|
|
1910
2040
|
|
|
2041
|
+
/**
|
|
2042
|
+
* Generate report of the number of devices expiring in each month of the selected time frame. Devices are grouped by auto update expiration date and model. Further information can be found [here](https://support.google.com/chrome/a/answer/10564947).
|
|
2043
|
+
* @example
|
|
2044
|
+
* ```js
|
|
2045
|
+
* // Before running the sample:
|
|
2046
|
+
* // - Enable the API at:
|
|
2047
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
2048
|
+
* // - Login into gcloud by running:
|
|
2049
|
+
* // `$ gcloud auth application-default login`
|
|
2050
|
+
* // - Install the npm module by running:
|
|
2051
|
+
* // `$ npm install googleapis`
|
|
2052
|
+
*
|
|
2053
|
+
* const {google} = require('googleapis');
|
|
2054
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
2055
|
+
*
|
|
2056
|
+
* async function main() {
|
|
2057
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2058
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2059
|
+
* scopes: [
|
|
2060
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
2061
|
+
* ],
|
|
2062
|
+
* });
|
|
2063
|
+
*
|
|
2064
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2065
|
+
* const authClient = await auth.getClient();
|
|
2066
|
+
* google.options({auth: authClient});
|
|
2067
|
+
*
|
|
2068
|
+
* // Do the magic
|
|
2069
|
+
* const res =
|
|
2070
|
+
* await chromemanagement.customers.reports.countChromeDevicesReachingAutoExpirationDate(
|
|
2071
|
+
* {
|
|
2072
|
+
* // Required. The customer ID or "my_customer" prefixed with "customers/".
|
|
2073
|
+
* customer: 'customers/my-customer',
|
|
2074
|
+
* // Optional. Maximum expiration date in format yyyy-mm-dd in UTC timezone. If included returns all devices that have already expired and devices with auto expiration date equal to or earlier than the maximum date.
|
|
2075
|
+
* maxAueDate: 'placeholder-value',
|
|
2076
|
+
* // Optional. Maximum expiration date in format yyyy-mm-dd in UTC timezone. If included returns all devices that have already expired and devices with auto expiration date equal to or later than the minimum date.
|
|
2077
|
+
* minAueDate: 'placeholder-value',
|
|
2078
|
+
* // Optional. The organizational unit ID, if omitted, will return data for all organizational units.
|
|
2079
|
+
* orgUnitId: 'placeholder-value',
|
|
2080
|
+
* }
|
|
2081
|
+
* );
|
|
2082
|
+
* console.log(res.data);
|
|
2083
|
+
*
|
|
2084
|
+
* // Example response
|
|
2085
|
+
* // {
|
|
2086
|
+
* // "deviceAueCountReports": []
|
|
2087
|
+
* // }
|
|
2088
|
+
* }
|
|
2089
|
+
*
|
|
2090
|
+
* main().catch(e => {
|
|
2091
|
+
* console.error(e);
|
|
2092
|
+
* throw e;
|
|
2093
|
+
* });
|
|
2094
|
+
*
|
|
2095
|
+
* ```
|
|
2096
|
+
*
|
|
2097
|
+
* @param params - Parameters for request
|
|
2098
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2099
|
+
* @param callback - Optional callback that handles the response.
|
|
2100
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2101
|
+
*/
|
|
2102
|
+
countChromeDevicesReachingAutoExpirationDate(
|
|
2103
|
+
params: Params$Resource$Customers$Reports$Countchromedevicesreachingautoexpirationdate,
|
|
2104
|
+
options: StreamMethodOptions
|
|
2105
|
+
): GaxiosPromise<Readable>;
|
|
2106
|
+
countChromeDevicesReachingAutoExpirationDate(
|
|
2107
|
+
params?: Params$Resource$Customers$Reports$Countchromedevicesreachingautoexpirationdate,
|
|
2108
|
+
options?: MethodOptions
|
|
2109
|
+
): GaxiosPromise<Schema$GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse>;
|
|
2110
|
+
countChromeDevicesReachingAutoExpirationDate(
|
|
2111
|
+
params: Params$Resource$Customers$Reports$Countchromedevicesreachingautoexpirationdate,
|
|
2112
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
2113
|
+
callback: BodyResponseCallback<Readable>
|
|
2114
|
+
): void;
|
|
2115
|
+
countChromeDevicesReachingAutoExpirationDate(
|
|
2116
|
+
params: Params$Resource$Customers$Reports$Countchromedevicesreachingautoexpirationdate,
|
|
2117
|
+
options:
|
|
2118
|
+
| MethodOptions
|
|
2119
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse>,
|
|
2120
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse>
|
|
2121
|
+
): void;
|
|
2122
|
+
countChromeDevicesReachingAutoExpirationDate(
|
|
2123
|
+
params: Params$Resource$Customers$Reports$Countchromedevicesreachingautoexpirationdate,
|
|
2124
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse>
|
|
2125
|
+
): void;
|
|
2126
|
+
countChromeDevicesReachingAutoExpirationDate(
|
|
2127
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse>
|
|
2128
|
+
): void;
|
|
2129
|
+
countChromeDevicesReachingAutoExpirationDate(
|
|
2130
|
+
paramsOrCallback?:
|
|
2131
|
+
| Params$Resource$Customers$Reports$Countchromedevicesreachingautoexpirationdate
|
|
2132
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse>
|
|
2133
|
+
| BodyResponseCallback<Readable>,
|
|
2134
|
+
optionsOrCallback?:
|
|
2135
|
+
| MethodOptions
|
|
2136
|
+
| StreamMethodOptions
|
|
2137
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse>
|
|
2138
|
+
| BodyResponseCallback<Readable>,
|
|
2139
|
+
callback?:
|
|
2140
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse>
|
|
2141
|
+
| BodyResponseCallback<Readable>
|
|
2142
|
+
):
|
|
2143
|
+
| void
|
|
2144
|
+
| GaxiosPromise<Schema$GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse>
|
|
2145
|
+
| GaxiosPromise<Readable> {
|
|
2146
|
+
let params = (paramsOrCallback ||
|
|
2147
|
+
{}) as Params$Resource$Customers$Reports$Countchromedevicesreachingautoexpirationdate;
|
|
2148
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2149
|
+
|
|
2150
|
+
if (typeof paramsOrCallback === 'function') {
|
|
2151
|
+
callback = paramsOrCallback;
|
|
2152
|
+
params =
|
|
2153
|
+
{} as Params$Resource$Customers$Reports$Countchromedevicesreachingautoexpirationdate;
|
|
2154
|
+
options = {};
|
|
2155
|
+
}
|
|
2156
|
+
|
|
2157
|
+
if (typeof optionsOrCallback === 'function') {
|
|
2158
|
+
callback = optionsOrCallback;
|
|
2159
|
+
options = {};
|
|
2160
|
+
}
|
|
2161
|
+
|
|
2162
|
+
const rootUrl =
|
|
2163
|
+
options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
2164
|
+
const parameters = {
|
|
2165
|
+
options: Object.assign(
|
|
2166
|
+
{
|
|
2167
|
+
url: (
|
|
2168
|
+
rootUrl +
|
|
2169
|
+
'/v1/{+customer}/reports:countChromeDevicesReachingAutoExpirationDate'
|
|
2170
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
2171
|
+
method: 'GET',
|
|
2172
|
+
},
|
|
2173
|
+
options
|
|
2174
|
+
),
|
|
2175
|
+
params,
|
|
2176
|
+
requiredParams: ['customer'],
|
|
2177
|
+
pathParams: ['customer'],
|
|
2178
|
+
context: this.context,
|
|
2179
|
+
};
|
|
2180
|
+
if (callback) {
|
|
2181
|
+
createAPIRequest<Schema$GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse>(
|
|
2182
|
+
parameters,
|
|
2183
|
+
callback as BodyResponseCallback<unknown>
|
|
2184
|
+
);
|
|
2185
|
+
} else {
|
|
2186
|
+
return createAPIRequest<Schema$GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse>(
|
|
2187
|
+
parameters
|
|
2188
|
+
);
|
|
2189
|
+
}
|
|
2190
|
+
}
|
|
2191
|
+
|
|
2192
|
+
/**
|
|
2193
|
+
* Counts of ChromeOS devices that have not synced policies or have lacked user activity in the past 28 days, are out of date, or are not complaint. Further information can be found here https://support.google.com/chrome/a/answer/10564947
|
|
2194
|
+
* @example
|
|
2195
|
+
* ```js
|
|
2196
|
+
* // Before running the sample:
|
|
2197
|
+
* // - Enable the API at:
|
|
2198
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
2199
|
+
* // - Login into gcloud by running:
|
|
2200
|
+
* // `$ gcloud auth application-default login`
|
|
2201
|
+
* // - Install the npm module by running:
|
|
2202
|
+
* // `$ npm install googleapis`
|
|
2203
|
+
*
|
|
2204
|
+
* const {google} = require('googleapis');
|
|
2205
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
2206
|
+
*
|
|
2207
|
+
* async function main() {
|
|
2208
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2209
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2210
|
+
* scopes: [
|
|
2211
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
2212
|
+
* ],
|
|
2213
|
+
* });
|
|
2214
|
+
*
|
|
2215
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2216
|
+
* const authClient = await auth.getClient();
|
|
2217
|
+
* google.options({auth: authClient});
|
|
2218
|
+
*
|
|
2219
|
+
* // Do the magic
|
|
2220
|
+
* const res =
|
|
2221
|
+
* await chromemanagement.customers.reports.countChromeDevicesThatNeedAttention(
|
|
2222
|
+
* {
|
|
2223
|
+
* // Required. The customer ID or "my_customer" prefixed with "customers/".
|
|
2224
|
+
* customer: 'customers/my-customer',
|
|
2225
|
+
* // Optional. The ID of the organizational unit. If omitted, all data will be returned.
|
|
2226
|
+
* orgUnitId: 'placeholder-value',
|
|
2227
|
+
* // Required. Mask of the fields that should be populated in the returned report.
|
|
2228
|
+
* readMask: 'placeholder-value',
|
|
2229
|
+
* }
|
|
2230
|
+
* );
|
|
2231
|
+
* console.log(res.data);
|
|
2232
|
+
*
|
|
2233
|
+
* // Example response
|
|
2234
|
+
* // {
|
|
2235
|
+
* // "noRecentPolicySyncCount": "my_noRecentPolicySyncCount",
|
|
2236
|
+
* // "noRecentUserActivityCount": "my_noRecentUserActivityCount",
|
|
2237
|
+
* // "osVersionNotCompliantCount": "my_osVersionNotCompliantCount",
|
|
2238
|
+
* // "pendingUpdate": "my_pendingUpdate",
|
|
2239
|
+
* // "unsupportedPolicyCount": "my_unsupportedPolicyCount"
|
|
2240
|
+
* // }
|
|
2241
|
+
* }
|
|
2242
|
+
*
|
|
2243
|
+
* main().catch(e => {
|
|
2244
|
+
* console.error(e);
|
|
2245
|
+
* throw e;
|
|
2246
|
+
* });
|
|
2247
|
+
*
|
|
2248
|
+
* ```
|
|
2249
|
+
*
|
|
2250
|
+
* @param params - Parameters for request
|
|
2251
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2252
|
+
* @param callback - Optional callback that handles the response.
|
|
2253
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2254
|
+
*/
|
|
2255
|
+
countChromeDevicesThatNeedAttention(
|
|
2256
|
+
params: Params$Resource$Customers$Reports$Countchromedevicesthatneedattention,
|
|
2257
|
+
options: StreamMethodOptions
|
|
2258
|
+
): GaxiosPromise<Readable>;
|
|
2259
|
+
countChromeDevicesThatNeedAttention(
|
|
2260
|
+
params?: Params$Resource$Customers$Reports$Countchromedevicesthatneedattention,
|
|
2261
|
+
options?: MethodOptions
|
|
2262
|
+
): GaxiosPromise<Schema$GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse>;
|
|
2263
|
+
countChromeDevicesThatNeedAttention(
|
|
2264
|
+
params: Params$Resource$Customers$Reports$Countchromedevicesthatneedattention,
|
|
2265
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
2266
|
+
callback: BodyResponseCallback<Readable>
|
|
2267
|
+
): void;
|
|
2268
|
+
countChromeDevicesThatNeedAttention(
|
|
2269
|
+
params: Params$Resource$Customers$Reports$Countchromedevicesthatneedattention,
|
|
2270
|
+
options:
|
|
2271
|
+
| MethodOptions
|
|
2272
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse>,
|
|
2273
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse>
|
|
2274
|
+
): void;
|
|
2275
|
+
countChromeDevicesThatNeedAttention(
|
|
2276
|
+
params: Params$Resource$Customers$Reports$Countchromedevicesthatneedattention,
|
|
2277
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse>
|
|
2278
|
+
): void;
|
|
2279
|
+
countChromeDevicesThatNeedAttention(
|
|
2280
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse>
|
|
2281
|
+
): void;
|
|
2282
|
+
countChromeDevicesThatNeedAttention(
|
|
2283
|
+
paramsOrCallback?:
|
|
2284
|
+
| Params$Resource$Customers$Reports$Countchromedevicesthatneedattention
|
|
2285
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse>
|
|
2286
|
+
| BodyResponseCallback<Readable>,
|
|
2287
|
+
optionsOrCallback?:
|
|
2288
|
+
| MethodOptions
|
|
2289
|
+
| StreamMethodOptions
|
|
2290
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse>
|
|
2291
|
+
| BodyResponseCallback<Readable>,
|
|
2292
|
+
callback?:
|
|
2293
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse>
|
|
2294
|
+
| BodyResponseCallback<Readable>
|
|
2295
|
+
):
|
|
2296
|
+
| void
|
|
2297
|
+
| GaxiosPromise<Schema$GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse>
|
|
2298
|
+
| GaxiosPromise<Readable> {
|
|
2299
|
+
let params = (paramsOrCallback ||
|
|
2300
|
+
{}) as Params$Resource$Customers$Reports$Countchromedevicesthatneedattention;
|
|
2301
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2302
|
+
|
|
2303
|
+
if (typeof paramsOrCallback === 'function') {
|
|
2304
|
+
callback = paramsOrCallback;
|
|
2305
|
+
params =
|
|
2306
|
+
{} as Params$Resource$Customers$Reports$Countchromedevicesthatneedattention;
|
|
2307
|
+
options = {};
|
|
2308
|
+
}
|
|
2309
|
+
|
|
2310
|
+
if (typeof optionsOrCallback === 'function') {
|
|
2311
|
+
callback = optionsOrCallback;
|
|
2312
|
+
options = {};
|
|
2313
|
+
}
|
|
2314
|
+
|
|
2315
|
+
const rootUrl =
|
|
2316
|
+
options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
2317
|
+
const parameters = {
|
|
2318
|
+
options: Object.assign(
|
|
2319
|
+
{
|
|
2320
|
+
url: (
|
|
2321
|
+
rootUrl +
|
|
2322
|
+
'/v1/{+customer}/reports:countChromeDevicesThatNeedAttention'
|
|
2323
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
2324
|
+
method: 'GET',
|
|
2325
|
+
},
|
|
2326
|
+
options
|
|
2327
|
+
),
|
|
2328
|
+
params,
|
|
2329
|
+
requiredParams: ['customer'],
|
|
2330
|
+
pathParams: ['customer'],
|
|
2331
|
+
context: this.context,
|
|
2332
|
+
};
|
|
2333
|
+
if (callback) {
|
|
2334
|
+
createAPIRequest<Schema$GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse>(
|
|
2335
|
+
parameters,
|
|
2336
|
+
callback as BodyResponseCallback<unknown>
|
|
2337
|
+
);
|
|
2338
|
+
} else {
|
|
2339
|
+
return createAPIRequest<Schema$GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse>(
|
|
2340
|
+
parameters
|
|
2341
|
+
);
|
|
2342
|
+
}
|
|
2343
|
+
}
|
|
2344
|
+
|
|
2345
|
+
/**
|
|
2346
|
+
* Counts of devices with a specific hardware specification from the requested hardware type (for example model name, processor type). Further information can be found here https://support.google.com/chrome/a/answer/10564947
|
|
2347
|
+
* @example
|
|
2348
|
+
* ```js
|
|
2349
|
+
* // Before running the sample:
|
|
2350
|
+
* // - Enable the API at:
|
|
2351
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
2352
|
+
* // - Login into gcloud by running:
|
|
2353
|
+
* // `$ gcloud auth application-default login`
|
|
2354
|
+
* // - Install the npm module by running:
|
|
2355
|
+
* // `$ npm install googleapis`
|
|
2356
|
+
*
|
|
2357
|
+
* const {google} = require('googleapis');
|
|
2358
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
2359
|
+
*
|
|
2360
|
+
* async function main() {
|
|
2361
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2362
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2363
|
+
* scopes: [
|
|
2364
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
2365
|
+
* ],
|
|
2366
|
+
* });
|
|
2367
|
+
*
|
|
2368
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2369
|
+
* const authClient = await auth.getClient();
|
|
2370
|
+
* google.options({auth: authClient});
|
|
2371
|
+
*
|
|
2372
|
+
* // Do the magic
|
|
2373
|
+
* const res =
|
|
2374
|
+
* await chromemanagement.customers.reports.countChromeHardwareFleetDevices({
|
|
2375
|
+
* // Required. The customer ID or "my_customer".
|
|
2376
|
+
* customer: 'customers/my-customer',
|
|
2377
|
+
* // Optional. The ID of the organizational unit. If omitted, all data will be returned.
|
|
2378
|
+
* orgUnitId: 'placeholder-value',
|
|
2379
|
+
* // Required. Mask of the fields that should be populated in the returned report.
|
|
2380
|
+
* readMask: 'placeholder-value',
|
|
2381
|
+
* });
|
|
2382
|
+
* console.log(res.data);
|
|
2383
|
+
*
|
|
2384
|
+
* // Example response
|
|
2385
|
+
* // {
|
|
2386
|
+
* // "cpuReports": [],
|
|
2387
|
+
* // "memoryReports": [],
|
|
2388
|
+
* // "modelReports": [],
|
|
2389
|
+
* // "storageReports": []
|
|
2390
|
+
* // }
|
|
2391
|
+
* }
|
|
2392
|
+
*
|
|
2393
|
+
* main().catch(e => {
|
|
2394
|
+
* console.error(e);
|
|
2395
|
+
* throw e;
|
|
2396
|
+
* });
|
|
2397
|
+
*
|
|
2398
|
+
* ```
|
|
2399
|
+
*
|
|
2400
|
+
* @param params - Parameters for request
|
|
2401
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2402
|
+
* @param callback - Optional callback that handles the response.
|
|
2403
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2404
|
+
*/
|
|
2405
|
+
countChromeHardwareFleetDevices(
|
|
2406
|
+
params: Params$Resource$Customers$Reports$Countchromehardwarefleetdevices,
|
|
2407
|
+
options: StreamMethodOptions
|
|
2408
|
+
): GaxiosPromise<Readable>;
|
|
2409
|
+
countChromeHardwareFleetDevices(
|
|
2410
|
+
params?: Params$Resource$Customers$Reports$Countchromehardwarefleetdevices,
|
|
2411
|
+
options?: MethodOptions
|
|
2412
|
+
): GaxiosPromise<Schema$GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse>;
|
|
2413
|
+
countChromeHardwareFleetDevices(
|
|
2414
|
+
params: Params$Resource$Customers$Reports$Countchromehardwarefleetdevices,
|
|
2415
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
2416
|
+
callback: BodyResponseCallback<Readable>
|
|
2417
|
+
): void;
|
|
2418
|
+
countChromeHardwareFleetDevices(
|
|
2419
|
+
params: Params$Resource$Customers$Reports$Countchromehardwarefleetdevices,
|
|
2420
|
+
options:
|
|
2421
|
+
| MethodOptions
|
|
2422
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse>,
|
|
2423
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse>
|
|
2424
|
+
): void;
|
|
2425
|
+
countChromeHardwareFleetDevices(
|
|
2426
|
+
params: Params$Resource$Customers$Reports$Countchromehardwarefleetdevices,
|
|
2427
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse>
|
|
2428
|
+
): void;
|
|
2429
|
+
countChromeHardwareFleetDevices(
|
|
2430
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse>
|
|
2431
|
+
): void;
|
|
2432
|
+
countChromeHardwareFleetDevices(
|
|
2433
|
+
paramsOrCallback?:
|
|
2434
|
+
| Params$Resource$Customers$Reports$Countchromehardwarefleetdevices
|
|
2435
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse>
|
|
2436
|
+
| BodyResponseCallback<Readable>,
|
|
2437
|
+
optionsOrCallback?:
|
|
2438
|
+
| MethodOptions
|
|
2439
|
+
| StreamMethodOptions
|
|
2440
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse>
|
|
2441
|
+
| BodyResponseCallback<Readable>,
|
|
2442
|
+
callback?:
|
|
2443
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse>
|
|
2444
|
+
| BodyResponseCallback<Readable>
|
|
2445
|
+
):
|
|
2446
|
+
| void
|
|
2447
|
+
| GaxiosPromise<Schema$GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse>
|
|
2448
|
+
| GaxiosPromise<Readable> {
|
|
2449
|
+
let params = (paramsOrCallback ||
|
|
2450
|
+
{}) as Params$Resource$Customers$Reports$Countchromehardwarefleetdevices;
|
|
2451
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2452
|
+
|
|
2453
|
+
if (typeof paramsOrCallback === 'function') {
|
|
2454
|
+
callback = paramsOrCallback;
|
|
2455
|
+
params =
|
|
2456
|
+
{} as Params$Resource$Customers$Reports$Countchromehardwarefleetdevices;
|
|
2457
|
+
options = {};
|
|
2458
|
+
}
|
|
2459
|
+
|
|
2460
|
+
if (typeof optionsOrCallback === 'function') {
|
|
2461
|
+
callback = optionsOrCallback;
|
|
2462
|
+
options = {};
|
|
2463
|
+
}
|
|
2464
|
+
|
|
2465
|
+
const rootUrl =
|
|
2466
|
+
options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
2467
|
+
const parameters = {
|
|
2468
|
+
options: Object.assign(
|
|
2469
|
+
{
|
|
2470
|
+
url: (
|
|
2471
|
+
rootUrl +
|
|
2472
|
+
'/v1/{+customer}/reports:countChromeHardwareFleetDevices'
|
|
2473
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
2474
|
+
method: 'GET',
|
|
2475
|
+
},
|
|
2476
|
+
options
|
|
2477
|
+
),
|
|
2478
|
+
params,
|
|
2479
|
+
requiredParams: ['customer'],
|
|
2480
|
+
pathParams: ['customer'],
|
|
2481
|
+
context: this.context,
|
|
2482
|
+
};
|
|
2483
|
+
if (callback) {
|
|
2484
|
+
createAPIRequest<Schema$GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse>(
|
|
2485
|
+
parameters,
|
|
2486
|
+
callback as BodyResponseCallback<unknown>
|
|
2487
|
+
);
|
|
2488
|
+
} else {
|
|
2489
|
+
return createAPIRequest<Schema$GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse>(
|
|
2490
|
+
parameters
|
|
2491
|
+
);
|
|
2492
|
+
}
|
|
2493
|
+
}
|
|
2494
|
+
|
|
1911
2495
|
/**
|
|
1912
2496
|
* Generate report of installed Chrome versions.
|
|
1913
2497
|
* @example
|
|
@@ -2368,6 +2952,55 @@ export namespace chromemanagement_v1 {
|
|
|
2368
2952
|
}
|
|
2369
2953
|
}
|
|
2370
2954
|
|
|
2955
|
+
export interface Params$Resource$Customers$Reports$Countchromedevicesreachingautoexpirationdate
|
|
2956
|
+
extends StandardParameters {
|
|
2957
|
+
/**
|
|
2958
|
+
* Required. The customer ID or "my_customer" prefixed with "customers/".
|
|
2959
|
+
*/
|
|
2960
|
+
customer?: string;
|
|
2961
|
+
/**
|
|
2962
|
+
* Optional. Maximum expiration date in format yyyy-mm-dd in UTC timezone. If included returns all devices that have already expired and devices with auto expiration date equal to or earlier than the maximum date.
|
|
2963
|
+
*/
|
|
2964
|
+
maxAueDate?: string;
|
|
2965
|
+
/**
|
|
2966
|
+
* Optional. Maximum expiration date in format yyyy-mm-dd in UTC timezone. If included returns all devices that have already expired and devices with auto expiration date equal to or later than the minimum date.
|
|
2967
|
+
*/
|
|
2968
|
+
minAueDate?: string;
|
|
2969
|
+
/**
|
|
2970
|
+
* Optional. The organizational unit ID, if omitted, will return data for all organizational units.
|
|
2971
|
+
*/
|
|
2972
|
+
orgUnitId?: string;
|
|
2973
|
+
}
|
|
2974
|
+
export interface Params$Resource$Customers$Reports$Countchromedevicesthatneedattention
|
|
2975
|
+
extends StandardParameters {
|
|
2976
|
+
/**
|
|
2977
|
+
* Required. The customer ID or "my_customer" prefixed with "customers/".
|
|
2978
|
+
*/
|
|
2979
|
+
customer?: string;
|
|
2980
|
+
/**
|
|
2981
|
+
* Optional. The ID of the organizational unit. If omitted, all data will be returned.
|
|
2982
|
+
*/
|
|
2983
|
+
orgUnitId?: string;
|
|
2984
|
+
/**
|
|
2985
|
+
* Required. Mask of the fields that should be populated in the returned report.
|
|
2986
|
+
*/
|
|
2987
|
+
readMask?: string;
|
|
2988
|
+
}
|
|
2989
|
+
export interface Params$Resource$Customers$Reports$Countchromehardwarefleetdevices
|
|
2990
|
+
extends StandardParameters {
|
|
2991
|
+
/**
|
|
2992
|
+
* Required. The customer ID or "my_customer".
|
|
2993
|
+
*/
|
|
2994
|
+
customer?: string;
|
|
2995
|
+
/**
|
|
2996
|
+
* Optional. The ID of the organizational unit. If omitted, all data will be returned.
|
|
2997
|
+
*/
|
|
2998
|
+
orgUnitId?: string;
|
|
2999
|
+
/**
|
|
3000
|
+
* Required. Mask of the fields that should be populated in the returned report.
|
|
3001
|
+
*/
|
|
3002
|
+
readMask?: string;
|
|
3003
|
+
}
|
|
2371
3004
|
export interface Params$Resource$Customers$Reports$Countchromeversions
|
|
2372
3005
|
extends StandardParameters {
|
|
2373
3006
|
/**
|
|
@@ -2510,6 +3143,7 @@ export namespace chromemanagement_v1 {
|
|
|
2510
3143
|
* // "audioStatusReport": [],
|
|
2511
3144
|
* // "batteryInfo": [],
|
|
2512
3145
|
* // "batteryStatusReport": [],
|
|
3146
|
+
* // "bootPerformanceReport": [],
|
|
2513
3147
|
* // "cpuInfo": [],
|
|
2514
3148
|
* // "cpuStatusReport": [],
|
|
2515
3149
|
* // "customer": "my_customer",
|