@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/v1.ts CHANGED
@@ -530,6 +530,23 @@ export namespace chromemanagement_v1 {
530
530
  */
531
531
  totalSize?: number | null;
532
532
  }
533
+ /**
534
+ * Response containing counts for browsers that need attention.
535
+ */
536
+ export interface Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse {
537
+ /**
538
+ * Number of browsers that haven’t had any recent activity
539
+ */
540
+ noRecentActivityCount?: string | null;
541
+ /**
542
+ * Number of browsers that are pending an OS update
543
+ */
544
+ pendingBrowserUpdateCount?: string | null;
545
+ /**
546
+ * Number of browsers that have been recently enrolled
547
+ */
548
+ recentlyEnrolledCount?: string | null;
549
+ }
533
550
  /**
534
551
  * 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.
535
552
  */
@@ -619,6 +636,40 @@ export namespace chromemanagement_v1 {
619
636
  */
620
637
  totalSize?: number | null;
621
638
  }
639
+ /**
640
+ * Response containing a summary printing report for each printer from the specified organizational unit for the requested time interval.
641
+ */
642
+ export interface Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse {
643
+ /**
644
+ * Pagination token for requesting the next page.
645
+ */
646
+ nextPageToken?: string | null;
647
+ /**
648
+ * List of PrinterReports matching request.
649
+ */
650
+ printerReports?: Schema$GoogleChromeManagementV1PrinterReport[];
651
+ /**
652
+ * Total number of printers matching request.
653
+ */
654
+ totalSize?: string | null;
655
+ }
656
+ /**
657
+ * 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.
658
+ */
659
+ export interface Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse {
660
+ /**
661
+ * Pagination token for requesting the next page.
662
+ */
663
+ nextPageToken?: string | null;
664
+ /**
665
+ * Total number of users matching request.
666
+ */
667
+ totalSize?: string | null;
668
+ /**
669
+ * List of UserPrintReports matching request.
670
+ */
671
+ userPrintReports?: Schema$GoogleChromeManagementV1UserPrintReport[];
672
+ }
622
673
  /**
623
674
  * 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
624
675
  */
@@ -786,6 +837,39 @@ export namespace chromemanagement_v1 {
786
837
  */
787
838
  writeTimeThisSession?: string | null;
788
839
  }
840
+ /**
841
+ * Information of a display device.
842
+ */
843
+ export interface Schema$GoogleChromeManagementV1DisplayDevice {
844
+ /**
845
+ * Output only. Display height in millimeters.
846
+ */
847
+ displayHeightMm?: number | null;
848
+ /**
849
+ * Output only. Display device name.
850
+ */
851
+ displayName?: string | null;
852
+ /**
853
+ * Output only. Display width in millimeters.
854
+ */
855
+ displayWidthMm?: number | null;
856
+ /**
857
+ * Output only. Is display internal or not.
858
+ */
859
+ internal?: boolean | null;
860
+ /**
861
+ * Output only. Three letter manufacturer ID.
862
+ */
863
+ manufacturerId?: string | null;
864
+ /**
865
+ * Output only. Year of manufacture.
866
+ */
867
+ manufactureYear?: number | null;
868
+ /**
869
+ * Output only. Manufacturer product code.
870
+ */
871
+ modelId?: number | null;
872
+ }
789
873
  /**
790
874
  * Information for a display.
791
875
  */
@@ -794,6 +878,10 @@ export namespace chromemanagement_v1 {
794
878
  * Output only. Represents the graphics card device id.
795
879
  */
796
880
  deviceId?: string | null;
881
+ /**
882
+ * Output only. Display device name.
883
+ */
884
+ displayName?: string | null;
797
885
  /**
798
886
  * Output only. Indicates if display is internal or not.
799
887
  */
@@ -853,6 +941,18 @@ export namespace chromemanagement_v1 {
853
941
  * Output only. Information about the graphics adapter (GPU).
854
942
  */
855
943
  adapterInfo?: Schema$GoogleChromeManagementV1GraphicsAdapterInfo;
944
+ /**
945
+ * Output only. Information about the display(s) of the device.
946
+ */
947
+ displayDevices?: Schema$GoogleChromeManagementV1DisplayDevice[];
948
+ /**
949
+ * Output only. Is ePrivacy screen supported or not.
950
+ */
951
+ eprivacySupported?: boolean | null;
952
+ /**
953
+ * Output only. Information about the internal touch screen(s) of the device.
954
+ */
955
+ touchScreenInfo?: Schema$GoogleChromeManagementV1TouchScreenInfo;
856
956
  }
857
957
  /**
858
958
  * 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
@@ -1157,6 +1257,35 @@ export namespace chromemanagement_v1 {
1157
1257
  */
1158
1258
  usbPeripheralReport?: Schema$GoogleChromeManagementV1UsbPeripheralReport[];
1159
1259
  }
