@googleapis/chromemanagement 2.0.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 +39 -0
- package/build/index.js +4 -3
- package/build/index.js.map +1 -1
- package/build/v1.d.ts +553 -17
- package/build/v1.js +118 -19
- package/build/v1.js.map +1 -1
- package/package.json +5 -5
- package/v1.ts +808 -18
package/v1.ts
CHANGED
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
// limitations under the License.
|
|
13
13
|
|
|
14
14
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
15
|
-
/* eslint-disable @typescript-eslint/class-name-casing */
|
|
16
15
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
17
16
|
/* eslint-disable @typescript-eslint/no-empty-interface */
|
|
18
17
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
@@ -225,7 +224,7 @@ export namespace chromemanagement_v1 {
|
|
|
225
224
|
type?: string | null;
|
|
226
225
|
}
|
|
227
226
|
/**
|
|
228
|
-
*
|
|
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
|
|
229
228
|
*/
|
|
230
229
|
export interface Schema$GoogleChromeManagementV1AudioStatusReport {
|
|
231
230
|
/**
|
|
@@ -258,7 +257,7 @@ export namespace chromemanagement_v1 {
|
|
|
258
257
|
reportTime?: string | null;
|
|
259
258
|
}
|
|
260
259
|
/**
|
|
261
|
-
*
|
|
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
|
|
262
261
|
*/
|
|
263
262
|
export interface Schema$GoogleChromeManagementV1BatteryInfo {
|
|
264
263
|
/**
|
|
@@ -287,7 +286,7 @@ export namespace chromemanagement_v1 {
|
|
|
287
286
|
technology?: string | null;
|
|
288
287
|
}
|
|
289
288
|
/**
|
|
290
|
-
* 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
|
|
291
290
|
*/
|
|
292
291
|
export interface Schema$GoogleChromeManagementV1BatterySampleReport {
|
|
293
292
|
/**
|
|
@@ -324,7 +323,7 @@ export namespace chromemanagement_v1 {
|
|
|
324
323
|
voltage?: string | null;
|
|
325
324
|
}
|
|
326
325
|
/**
|
|
327
|
-
* 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
|
|
328
327
|
*/
|
|
329
328
|
export interface Schema$GoogleChromeManagementV1BatteryStatusReport {
|
|
330
329
|
/**
|
|
@@ -352,6 +351,35 @@ export namespace chromemanagement_v1 {
|
|
|
352
351
|
*/
|
|
353
352
|
serialNumber?: string | null;
|
|
354
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
|
+
}
|
|
355
383
|
/**
|
|
356
384
|
* Describes a browser version and its install count.
|
|
357
385
|
*/
|
|
@@ -389,6 +417,10 @@ export namespace chromemanagement_v1 {
|
|
|
389
417
|
* Output only. Whether the app or extension is in a published state in the Chrome Web Store.
|
|
390
418
|
*/
|
|
391
419
|
isCwsHosted?: boolean | null;
|
|
420
|
+
/**
|
|
421
|
+
* Output only. Whether an app supports policy for extensions.
|
|
422
|
+
*/
|
|
423
|
+
isExtensionPolicySupported?: boolean | null;
|
|
392
424
|
/**
|
|
393
425
|
* Output only. Whether the app is only for Kiosk mode on ChromeOS devices
|
|
394
426
|
*/
|
|
@@ -494,6 +526,61 @@ export namespace chromemanagement_v1 {
|
|
|
494
526
|
*/
|
|
495
527
|
totalSize?: number | null;
|
|
496
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
|
+
}
|
|
497
584
|
/**
|
|
498
585
|
* Response containing requested browser versions details and counts.
|
|
499
586
|
*/
|
|
@@ -529,13 +616,21 @@ export namespace chromemanagement_v1 {
|
|
|
529
616
|
totalSize?: number | null;
|
|
530
617
|
}
|
|
531
618
|
/**
|
|
532
|
-
* 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
|
|
533
620
|
*/
|
|
534
621
|
export interface Schema$GoogleChromeManagementV1CpuInfo {
|
|
535
622
|
/**
|
|
536
|
-
* 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
|
|
537
624
|
*/
|
|
538
625
|
architecture?: string | null;
|
|
626
|
+
/**
|
|
627
|
+
* Output only. Whether keylocker is configured.`TRUE` = Enabled; `FALSE` = disabled. Only reported if keylockerSupported = `TRUE`.
|
|
628
|
+
*/
|
|
629
|
+
keylockerConfigured?: boolean | null;
|
|
630
|
+
/**
|
|
631
|
+
* Output only. Whether keylocker is supported.
|
|
632
|
+
*/
|
|
633
|
+
keylockerSupported?: boolean | null;
|
|
539
634
|
/**
|
|
540
635
|
* Output only. The max CPU clock speed in kHz.
|
|
541
636
|
*/
|
|
@@ -546,7 +641,7 @@ export namespace chromemanagement_v1 {
|
|
|
546
641
|
model?: string | null;
|
|
547
642
|
}
|
|
548
643
|
/**
|
|
549
|
-
*
|
|
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
|
|
550
645
|
*/
|
|
551
646
|
export interface Schema$GoogleChromeManagementV1CpuStatusReport {
|
|
552
647
|
/**
|
|
@@ -567,7 +662,7 @@ export namespace chromemanagement_v1 {
|
|
|
567
662
|
sampleFrequency?: string | null;
|
|
568
663
|
}
|
|
569
664
|
/**
|
|
570
|
-
* 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
|
|
571
666
|
*/
|
|
572
667
|
export interface Schema$GoogleChromeManagementV1CpuTemperatureInfo {
|
|
573
668
|
/**
|
|
@@ -592,6 +687,44 @@ export namespace chromemanagement_v1 {
|
|
|
592
687
|
*/
|
|
593
688
|
machine?: string | null;
|
|
594
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
|
+
}
|
|
595
728
|
/**
|
|
596
729
|
* Status of the single storage device.
|
|
597
730
|
*/
|
|
@@ -709,7 +842,7 @@ export namespace chromemanagement_v1 {
|
|
|
709
842
|
driverVersion?: string | null;
|
|
710
843
|
}
|
|
711
844
|
/**
|
|
712
|
-
* 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
|
|
713
846
|
*/
|
|
714
847
|
export interface Schema$GoogleChromeManagementV1GraphicsInfo {
|
|
715
848
|
/**
|
|
@@ -718,7 +851,7 @@ export namespace chromemanagement_v1 {
|
|
|
718
851
|
adapterInfo?: Schema$GoogleChromeManagementV1GraphicsAdapterInfo;
|
|
719
852
|
}
|
|
720
853
|
/**
|
|
721
|
-
* 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
|
|
722
855
|
*/
|
|
723
856
|
export interface Schema$GoogleChromeManagementV1GraphicsStatusReport {
|
|
724
857
|
/**
|
|
@@ -730,6 +863,19 @@ export namespace chromemanagement_v1 {
|
|
|
730
863
|
*/
|
|
731
864
|
reportTime?: string | null;
|
|
732
865
|
}
|
|
866
|
+
/**
|
|
867
|
+
* Data that describes the result of the HTTPS latency diagnostics routine, with the HTTPS requests issued to Google websites.
|
|
868
|
+
*/
|
|
869
|
+
export interface Schema$GoogleChromeManagementV1HttpsLatencyRoutineData {
|
|
870
|
+
/**
|
|
871
|
+
* Output only. HTTPS latency if routine succeeded or failed because of HIGH_LATENCY or VERY_HIGH_LATENCY.
|
|
872
|
+
*/
|
|
873
|
+
latency?: string | null;
|
|
874
|
+
/**
|
|
875
|
+
* Output only. HTTPS latency routine problem if a problem occurred.
|
|
876
|
+
*/
|
|
877
|
+
problem?: string | null;
|
|
878
|
+
}
|
|
733
879
|
/**
|
|
734
880
|
* Describes an installed app.
|
|
735
881
|
*/
|
|
@@ -790,20 +936,24 @@ export namespace chromemanagement_v1 {
|
|
|
790
936
|
nextPageToken?: string | null;
|
|
791
937
|
}
|
|
792
938
|
/**
|
|
793
|
-
* 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
|
|
794
940
|
*/
|
|
795
941
|
export interface Schema$GoogleChromeManagementV1MemoryInfo {
|
|
796
942
|
/**
|
|
797
943
|
* Output only. Amount of available RAM in bytes.
|
|
798
944
|
*/
|
|
799
945
|
availableRamBytes?: string | null;
|
|
946
|
+
/**
|
|
947
|
+
* Output only. Total memory encryption info for the device.
|
|
948
|
+
*/
|
|
949
|
+
totalMemoryEncryption?: Schema$GoogleChromeManagementV1TotalMemoryEncryptionInfo;
|
|
800
950
|
/**
|
|
801
951
|
* Output only. Total RAM in bytes.
|
|
802
952
|
*/
|
|
803
953
|
totalRamBytes?: string | null;
|
|
804
954
|
}
|
|
805
955
|
/**
|
|
806
|
-
* 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
|
|
807
957
|
*/
|
|
808
958
|
export interface Schema$GoogleChromeManagementV1MemoryStatusReport {
|
|
809
959
|
/**
|
|
@@ -824,17 +974,88 @@ export namespace chromemanagement_v1 {
|
|
|
824
974
|
systemRamFreeBytes?: string | null;
|
|
825
975
|
}
|
|
826
976
|
/**
|
|
827
|
-
*
|
|
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
|
|
978
|
+
*/
|
|
979
|
+
export interface Schema$GoogleChromeManagementV1NetworkDevice {
|
|
980
|
+
/**
|
|
981
|
+
* Output only. The integrated circuit card ID associated with the device's sim card.
|
|
982
|
+
*/
|
|
983
|
+
iccid?: string | null;
|
|
984
|
+
/**
|
|
985
|
+
* Output only. IMEI (if applicable) of the corresponding network device.
|
|
986
|
+
*/
|
|
987
|
+
imei?: string | null;
|
|
988
|
+
/**
|
|
989
|
+
* Output only. MAC address (if applicable) of the corresponding network device.
|
|
990
|
+
*/
|
|
991
|
+
macAddress?: string | null;
|
|
992
|
+
/**
|
|
993
|
+
* Output only. The mobile directory number associated with the device's sim card.
|
|
994
|
+
*/
|
|
995
|
+
mdn?: string | null;
|
|
996
|
+
/**
|
|
997
|
+
* Output only. MEID (if applicable) of the corresponding network device.
|
|
998
|
+
*/
|
|
999
|
+
meid?: string | null;
|
|
1000
|
+
/**
|
|
1001
|
+
* Output only. Network device type.
|
|
1002
|
+
*/
|
|
1003
|
+
type?: string | null;
|
|
1004
|
+
}
|
|
1005
|
+
/**
|
|
1006
|
+
* Network testing results to determine the health of the device's network connection, for example whether the HTTPS latency is high or normal.
|
|
1007
|
+
*/
|
|
1008
|
+
export interface Schema$GoogleChromeManagementV1NetworkDiagnosticsReport {
|
|
1009
|
+
/**
|
|
1010
|
+
* Output only. HTTPS latency test data.
|
|
1011
|
+
*/
|
|
1012
|
+
httpsLatencyData?: Schema$GoogleChromeManagementV1HttpsLatencyRoutineData;
|
|
1013
|
+
/**
|
|
1014
|
+
* Output only. Timestamp of when the diagnostics were collected.
|
|
1015
|
+
*/
|
|
1016
|
+
reportTime?: string | null;
|
|
1017
|
+
}
|
|
1018
|
+
/**
|
|
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
|
|
1020
|
+
*/
|
|
1021
|
+
export interface Schema$GoogleChromeManagementV1NetworkInfo {
|
|
1022
|
+
/**
|
|
1023
|
+
* Output only. List of network devices.
|
|
1024
|
+
*/
|
|
1025
|
+
networkDevices?: Schema$GoogleChromeManagementV1NetworkDevice[];
|
|
1026
|
+
}
|
|
1027
|
+
/**
|
|
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
|
|
828
1029
|
*/
|
|
829
1030
|
export interface Schema$GoogleChromeManagementV1NetworkStatusReport {
|
|
1031
|
+
/**
|
|
1032
|
+
* Output only. Current connection state of the network.
|
|
1033
|
+
*/
|
|
1034
|
+
connectionState?: string | null;
|
|
1035
|
+
/**
|
|
1036
|
+
* Output only. Network connection type.
|
|
1037
|
+
*/
|
|
1038
|
+
connectionType?: string | null;
|
|
1039
|
+
/**
|
|
1040
|
+
* Output only. Whether the wifi encryption key is turned off.
|
|
1041
|
+
*/
|
|
1042
|
+
encryptionOn?: boolean | null;
|
|
830
1043
|
/**
|
|
831
1044
|
* Output only. Gateway IP address.
|
|
832
1045
|
*/
|
|
833
1046
|
gatewayIpAddress?: string | null;
|
|
1047
|
+
/**
|
|
1048
|
+
* Output only. Network connection guid.
|
|
1049
|
+
*/
|
|
1050
|
+
guid?: string | null;
|
|
834
1051
|
/**
|
|
835
1052
|
* Output only. LAN IP address.
|
|
836
1053
|
*/
|
|
837
1054
|
lanIpAddress?: string | null;
|
|
1055
|
+
/**
|
|
1056
|
+
* Output only. Receiving bit rate measured in Megabits per second.
|
|
1057
|
+
*/
|
|
1058
|
+
receivingBitRateMbps?: string | null;
|
|
838
1059
|
/**
|
|
839
1060
|
* Output only. Time at which the network state was reported.
|
|
840
1061
|
*/
|
|
@@ -847,9 +1068,25 @@ export namespace chromemanagement_v1 {
|
|
|
847
1068
|
* Output only. Signal strength for wireless networks measured in decibels.
|
|
848
1069
|
*/
|
|
849
1070
|
signalStrengthDbm?: number | null;
|
|
1071
|
+
/**
|
|
1072
|
+
* Output only. Transmission bit rate measured in Megabits per second.
|
|
1073
|
+
*/
|
|
1074
|
+
transmissionBitRateMbps?: string | null;
|
|
1075
|
+
/**
|
|
1076
|
+
* Output only. Transmission power measured in decibels.
|
|
1077
|
+
*/
|
|
1078
|
+
transmissionPowerDbm?: number | null;
|
|
1079
|
+
/**
|
|
1080
|
+
* Output only. Wifi link quality. Value ranges from [0, 70]. 0 indicates no signal and 70 indicates a strong signal.
|
|
1081
|
+
*/
|
|
1082
|
+
wifiLinkQuality?: string | null;
|
|
1083
|
+
/**
|
|
1084
|
+
* Output only. Wifi power management enabled
|
|
1085
|
+
*/
|
|
1086
|
+
wifiPowerManagementEnabled?: boolean | null;
|
|
850
1087
|
}
|
|
851
1088
|
/**
|
|
852
|
-
* 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
|
|
853
1090
|
*/
|
|
854
1091
|
export interface Schema$GoogleChromeManagementV1OsUpdateStatus {
|
|
855
1092
|
/**
|
|
@@ -878,7 +1115,7 @@ export namespace chromemanagement_v1 {
|
|
|
878
1115
|
updateState?: string | null;
|
|
879
1116
|
}
|
|
880
1117
|
/**
|
|
881
|
-
* 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
|
|
882
1119
|
*/
|
|
883
1120
|
export interface Schema$GoogleChromeManagementV1StorageInfo {
|
|
884
1121
|
/**
|
|
@@ -912,7 +1149,7 @@ export namespace chromemanagement_v1 {
|
|
|
912
1149
|
volumeId?: string | null;
|
|
913
1150
|
}
|
|
914
1151
|
/**
|
|
915
|
-
* 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
|
|
916
1153
|
*/
|
|
917
1154
|
export interface Schema$GoogleChromeManagementV1StorageStatusReport {
|
|
918
1155
|
/**
|
|
@@ -940,6 +1177,10 @@ export namespace chromemanagement_v1 {
|
|
|
940
1177
|
* Output only. Battery reports collected periodically.
|
|
941
1178
|
*/
|
|
942
1179
|
batteryStatusReport?: Schema$GoogleChromeManagementV1BatteryStatusReport[];
|
|
1180
|
+
/**
|
|
1181
|
+
* Output only. Boot performance reports of the device.
|
|
1182
|
+
*/
|
|
1183
|
+
bootPerformanceReport?: Schema$GoogleChromeManagementV1BootPerformanceReport[];
|
|
943
1184
|
/**
|
|
944
1185
|
* Output only. Information regarding CPU specs for the device.
|
|
945
1186
|
*/
|
|
@@ -976,6 +1217,14 @@ export namespace chromemanagement_v1 {
|
|
|
976
1217
|
* Output only. Resource name of the device.
|
|
977
1218
|
*/
|
|
978
1219
|
name?: string | null;
|
|
1220
|
+
/**
|
|
1221
|
+
* Output only. Network diagnostics collected periodically.
|
|
1222
|
+
*/
|
|
1223
|
+
networkDiagnosticsReport?: Schema$GoogleChromeManagementV1NetworkDiagnosticsReport[];
|
|
1224
|
+
/**
|
|
1225
|
+
* Output only. Network devices information.
|
|
1226
|
+
*/
|
|
1227
|
+
networkInfo?: Schema$GoogleChromeManagementV1NetworkInfo;
|
|
979
1228
|
/**
|
|
980
1229
|
* Output only. Network specs collected periodically.
|
|
981
1230
|
*/
|
|
@@ -1000,6 +1249,40 @@ export namespace chromemanagement_v1 {
|
|
|
1000
1249
|
* Output only. Storage reports collected periodically.
|
|
1001
1250
|
*/
|
|
1002
1251
|
storageStatusReport?: Schema$GoogleChromeManagementV1StorageStatusReport[];
|
|
1252
|
+
/**
|
|
1253
|
+
* Output only. Information on Thunderbolt bus.
|
|
1254
|
+
*/
|
|
1255
|
+
thunderboltInfo?: Schema$GoogleChromeManagementV1ThunderboltInfo[];
|
|
1256
|
+
}
|
|
1257
|
+
/**
|
|
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
|
|
1259
|
+
*/
|
|
1260
|
+
export interface Schema$GoogleChromeManagementV1ThunderboltInfo {
|
|
1261
|
+
/**
|
|
1262
|
+
* Security level of the Thunderbolt bus.
|
|
1263
|
+
*/
|
|
1264
|
+
securityLevel?: string | null;
|
|
1265
|
+
}
|
|
1266
|
+
/**
|
|
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
|
|
1268
|
+
*/
|
|
1269
|
+
export interface Schema$GoogleChromeManagementV1TotalMemoryEncryptionInfo {
|
|
1270
|
+
/**
|
|
1271
|
+
* Memory encryption algorithm.
|
|
1272
|
+
*/
|
|
1273
|
+
encryptionAlgorithm?: string | null;
|
|
1274
|
+
/**
|
|
1275
|
+
* The state of memory encryption on the device.
|
|
1276
|
+
*/
|
|
1277
|
+
encryptionState?: string | null;
|
|
1278
|
+
/**
|
|
1279
|
+
* The length of the encryption keys.
|
|
1280
|
+
*/
|
|
1281
|
+
keyLength?: string | null;
|
|
1282
|
+
/**
|
|
1283
|
+
* The maximum number of keys that can be used for encryption.
|
|
1284
|
+
*/
|
|
1285
|
+
maxKeys?: string | null;
|
|
1003
1286
|
}
|
|
1004
1287
|
/**
|
|
1005
1288
|
* 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).
|
|
@@ -1755,6 +2038,460 @@ export namespace chromemanagement_v1 {
|
|
|
1755
2038
|
this.context = context;
|
|
1756
2039
|
}
|
|
1757
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
|
+
|
|
1758
2495
|
/**
|
|
1759
2496
|
* Generate report of installed Chrome versions.
|
|
1760
2497
|
* @example
|
|
@@ -2215,6 +2952,55 @@ export namespace chromemanagement_v1 {
|
|
|
2215
2952
|
}
|
|
2216
2953
|
}
|
|
2217
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
|
+
}
|
|
2218
3004
|
export interface Params$Resource$Customers$Reports$Countchromeversions
|
|
2219
3005
|
extends StandardParameters {
|
|
2220
3006
|
/**
|
|
@@ -2357,6 +3143,7 @@ export namespace chromemanagement_v1 {
|
|
|
2357
3143
|
* // "audioStatusReport": [],
|
|
2358
3144
|
* // "batteryInfo": [],
|
|
2359
3145
|
* // "batteryStatusReport": [],
|
|
3146
|
+
* // "bootPerformanceReport": [],
|
|
2360
3147
|
* // "cpuInfo": [],
|
|
2361
3148
|
* // "cpuStatusReport": [],
|
|
2362
3149
|
* // "customer": "my_customer",
|
|
@@ -2366,12 +3153,15 @@ export namespace chromemanagement_v1 {
|
|
|
2366
3153
|
* // "memoryInfo": {},
|
|
2367
3154
|
* // "memoryStatusReport": [],
|
|
2368
3155
|
* // "name": "my_name",
|
|
3156
|
+
* // "networkDiagnosticsReport": [],
|
|
3157
|
+
* // "networkInfo": {},
|
|
2369
3158
|
* // "networkStatusReport": [],
|
|
2370
3159
|
* // "orgUnitId": "my_orgUnitId",
|
|
2371
3160
|
* // "osUpdateStatus": [],
|
|
2372
3161
|
* // "serialNumber": "my_serialNumber",
|
|
2373
3162
|
* // "storageInfo": {},
|
|
2374
|
-
* // "storageStatusReport": []
|
|
3163
|
+
* // "storageStatusReport": [],
|
|
3164
|
+
* // "thunderboltInfo": []
|
|
2375
3165
|
* // }
|
|
2376
3166
|
* }
|
|
2377
3167
|
*
|