@googleapis/chromemanagement 4.0.0 → 5.1.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 +24 -0
- package/build/v1.d.ts +451 -0
- package/build/v1.js +96 -0
- package/build/v1.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +703 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [5.1.0](https://github.com/googleapis/google-api-nodejs-client/compare/chromemanagement-v5.0.0...chromemanagement-v5.1.0) (2023-03-13)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **chromemanagement:** update the API ([0682fa7](https://github.com/googleapis/google-api-nodejs-client/commit/0682fa72414d5895360a19187525ac963013ef67))
|
|
9
|
+
|
|
10
|
+
## [5.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/chromemanagement-v4.0.0...chromemanagement-v5.0.0) (2023-02-24)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### ⚠ BREAKING CHANGES
|
|
14
|
+
|
|
15
|
+
* This release has breaking changes.
|
|
16
|
+
* **chromemanagement:** This release has breaking changes.
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* **chromemanagement:** update the API ([1c18b16](https://github.com/googleapis/google-api-nodejs-client/commit/1c18b1665587b2d59e7bec78acb695017424aa9f))
|
|
21
|
+
* **chromemanagement:** update the API ([3368e8d](https://github.com/googleapis/google-api-nodejs-client/commit/3368e8dd0e6b92d05fdaf43069758d2c0c01a3f6))
|
|
22
|
+
* **chromemanagement:** update the API ([76eea6c](https://github.com/googleapis/google-api-nodejs-client/commit/76eea6cdcb93e4c67e70573e729332dc6bff619d))
|
|
23
|
+
* **chromemanagement:** update the API ([bf3db6d](https://github.com/googleapis/google-api-nodejs-client/commit/bf3db6d9b105e954b4e180766747877d215e7ee8))
|
|
24
|
+
* regenerate index files ([bb9d246](https://github.com/googleapis/google-api-nodejs-client/commit/bb9d246d1e0c7c22e2ff2b4c40ed5df4fa410e12))
|
|
25
|
+
* run the generator ([#3161](https://github.com/googleapis/google-api-nodejs-client/issues/3161)) ([6fe904a](https://github.com/googleapis/google-api-nodejs-client/commit/6fe904a5f056b3e3789b80111b9b3eecba2dc9e7))
|
|
26
|
+
|
|
3
27
|
## [4.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/chromemanagement-v3.1.0...chromemanagement-v4.0.0) (2023-02-10)
|
|
4
28
|
|
|
5
29
|
|
package/build/v1.d.ts
CHANGED
|
@@ -477,6 +477,23 @@ export declare namespace chromemanagement_v1 {
|
|
|
477
477
|
*/
|
|
478
478
|
totalSize?: number | null;
|
|
479
479
|
}
|
|
480
|
+
/**
|
|
481
|
+
* Response containing counts for browsers that need attention.
|
|
482
|
+
*/
|
|
483
|
+
export interface Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse {
|
|
484
|
+
/**
|
|
485
|
+
* Number of browsers that haven’t had any recent activity
|
|
486
|
+
*/
|
|
487
|
+
noRecentActivityCount?: string | null;
|
|
488
|
+
/**
|
|
489
|
+
* Number of browsers that are pending an OS update
|
|
490
|
+
*/
|
|
491
|
+
pendingBrowserUpdateCount?: string | null;
|
|
492
|
+
/**
|
|
493
|
+
* Number of browsers that have been recently enrolled
|
|
494
|
+
*/
|
|
495
|
+
recentlyEnrolledCount?: string | null;
|
|
496
|
+
}
|
|
480
497
|
/**
|
|
481
498
|
* 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.
|
|
482
499
|
*/
|
|
@@ -566,6 +583,40 @@ export declare namespace chromemanagement_v1 {
|
|
|
566
583
|
*/
|
|
567
584
|
totalSize?: number | null;
|
|
568
585
|
}
|
|
586
|
+
/**
|
|
587
|
+
* Response containing a summary printing report for each printer from the specified organizational unit for the requested time interval.
|
|
588
|
+
*/
|
|
589
|
+
export interface Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse {
|
|
590
|
+
/**
|
|
591
|
+
* Pagination token for requesting the next page.
|
|
592
|
+
*/
|
|
593
|
+
nextPageToken?: string | null;
|
|
594
|
+
/**
|
|
595
|
+
* List of PrinterReports matching request.
|
|
596
|
+
*/
|
|
597
|
+
printerReports?: Schema$GoogleChromeManagementV1PrinterReport[];
|
|
598
|
+
/**
|
|
599
|
+
* Total number of printers matching request.
|
|
600
|
+
*/
|
|
601
|
+
totalSize?: string | null;
|
|
602
|
+
}
|
|
603
|
+
/**
|
|
604
|
+
* Response containing a summary printing report for each user that has initiated a print job with a printer from the specified organizational unit during the requested time interval.
|
|
605
|
+
*/
|
|
606
|
+
export interface Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse {
|
|
607
|
+
/**
|
|
608
|
+
* Pagination token for requesting the next page.
|
|
609
|
+
*/
|
|
610
|
+
nextPageToken?: string | null;
|
|
611
|
+
/**
|
|
612
|
+
* Total number of users matching request.
|
|
613
|
+
*/
|
|
614
|
+
totalSize?: string | null;
|
|
615
|
+
/**
|
|
616
|
+
* List of UserPrintReports matching request.
|
|
617
|
+
*/
|
|
618
|
+
userPrintReports?: Schema$GoogleChromeManagementV1UserPrintReport[];
|
|
619
|
+
}
|
|
569
620
|
/**
|
|
570
621
|
* 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
|
|
571
622
|
*/
|
|
@@ -733,6 +784,39 @@ export declare namespace chromemanagement_v1 {
|
|
|
733
784
|
*/
|
|
734
785
|
writeTimeThisSession?: string | null;
|
|
735
786
|
}
|
|
787
|
+
/**
|
|
788
|
+
* Information of a display device.
|
|
789
|
+
*/
|
|
790
|
+
export interface Schema$GoogleChromeManagementV1DisplayDevice {
|
|
791
|
+
/**
|
|
792
|
+
* Output only. Display height in millimeters.
|
|
793
|
+
*/
|
|
794
|
+
displayHeightMm?: number | null;
|
|
795
|
+
/**
|
|
796
|
+
* Output only. Display device name.
|
|
797
|
+
*/
|
|
798
|
+
displayName?: string | null;
|
|
799
|
+
/**
|
|
800
|
+
* Output only. Display width in millimeters.
|
|
801
|
+
*/
|
|
802
|
+
displayWidthMm?: number | null;
|
|
803
|
+
/**
|
|
804
|
+
* Output only. Is display internal or not.
|
|
805
|
+
*/
|
|
806
|
+
internal?: boolean | null;
|
|
807
|
+
/**
|
|
808
|
+
* Output only. Three letter manufacturer ID.
|
|
809
|
+
*/
|
|
810
|
+
manufacturerId?: string | null;
|
|
811
|
+
/**
|
|
812
|
+
* Output only. Year of manufacture.
|
|
813
|
+
*/
|
|
814
|
+
manufactureYear?: number | null;
|
|
815
|
+
/**
|
|
816
|
+
* Output only. Manufacturer product code.
|
|
817
|
+
*/
|
|
818
|
+
modelId?: number | null;
|
|
819
|
+
}
|
|
736
820
|
/**
|
|
737
821
|
* Information for a display.
|
|
738
822
|
*/
|
|
@@ -741,6 +825,10 @@ export declare namespace chromemanagement_v1 {
|
|
|
741
825
|
* Output only. Represents the graphics card device id.
|
|
742
826
|
*/
|
|
743
827
|
deviceId?: string | null;
|
|
828
|
+
/**
|
|
829
|
+
* Output only. Display device name.
|
|
830
|
+
*/
|
|
831
|
+
displayName?: string | null;
|
|
744
832
|
/**
|
|
745
833
|
* Output only. Indicates if display is internal or not.
|
|
746
834
|
*/
|
|
@@ -800,6 +888,18 @@ export declare namespace chromemanagement_v1 {
|
|
|
800
888
|
* Output only. Information about the graphics adapter (GPU).
|
|
801
889
|
*/
|
|
802
890
|
adapterInfo?: Schema$GoogleChromeManagementV1GraphicsAdapterInfo;
|
|
891
|
+
/**
|
|
892
|
+
* Output only. Information about the display(s) of the device.
|
|
893
|
+
*/
|
|
894
|
+
displayDevices?: Schema$GoogleChromeManagementV1DisplayDevice[];
|
|
895
|
+
/**
|
|
896
|
+
* Output only. Is ePrivacy screen supported or not.
|
|
897
|
+
*/
|
|
898
|
+
eprivacySupported?: boolean | null;
|
|
899
|
+
/**
|
|
900
|
+
* Output only. Information about the internal touch screen(s) of the device.
|
|
901
|
+
*/
|
|
902
|
+
touchScreenInfo?: Schema$GoogleChromeManagementV1TouchScreenInfo;
|
|
803
903
|
}
|
|
804
904
|
/**
|
|
805
905
|
* 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: 3 hours. * 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
|
|
@@ -1104,6 +1204,35 @@ export declare namespace chromemanagement_v1 {
|
|
|
1104
1204
|
*/
|
|
1105
1205
|
usbPeripheralReport?: Schema$GoogleChromeManagementV1UsbPeripheralReport[];
|
|
1106
1206
|
}
|
|
1207
|
+
/**
|
|
1208
|
+
* Report for CountPrintJobsByPrinter, contains statistics on printer usage. Contains the total number of print jobs initiated with this printer, the number of users and the number of devices that have initiated at least one print job with this printer.
|
|
1209
|
+
*/
|
|
1210
|
+
export interface Schema$GoogleChromeManagementV1PrinterReport {
|
|
1211
|
+
/**
|
|
1212
|
+
* Number of chrome devices that have been used to send print jobs to the specified printer.
|
|
1213
|
+
*/
|
|
1214
|
+
deviceCount?: string | null;
|
|
1215
|
+
/**
|
|
1216
|
+
* Number of print jobs sent to the printer.
|
|
1217
|
+
*/
|
|
1218
|
+
jobCount?: string | null;
|
|
1219
|
+
/**
|
|
1220
|
+
* Printer name.
|
|
1221
|
+
*/
|
|
1222
|
+
printer?: string | null;
|
|
1223
|
+
/**
|
|
1224
|
+
* Printer API ID.
|
|
1225
|
+
*/
|
|
1226
|
+
printerId?: string | null;
|
|
1227
|
+
/**
|
|
1228
|
+
* Printer model.
|
|
1229
|
+
*/
|
|
1230
|
+
printerModel?: string | null;
|
|
1231
|
+
/**
|
|
1232
|
+
* Number of users that have sent print jobs to the printer.
|
|
1233
|
+
*/
|
|
1234
|
+
userCount?: string | null;
|
|
1235
|
+
}
|
|
1107
1236
|
/**
|
|
1108
1237
|
* 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
|
|
1109
1238
|
*/
|
|
@@ -1414,6 +1543,36 @@ export declare namespace chromemanagement_v1 {
|
|
|
1414
1543
|
*/
|
|
1415
1544
|
maxKeys?: string | null;
|
|
1416
1545
|
}
|
|
1546
|
+
/**
|
|
1547
|
+
* Information of an internal touch screen device.
|
|
1548
|
+
*/
|
|
1549
|
+
export interface Schema$GoogleChromeManagementV1TouchScreenDevice {
|
|
1550
|
+
/**
|
|
1551
|
+
* Output only. Touch screen device display name.
|
|
1552
|
+
*/
|
|
1553
|
+
displayName?: string | null;
|
|
1554
|
+
/**
|
|
1555
|
+
* Output only. Touch screen device is stylus capable or not.
|
|
1556
|
+
*/
|
|
1557
|
+
stylusCapable?: boolean | null;
|
|
1558
|
+
/**
|
|
1559
|
+
* Output only. Number of touch points supported on the device.
|
|
1560
|
+
*/
|
|
1561
|
+
touchPointCount?: number | null;
|
|
1562
|
+
}
|
|
1563
|
+
/**
|
|
1564
|
+
* Information on the device touch screen.
|
|
1565
|
+
*/
|
|
1566
|
+
export interface Schema$GoogleChromeManagementV1TouchScreenInfo {
|
|
1567
|
+
/**
|
|
1568
|
+
* Output only. List of the internal touch screen devices.
|
|
1569
|
+
*/
|
|
1570
|
+
devices?: Schema$GoogleChromeManagementV1TouchScreenDevice[];
|
|
1571
|
+
/**
|
|
1572
|
+
* Output only. Touchpad library name used by the input stack.
|
|
1573
|
+
*/
|
|
1574
|
+
touchpadLibrary?: string | null;
|
|
1575
|
+
}
|
|
1417
1576
|
/**
|
|
1418
1577
|
* USB connected peripheral report.
|
|
1419
1578
|
*/
|
|
@@ -1451,6 +1610,31 @@ export declare namespace chromemanagement_v1 {
|
|
|
1451
1610
|
*/
|
|
1452
1611
|
vid?: number | null;
|
|
1453
1612
|
}
|
|
1613
|
+
/**
|
|
1614
|
+
* Report for CountPrintJobsByUser, contains printing statistics for a user. Contains the number of printers, the number of devices used to initiate print jobs, and the number of print jobs initiated.
|
|
1615
|
+
*/
|
|
1616
|
+
export interface Schema$GoogleChromeManagementV1UserPrintReport {
|
|
1617
|
+
/**
|
|
1618
|
+
* Number of chrome devices that have been used to initiate print jobs by the user.
|
|
1619
|
+
*/
|
|
1620
|
+
deviceCount?: string | null;
|
|
1621
|
+
/**
|
|
1622
|
+
* Number of print jobs initiated by the user.
|
|
1623
|
+
*/
|
|
1624
|
+
jobCount?: string | null;
|
|
1625
|
+
/**
|
|
1626
|
+
* Number of printers used by the user.
|
|
1627
|
+
*/
|
|
1628
|
+
printerCount?: string | null;
|
|
1629
|
+
/**
|
|
1630
|
+
* The primary e-mail address of the user.
|
|
1631
|
+
*/
|
|
1632
|
+
userEmail?: string | null;
|
|
1633
|
+
/**
|
|
1634
|
+
* The unique Directory API ID of the user.
|
|
1635
|
+
*/
|
|
1636
|
+
userId?: string | null;
|
|
1637
|
+
}
|
|
1454
1638
|
/**
|
|
1455
1639
|
* 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).
|
|
1456
1640
|
*/
|
|
@@ -1852,6 +2036,71 @@ export declare namespace chromemanagement_v1 {
|
|
|
1852
2036
|
export class Resource$Customers$Reports {
|
|
1853
2037
|
context: APIRequestContext;
|
|
1854
2038
|
constructor(context: APIRequestContext);
|
|
2039
|
+
/**
|
|
2040
|
+
* Count of Chrome Browsers that have been recently enrolled, have new policy to be synced, or have no recent activity.
|
|
2041
|
+
* @example
|
|
2042
|
+
* ```js
|
|
2043
|
+
* // Before running the sample:
|
|
2044
|
+
* // - Enable the API at:
|
|
2045
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
2046
|
+
* // - Login into gcloud by running:
|
|
2047
|
+
* // `$ gcloud auth application-default login`
|
|
2048
|
+
* // - Install the npm module by running:
|
|
2049
|
+
* // `$ npm install googleapis`
|
|
2050
|
+
*
|
|
2051
|
+
* const {google} = require('googleapis');
|
|
2052
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
2053
|
+
*
|
|
2054
|
+
* async function main() {
|
|
2055
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2056
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2057
|
+
* scopes: [
|
|
2058
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
2059
|
+
* ],
|
|
2060
|
+
* });
|
|
2061
|
+
*
|
|
2062
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2063
|
+
* const authClient = await auth.getClient();
|
|
2064
|
+
* google.options({auth: authClient});
|
|
2065
|
+
*
|
|
2066
|
+
* // Do the magic
|
|
2067
|
+
* const res =
|
|
2068
|
+
* await chromemanagement.customers.reports.countChromeBrowsersNeedingAttention(
|
|
2069
|
+
* {
|
|
2070
|
+
* // Required. The customer ID or "my_customer" prefixed with "customers/".
|
|
2071
|
+
* customer: 'customers/my-customer',
|
|
2072
|
+
* // Optional. The ID of the organizational unit. If omitted, all data will be returned.
|
|
2073
|
+
* orgUnitId: 'placeholder-value',
|
|
2074
|
+
* }
|
|
2075
|
+
* );
|
|
2076
|
+
* console.log(res.data);
|
|
2077
|
+
*
|
|
2078
|
+
* // Example response
|
|
2079
|
+
* // {
|
|
2080
|
+
* // "noRecentActivityCount": "my_noRecentActivityCount",
|
|
2081
|
+
* // "pendingBrowserUpdateCount": "my_pendingBrowserUpdateCount",
|
|
2082
|
+
* // "recentlyEnrolledCount": "my_recentlyEnrolledCount"
|
|
2083
|
+
* // }
|
|
2084
|
+
* }
|
|
2085
|
+
*
|
|
2086
|
+
* main().catch(e => {
|
|
2087
|
+
* console.error(e);
|
|
2088
|
+
* throw e;
|
|
2089
|
+
* });
|
|
2090
|
+
*
|
|
2091
|
+
* ```
|
|
2092
|
+
*
|
|
2093
|
+
* @param params - Parameters for request
|
|
2094
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2095
|
+
* @param callback - Optional callback that handles the response.
|
|
2096
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2097
|
+
*/
|
|
2098
|
+
countChromeBrowsersNeedingAttention(params: Params$Resource$Customers$Reports$Countchromebrowsersneedingattention, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
2099
|
+
countChromeBrowsersNeedingAttention(params?: Params$Resource$Customers$Reports$Countchromebrowsersneedingattention, options?: MethodOptions): GaxiosPromise<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>;
|
|
2100
|
+
countChromeBrowsersNeedingAttention(params: Params$Resource$Customers$Reports$Countchromebrowsersneedingattention, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2101
|
+
countChromeBrowsersNeedingAttention(params: Params$Resource$Customers$Reports$Countchromebrowsersneedingattention, options: MethodOptions | BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>, callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>): void;
|
|
2102
|
+
countChromeBrowsersNeedingAttention(params: Params$Resource$Customers$Reports$Countchromebrowsersneedingattention, callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>): void;
|
|
2103
|
+
countChromeBrowsersNeedingAttention(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>): void;
|
|
1855
2104
|
/**
|
|
1856
2105
|
* 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).
|
|
1857
2106
|
* @example
|
|
@@ -2192,6 +2441,146 @@ export declare namespace chromemanagement_v1 {
|
|
|
2192
2441
|
countInstalledApps(params: Params$Resource$Customers$Reports$Countinstalledapps, options: MethodOptions | BodyResponseCallback<Schema$GoogleChromeManagementV1CountInstalledAppsResponse>, callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountInstalledAppsResponse>): void;
|
|
2193
2442
|
countInstalledApps(params: Params$Resource$Customers$Reports$Countinstalledapps, callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountInstalledAppsResponse>): void;
|
|
2194
2443
|
countInstalledApps(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountInstalledAppsResponse>): void;
|
|
2444
|
+
/**
|
|
2445
|
+
* Get a summary of printing done by each printer.
|
|
2446
|
+
* @example
|
|
2447
|
+
* ```js
|
|
2448
|
+
* // Before running the sample:
|
|
2449
|
+
* // - Enable the API at:
|
|
2450
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
2451
|
+
* // - Login into gcloud by running:
|
|
2452
|
+
* // `$ gcloud auth application-default login`
|
|
2453
|
+
* // - Install the npm module by running:
|
|
2454
|
+
* // `$ npm install googleapis`
|
|
2455
|
+
*
|
|
2456
|
+
* const {google} = require('googleapis');
|
|
2457
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
2458
|
+
*
|
|
2459
|
+
* async function main() {
|
|
2460
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2461
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2462
|
+
* scopes: [
|
|
2463
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
2464
|
+
* ],
|
|
2465
|
+
* });
|
|
2466
|
+
*
|
|
2467
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2468
|
+
* const authClient = await auth.getClient();
|
|
2469
|
+
* google.options({auth: authClient});
|
|
2470
|
+
*
|
|
2471
|
+
* // Do the magic
|
|
2472
|
+
* const res = await chromemanagement.customers.reports.countPrintJobsByPrinter({
|
|
2473
|
+
* // Required. Customer ID prefixed with "customers/" or "customers/my_customer" to use the customer associated to the account making the request.
|
|
2474
|
+
* customer: 'customers/my-customer',
|
|
2475
|
+
* // Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Note: Only \>= and <= comparators are supported in this filter. Supported filter fields: * completion_time
|
|
2476
|
+
* filter: 'placeholder-value',
|
|
2477
|
+
* // Field used to order results. If omitted, results will be ordered in ascending order of the 'printer' field. Supported order_by fields: * printer * job_count * device_count * user_count
|
|
2478
|
+
* orderBy: 'placeholder-value',
|
|
2479
|
+
* // Maximum number of results to return. Maximum and default are 100.
|
|
2480
|
+
* pageSize: 'placeholder-value',
|
|
2481
|
+
* // Token to specify the page of the response to be returned.
|
|
2482
|
+
* pageToken: 'placeholder-value',
|
|
2483
|
+
* // The ID of the organizational unit for printers. If specified, only data for printers from the specified organizational unit will be returned. If omitted, data for printers from all organizational units will be returned.
|
|
2484
|
+
* printerOrgUnitId: 'placeholder-value',
|
|
2485
|
+
* });
|
|
2486
|
+
* console.log(res.data);
|
|
2487
|
+
*
|
|
2488
|
+
* // Example response
|
|
2489
|
+
* // {
|
|
2490
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
2491
|
+
* // "printerReports": [],
|
|
2492
|
+
* // "totalSize": "my_totalSize"
|
|
2493
|
+
* // }
|
|
2494
|
+
* }
|
|
2495
|
+
*
|
|
2496
|
+
* main().catch(e => {
|
|
2497
|
+
* console.error(e);
|
|
2498
|
+
* throw e;
|
|
2499
|
+
* });
|
|
2500
|
+
*
|
|
2501
|
+
* ```
|
|
2502
|
+
*
|
|
2503
|
+
* @param params - Parameters for request
|
|
2504
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2505
|
+
* @param callback - Optional callback that handles the response.
|
|
2506
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2507
|
+
*/
|
|
2508
|
+
countPrintJobsByPrinter(params: Params$Resource$Customers$Reports$Countprintjobsbyprinter, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
2509
|
+
countPrintJobsByPrinter(params?: Params$Resource$Customers$Reports$Countprintjobsbyprinter, options?: MethodOptions): GaxiosPromise<Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse>;
|
|
2510
|
+
countPrintJobsByPrinter(params: Params$Resource$Customers$Reports$Countprintjobsbyprinter, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2511
|
+
countPrintJobsByPrinter(params: Params$Resource$Customers$Reports$Countprintjobsbyprinter, options: MethodOptions | BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse>, callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse>): void;
|
|
2512
|
+
countPrintJobsByPrinter(params: Params$Resource$Customers$Reports$Countprintjobsbyprinter, callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse>): void;
|
|
2513
|
+
countPrintJobsByPrinter(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse>): void;
|
|
2514
|
+
/**
|
|
2515
|
+
* Get a summary of printing done by each user.
|
|
2516
|
+
* @example
|
|
2517
|
+
* ```js
|
|
2518
|
+
* // Before running the sample:
|
|
2519
|
+
* // - Enable the API at:
|
|
2520
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
2521
|
+
* // - Login into gcloud by running:
|
|
2522
|
+
* // `$ gcloud auth application-default login`
|
|
2523
|
+
* // - Install the npm module by running:
|
|
2524
|
+
* // `$ npm install googleapis`
|
|
2525
|
+
*
|
|
2526
|
+
* const {google} = require('googleapis');
|
|
2527
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
2528
|
+
*
|
|
2529
|
+
* async function main() {
|
|
2530
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2531
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2532
|
+
* scopes: [
|
|
2533
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
2534
|
+
* ],
|
|
2535
|
+
* });
|
|
2536
|
+
*
|
|
2537
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2538
|
+
* const authClient = await auth.getClient();
|
|
2539
|
+
* google.options({auth: authClient});
|
|
2540
|
+
*
|
|
2541
|
+
* // Do the magic
|
|
2542
|
+
* const res = await chromemanagement.customers.reports.countPrintJobsByUser({
|
|
2543
|
+
* // Required. Customer ID prefixed with "customers/" or "customers/my_customer" to use the customer associated to the account making the request.
|
|
2544
|
+
* customer: 'customers/my-customer',
|
|
2545
|
+
* // Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Note: Only \>= and <= comparators are supported in this filter. Supported filter fields: * completion_time
|
|
2546
|
+
* filter: 'placeholder-value',
|
|
2547
|
+
* // Field used to order results. If omitted, results will be ordered in ascending order of the 'user_email' field. Supported order_by fields: * user_email * job_count * printer_count * device_count
|
|
2548
|
+
* orderBy: 'placeholder-value',
|
|
2549
|
+
* // Maximum number of results to return. Maximum and default are 100.
|
|
2550
|
+
* pageSize: 'placeholder-value',
|
|
2551
|
+
* // Token to specify the page of the response to be returned.
|
|
2552
|
+
* pageToken: 'placeholder-value',
|
|
2553
|
+
* // The ID of the organizational unit for printers. If specified, only print jobs initiated with printers from the specified organizational unit will be counted. If omitted, all print jobs will be counted.
|
|
2554
|
+
* printerOrgUnitId: 'placeholder-value',
|
|
2555
|
+
* });
|
|
2556
|
+
* console.log(res.data);
|
|
2557
|
+
*
|
|
2558
|
+
* // Example response
|
|
2559
|
+
* // {
|
|
2560
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
2561
|
+
* // "totalSize": "my_totalSize",
|
|
2562
|
+
* // "userPrintReports": []
|
|
2563
|
+
* // }
|
|
2564
|
+
* }
|
|
2565
|
+
*
|
|
2566
|
+
* main().catch(e => {
|
|
2567
|
+
* console.error(e);
|
|
2568
|
+
* throw e;
|
|
2569
|
+
* });
|
|
2570
|
+
*
|
|
2571
|
+
* ```
|
|
2572
|
+
*
|
|
2573
|
+
* @param params - Parameters for request
|
|
2574
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2575
|
+
* @param callback - Optional callback that handles the response.
|
|
2576
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2577
|
+
*/
|
|
2578
|
+
countPrintJobsByUser(params: Params$Resource$Customers$Reports$Countprintjobsbyuser, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
2579
|
+
countPrintJobsByUser(params?: Params$Resource$Customers$Reports$Countprintjobsbyuser, options?: MethodOptions): GaxiosPromise<Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse>;
|
|
2580
|
+
countPrintJobsByUser(params: Params$Resource$Customers$Reports$Countprintjobsbyuser, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2581
|
+
countPrintJobsByUser(params: Params$Resource$Customers$Reports$Countprintjobsbyuser, options: MethodOptions | BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse>, callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse>): void;
|
|
2582
|
+
countPrintJobsByUser(params: Params$Resource$Customers$Reports$Countprintjobsbyuser, callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse>): void;
|
|
2583
|
+
countPrintJobsByUser(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse>): void;
|
|
2195
2584
|
/**
|
|
2196
2585
|
* Generate report of devices that have a specified app installed.
|
|
2197
2586
|
* @example
|
|
@@ -2267,6 +2656,16 @@ export declare namespace chromemanagement_v1 {
|
|
|
2267
2656
|
findInstalledAppDevices(params: Params$Resource$Customers$Reports$Findinstalledappdevices, callback: BodyResponseCallback<Schema$GoogleChromeManagementV1FindInstalledAppDevicesResponse>): void;
|
|
2268
2657
|
findInstalledAppDevices(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1FindInstalledAppDevicesResponse>): void;
|
|
2269
2658
|
}
|
|
2659
|
+
export interface Params$Resource$Customers$Reports$Countchromebrowsersneedingattention extends StandardParameters {
|
|
2660
|
+
/**
|
|
2661
|
+
* Required. The customer ID or "my_customer" prefixed with "customers/".
|
|
2662
|
+
*/
|
|
2663
|
+
customer?: string;
|
|
2664
|
+
/**
|
|
2665
|
+
* Optional. The ID of the organizational unit. If omitted, all data will be returned.
|
|
2666
|
+
*/
|
|
2667
|
+
orgUnitId?: string;
|
|
2668
|
+
}
|
|
2270
2669
|
export interface Params$Resource$Customers$Reports$Countchromedevicesreachingautoexpirationdate extends StandardParameters {
|
|
2271
2670
|
/**
|
|
2272
2671
|
* Required. The customer ID or "my_customer" prefixed with "customers/".
|
|
@@ -2361,6 +2760,58 @@ export declare namespace chromemanagement_v1 {
|
|
|
2361
2760
|
*/
|
|
2362
2761
|
pageToken?: string;
|
|
2363
2762
|
}
|
|
2763
|
+
export interface Params$Resource$Customers$Reports$Countprintjobsbyprinter extends StandardParameters {
|
|
2764
|
+
/**
|
|
2765
|
+
* Required. Customer ID prefixed with "customers/" or "customers/my_customer" to use the customer associated to the account making the request.
|
|
2766
|
+
*/
|
|
2767
|
+
customer?: string;
|
|
2768
|
+
/**
|
|
2769
|
+
* Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Note: Only \>= and <= comparators are supported in this filter. Supported filter fields: * completion_time
|
|
2770
|
+
*/
|
|
2771
|
+
filter?: string;
|
|
2772
|
+
/**
|
|
2773
|
+
* Field used to order results. If omitted, results will be ordered in ascending order of the 'printer' field. Supported order_by fields: * printer * job_count * device_count * user_count
|
|
2774
|
+
*/
|
|
2775
|
+
orderBy?: string;
|
|
2776
|
+
/**
|
|
2777
|
+
* Maximum number of results to return. Maximum and default are 100.
|
|
2778
|
+
*/
|
|
2779
|
+
pageSize?: number;
|
|
2780
|
+
/**
|
|
2781
|
+
* Token to specify the page of the response to be returned.
|
|
2782
|
+
*/
|
|
2783
|
+
pageToken?: string;
|
|
2784
|
+
/**
|
|
2785
|
+
* The ID of the organizational unit for printers. If specified, only data for printers from the specified organizational unit will be returned. If omitted, data for printers from all organizational units will be returned.
|
|
2786
|
+
*/
|
|
2787
|
+
printerOrgUnitId?: string;
|
|
2788
|
+
}
|
|
2789
|
+
export interface Params$Resource$Customers$Reports$Countprintjobsbyuser extends StandardParameters {
|
|
2790
|
+
/**
|
|
2791
|
+
* Required. Customer ID prefixed with "customers/" or "customers/my_customer" to use the customer associated to the account making the request.
|
|
2792
|
+
*/
|
|
2793
|
+
customer?: string;
|
|
2794
|
+
/**
|
|
2795
|
+
* Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Note: Only \>= and <= comparators are supported in this filter. Supported filter fields: * completion_time
|
|
2796
|
+
*/
|
|
2797
|
+
filter?: string;
|
|
2798
|
+
/**
|
|
2799
|
+
* Field used to order results. If omitted, results will be ordered in ascending order of the 'user_email' field. Supported order_by fields: * user_email * job_count * printer_count * device_count
|
|
2800
|
+
*/
|
|
2801
|
+
orderBy?: string;
|
|
2802
|
+
/**
|
|
2803
|
+
* Maximum number of results to return. Maximum and default are 100.
|
|
2804
|
+
*/
|
|
2805
|
+
pageSize?: number;
|
|
2806
|
+
/**
|
|
2807
|
+
* Token to specify the page of the response to be returned.
|
|
2808
|
+
*/
|
|
2809
|
+
pageToken?: string;
|
|
2810
|
+
/**
|
|
2811
|
+
* The ID of the organizational unit for printers. If specified, only print jobs initiated with printers from the specified organizational unit will be counted. If omitted, all print jobs will be counted.
|
|
2812
|
+
*/
|
|
2813
|
+
printerOrgUnitId?: string;
|
|
2814
|
+
}
|
|
2364
2815
|
export interface Params$Resource$Customers$Reports$Findinstalledappdevices extends StandardParameters {
|
|
2365
2816
|
/**
|
|
2366
2817
|
* Unique identifier of the app. For Chrome apps and extensions, the 32-character id (e.g. ehoadneljpdggcbbknedodolkkjodefl). For Android apps, the package name (e.g. com.evernote).
|
package/build/v1.js
CHANGED
|
@@ -206,6 +206,39 @@ var chromemanagement_v1;
|
|
|
206
206
|
constructor(context) {
|
|
207
207
|
this.context = context;
|
|
208
208
|
}
|
|
209
|
+
countChromeBrowsersNeedingAttention(paramsOrCallback, optionsOrCallback, callback) {
|
|
210
|
+
let params = (paramsOrCallback ||
|
|
211
|
+
{});
|
|
212
|
+
let options = (optionsOrCallback || {});
|
|
213
|
+
if (typeof paramsOrCallback === 'function') {
|
|
214
|
+
callback = paramsOrCallback;
|
|
215
|
+
params =
|
|
216
|
+
{};
|
|
217
|
+
options = {};
|
|
218
|
+
}
|
|
219
|
+
if (typeof optionsOrCallback === 'function') {
|
|
220
|
+
callback = optionsOrCallback;
|
|
221
|
+
options = {};
|
|
222
|
+
}
|
|
223
|
+
const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
224
|
+
const parameters = {
|
|
225
|
+
options: Object.assign({
|
|
226
|
+
url: (rootUrl +
|
|
227
|
+
'/v1/{+customer}/reports:countChromeBrowsersNeedingAttention').replace(/([^:]\/)\/+/g, '$1'),
|
|
228
|
+
method: 'GET',
|
|
229
|
+
}, options),
|
|
230
|
+
params,
|
|
231
|
+
requiredParams: ['customer'],
|
|
232
|
+
pathParams: ['customer'],
|
|
233
|
+
context: this.context,
|
|
234
|
+
};
|
|
235
|
+
if (callback) {
|
|
236
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
237
|
+
}
|
|
238
|
+
else {
|
|
239
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
209
242
|
countChromeDevicesReachingAutoExpirationDate(paramsOrCallback, optionsOrCallback, callback) {
|
|
210
243
|
let params = (paramsOrCallback ||
|
|
211
244
|
{});
|
|
@@ -367,6 +400,69 @@ var chromemanagement_v1;
|
|
|
367
400
|
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
368
401
|
}
|
|
369
402
|
}
|
|
403
|
+
countPrintJobsByPrinter(paramsOrCallback, optionsOrCallback, callback) {
|
|
404
|
+
let params = (paramsOrCallback ||
|
|
405
|
+
{});
|
|
406
|
+
let options = (optionsOrCallback || {});
|
|
407
|
+
if (typeof paramsOrCallback === 'function') {
|
|
408
|
+
callback = paramsOrCallback;
|
|
409
|
+
params =
|
|
410
|
+
{};
|
|
411
|
+
options = {};
|
|
412
|
+
}
|
|
413
|
+
if (typeof optionsOrCallback === 'function') {
|
|
414
|
+
callback = optionsOrCallback;
|
|
415
|
+
options = {};
|
|
416
|
+
}
|
|
417
|
+
const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
418
|
+
const parameters = {
|
|
419
|
+
options: Object.assign({
|
|
420
|
+
url: (rootUrl + '/v1/{+customer}/reports:countPrintJobsByPrinter').replace(/([^:]\/)\/+/g, '$1'),
|
|
421
|
+
method: 'GET',
|
|
422
|
+
}, options),
|
|
423
|
+
params,
|
|
424
|
+
requiredParams: ['customer'],
|
|
425
|
+
pathParams: ['customer'],
|
|
426
|
+
context: this.context,
|
|
427
|
+
};
|
|
428
|
+
if (callback) {
|
|
429
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
430
|
+
}
|
|
431
|
+
else {
|
|
432
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
countPrintJobsByUser(paramsOrCallback, optionsOrCallback, callback) {
|
|
436
|
+
let params = (paramsOrCallback ||
|
|
437
|
+
{});
|
|
438
|
+
let options = (optionsOrCallback || {});
|
|
439
|
+
if (typeof paramsOrCallback === 'function') {
|
|
440
|
+
callback = paramsOrCallback;
|
|
441
|
+
params = {};
|
|
442
|
+
options = {};
|
|
443
|
+
}
|
|
444
|
+
if (typeof optionsOrCallback === 'function') {
|
|
445
|
+
callback = optionsOrCallback;
|
|
446
|
+
options = {};
|
|
447
|
+
}
|
|
448
|
+
const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
449
|
+
const parameters = {
|
|
450
|
+
options: Object.assign({
|
|
451
|
+
url: (rootUrl + '/v1/{+customer}/reports:countPrintJobsByUser').replace(/([^:]\/)\/+/g, '$1'),
|
|
452
|
+
method: 'GET',
|
|
453
|
+
}, options),
|
|
454
|
+
params,
|
|
455
|
+
requiredParams: ['customer'],
|
|
456
|
+
pathParams: ['customer'],
|
|
457
|
+
context: this.context,
|
|
458
|
+
};
|
|
459
|
+
if (callback) {
|
|
460
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
461
|
+
}
|
|
462
|
+
else {
|
|
463
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
464
|
+
}
|
|
465
|
+
}
|
|
370
466
|
findInstalledAppDevices(paramsOrCallback, optionsOrCallback, callback) {
|
|
371
467
|
let params = (paramsOrCallback ||
|
|
372
468
|
{});
|