1260
+ /**
1261
+ * 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.
1262
+ */
1263
+ export interface Schema$GoogleChromeManagementV1PrinterReport {
1264
+ /**
1265
+ * Number of chrome devices that have been used to send print jobs to the specified printer.
1266
+ */
1267
+ deviceCount?: string | null;
1268
+ /**
1269
+ * Number of print jobs sent to the printer.
1270
+ */
1271
+ jobCount?: string | null;
1272
+ /**
1273
+ * Printer name.
1274
+ */
1275
+ printer?: string | null;
1276
+ /**
1277
+ * Printer API ID.
1278
+ */
1279
+ printerId?: string | null;
1280
+ /**
1281
+ * Printer model.
1282
+ */
1283
+ printerModel?: string | null;
1284
+ /**
1285
+ * Number of users that have sent print jobs to the printer.
1286
+ */
1287
+ userCount?: string | null;
1288
+ }
1160
1289
  /**
1161
1290
  * 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
1162
1291
  */
@@ -1466,6 +1595,36 @@ export namespace chromemanagement_v1 {
1466
1595
  */
1467
1596
  maxKeys?: string | null;
1468
1597
  }
1598
+ /**
1599
+ * Information of an internal touch screen device.
1600
+ */
1601
+ export interface Schema$GoogleChromeManagementV1TouchScreenDevice {
1602
+ /**
1603
+ * Output only. Touch screen device display name.
1604
+ */
1605
+ displayName?: string | null;
1606
+ /**
1607
+ * Output only. Touch screen device is stylus capable or not.
1608
+ */
1609
+ stylusCapable?: boolean | null;
1610
+ /**
1611
+ * Output only. Number of touch points supported on the device.
1612
+ */
1613
+ touchPointCount?: number | null;
1614
+ }
1615
+ /**
1616
+ * Information on the device touch screen.
1617
+ */
1618
+ export interface Schema$GoogleChromeManagementV1TouchScreenInfo {
1619
+ /**
1620
+ * Output only. List of the internal touch screen devices.
1621
+ */
1622
+ devices?: Schema$GoogleChromeManagementV1TouchScreenDevice[];
1623
+ /**
1624
+ * Output only. Touchpad library name used by the input stack.
1625
+ */
1626
+ touchpadLibrary?: string | null;
1627
+ }
1469
1628
  /**
1470
1629
  * USB connected peripheral report.
1471
1630
  */
@@ -1503,6 +1662,31 @@ export namespace chromemanagement_v1 {
1503
1662
  */
1504
1663
  vid?: number | null;
1505
1664
  }
1665
+ /**
1666
+ * 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.
1667
+ */
1668
+ export interface Schema$GoogleChromeManagementV1UserPrintReport {
1669
+ /**
1670
+ * Number of chrome devices that have been used to initiate print jobs by the user.
1671
+ */
1672
+ deviceCount?: string | null;
1673
+ /**
1674
+ * Number of print jobs initiated by the user.
1675
+ */
1676
+ jobCount?: string | null;
1677
+ /**
1678
+ * Number of printers used by the user.
1679
+ */
1680
+ printerCount?: string | null;
1681
+ /**
1682
+ * The primary e-mail address of the user.
1683
+ */
1684
+ userEmail?: string | null;
1685
+ /**
1686
+ * The unique Directory API ID of the user.
1687
+ */
1688
+ userId?: string | null;
1689
+ }
1506
1690
  /**
1507
1691
  * 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).
1508
1692
  */
@@ -2257,6 +2441,155 @@ export namespace chromemanagement_v1 {
2257
2441
  this.context = context;
2258
2442
  }
2259
2443
 
2444
+ /**
2445
+ * Count of Chrome Browsers that have been recently enrolled, have new policy to be synced, or have no recent activity.
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 =
2473
+ * await chromemanagement.customers.reports.countChromeBrowsersNeedingAttention(
2474
+ * {
2475
+ * // Required. The customer ID or "my_customer" prefixed with "customers/".
2476
+ * customer: 'customers/my-customer',
2477
+ * // Optional. The ID of the organizational unit. If omitted, all data will be returned.
2478
+ * orgUnitId: 'placeholder-value',
2479
+ * }
2480
+ * );
2481
+ * console.log(res.data);
2482
+ *
2483
+ * // Example response
2484
+ * // {
2485
+ * // "noRecentActivityCount": "my_noRecentActivityCount",
2486
+ * // "pendingBrowserUpdateCount": "my_pendingBrowserUpdateCount",
2487
+ * // "recentlyEnrolledCount": "my_recentlyEnrolledCount"
2488
+ * // }
2489
+ * }
2490
+ *
2491
+ * main().catch(e => {
2492
+ * console.error(e);
2493
+ * throw e;
2494
+ * });
2495
+ *
2496
+ * ```
2497
+ *
2498
+ * @param params - Parameters for request
2499
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2500
+ * @param callback - Optional callback that handles the response.
2501
+ * @returns A promise if used with async/await, or void if used with a callback.
2502
+ */
2503
+ countChromeBrowsersNeedingAttention(
2504
+ params: Params$Resource$Customers$Reports$Countchromebrowsersneedingattention,
2505
+ options: StreamMethodOptions
2506
+ ): GaxiosPromise<Readable>;
2507
+ countChromeBrowsersNeedingAttention(
2508
+ params?: Params$Resource$Customers$Reports$Countchromebrowsersneedingattention,
2509
+ options?: MethodOptions
2510
+ ): GaxiosPromise<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>;
2511
+ countChromeBrowsersNeedingAttention(
2512
+ params: Params$Resource$Customers$Reports$Countchromebrowsersneedingattention,
2513
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
2514
+ callback: BodyResponseCallback<Readable>
2515
+ ): void;
2516
+ countChromeBrowsersNeedingAttention(
2517
+ params: Params$Resource$Customers$Reports$Countchromebrowsersneedingattention,
2518
+ options:
2519
+ | MethodOptions
2520
+ | BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>,
2521
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>
2522
+ ): void;
2523
+ countChromeBrowsersNeedingAttention(
2524
+ params: Params$Resource$Customers$Reports$Countchromebrowsersneedingattention,
2525
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>
2526
+ ): void;
2527
+ countChromeBrowsersNeedingAttention(
2528
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>
2529
+ ): void;
2530
+ countChromeBrowsersNeedingAttention(
2531
+ paramsOrCallback?:
2532
+ | Params$Resource$Customers$Reports$Countchromebrowsersneedingattention
2533
+ | BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>
2534
+ | BodyResponseCallback<Readable>,
2535
+ optionsOrCallback?:
2536
+ | MethodOptions
2537
+ | StreamMethodOptions
2538
+ | BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>
2539
+ | BodyResponseCallback<Readable>,
2540
+ callback?:
2541
+ | BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>
2542
+ | BodyResponseCallback<Readable>
2543
+ ):
2544
+ | void
2545
+ | GaxiosPromise<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>
2546
+ | GaxiosPromise<Readable> {
2547
+ let params = (paramsOrCallback ||
2548
+ {}) as Params$Resource$Customers$Reports$Countchromebrowsersneedingattention;
2549
+ let options = (optionsOrCallback || {}) as MethodOptions;
2550
+
2551
+ if (typeof paramsOrCallback === 'function') {
2552
+ callback = paramsOrCallback;
2553
+ params =
2554
+ {} as Params$Resource$Customers$Reports$Countchromebrowsersneedingattention;
2555
+ options = {};
2556
+ }
2557
+
2558
+ if (typeof optionsOrCallback === 'function') {
2559
+ callback = optionsOrCallback;
2560
+ options = {};
2561
+ }
2562
+
2563
+ const rootUrl =
2564
+ options.rootUrl || 'https://chromemanagement.googleapis.com/';
2565
+ const parameters = {
2566
+ options: Object.assign(
2567
+ {
2568
+ url: (
2569
+ rootUrl +
2570
+ '/v1/{+customer}/reports:countChromeBrowsersNeedingAttention'
2571
+ ).replace(/([^:]\/)\/+/g, '$1'),
2572
+ method: 'GET',
2573
+ },
2574
+ options
2575
+ ),
2576
+ params,
2577
+ requiredParams: ['customer'],
2578
+ pathParams: ['customer'],
2579
+ context: this.context,
2580
+ };
2581
+ if (callback) {
2582
+ createAPIRequest<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>(
2583
+ parameters,
2584
+ callback as BodyResponseCallback<unknown>
2585
+ );
2586
+ } else {
2587
+ return createAPIRequest<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>(
2588
+ parameters
2589
+ );
2590
+ }
2591
+ }
2592
+
2260
2593
  /**
2261
2594
  * 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).
2262
2595
  * @example
@@ -3013,6 +3346,311 @@ export namespace chromemanagement_v1 {
3013
3346
  }
3014
3347
  }
3015
3348
 
3349
+ /**
3350
+ * Get a summary of printing done by each printer.
3351
+ * @example
3352
+ * ```js
3353
+ * // Before running the sample:
3354
+ * // - Enable the API at:
3355
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
3356
+ * // - Login into gcloud by running:
3357
+ * // `$ gcloud auth application-default login`
3358
+ * // - Install the npm module by running:
3359
+ * // `$ npm install googleapis`
3360
+ *
3361
+ * const {google} = require('googleapis');
3362
+ * const chromemanagement = google.chromemanagement('v1');
3363
+ *
3364
+ * async function main() {
3365
+ * const auth = new google.auth.GoogleAuth({
3366
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3367
+ * scopes: [
3368
+ * 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
3369
+ * ],
3370
+ * });
3371
+ *
3372
+ * // Acquire an auth client, and bind it to all future calls
3373
+ * const authClient = await auth.getClient();
3374
+ * google.options({auth: authClient});
3375
+ *
3376
+ * // Do the magic
3377
+ * const res = await chromemanagement.customers.reports.countPrintJobsByPrinter({
3378
+ * // Required. Customer ID prefixed with "customers/" or "customers/my_customer" to use the customer associated to the account making the request.
3379
+ * customer: 'customers/my-customer',
3380
+ * // 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
3381
+ * filter: 'placeholder-value',
3382
+ * // 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
3383
+ * orderBy: 'placeholder-value',
3384
+ * // Maximum number of results to return. Maximum and default are 100.
3385
+ * pageSize: 'placeholder-value',
3386
+ * // Token to specify the page of the response to be returned.
3387
+ * pageToken: 'placeholder-value',
3388
+ * // 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.
3389
+ * printerOrgUnitId: 'placeholder-value',
3390
+ * });
3391
+ * console.log(res.data);
3392
+ *
3393
+ * // Example response
3394
+ * // {
3395
+ * // "nextPageToken": "my_nextPageToken",
3396
+ * // "printerReports": [],
3397
+ * // "totalSize": "my_totalSize"
3398
+ * // }
3399
+ * }
3400
+ *
3401
+ * main().catch(e => {
3402
+ * console.error(e);
3403
+ * throw e;
3404
+ * });
3405
+ *
3406
+ * ```
3407
+ *
3408
+ * @param params - Parameters for request
3409
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3410
+ * @param callback - Optional callback that handles the response.
3411
+ * @returns A promise if used with async/await, or void if used with a callback.
3412
+ */
3413
+ countPrintJobsByPrinter(
3414
+ params: Params$Resource$Customers$Reports$Countprintjobsbyprinter,
3415
+ options: StreamMethodOptions
3416
+ ): GaxiosPromise<Readable>;
3417
+ countPrintJobsByPrinter(
3418
+ params?: Params$Resource$Customers$Reports$Countprintjobsbyprinter,
3419
+ options?: MethodOptions
3420
+ ): GaxiosPromise<Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse>;
3421
+ countPrintJobsByPrinter(
3422
+ params: Params$Resource$Customers$Reports$Countprintjobsbyprinter,
3423
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
3424
+ callback: BodyResponseCallback<Readable>
3425
+ ): void;
3426
+ countPrintJobsByPrinter(
3427
+ params: Params$Resource$Customers$Reports$Countprintjobsbyprinter,
3428
+ options:
3429
+ | MethodOptions
3430
+ | BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse>,
3431
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse>
3432
+ ): void;
3433
+ countPrintJobsByPrinter(
3434
+ params: Params$Resource$Customers$Reports$Countprintjobsbyprinter,
3435
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse>
3436
+ ): void;
3437
+ countPrintJobsByPrinter(
3438
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse>
3439
+ ): void;
3440
+ countPrintJobsByPrinter(
3441
+ paramsOrCallback?:
3442
+ | Params$Resource$Customers$Reports$Countprintjobsbyprinter
3443
+ | BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse>
3444
+ | BodyResponseCallback<Readable>,
3445
+ optionsOrCallback?:
3446
+ | MethodOptions
3447
+ | StreamMethodOptions
3448
+ | BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse>
3449
+ | BodyResponseCallback<Readable>,
3450
+ callback?:
3451
+ | BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse>
3452
+ | BodyResponseCallback<Readable>
3453
+ ):
3454
+ | void
3455
+ | GaxiosPromise<Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse>
3456
+ | GaxiosPromise<Readable> {
3457
+ let params = (paramsOrCallback ||
3458
+ {}) as Params$Resource$Customers$Reports$Countprintjobsbyprinter;
3459
+ let options = (optionsOrCallback || {}) as MethodOptions;
3460
+
3461
+ if (typeof paramsOrCallback === 'function') {
3462
+ callback = paramsOrCallback;
3463
+ params =
3464
+ {} as Params$Resource$Customers$Reports$Countprintjobsbyprinter;
3465
+ options = {};
3466
+ }
3467
+
3468
+ if (typeof optionsOrCallback === 'function') {
3469
+ callback = optionsOrCallback;
3470
+ options = {};
3471
+ }
3472
+
3473
+ const rootUrl =
3474
+ options.rootUrl || 'https://chromemanagement.googleapis.com/';
3475
+ const parameters = {
3476
+ options: Object.assign(
3477
+ {
3478
+ url: (
3479
+ rootUrl + '/v1/{+customer}/reports:countPrintJobsByPrinter'
3480
+ ).replace(/([^:]\/)\/+/g, '$1'),
3481
+ method: 'GET',
3482
+ },
3483
+ options
3484
+ ),
3485
+ params,
3486
+ requiredParams: ['customer'],
3487
+ pathParams: ['customer'],
3488
+ context: this.context,
3489
+ };
3490
+ if (callback) {
3491
+ createAPIRequest<Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse>(
3492
+ parameters,
3493
+ callback as BodyResponseCallback<unknown>
3494
+ );
3495
+ } else {
3496
+ return createAPIRequest<Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse>(
3497
+ parameters
3498
+ );
3499
+ }
3500
+ }
3501
+
3502
+ /**
3503
+ * Get a summary of printing done by each user.
3504
+ * @example
3505
+ * ```js
3506
+ * // Before running the sample:
3507
+ * // - Enable the API at:
3508
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
3509
+ * // - Login into gcloud by running:
3510
+ * // `$ gcloud auth application-default login`
3511
+ * // - Install the npm module by running:
3512
+ * // `$ npm install googleapis`
3513
+ *
3514
+ * const {google} = require('googleapis');
3515
+ * const chromemanagement = google.chromemanagement('v1');
3516
+ *
3517
+ * async function main() {
3518
+ * const auth = new google.auth.GoogleAuth({
3519
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3520
+ * scopes: [
3521
+ * 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
3522
+ * ],
3523
+ * });
3524
+ *
3525
+ * // Acquire an auth client, and bind it to all future calls
3526
+ * const authClient = await auth.getClient();
3527
+ * google.options({auth: authClient});
3528
+ *
3529
+ * // Do the magic
3530
+ * const res = await chromemanagement.customers.reports.countPrintJobsByUser({
3531
+ * // Required. Customer ID prefixed with "customers/" or "customers/my_customer" to use the customer associated to the account making the request.
3532
+ * customer: 'customers/my-customer',
3533
+ * // 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
3534
+ * filter: 'placeholder-value',
3535
+ * // 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
3536
+ * orderBy: 'placeholder-value',
3537
+ * // Maximum number of results to return. Maximum and default are 100.
3538
+ * pageSize: 'placeholder-value',
3539
+ * // Token to specify the page of the response to be returned.
3540
+ * pageToken: 'placeholder-value',
3541
+ * // 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.
3542
+ * printerOrgUnitId: 'placeholder-value',
3543
+ * });
3544
+ * console.log(res.data);
3545
+ *
3546
+ * // Example response
3547
+ * // {
3548
+ * // "nextPageToken": "my_nextPageToken",
3549
+ * // "totalSize": "my_totalSize",
3550
+ * // "userPrintReports": []
3551
+ * // }
3552
+ * }
3553
+ *
3554
+ * main().catch(e => {
3555
+ * console.error(e);
3556
+ * throw e;
3557
+ * });
3558
+ *
3559
+ * ```
3560
+ *
3561
+ * @param params - Parameters for request
3562
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3563
+ * @param callback - Optional callback that handles the response.
3564
+ * @returns A promise if used with async/await, or void if used with a callback.
3565
+ */
3566
+ countPrintJobsByUser(
3567
+ params: Params$Resource$Customers$Reports$Countprintjobsbyuser,
3568
+ options: StreamMethodOptions
3569
+ ): GaxiosPromise<Readable>;
3570
+ countPrintJobsByUser(
3571
+ params?: Params$Resource$Customers$Reports$Countprintjobsbyuser,
3572
+ options?: MethodOptions
3573
+ ): GaxiosPromise<Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse>;
3574
+ countPrintJobsByUser(
3575
+ params: Params$Resource$Customers$Reports$Countprintjobsbyuser,
3576
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
3577
+ callback: BodyResponseCallback<Readable>
3578
+ ): void;
3579
+ countPrintJobsByUser(
3580
+ params: Params$Resource$Customers$Reports$Countprintjobsbyuser,
3581
+ options:
3582
+ | MethodOptions
3583
+ | BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse>,
3584
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse>
3585
+ ): void;
3586
+ countPrintJobsByUser(
3587
+ params: Params$Resource$Customers$Reports$Countprintjobsbyuser,
3588
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse>
3589
+ ): void;
3590
+ countPrintJobsByUser(
3591
+ callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse>
3592
+ ): void;
3593
+ countPrintJobsByUser(
3594
+ paramsOrCallback?:
3595
+ | Params$Resource$Customers$Reports$Countprintjobsbyuser
3596
+ | BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse>
3597
+ | BodyResponseCallback<Readable>,
3598
+ optionsOrCallback?:
3599
+ | MethodOptions
3600
+ | StreamMethodOptions
3601
+ | BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse>
3602
+ | BodyResponseCallback<Readable>,
3603
+ callback?:
3604
+ | BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse>
3605
+ | BodyResponseCallback<Readable>
3606
+ ):
3607
+ | void
3608
+ | GaxiosPromise<Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse>
3609
+ | GaxiosPromise<Readable> {
3610
+ let params = (paramsOrCallback ||
3611
+ {}) as Params$Resource$Customers$Reports$Countprintjobsbyuser;
3612
+ let options = (optionsOrCallback || {}) as MethodOptions;
3613
+
3614
+ if (typeof paramsOrCallback === 'function') {
3615
+ callback = paramsOrCallback;
3616
+ params = {} as Params$Resource$Customers$Reports$Countprintjobsbyuser;
3617
+ options = {};
3618
+ }
3619
+
3620
+ if (typeof optionsOrCallback === 'function') {
3621
+ callback = optionsOrCallback;
3622
+ options = {};
3623
+ }
3624
+
3625
+ const rootUrl =
3626
+ options.rootUrl || 'https://chromemanagement.googleapis.com/';
3627
+ const parameters = {
3628
+ options: Object.assign(
3629
+ {
3630
+ url: (
3631
+ rootUrl + '/v1/{+customer}/reports:countPrintJobsByUser'
3632
+ ).replace(/([^:]\/)\/+/g, '$1'),
3633
+ method: 'GET',
3634
+ },
3635
+ options
3636
+ ),
3637
+ params,
3638
+ requiredParams: ['customer'],
3639
+ pathParams: ['customer'],
3640
+ context: this.context,
3641
+ };
3642
+ if (callback) {
3643
+ createAPIRequest<Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse>(
3644
+ parameters,
3645
+ callback as BodyResponseCallback<unknown>
3646
+ );
3647
+ } else {
3648
+ return createAPIRequest<Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse>(
3649
+ parameters
3650
+ );
3651
+ }
3652
+ }
3653
+
3016
3654
  /**
3017
3655
  * Generate report of devices that have a specified app installed.
3018
3656
  * @example
@@ -3171,6 +3809,17 @@ export namespace chromemanagement_v1 {
3171
3809
  }
3172
3810
  }
3173
3811
 
3812
+ export interface Params$Resource$Customers$Reports$Countchromebrowsersneedingattention
3813
+ extends StandardParameters {
3814
+ /**
3815
+ * Required. The customer ID or "my_customer" prefixed with "customers/".
3816
+ */
3817
+ customer?: string;
3818
+ /**
3819
+ * Optional. The ID of the organizational unit. If omitted, all data will be returned.
3820
+ */
3821
+ orgUnitId?: string;
3822
+ }
3174
3823
  export interface Params$Resource$Customers$Reports$Countchromedevicesreachingautoexpirationdate
3175
3824
  extends StandardParameters {
3176
3825
  /**
@@ -3270,6 +3919,60 @@ export namespace chromemanagement_v1 {
3270
3919
  */
3271
3920
  pageToken?: string;
3272
3921
  }
3922
+ export interface Params$Resource$Customers$Reports$Countprintjobsbyprinter
3923
+ extends StandardParameters {
3924
+ /**
3925
+ * Required. Customer ID prefixed with "customers/" or "customers/my_customer" to use the customer associated to the account making the request.
3926
+ */
3927
+ customer?: string;
3928
+ /**
3929
+ * 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
3930
+ */
3931
+ filter?: string;
3932
+ /**
3933
+ * 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
3934
+ */
3935
+ orderBy?: string;
3936
+ /**
3937
+ * Maximum number of results to return. Maximum and default are 100.
3938
+ */
3939
+ pageSize?: number;
3940
+ /**
3941
+ * Token to specify the page of the response to be returned.
3942
+ */
3943
+ pageToken?: string;
3944
+ /**
3945
+ * 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.
3946
+ */
3947
+ printerOrgUnitId?: string;
3948
+ }
3949
+ export interface Params$Resource$Customers$Reports$Countprintjobsbyuser
3950
+ extends StandardParameters {
3951
+ /**
3952
+ * Required. Customer ID prefixed with "customers/" or "customers/my_customer" to use the customer associated to the account making the request.
3953
+ */
3954
+ customer?: string;
3955
+ /**
3956
+ * 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
3957
+ */
3958
+ filter?: string;
3959
+ /**
3960
+ * 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
3961
+ */
3962
+ orderBy?: string;
3963
+ /**
3964
+ * Maximum number of results to return. Maximum and default are 100.
3965
+ */
3966
+ pageSize?: number;
3967
+ /**
3968
+ * Token to specify the page of the response to be returned.
3969
+ */
3970
+ pageToken?: string;
3971
+ /**
3972
+ * 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.
3973
+ */
3974
+ printerOrgUnitId?: string;
3975
+ }
3273
3976
  export interface Params$Resource$Customers$Reports$Findinstalledappdevices
3274
3977
  extends StandardParameters {
3275
3978
  /**