@googleapis/chromemanagement 3.1.0 → 5.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 +29 -0
- package/build/v1.d.ts +672 -17
- package/build/v1.js +165 -0
- package/build/v1.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +1275 -198
package/v1.ts
CHANGED
|
@@ -449,6 +449,10 @@ export namespace chromemanagement_v1 {
|
|
|
449
449
|
* Output only. The app developer has enabled support for their app. Version-specific field that will only be set when the requested app version is found.
|
|
450
450
|
*/
|
|
451
451
|
supportEnabled?: boolean | null;
|
|
452
|
+
/**
|
|
453
|
+
* Output only. Types of an item in the Chrome Web Store
|
|
454
|
+
*/
|
|
455
|
+
type?: string | null;
|
|
452
456
|
}
|
|
453
457
|
/**
|
|
454
458
|
* Permission requested by a Chrome app or extension.
|
|
@@ -526,6 +530,23 @@ export namespace chromemanagement_v1 {
|
|
|
526
530
|
*/
|
|
527
531
|
totalSize?: number | null;
|
|
528
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
|
+
}
|
|
529
550
|
/**
|
|
530
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.
|
|
531
552
|
*/
|
|
@@ -615,6 +636,40 @@ export namespace chromemanagement_v1 {
|
|
|
615
636
|
*/
|
|
616
637
|
totalSize?: number | null;
|
|
617
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
|
+
}
|
|
618
673
|
/**
|
|
619
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
|
|
620
675
|
*/
|
|
@@ -851,7 +906,7 @@ export namespace chromemanagement_v1 {
|
|
|
851
906
|
adapterInfo?: Schema$GoogleChromeManagementV1GraphicsAdapterInfo;
|
|
852
907
|
}
|
|
853
908
|
/**
|
|
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:
|
|
909
|
+
* 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
|
|
855
910
|
*/
|
|
856
911
|
export interface Schema$GoogleChromeManagementV1GraphicsStatusReport {
|
|
857
912
|
/**
|
|
@@ -948,6 +1003,19 @@ export namespace chromemanagement_v1 {
|
|
|
948
1003
|
*/
|
|
949
1004
|
telemetryEvents?: Schema$GoogleChromeManagementV1TelemetryEvent[];
|
|
950
1005
|
}
|
|
1006
|
+
/**
|
|
1007
|
+
* Response message for listing telemetry users for a customer.
|
|
1008
|
+
*/
|
|
1009
|
+
export interface Schema$GoogleChromeManagementV1ListTelemetryUsersResponse {
|
|
1010
|
+
/**
|
|
1011
|
+
* Token to specify next page in the list.
|
|
1012
|
+
*/
|
|
1013
|
+
nextPageToken?: string | null;
|
|
1014
|
+
/**
|
|
1015
|
+
* Telemetry users returned in the response.
|
|
1016
|
+
*/
|
|
1017
|
+
telemetryUsers?: Schema$GoogleChromeManagementV1TelemetryUser[];
|
|
1018
|
+
}
|
|
951
1019
|
/**
|
|
952
1020
|
* 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
|
|
953
1021
|
*/
|
|
@@ -1127,6 +1195,48 @@ export namespace chromemanagement_v1 {
|
|
|
1127
1195
|
*/
|
|
1128
1196
|
updateState?: string | null;
|
|
1129
1197
|
}
|
|
1198
|
+
/**
|
|
1199
|
+
* Peripherals report.
|
|
1200
|
+
*/
|
|
1201
|
+
export interface Schema$GoogleChromeManagementV1PeripheralsReport {
|
|
1202
|
+
/**
|
|
1203
|
+
* Output only. Timestamp of when the report was collected.
|
|
1204
|
+
*/
|
|
1205
|
+
reportTime?: string | null;
|
|
1206
|
+
/**
|
|
1207
|
+
* Reports of all usb connected devices.
|
|
1208
|
+
*/
|
|
1209
|
+
usbPeripheralReport?: Schema$GoogleChromeManagementV1UsbPeripheralReport[];
|
|
1210
|
+
}
|
|
1211
|
+
/**
|
|
1212
|
+
* 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.
|
|
1213
|
+
*/
|
|
1214
|
+
export interface Schema$GoogleChromeManagementV1PrinterReport {
|
|
1215
|
+
/**
|
|
1216
|
+
* Number of chrome devices that have been used to send print jobs to the specified printer.
|
|
1217
|
+
*/
|
|
1218
|
+
deviceCount?: string | null;
|
|
1219
|
+
/**
|
|
1220
|
+
* Number of print jobs sent to the printer.
|
|
1221
|
+
*/
|
|
1222
|
+
jobCount?: string | null;
|
|
1223
|
+
/**
|
|
1224
|
+
* Printer name.
|
|
1225
|
+
*/
|
|
1226
|
+
printer?: string | null;
|
|
1227
|
+
/**
|
|
1228
|
+
* Printer API ID.
|
|
1229
|
+
*/
|
|
1230
|
+
printerId?: string | null;
|
|
1231
|
+
/**
|
|
1232
|
+
* Printer model.
|
|
1233
|
+
*/
|
|
1234
|
+
printerModel?: string | null;
|
|
1235
|
+
/**
|
|
1236
|
+
* Number of users that have sent print jobs to the printer.
|
|
1237
|
+
*/
|
|
1238
|
+
userCount?: string | null;
|
|
1239
|
+
}
|
|
1130
1240
|
/**
|
|
1131
1241
|
* 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
|
|
1132
1242
|
*/
|
|
@@ -1254,6 +1364,10 @@ export namespace chromemanagement_v1 {
|
|
|
1254
1364
|
* Output only. Contains relevant information regarding ChromeOS update status.
|
|
1255
1365
|
*/
|
|
1256
1366
|
osUpdateStatus?: Schema$GoogleChromeManagementV1OsUpdateStatus[];
|
|
1367
|
+
/**
|
|
1368
|
+
* Output only. Peripherals reports collected periodically sorted in a decreasing order of report_time.
|
|
1369
|
+
*/
|
|
1370
|
+
peripheralsReport?: Schema$GoogleChromeManagementV1PeripheralsReport[];
|
|
1257
1371
|
/**
|
|
1258
1372
|
* Output only. Device serial number. This value is the same as the Admin Console's Serial Number in the ChromeOS Devices tab.
|
|
1259
1373
|
*/
|
|
@@ -1308,14 +1422,14 @@ export namespace chromemanagement_v1 {
|
|
|
1308
1422
|
* Output only. Resource name of the event.
|
|
1309
1423
|
*/
|
|
1310
1424
|
name?: string | null;
|
|
1311
|
-
/**
|
|
1312
|
-
* Output only. Payload for network connection state change event. Present only when `event_type` is `NETWORK_CONNECTION_STATE_CHANGE`.
|
|
1313
|
-
*/
|
|
1314
|
-
networkConnectionStateChangeEvent?: Schema$GoogleChromeManagementV1TelemetryNetworkConnectionStateChangeEvent;
|
|
1315
1425
|
/**
|
|
1316
1426
|
* Timestamp that represents when the event was reported.
|
|
1317
1427
|
*/
|
|
1318
1428
|
reportTime?: string | null;
|
|
1429
|
+
/**
|
|
1430
|
+
* Output only. Payload for usb peripherals event. Present only when the `event_type` field is either `USB_ADDED` or `USB_REMOVED`.
|
|
1431
|
+
*/
|
|
1432
|
+
usbPeripheralsEvent?: Schema$GoogleChromeManagementV1TelemetryUsbPeripheralsEvent;
|
|
1319
1433
|
/**
|
|
1320
1434
|
* Output only. Information about the user associated with the event.
|
|
1321
1435
|
*/
|
|
@@ -1335,17 +1449,59 @@ export namespace chromemanagement_v1 {
|
|
|
1335
1449
|
httpsLatencyState?: string | null;
|
|
1336
1450
|
}
|
|
1337
1451
|
/**
|
|
1338
|
-
* `
|
|
1452
|
+
* `TelemetryUsbPeripheralsEvent` is triggered USB devices are either added or removed.
|
|
1339
1453
|
*/
|
|
1340
|
-
export interface Schema$
|
|
1454
|
+
export interface Schema$GoogleChromeManagementV1TelemetryUsbPeripheralsEvent {
|
|
1341
1455
|
/**
|
|
1342
|
-
*
|
|
1456
|
+
* List of usb devices that were either added or removed.
|
|
1343
1457
|
*/
|
|
1344
|
-
|
|
1458
|
+
usbPeripheralReport?: Schema$GoogleChromeManagementV1UsbPeripheralReport[];
|
|
1459
|
+
}
|
|
1460
|
+
/**
|
|
1461
|
+
* Telemetry data collected from a managed user.
|
|
1462
|
+
*/
|
|
1463
|
+
export interface Schema$GoogleChromeManagementV1TelemetryUser {
|
|
1345
1464
|
/**
|
|
1346
|
-
*
|
|
1465
|
+
* G Suite Customer whose enterprise enrolled the device.
|
|
1347
1466
|
*/
|
|
1348
|
-
|
|
1467
|
+
customer?: string | null;
|
|
1468
|
+
/**
|
|
1469
|
+
* Resource name of the user.
|
|
1470
|
+
*/
|
|
1471
|
+
name?: string | null;
|
|
1472
|
+
/**
|
|
1473
|
+
* Organization unit of the user.
|
|
1474
|
+
*/
|
|
1475
|
+
orgUnitId?: string | null;
|
|
1476
|
+
/**
|
|
1477
|
+
* Telemetry data collected from a managed user and device.
|
|
1478
|
+
*/
|
|
1479
|
+
userDevice?: Schema$GoogleChromeManagementV1TelemetryUserDevice[];
|
|
1480
|
+
/**
|
|
1481
|
+
* Email address of the user.
|
|
1482
|
+
*/
|
|
1483
|
+
userEmail?: string | null;
|
|
1484
|
+
/**
|
|
1485
|
+
* Directory ID of the user.
|
|
1486
|
+
*/
|
|
1487
|
+
userId?: string | null;
|
|
1488
|
+
}
|
|
1489
|
+
/**
|
|
1490
|
+
* Telemetry data collected for a managed user and device.
|
|
1491
|
+
*/
|
|
1492
|
+
export interface Schema$GoogleChromeManagementV1TelemetryUserDevice {
|
|
1493
|
+
/**
|
|
1494
|
+
* Output only. Audio reports collected periodically sorted in a decreasing order of report_time.
|
|
1495
|
+
*/
|
|
1496
|
+
audioStatusReport?: Schema$GoogleChromeManagementV1AudioStatusReport[];
|
|
1497
|
+
/**
|
|
1498
|
+
* The unique Directory API ID of the device. This value is the same as the Admin Console's Directory API ID in the ChromeOS Devices tab.
|
|
1499
|
+
*/
|
|
1500
|
+
deviceId?: string | null;
|
|
1501
|
+
/**
|
|
1502
|
+
* Output only. Peripherals reports collected periodically sorted in a decreasing order of report_time.
|
|
1503
|
+
*/
|
|
1504
|
+
peripheralsReport?: Schema$GoogleChromeManagementV1PeripheralsReport[];
|
|
1349
1505
|
}
|
|
1350
1506
|
/**
|
|
1351
1507
|
* Information about a user associated with telemetry data.
|
|
@@ -1390,6 +1546,68 @@ export namespace chromemanagement_v1 {
|
|
|
1390
1546
|
*/
|
|
1391
1547
|
maxKeys?: string | null;
|
|
1392
1548
|
}
|
|
1549
|
+
/**
|
|
1550
|
+
* USB connected peripheral report.
|
|
1551
|
+
*/
|
|
1552
|
+
export interface Schema$GoogleChromeManagementV1UsbPeripheralReport {
|
|
1553
|
+
/**
|
|
1554
|
+
* Output only. Categories the device belongs to https://www.usb.org/defined-class-codes
|
|
1555
|
+
*/
|
|
1556
|
+
categories?: string[] | null;
|
|
1557
|
+
/**
|
|
1558
|
+
* Output only. Class ID https://www.usb.org/defined-class-codes
|
|
1559
|
+
*/
|
|
1560
|
+
classId?: number | null;
|
|
1561
|
+
/**
|
|
1562
|
+
* Output only. Firmware version
|
|
1563
|
+
*/
|
|
1564
|
+
firmwareVersion?: string | null;
|
|
1565
|
+
/**
|
|
1566
|
+
* Output only. Device name, model name, or product name
|
|
1567
|
+
*/
|
|
1568
|
+
name?: string | null;
|
|
1569
|
+
/**
|
|
1570
|
+
* Output only. Product ID
|
|
1571
|
+
*/
|
|
1572
|
+
pid?: number | null;
|
|
1573
|
+
/**
|
|
1574
|
+
* Output only. Subclass ID https://www.usb.org/defined-class-codes
|
|
1575
|
+
*/
|
|
1576
|
+
subclassId?: number | null;
|
|
1577
|
+
/**
|
|
1578
|
+
* Output only. Vendor name
|
|
1579
|
+
*/
|
|
1580
|
+
vendor?: string | null;
|
|
1581
|
+
/**
|
|
1582
|
+
* Output only. Vendor ID
|
|
1583
|
+
*/
|
|
1584
|
+
vid?: number | null;
|
|
1585
|
+
}
|
|
1586
|
+
/**
|
|
1587
|
+
* 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.
|
|
1588
|
+
*/
|
|
1589
|
+
export interface Schema$GoogleChromeManagementV1UserPrintReport {
|
|
1590
|
+
/**
|
|
1591
|
+
* Number of chrome devices that have been used to initiate print jobs by the user.
|
|
1592
|
+
*/
|
|
1593
|
+
deviceCount?: string | null;
|
|
1594
|
+
/**
|
|
1595
|
+
* Number of print jobs initiated by the user.
|
|
1596
|
+
*/
|
|
1597
|
+
jobCount?: string | null;
|
|
1598
|
+
/**
|
|
1599
|
+
* Number of printers used by the user.
|
|
1600
|
+
*/
|
|
1601
|
+
printerCount?: string | null;
|
|
1602
|
+
/**
|
|
1603
|
+
* The primary e-mail address of the user.
|
|
1604
|
+
*/
|
|
1605
|
+
userEmail?: string | null;
|
|
1606
|
+
/**
|
|
1607
|
+
* The unique Directory API ID of the user.
|
|
1608
|
+
*/
|
|
1609
|
+
userId?: string | null;
|
|
1610
|
+
}
|
|
1393
1611
|
/**
|
|
1394
1612
|
* 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).
|
|
1395
1613
|
*/
|
|
@@ -2144,6 +2362,155 @@ export namespace chromemanagement_v1 {
|
|
|
2144
2362
|
this.context = context;
|
|
2145
2363
|
}
|
|
2146
2364
|
|
|
2365
|
+
/**
|
|
2366
|
+
* Count of Chrome Browsers that have been recently enrolled, have new policy to be synced, or have no recent activity.
|
|
2367
|
+
* @example
|
|
2368
|
+
* ```js
|
|
2369
|
+
* // Before running the sample:
|
|
2370
|
+
* // - Enable the API at:
|
|
2371
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
2372
|
+
* // - Login into gcloud by running:
|
|
2373
|
+
* // `$ gcloud auth application-default login`
|
|
2374
|
+
* // - Install the npm module by running:
|
|
2375
|
+
* // `$ npm install googleapis`
|
|
2376
|
+
*
|
|
2377
|
+
* const {google} = require('googleapis');
|
|
2378
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
2379
|
+
*
|
|
2380
|
+
* async function main() {
|
|
2381
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2382
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2383
|
+
* scopes: [
|
|
2384
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
2385
|
+
* ],
|
|
2386
|
+
* });
|
|
2387
|
+
*
|
|
2388
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2389
|
+
* const authClient = await auth.getClient();
|
|
2390
|
+
* google.options({auth: authClient});
|
|
2391
|
+
*
|
|
2392
|
+
* // Do the magic
|
|
2393
|
+
* const res =
|
|
2394
|
+
* await chromemanagement.customers.reports.countChromeBrowsersNeedingAttention(
|
|
2395
|
+
* {
|
|
2396
|
+
* // Required. The customer ID or "my_customer" prefixed with "customers/".
|
|
2397
|
+
* customer: 'customers/my-customer',
|
|
2398
|
+
* // Optional. The ID of the organizational unit. If omitted, all data will be returned.
|
|
2399
|
+
* orgUnitId: 'placeholder-value',
|
|
2400
|
+
* }
|
|
2401
|
+
* );
|
|
2402
|
+
* console.log(res.data);
|
|
2403
|
+
*
|
|
2404
|
+
* // Example response
|
|
2405
|
+
* // {
|
|
2406
|
+
* // "noRecentActivityCount": "my_noRecentActivityCount",
|
|
2407
|
+
* // "pendingBrowserUpdateCount": "my_pendingBrowserUpdateCount",
|
|
2408
|
+
* // "recentlyEnrolledCount": "my_recentlyEnrolledCount"
|
|
2409
|
+
* // }
|
|
2410
|
+
* }
|
|
2411
|
+
*
|
|
2412
|
+
* main().catch(e => {
|
|
2413
|
+
* console.error(e);
|
|
2414
|
+
* throw e;
|
|
2415
|
+
* });
|
|
2416
|
+
*
|
|
2417
|
+
* ```
|
|
2418
|
+
*
|
|
2419
|
+
* @param params - Parameters for request
|
|
2420
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2421
|
+
* @param callback - Optional callback that handles the response.
|
|
2422
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2423
|
+
*/
|
|
2424
|
+
countChromeBrowsersNeedingAttention(
|
|
2425
|
+
params: Params$Resource$Customers$Reports$Countchromebrowsersneedingattention,
|
|
2426
|
+
options: StreamMethodOptions
|
|
2427
|
+
): GaxiosPromise<Readable>;
|
|
2428
|
+
countChromeBrowsersNeedingAttention(
|
|
2429
|
+
params?: Params$Resource$Customers$Reports$Countchromebrowsersneedingattention,
|
|
2430
|
+
options?: MethodOptions
|
|
2431
|
+
): GaxiosPromise<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>;
|
|
2432
|
+
countChromeBrowsersNeedingAttention(
|
|
2433
|
+
params: Params$Resource$Customers$Reports$Countchromebrowsersneedingattention,
|
|
2434
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
2435
|
+
callback: BodyResponseCallback<Readable>
|
|
2436
|
+
): void;
|
|
2437
|
+
countChromeBrowsersNeedingAttention(
|
|
2438
|
+
params: Params$Resource$Customers$Reports$Countchromebrowsersneedingattention,
|
|
2439
|
+
options:
|
|
2440
|
+
| MethodOptions
|
|
2441
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>,
|
|
2442
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>
|
|
2443
|
+
): void;
|
|
2444
|
+
countChromeBrowsersNeedingAttention(
|
|
2445
|
+
params: Params$Resource$Customers$Reports$Countchromebrowsersneedingattention,
|
|
2446
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>
|
|
2447
|
+
): void;
|
|
2448
|
+
countChromeBrowsersNeedingAttention(
|
|
2449
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>
|
|
2450
|
+
): void;
|
|
2451
|
+
countChromeBrowsersNeedingAttention(
|
|
2452
|
+
paramsOrCallback?:
|
|
2453
|
+
| Params$Resource$Customers$Reports$Countchromebrowsersneedingattention
|
|
2454
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>
|
|
2455
|
+
| BodyResponseCallback<Readable>,
|
|
2456
|
+
optionsOrCallback?:
|
|
2457
|
+
| MethodOptions
|
|
2458
|
+
| StreamMethodOptions
|
|
2459
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>
|
|
2460
|
+
| BodyResponseCallback<Readable>,
|
|
2461
|
+
callback?:
|
|
2462
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>
|
|
2463
|
+
| BodyResponseCallback<Readable>
|
|
2464
|
+
):
|
|
2465
|
+
| void
|
|
2466
|
+
| GaxiosPromise<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>
|
|
2467
|
+
| GaxiosPromise<Readable> {
|
|
2468
|
+
let params = (paramsOrCallback ||
|
|
2469
|
+
{}) as Params$Resource$Customers$Reports$Countchromebrowsersneedingattention;
|
|
2470
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2471
|
+
|
|
2472
|
+
if (typeof paramsOrCallback === 'function') {
|
|
2473
|
+
callback = paramsOrCallback;
|
|
2474
|
+
params =
|
|
2475
|
+
{} as Params$Resource$Customers$Reports$Countchromebrowsersneedingattention;
|
|
2476
|
+
options = {};
|
|
2477
|
+
}
|
|
2478
|
+
|
|
2479
|
+
if (typeof optionsOrCallback === 'function') {
|
|
2480
|
+
callback = optionsOrCallback;
|
|
2481
|
+
options = {};
|
|
2482
|
+
}
|
|
2483
|
+
|
|
2484
|
+
const rootUrl =
|
|
2485
|
+
options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
2486
|
+
const parameters = {
|
|
2487
|
+
options: Object.assign(
|
|
2488
|
+
{
|
|
2489
|
+
url: (
|
|
2490
|
+
rootUrl +
|
|
2491
|
+
'/v1/{+customer}/reports:countChromeBrowsersNeedingAttention'
|
|
2492
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
2493
|
+
method: 'GET',
|
|
2494
|
+
},
|
|
2495
|
+
options
|
|
2496
|
+
),
|
|
2497
|
+
params,
|
|
2498
|
+
requiredParams: ['customer'],
|
|
2499
|
+
pathParams: ['customer'],
|
|
2500
|
+
context: this.context,
|
|
2501
|
+
};
|
|
2502
|
+
if (callback) {
|
|
2503
|
+
createAPIRequest<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>(
|
|
2504
|
+
parameters,
|
|
2505
|
+
callback as BodyResponseCallback<unknown>
|
|
2506
|
+
);
|
|
2507
|
+
} else {
|
|
2508
|
+
return createAPIRequest<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>(
|
|
2509
|
+
parameters
|
|
2510
|
+
);
|
|
2511
|
+
}
|
|
2512
|
+
}
|
|
2513
|
+
|
|
2147
2514
|
/**
|
|
2148
2515
|
* 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).
|
|
2149
2516
|
* @example
|
|
@@ -2779,9 +3146,9 @@ export namespace chromemanagement_v1 {
|
|
|
2779
3146
|
* const res = await chromemanagement.customers.reports.countInstalledApps({
|
|
2780
3147
|
* // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
2781
3148
|
* customer: 'customers/my-customer',
|
|
2782
|
-
* // Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Supported filter fields: * app_name * app_type * install_type * number_of_permissions * total_install_count * latest_profile_active_date * permission_name
|
|
3149
|
+
* // Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Supported filter fields: * app_name * app_type * install_type * number_of_permissions * total_install_count * latest_profile_active_date * permission_name * app_id
|
|
2783
3150
|
* filter: 'placeholder-value',
|
|
2784
|
-
* // Field used to order results. Supported order by fields: * app_name * app_type * install_type * number_of_permissions * total_install_count
|
|
3151
|
+
* // Field used to order results. Supported order by fields: * app_name * app_type * install_type * number_of_permissions * total_install_count * app_id
|
|
2785
3152
|
* orderBy: 'placeholder-value',
|
|
2786
3153
|
* // The ID of the organizational unit.
|
|
2787
3154
|
* orgUnitId: 'placeholder-value',
|
|
@@ -2901,7 +3268,7 @@ export namespace chromemanagement_v1 {
|
|
|
2901
3268
|
}
|
|
2902
3269
|
|
|
2903
3270
|
/**
|
|
2904
|
-
*
|
|
3271
|
+
* Get a summary of printing done by each printer.
|
|
2905
3272
|
* @example
|
|
2906
3273
|
* ```js
|
|
2907
3274
|
* // Before running the sample:
|
|
@@ -2928,11 +3295,316 @@ export namespace chromemanagement_v1 {
|
|
|
2928
3295
|
* google.options({auth: authClient});
|
|
2929
3296
|
*
|
|
2930
3297
|
* // Do the magic
|
|
2931
|
-
* const res = await chromemanagement.customers.reports.
|
|
2932
|
-
* //
|
|
2933
|
-
*
|
|
2934
|
-
* //
|
|
2935
|
-
*
|
|
3298
|
+
* const res = await chromemanagement.customers.reports.countPrintJobsByPrinter({
|
|
3299
|
+
* // Required. Customer ID prefixed with "customers/" or "customers/my_customer" to use the customer associated to the account making the request.
|
|
3300
|
+
* customer: 'customers/my-customer',
|
|
3301
|
+
* // 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
|
|
3302
|
+
* filter: 'placeholder-value',
|
|
3303
|
+
* // 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
|
|
3304
|
+
* orderBy: 'placeholder-value',
|
|
3305
|
+
* // Maximum number of results to return. Maximum and default are 100.
|
|
3306
|
+
* pageSize: 'placeholder-value',
|
|
3307
|
+
* // Token to specify the page of the response to be returned.
|
|
3308
|
+
* pageToken: 'placeholder-value',
|
|
3309
|
+
* // 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.
|
|
3310
|
+
* printerOrgUnitId: 'placeholder-value',
|
|
3311
|
+
* });
|
|
3312
|
+
* console.log(res.data);
|
|
3313
|
+
*
|
|
3314
|
+
* // Example response
|
|
3315
|
+
* // {
|
|
3316
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
3317
|
+
* // "printerReports": [],
|
|
3318
|
+
* // "totalSize": "my_totalSize"
|
|
3319
|
+
* // }
|
|
3320
|
+
* }
|
|
3321
|
+
*
|
|
3322
|
+
* main().catch(e => {
|
|
3323
|
+
* console.error(e);
|
|
3324
|
+
* throw e;
|
|
3325
|
+
* });
|
|
3326
|
+
*
|
|
3327
|
+
* ```
|
|
3328
|
+
*
|
|
3329
|
+
* @param params - Parameters for request
|
|
3330
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3331
|
+
* @param callback - Optional callback that handles the response.
|
|
3332
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3333
|
+
*/
|
|
3334
|
+
countPrintJobsByPrinter(
|
|
3335
|
+
params: Params$Resource$Customers$Reports$Countprintjobsbyprinter,
|
|
3336
|
+
options: StreamMethodOptions
|
|
3337
|
+
): GaxiosPromise<Readable>;
|
|
3338
|
+
countPrintJobsByPrinter(
|
|
3339
|
+
params?: Params$Resource$Customers$Reports$Countprintjobsbyprinter,
|
|
3340
|
+
options?: MethodOptions
|
|
3341
|
+
): GaxiosPromise<Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse>;
|
|
3342
|
+
countPrintJobsByPrinter(
|
|
3343
|
+
params: Params$Resource$Customers$Reports$Countprintjobsbyprinter,
|
|
3344
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3345
|
+
callback: BodyResponseCallback<Readable>
|
|
3346
|
+
): void;
|
|
3347
|
+
countPrintJobsByPrinter(
|
|
3348
|
+
params: Params$Resource$Customers$Reports$Countprintjobsbyprinter,
|
|
3349
|
+
options:
|
|
3350
|
+
| MethodOptions
|
|
3351
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse>,
|
|
3352
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse>
|
|
3353
|
+
): void;
|
|
3354
|
+
countPrintJobsByPrinter(
|
|
3355
|
+
params: Params$Resource$Customers$Reports$Countprintjobsbyprinter,
|
|
3356
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse>
|
|
3357
|
+
): void;
|
|
3358
|
+
countPrintJobsByPrinter(
|
|
3359
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse>
|
|
3360
|
+
): void;
|
|
3361
|
+
countPrintJobsByPrinter(
|
|
3362
|
+
paramsOrCallback?:
|
|
3363
|
+
| Params$Resource$Customers$Reports$Countprintjobsbyprinter
|
|
3364
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse>
|
|
3365
|
+
| BodyResponseCallback<Readable>,
|
|
3366
|
+
optionsOrCallback?:
|
|
3367
|
+
| MethodOptions
|
|
3368
|
+
| StreamMethodOptions
|
|
3369
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse>
|
|
3370
|
+
| BodyResponseCallback<Readable>,
|
|
3371
|
+
callback?:
|
|
3372
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse>
|
|
3373
|
+
| BodyResponseCallback<Readable>
|
|
3374
|
+
):
|
|
3375
|
+
| void
|
|
3376
|
+
| GaxiosPromise<Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse>
|
|
3377
|
+
| GaxiosPromise<Readable> {
|
|
3378
|
+
let params = (paramsOrCallback ||
|
|
3379
|
+
{}) as Params$Resource$Customers$Reports$Countprintjobsbyprinter;
|
|
3380
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3381
|
+
|
|
3382
|
+
if (typeof paramsOrCallback === 'function') {
|
|
3383
|
+
callback = paramsOrCallback;
|
|
3384
|
+
params =
|
|
3385
|
+
{} as Params$Resource$Customers$Reports$Countprintjobsbyprinter;
|
|
3386
|
+
options = {};
|
|
3387
|
+
}
|
|
3388
|
+
|
|
3389
|
+
if (typeof optionsOrCallback === 'function') {
|
|
3390
|
+
callback = optionsOrCallback;
|
|
3391
|
+
options = {};
|
|
3392
|
+
}
|
|
3393
|
+
|
|
3394
|
+
const rootUrl =
|
|
3395
|
+
options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
3396
|
+
const parameters = {
|
|
3397
|
+
options: Object.assign(
|
|
3398
|
+
{
|
|
3399
|
+
url: (
|
|
3400
|
+
rootUrl + '/v1/{+customer}/reports:countPrintJobsByPrinter'
|
|
3401
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
3402
|
+
method: 'GET',
|
|
3403
|
+
},
|
|
3404
|
+
options
|
|
3405
|
+
),
|
|
3406
|
+
params,
|
|
3407
|
+
requiredParams: ['customer'],
|
|
3408
|
+
pathParams: ['customer'],
|
|
3409
|
+
context: this.context,
|
|
3410
|
+
};
|
|
3411
|
+
if (callback) {
|
|
3412
|
+
createAPIRequest<Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse>(
|
|
3413
|
+
parameters,
|
|
3414
|
+
callback as BodyResponseCallback<unknown>
|
|
3415
|
+
);
|
|
3416
|
+
} else {
|
|
3417
|
+
return createAPIRequest<Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse>(
|
|
3418
|
+
parameters
|
|
3419
|
+
);
|
|
3420
|
+
}
|
|
3421
|
+
}
|
|
3422
|
+
|
|
3423
|
+
/**
|
|
3424
|
+
* Get a summary of printing done by each user.
|
|
3425
|
+
* @example
|
|
3426
|
+
* ```js
|
|
3427
|
+
* // Before running the sample:
|
|
3428
|
+
* // - Enable the API at:
|
|
3429
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
3430
|
+
* // - Login into gcloud by running:
|
|
3431
|
+
* // `$ gcloud auth application-default login`
|
|
3432
|
+
* // - Install the npm module by running:
|
|
3433
|
+
* // `$ npm install googleapis`
|
|
3434
|
+
*
|
|
3435
|
+
* const {google} = require('googleapis');
|
|
3436
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
3437
|
+
*
|
|
3438
|
+
* async function main() {
|
|
3439
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3440
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3441
|
+
* scopes: [
|
|
3442
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
3443
|
+
* ],
|
|
3444
|
+
* });
|
|
3445
|
+
*
|
|
3446
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3447
|
+
* const authClient = await auth.getClient();
|
|
3448
|
+
* google.options({auth: authClient});
|
|
3449
|
+
*
|
|
3450
|
+
* // Do the magic
|
|
3451
|
+
* const res = await chromemanagement.customers.reports.countPrintJobsByUser({
|
|
3452
|
+
* // Required. Customer ID prefixed with "customers/" or "customers/my_customer" to use the customer associated to the account making the request.
|
|
3453
|
+
* customer: 'customers/my-customer',
|
|
3454
|
+
* // 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
|
|
3455
|
+
* filter: 'placeholder-value',
|
|
3456
|
+
* // 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
|
|
3457
|
+
* orderBy: 'placeholder-value',
|
|
3458
|
+
* // Maximum number of results to return. Maximum and default are 100.
|
|
3459
|
+
* pageSize: 'placeholder-value',
|
|
3460
|
+
* // Token to specify the page of the response to be returned.
|
|
3461
|
+
* pageToken: 'placeholder-value',
|
|
3462
|
+
* // 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.
|
|
3463
|
+
* printerOrgUnitId: 'placeholder-value',
|
|
3464
|
+
* });
|
|
3465
|
+
* console.log(res.data);
|
|
3466
|
+
*
|
|
3467
|
+
* // Example response
|
|
3468
|
+
* // {
|
|
3469
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
3470
|
+
* // "totalSize": "my_totalSize",
|
|
3471
|
+
* // "userPrintReports": []
|
|
3472
|
+
* // }
|
|
3473
|
+
* }
|
|
3474
|
+
*
|
|
3475
|
+
* main().catch(e => {
|
|
3476
|
+
* console.error(e);
|
|
3477
|
+
* throw e;
|
|
3478
|
+
* });
|
|
3479
|
+
*
|
|
3480
|
+
* ```
|
|
3481
|
+
*
|
|
3482
|
+
* @param params - Parameters for request
|
|
3483
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3484
|
+
* @param callback - Optional callback that handles the response.
|
|
3485
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3486
|
+
*/
|
|
3487
|
+
countPrintJobsByUser(
|
|
3488
|
+
params: Params$Resource$Customers$Reports$Countprintjobsbyuser,
|
|
3489
|
+
options: StreamMethodOptions
|
|
3490
|
+
): GaxiosPromise<Readable>;
|
|
3491
|
+
countPrintJobsByUser(
|
|
3492
|
+
params?: Params$Resource$Customers$Reports$Countprintjobsbyuser,
|
|
3493
|
+
options?: MethodOptions
|
|
3494
|
+
): GaxiosPromise<Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse>;
|
|
3495
|
+
countPrintJobsByUser(
|
|
3496
|
+
params: Params$Resource$Customers$Reports$Countprintjobsbyuser,
|
|
3497
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3498
|
+
callback: BodyResponseCallback<Readable>
|
|
3499
|
+
): void;
|
|
3500
|
+
countPrintJobsByUser(
|
|
3501
|
+
params: Params$Resource$Customers$Reports$Countprintjobsbyuser,
|
|
3502
|
+
options:
|
|
3503
|
+
| MethodOptions
|
|
3504
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse>,
|
|
3505
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse>
|
|
3506
|
+
): void;
|
|
3507
|
+
countPrintJobsByUser(
|
|
3508
|
+
params: Params$Resource$Customers$Reports$Countprintjobsbyuser,
|
|
3509
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse>
|
|
3510
|
+
): void;
|
|
3511
|
+
countPrintJobsByUser(
|
|
3512
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse>
|
|
3513
|
+
): void;
|
|
3514
|
+
countPrintJobsByUser(
|
|
3515
|
+
paramsOrCallback?:
|
|
3516
|
+
| Params$Resource$Customers$Reports$Countprintjobsbyuser
|
|
3517
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse>
|
|
3518
|
+
| BodyResponseCallback<Readable>,
|
|
3519
|
+
optionsOrCallback?:
|
|
3520
|
+
| MethodOptions
|
|
3521
|
+
| StreamMethodOptions
|
|
3522
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse>
|
|
3523
|
+
| BodyResponseCallback<Readable>,
|
|
3524
|
+
callback?:
|
|
3525
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse>
|
|
3526
|
+
| BodyResponseCallback<Readable>
|
|
3527
|
+
):
|
|
3528
|
+
| void
|
|
3529
|
+
| GaxiosPromise<Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse>
|
|
3530
|
+
| GaxiosPromise<Readable> {
|
|
3531
|
+
let params = (paramsOrCallback ||
|
|
3532
|
+
{}) as Params$Resource$Customers$Reports$Countprintjobsbyuser;
|
|
3533
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3534
|
+
|
|
3535
|
+
if (typeof paramsOrCallback === 'function') {
|
|
3536
|
+
callback = paramsOrCallback;
|
|
3537
|
+
params = {} as Params$Resource$Customers$Reports$Countprintjobsbyuser;
|
|
3538
|
+
options = {};
|
|
3539
|
+
}
|
|
3540
|
+
|
|
3541
|
+
if (typeof optionsOrCallback === 'function') {
|
|
3542
|
+
callback = optionsOrCallback;
|
|
3543
|
+
options = {};
|
|
3544
|
+
}
|
|
3545
|
+
|
|
3546
|
+
const rootUrl =
|
|
3547
|
+
options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
3548
|
+
const parameters = {
|
|
3549
|
+
options: Object.assign(
|
|
3550
|
+
{
|
|
3551
|
+
url: (
|
|
3552
|
+
rootUrl + '/v1/{+customer}/reports:countPrintJobsByUser'
|
|
3553
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
3554
|
+
method: 'GET',
|
|
3555
|
+
},
|
|
3556
|
+
options
|
|
3557
|
+
),
|
|
3558
|
+
params,
|
|
3559
|
+
requiredParams: ['customer'],
|
|
3560
|
+
pathParams: ['customer'],
|
|
3561
|
+
context: this.context,
|
|
3562
|
+
};
|
|
3563
|
+
if (callback) {
|
|
3564
|
+
createAPIRequest<Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse>(
|
|
3565
|
+
parameters,
|
|
3566
|
+
callback as BodyResponseCallback<unknown>
|
|
3567
|
+
);
|
|
3568
|
+
} else {
|
|
3569
|
+
return createAPIRequest<Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse>(
|
|
3570
|
+
parameters
|
|
3571
|
+
);
|
|
3572
|
+
}
|
|
3573
|
+
}
|
|
3574
|
+
|
|
3575
|
+
/**
|
|
3576
|
+
* Generate report of devices that have a specified app installed.
|
|
3577
|
+
* @example
|
|
3578
|
+
* ```js
|
|
3579
|
+
* // Before running the sample:
|
|
3580
|
+
* // - Enable the API at:
|
|
3581
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
3582
|
+
* // - Login into gcloud by running:
|
|
3583
|
+
* // `$ gcloud auth application-default login`
|
|
3584
|
+
* // - Install the npm module by running:
|
|
3585
|
+
* // `$ npm install googleapis`
|
|
3586
|
+
*
|
|
3587
|
+
* const {google} = require('googleapis');
|
|
3588
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
3589
|
+
*
|
|
3590
|
+
* async function main() {
|
|
3591
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3592
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3593
|
+
* scopes: [
|
|
3594
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
3595
|
+
* ],
|
|
3596
|
+
* });
|
|
3597
|
+
*
|
|
3598
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3599
|
+
* const authClient = await auth.getClient();
|
|
3600
|
+
* google.options({auth: authClient});
|
|
3601
|
+
*
|
|
3602
|
+
* // Do the magic
|
|
3603
|
+
* const res = await chromemanagement.customers.reports.findInstalledAppDevices({
|
|
3604
|
+
* // 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).
|
|
3605
|
+
* appId: 'placeholder-value',
|
|
3606
|
+
* // Type of the app.
|
|
3607
|
+
* appType: 'placeholder-value',
|
|
2936
3608
|
* // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
2937
3609
|
* customer: 'customers/my-customer',
|
|
2938
3610
|
* // Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Supported filter fields: * last_active_date
|
|
@@ -3058,6 +3730,17 @@ export namespace chromemanagement_v1 {
|
|
|
3058
3730
|
}
|
|
3059
3731
|
}
|
|
3060
3732
|
|
|
3733
|
+
export interface Params$Resource$Customers$Reports$Countchromebrowsersneedingattention
|
|
3734
|
+
extends StandardParameters {
|
|
3735
|
+
/**
|
|
3736
|
+
* Required. The customer ID or "my_customer" prefixed with "customers/".
|
|
3737
|
+
*/
|
|
3738
|
+
customer?: string;
|
|
3739
|
+
/**
|
|
3740
|
+
* Optional. The ID of the organizational unit. If omitted, all data will be returned.
|
|
3741
|
+
*/
|
|
3742
|
+
orgUnitId?: string;
|
|
3743
|
+
}
|
|
3061
3744
|
export interface Params$Resource$Customers$Reports$Countchromedevicesreachingautoexpirationdate
|
|
3062
3745
|
extends StandardParameters {
|
|
3063
3746
|
/**
|
|
@@ -3137,11 +3820,11 @@ export namespace chromemanagement_v1 {
|
|
|
3137
3820
|
*/
|
|
3138
3821
|
customer?: string;
|
|
3139
3822
|
/**
|
|
3140
|
-
* Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Supported filter fields: * app_name * app_type * install_type * number_of_permissions * total_install_count * latest_profile_active_date * permission_name
|
|
3823
|
+
* Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Supported filter fields: * app_name * app_type * install_type * number_of_permissions * total_install_count * latest_profile_active_date * permission_name * app_id
|
|
3141
3824
|
*/
|
|
3142
3825
|
filter?: string;
|
|
3143
3826
|
/**
|
|
3144
|
-
* Field used to order results. Supported order by fields: * app_name * app_type * install_type * number_of_permissions * total_install_count
|
|
3827
|
+
* Field used to order results. Supported order by fields: * app_name * app_type * install_type * number_of_permissions * total_install_count * app_id
|
|
3145
3828
|
*/
|
|
3146
3829
|
orderBy?: string;
|
|
3147
3830
|
/**
|
|
@@ -3157,20 +3840,74 @@ export namespace chromemanagement_v1 {
|
|
|
3157
3840
|
*/
|
|
3158
3841
|
pageToken?: string;
|
|
3159
3842
|
}
|
|
3160
|
-
export interface Params$Resource$Customers$Reports$
|
|
3843
|
+
export interface Params$Resource$Customers$Reports$Countprintjobsbyprinter
|
|
3161
3844
|
extends StandardParameters {
|
|
3162
3845
|
/**
|
|
3163
|
-
*
|
|
3846
|
+
* Required. Customer ID prefixed with "customers/" or "customers/my_customer" to use the customer associated to the account making the request.
|
|
3164
3847
|
*/
|
|
3165
|
-
|
|
3848
|
+
customer?: string;
|
|
3166
3849
|
/**
|
|
3167
|
-
*
|
|
3850
|
+
* 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
|
|
3168
3851
|
*/
|
|
3169
|
-
|
|
3852
|
+
filter?: string;
|
|
3170
3853
|
/**
|
|
3171
|
-
*
|
|
3854
|
+
* 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
|
|
3172
3855
|
*/
|
|
3173
|
-
|
|
3856
|
+
orderBy?: string;
|
|
3857
|
+
/**
|
|
3858
|
+
* Maximum number of results to return. Maximum and default are 100.
|
|
3859
|
+
*/
|
|
3860
|
+
pageSize?: number;
|
|
3861
|
+
/**
|
|
3862
|
+
* Token to specify the page of the response to be returned.
|
|
3863
|
+
*/
|
|
3864
|
+
pageToken?: string;
|
|
3865
|
+
/**
|
|
3866
|
+
* 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.
|
|
3867
|
+
*/
|
|
3868
|
+
printerOrgUnitId?: string;
|
|
3869
|
+
}
|
|
3870
|
+
export interface Params$Resource$Customers$Reports$Countprintjobsbyuser
|
|
3871
|
+
extends StandardParameters {
|
|
3872
|
+
/**
|
|
3873
|
+
* Required. Customer ID prefixed with "customers/" or "customers/my_customer" to use the customer associated to the account making the request.
|
|
3874
|
+
*/
|
|
3875
|
+
customer?: string;
|
|
3876
|
+
/**
|
|
3877
|
+
* 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
|
|
3878
|
+
*/
|
|
3879
|
+
filter?: string;
|
|
3880
|
+
/**
|
|
3881
|
+
* 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
|
|
3882
|
+
*/
|
|
3883
|
+
orderBy?: string;
|
|
3884
|
+
/**
|
|
3885
|
+
* Maximum number of results to return. Maximum and default are 100.
|
|
3886
|
+
*/
|
|
3887
|
+
pageSize?: number;
|
|
3888
|
+
/**
|
|
3889
|
+
* Token to specify the page of the response to be returned.
|
|
3890
|
+
*/
|
|
3891
|
+
pageToken?: string;
|
|
3892
|
+
/**
|
|
3893
|
+
* 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.
|
|
3894
|
+
*/
|
|
3895
|
+
printerOrgUnitId?: string;
|
|
3896
|
+
}
|
|
3897
|
+
export interface Params$Resource$Customers$Reports$Findinstalledappdevices
|
|
3898
|
+
extends StandardParameters {
|
|
3899
|
+
/**
|
|
3900
|
+
* 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).
|
|
3901
|
+
*/
|
|
3902
|
+
appId?: string;
|
|
3903
|
+
/**
|
|
3904
|
+
* Type of the app.
|
|
3905
|
+
*/
|
|
3906
|
+
appType?: string;
|
|
3907
|
+
/**
|
|
3908
|
+
* Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
3909
|
+
*/
|
|
3910
|
+
customer?: string;
|
|
3174
3911
|
/**
|
|
3175
3912
|
* Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Supported filter fields: * last_active_date
|
|
3176
3913
|
*/
|
|
@@ -3197,10 +3934,12 @@ export namespace chromemanagement_v1 {
|
|
|
3197
3934
|
context: APIRequestContext;
|
|
3198
3935
|
devices: Resource$Customers$Telemetry$Devices;
|
|
3199
3936
|
events: Resource$Customers$Telemetry$Events;
|
|
3937
|
+
users: Resource$Customers$Telemetry$Users;
|
|
3200
3938
|
constructor(context: APIRequestContext) {
|
|
3201
3939
|
this.context = context;
|
|
3202
3940
|
this.devices = new Resource$Customers$Telemetry$Devices(this.context);
|
|
3203
3941
|
this.events = new Resource$Customers$Telemetry$Events(this.context);
|
|
3942
|
+
this.users = new Resource$Customers$Telemetry$Users(this.context);
|
|
3204
3943
|
}
|
|
3205
3944
|
}
|
|
3206
3945
|
|
|
@@ -3248,28 +3987,368 @@ export namespace chromemanagement_v1 {
|
|
|
3248
3987
|
*
|
|
3249
3988
|
* // Example response
|
|
3250
3989
|
* // {
|
|
3251
|
-
* // "audioStatusReport": [],
|
|
3252
|
-
* // "batteryInfo": [],
|
|
3253
|
-
* // "batteryStatusReport": [],
|
|
3254
|
-
* // "bootPerformanceReport": [],
|
|
3255
|
-
* // "cpuInfo": [],
|
|
3256
|
-
* // "cpuStatusReport": [],
|
|
3257
|
-
* // "customer": "my_customer",
|
|
3258
|
-
* // "deviceId": "my_deviceId",
|
|
3259
|
-
* // "graphicsInfo": {},
|
|
3260
|
-
* // "graphicsStatusReport": [],
|
|
3261
|
-
* // "memoryInfo": {},
|
|
3262
|
-
* // "memoryStatusReport": [],
|
|
3263
|
-
* // "name": "my_name",
|
|
3264
|
-
* // "networkDiagnosticsReport": [],
|
|
3265
|
-
* // "networkInfo": {},
|
|
3266
|
-
* // "networkStatusReport": [],
|
|
3267
|
-
* // "orgUnitId": "my_orgUnitId",
|
|
3268
|
-
* // "osUpdateStatus": [],
|
|
3269
|
-
* // "
|
|
3270
|
-
* // "
|
|
3271
|
-
* // "
|
|
3272
|
-
* // "
|
|
3990
|
+
* // "audioStatusReport": [],
|
|
3991
|
+
* // "batteryInfo": [],
|
|
3992
|
+
* // "batteryStatusReport": [],
|
|
3993
|
+
* // "bootPerformanceReport": [],
|
|
3994
|
+
* // "cpuInfo": [],
|
|
3995
|
+
* // "cpuStatusReport": [],
|
|
3996
|
+
* // "customer": "my_customer",
|
|
3997
|
+
* // "deviceId": "my_deviceId",
|
|
3998
|
+
* // "graphicsInfo": {},
|
|
3999
|
+
* // "graphicsStatusReport": [],
|
|
4000
|
+
* // "memoryInfo": {},
|
|
4001
|
+
* // "memoryStatusReport": [],
|
|
4002
|
+
* // "name": "my_name",
|
|
4003
|
+
* // "networkDiagnosticsReport": [],
|
|
4004
|
+
* // "networkInfo": {},
|
|
4005
|
+
* // "networkStatusReport": [],
|
|
4006
|
+
* // "orgUnitId": "my_orgUnitId",
|
|
4007
|
+
* // "osUpdateStatus": [],
|
|
4008
|
+
* // "peripheralsReport": [],
|
|
4009
|
+
* // "serialNumber": "my_serialNumber",
|
|
4010
|
+
* // "storageInfo": {},
|
|
4011
|
+
* // "storageStatusReport": [],
|
|
4012
|
+
* // "thunderboltInfo": []
|
|
4013
|
+
* // }
|
|
4014
|
+
* }
|
|
4015
|
+
*
|
|
4016
|
+
* main().catch(e => {
|
|
4017
|
+
* console.error(e);
|
|
4018
|
+
* throw e;
|
|
4019
|
+
* });
|
|
4020
|
+
*
|
|
4021
|
+
* ```
|
|
4022
|
+
*
|
|
4023
|
+
* @param params - Parameters for request
|
|
4024
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4025
|
+
* @param callback - Optional callback that handles the response.
|
|
4026
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4027
|
+
*/
|
|
4028
|
+
get(
|
|
4029
|
+
params: Params$Resource$Customers$Telemetry$Devices$Get,
|
|
4030
|
+
options: StreamMethodOptions
|
|
4031
|
+
): GaxiosPromise<Readable>;
|
|
4032
|
+
get(
|
|
4033
|
+
params?: Params$Resource$Customers$Telemetry$Devices$Get,
|
|
4034
|
+
options?: MethodOptions
|
|
4035
|
+
): GaxiosPromise<Schema$GoogleChromeManagementV1TelemetryDevice>;
|
|
4036
|
+
get(
|
|
4037
|
+
params: Params$Resource$Customers$Telemetry$Devices$Get,
|
|
4038
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
4039
|
+
callback: BodyResponseCallback<Readable>
|
|
4040
|
+
): void;
|
|
4041
|
+
get(
|
|
4042
|
+
params: Params$Resource$Customers$Telemetry$Devices$Get,
|
|
4043
|
+
options:
|
|
4044
|
+
| MethodOptions
|
|
4045
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1TelemetryDevice>,
|
|
4046
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1TelemetryDevice>
|
|
4047
|
+
): void;
|
|
4048
|
+
get(
|
|
4049
|
+
params: Params$Resource$Customers$Telemetry$Devices$Get,
|
|
4050
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1TelemetryDevice>
|
|
4051
|
+
): void;
|
|
4052
|
+
get(
|
|
4053
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1TelemetryDevice>
|
|
4054
|
+
): void;
|
|
4055
|
+
get(
|
|
4056
|
+
paramsOrCallback?:
|
|
4057
|
+
| Params$Resource$Customers$Telemetry$Devices$Get
|
|
4058
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1TelemetryDevice>
|
|
4059
|
+
| BodyResponseCallback<Readable>,
|
|
4060
|
+
optionsOrCallback?:
|
|
4061
|
+
| MethodOptions
|
|
4062
|
+
| StreamMethodOptions
|
|
4063
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1TelemetryDevice>
|
|
4064
|
+
| BodyResponseCallback<Readable>,
|
|
4065
|
+
callback?:
|
|
4066
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1TelemetryDevice>
|
|
4067
|
+
| BodyResponseCallback<Readable>
|
|
4068
|
+
):
|
|
4069
|
+
| void
|
|
4070
|
+
| GaxiosPromise<Schema$GoogleChromeManagementV1TelemetryDevice>
|
|
4071
|
+
| GaxiosPromise<Readable> {
|
|
4072
|
+
let params = (paramsOrCallback ||
|
|
4073
|
+
{}) as Params$Resource$Customers$Telemetry$Devices$Get;
|
|
4074
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
4075
|
+
|
|
4076
|
+
if (typeof paramsOrCallback === 'function') {
|
|
4077
|
+
callback = paramsOrCallback;
|
|
4078
|
+
params = {} as Params$Resource$Customers$Telemetry$Devices$Get;
|
|
4079
|
+
options = {};
|
|
4080
|
+
}
|
|
4081
|
+
|
|
4082
|
+
if (typeof optionsOrCallback === 'function') {
|
|
4083
|
+
callback = optionsOrCallback;
|
|
4084
|
+
options = {};
|
|
4085
|
+
}
|
|
4086
|
+
|
|
4087
|
+
const rootUrl =
|
|
4088
|
+
options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
4089
|
+
const parameters = {
|
|
4090
|
+
options: Object.assign(
|
|
4091
|
+
{
|
|
4092
|
+
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
4093
|
+
method: 'GET',
|
|
4094
|
+
},
|
|
4095
|
+
options
|
|
4096
|
+
),
|
|
4097
|
+
params,
|
|
4098
|
+
requiredParams: ['name'],
|
|
4099
|
+
pathParams: ['name'],
|
|
4100
|
+
context: this.context,
|
|
4101
|
+
};
|
|
4102
|
+
if (callback) {
|
|
4103
|
+
createAPIRequest<Schema$GoogleChromeManagementV1TelemetryDevice>(
|
|
4104
|
+
parameters,
|
|
4105
|
+
callback as BodyResponseCallback<unknown>
|
|
4106
|
+
);
|
|
4107
|
+
} else {
|
|
4108
|
+
return createAPIRequest<Schema$GoogleChromeManagementV1TelemetryDevice>(
|
|
4109
|
+
parameters
|
|
4110
|
+
);
|
|
4111
|
+
}
|
|
4112
|
+
}
|
|
4113
|
+
|
|
4114
|
+
/**
|
|
4115
|
+
* List all telemetry devices.
|
|
4116
|
+
* @example
|
|
4117
|
+
* ```js
|
|
4118
|
+
* // Before running the sample:
|
|
4119
|
+
* // - Enable the API at:
|
|
4120
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
4121
|
+
* // - Login into gcloud by running:
|
|
4122
|
+
* // `$ gcloud auth application-default login`
|
|
4123
|
+
* // - Install the npm module by running:
|
|
4124
|
+
* // `$ npm install googleapis`
|
|
4125
|
+
*
|
|
4126
|
+
* const {google} = require('googleapis');
|
|
4127
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
4128
|
+
*
|
|
4129
|
+
* async function main() {
|
|
4130
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4131
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4132
|
+
* scopes: [
|
|
4133
|
+
* 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
|
|
4134
|
+
* ],
|
|
4135
|
+
* });
|
|
4136
|
+
*
|
|
4137
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4138
|
+
* const authClient = await auth.getClient();
|
|
4139
|
+
* google.options({auth: authClient});
|
|
4140
|
+
*
|
|
4141
|
+
* // Do the magic
|
|
4142
|
+
* const res = await chromemanagement.customers.telemetry.devices.list({
|
|
4143
|
+
* // Optional. Only include resources that match the filter. Supported filter fields: - org_unit_id - serial_number - device_id
|
|
4144
|
+
* filter: 'placeholder-value',
|
|
4145
|
+
* // Maximum number of results to return. Default value is 100. Maximum value is 1000.
|
|
4146
|
+
* pageSize: 'placeholder-value',
|
|
4147
|
+
* // Token to specify next page in the list.
|
|
4148
|
+
* pageToken: 'placeholder-value',
|
|
4149
|
+
* // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
4150
|
+
* parent: 'customers/my-customer',
|
|
4151
|
+
* // Required. Read mask to specify which fields to return.
|
|
4152
|
+
* readMask: 'placeholder-value',
|
|
4153
|
+
* });
|
|
4154
|
+
* console.log(res.data);
|
|
4155
|
+
*
|
|
4156
|
+
* // Example response
|
|
4157
|
+
* // {
|
|
4158
|
+
* // "devices": [],
|
|
4159
|
+
* // "nextPageToken": "my_nextPageToken"
|
|
4160
|
+
* // }
|
|
4161
|
+
* }
|
|
4162
|
+
*
|
|
4163
|
+
* main().catch(e => {
|
|
4164
|
+
* console.error(e);
|
|
4165
|
+
* throw e;
|
|
4166
|
+
* });
|
|
4167
|
+
*
|
|
4168
|
+
* ```
|
|
4169
|
+
*
|
|
4170
|
+
* @param params - Parameters for request
|
|
4171
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4172
|
+
* @param callback - Optional callback that handles the response.
|
|
4173
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4174
|
+
*/
|
|
4175
|
+
list(
|
|
4176
|
+
params: Params$Resource$Customers$Telemetry$Devices$List,
|
|
4177
|
+
options: StreamMethodOptions
|
|
4178
|
+
): GaxiosPromise<Readable>;
|
|
4179
|
+
list(
|
|
4180
|
+
params?: Params$Resource$Customers$Telemetry$Devices$List,
|
|
4181
|
+
options?: MethodOptions
|
|
4182
|
+
): GaxiosPromise<Schema$GoogleChromeManagementV1ListTelemetryDevicesResponse>;
|
|
4183
|
+
list(
|
|
4184
|
+
params: Params$Resource$Customers$Telemetry$Devices$List,
|
|
4185
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
4186
|
+
callback: BodyResponseCallback<Readable>
|
|
4187
|
+
): void;
|
|
4188
|
+
list(
|
|
4189
|
+
params: Params$Resource$Customers$Telemetry$Devices$List,
|
|
4190
|
+
options:
|
|
4191
|
+
| MethodOptions
|
|
4192
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1ListTelemetryDevicesResponse>,
|
|
4193
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1ListTelemetryDevicesResponse>
|
|
4194
|
+
): void;
|
|
4195
|
+
list(
|
|
4196
|
+
params: Params$Resource$Customers$Telemetry$Devices$List,
|
|
4197
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1ListTelemetryDevicesResponse>
|
|
4198
|
+
): void;
|
|
4199
|
+
list(
|
|
4200
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1ListTelemetryDevicesResponse>
|
|
4201
|
+
): void;
|
|
4202
|
+
list(
|
|
4203
|
+
paramsOrCallback?:
|
|
4204
|
+
| Params$Resource$Customers$Telemetry$Devices$List
|
|
4205
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1ListTelemetryDevicesResponse>
|
|
4206
|
+
| BodyResponseCallback<Readable>,
|
|
4207
|
+
optionsOrCallback?:
|
|
4208
|
+
| MethodOptions
|
|
4209
|
+
| StreamMethodOptions
|
|
4210
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1ListTelemetryDevicesResponse>
|
|
4211
|
+
| BodyResponseCallback<Readable>,
|
|
4212
|
+
callback?:
|
|
4213
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1ListTelemetryDevicesResponse>
|
|
4214
|
+
| BodyResponseCallback<Readable>
|
|
4215
|
+
):
|
|
4216
|
+
| void
|
|
4217
|
+
| GaxiosPromise<Schema$GoogleChromeManagementV1ListTelemetryDevicesResponse>
|
|
4218
|
+
| GaxiosPromise<Readable> {
|
|
4219
|
+
let params = (paramsOrCallback ||
|
|
4220
|
+
{}) as Params$Resource$Customers$Telemetry$Devices$List;
|
|
4221
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
4222
|
+
|
|
4223
|
+
if (typeof paramsOrCallback === 'function') {
|
|
4224
|
+
callback = paramsOrCallback;
|
|
4225
|
+
params = {} as Params$Resource$Customers$Telemetry$Devices$List;
|
|
4226
|
+
options = {};
|
|
4227
|
+
}
|
|
4228
|
+
|
|
4229
|
+
if (typeof optionsOrCallback === 'function') {
|
|
4230
|
+
callback = optionsOrCallback;
|
|
4231
|
+
options = {};
|
|
4232
|
+
}
|
|
4233
|
+
|
|
4234
|
+
const rootUrl =
|
|
4235
|
+
options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
4236
|
+
const parameters = {
|
|
4237
|
+
options: Object.assign(
|
|
4238
|
+
{
|
|
4239
|
+
url: (rootUrl + '/v1/{+parent}/telemetry/devices').replace(
|
|
4240
|
+
/([^:]\/)\/+/g,
|
|
4241
|
+
'$1'
|
|
4242
|
+
),
|
|
4243
|
+
method: 'GET',
|
|
4244
|
+
},
|
|
4245
|
+
options
|
|
4246
|
+
),
|
|
4247
|
+
params,
|
|
4248
|
+
requiredParams: ['parent'],
|
|
4249
|
+
pathParams: ['parent'],
|
|
4250
|
+
context: this.context,
|
|
4251
|
+
};
|
|
4252
|
+
if (callback) {
|
|
4253
|
+
createAPIRequest<Schema$GoogleChromeManagementV1ListTelemetryDevicesResponse>(
|
|
4254
|
+
parameters,
|
|
4255
|
+
callback as BodyResponseCallback<unknown>
|
|
4256
|
+
);
|
|
4257
|
+
} else {
|
|
4258
|
+
return createAPIRequest<Schema$GoogleChromeManagementV1ListTelemetryDevicesResponse>(
|
|
4259
|
+
parameters
|
|
4260
|
+
);
|
|
4261
|
+
}
|
|
4262
|
+
}
|
|
4263
|
+
}
|
|
4264
|
+
|
|
4265
|
+
export interface Params$Resource$Customers$Telemetry$Devices$Get
|
|
4266
|
+
extends StandardParameters {
|
|
4267
|
+
/**
|
|
4268
|
+
* Required. Name of the `TelemetryDevice` to return.
|
|
4269
|
+
*/
|
|
4270
|
+
name?: string;
|
|
4271
|
+
/**
|
|
4272
|
+
* Required. Read mask to specify which fields to return.
|
|
4273
|
+
*/
|
|
4274
|
+
readMask?: string;
|
|
4275
|
+
}
|
|
4276
|
+
export interface Params$Resource$Customers$Telemetry$Devices$List
|
|
4277
|
+
extends StandardParameters {
|
|
4278
|
+
/**
|
|
4279
|
+
* Optional. Only include resources that match the filter. Supported filter fields: - org_unit_id - serial_number - device_id
|
|
4280
|
+
*/
|
|
4281
|
+
filter?: string;
|
|
4282
|
+
/**
|
|
4283
|
+
* Maximum number of results to return. Default value is 100. Maximum value is 1000.
|
|
4284
|
+
*/
|
|
4285
|
+
pageSize?: number;
|
|
4286
|
+
/**
|
|
4287
|
+
* Token to specify next page in the list.
|
|
4288
|
+
*/
|
|
4289
|
+
pageToken?: string;
|
|
4290
|
+
/**
|
|
4291
|
+
* Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
4292
|
+
*/
|
|
4293
|
+
parent?: string;
|
|
4294
|
+
/**
|
|
4295
|
+
* Required. Read mask to specify which fields to return.
|
|
4296
|
+
*/
|
|
4297
|
+
readMask?: string;
|
|
4298
|
+
}
|
|
4299
|
+
|
|
4300
|
+
export class Resource$Customers$Telemetry$Events {
|
|
4301
|
+
context: APIRequestContext;
|
|
4302
|
+
constructor(context: APIRequestContext) {
|
|
4303
|
+
this.context = context;
|
|
4304
|
+
}
|
|
4305
|
+
|
|
4306
|
+
/**
|
|
4307
|
+
* List telemetry events.
|
|
4308
|
+
* @example
|
|
4309
|
+
* ```js
|
|
4310
|
+
* // Before running the sample:
|
|
4311
|
+
* // - Enable the API at:
|
|
4312
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
4313
|
+
* // - Login into gcloud by running:
|
|
4314
|
+
* // `$ gcloud auth application-default login`
|
|
4315
|
+
* // - Install the npm module by running:
|
|
4316
|
+
* // `$ npm install googleapis`
|
|
4317
|
+
*
|
|
4318
|
+
* const {google} = require('googleapis');
|
|
4319
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
4320
|
+
*
|
|
4321
|
+
* async function main() {
|
|
4322
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4323
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4324
|
+
* scopes: [
|
|
4325
|
+
* 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
|
|
4326
|
+
* ],
|
|
4327
|
+
* });
|
|
4328
|
+
*
|
|
4329
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4330
|
+
* const authClient = await auth.getClient();
|
|
4331
|
+
* google.options({auth: authClient});
|
|
4332
|
+
*
|
|
4333
|
+
* // Do the magic
|
|
4334
|
+
* const res = await chromemanagement.customers.telemetry.events.list({
|
|
4335
|
+
* // Optional. Only include resources that match the filter. Supported filter fields: - device_id - user_id - device_org_unit_id - user_org_unit_id - timestamp - event_type The "timestamp" filter accepts either Epoch milliseconds or RFC 3339 formatted time surrounded by simple double quotes.
|
|
4336
|
+
* filter: 'placeholder-value',
|
|
4337
|
+
* // Optional. Maximum number of results to return. Default value is 100. Maximum value is 1000.
|
|
4338
|
+
* pageSize: 'placeholder-value',
|
|
4339
|
+
* // Optional. Token to specify next page in the list.
|
|
4340
|
+
* pageToken: 'placeholder-value',
|
|
4341
|
+
* // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
4342
|
+
* parent: 'customers/my-customer',
|
|
4343
|
+
* // Required. Read mask to specify which fields to return.
|
|
4344
|
+
* readMask: 'placeholder-value',
|
|
4345
|
+
* });
|
|
4346
|
+
* console.log(res.data);
|
|
4347
|
+
*
|
|
4348
|
+
* // Example response
|
|
4349
|
+
* // {
|
|
4350
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
4351
|
+
* // "telemetryEvents": []
|
|
3273
4352
|
* // }
|
|
3274
4353
|
* }
|
|
3275
4354
|
*
|
|
@@ -3285,57 +4364,57 @@ export namespace chromemanagement_v1 {
|
|
|
3285
4364
|
* @param callback - Optional callback that handles the response.
|
|
3286
4365
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3287
4366
|
*/
|
|
3288
|
-
|
|
3289
|
-
params: Params$Resource$Customers$Telemetry$
|
|
4367
|
+
list(
|
|
4368
|
+
params: Params$Resource$Customers$Telemetry$Events$List,
|
|
3290
4369
|
options: StreamMethodOptions
|
|
3291
4370
|
): GaxiosPromise<Readable>;
|
|
3292
|
-
|
|
3293
|
-
params?: Params$Resource$Customers$Telemetry$
|
|
4371
|
+
list(
|
|
4372
|
+
params?: Params$Resource$Customers$Telemetry$Events$List,
|
|
3294
4373
|
options?: MethodOptions
|
|
3295
|
-
): GaxiosPromise<Schema$
|
|
3296
|
-
|
|
3297
|
-
params: Params$Resource$Customers$Telemetry$
|
|
4374
|
+
): GaxiosPromise<Schema$GoogleChromeManagementV1ListTelemetryEventsResponse>;
|
|
4375
|
+
list(
|
|
4376
|
+
params: Params$Resource$Customers$Telemetry$Events$List,
|
|
3298
4377
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3299
4378
|
callback: BodyResponseCallback<Readable>
|
|
3300
4379
|
): void;
|
|
3301
|
-
|
|
3302
|
-
params: Params$Resource$Customers$Telemetry$
|
|
4380
|
+
list(
|
|
4381
|
+
params: Params$Resource$Customers$Telemetry$Events$List,
|
|
3303
4382
|
options:
|
|
3304
4383
|
| MethodOptions
|
|
3305
|
-
| BodyResponseCallback<Schema$
|
|
3306
|
-
callback: BodyResponseCallback<Schema$
|
|
4384
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1ListTelemetryEventsResponse>,
|
|
4385
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1ListTelemetryEventsResponse>
|
|
3307
4386
|
): void;
|
|
3308
|
-
|
|
3309
|
-
params: Params$Resource$Customers$Telemetry$
|
|
3310
|
-
callback: BodyResponseCallback<Schema$
|
|
4387
|
+
list(
|
|
4388
|
+
params: Params$Resource$Customers$Telemetry$Events$List,
|
|
4389
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1ListTelemetryEventsResponse>
|
|
3311
4390
|
): void;
|
|
3312
|
-
|
|
3313
|
-
callback: BodyResponseCallback<Schema$
|
|
4391
|
+
list(
|
|
4392
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1ListTelemetryEventsResponse>
|
|
3314
4393
|
): void;
|
|
3315
|
-
|
|
4394
|
+
list(
|
|
3316
4395
|
paramsOrCallback?:
|
|
3317
|
-
| Params$Resource$Customers$Telemetry$
|
|
3318
|
-
| BodyResponseCallback<Schema$
|
|
4396
|
+
| Params$Resource$Customers$Telemetry$Events$List
|
|
4397
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1ListTelemetryEventsResponse>
|
|
3319
4398
|
| BodyResponseCallback<Readable>,
|
|
3320
4399
|
optionsOrCallback?:
|
|
3321
4400
|
| MethodOptions
|
|
3322
4401
|
| StreamMethodOptions
|
|
3323
|
-
| BodyResponseCallback<Schema$
|
|
4402
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1ListTelemetryEventsResponse>
|
|
3324
4403
|
| BodyResponseCallback<Readable>,
|
|
3325
4404
|
callback?:
|
|
3326
|
-
| BodyResponseCallback<Schema$
|
|
4405
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1ListTelemetryEventsResponse>
|
|
3327
4406
|
| BodyResponseCallback<Readable>
|
|
3328
4407
|
):
|
|
3329
4408
|
| void
|
|
3330
|
-
| GaxiosPromise<Schema$
|
|
4409
|
+
| GaxiosPromise<Schema$GoogleChromeManagementV1ListTelemetryEventsResponse>
|
|
3331
4410
|
| GaxiosPromise<Readable> {
|
|
3332
4411
|
let params = (paramsOrCallback ||
|
|
3333
|
-
{}) as Params$Resource$Customers$Telemetry$
|
|
4412
|
+
{}) as Params$Resource$Customers$Telemetry$Events$List;
|
|
3334
4413
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3335
4414
|
|
|
3336
4415
|
if (typeof paramsOrCallback === 'function') {
|
|
3337
4416
|
callback = paramsOrCallback;
|
|
3338
|
-
params = {} as Params$Resource$Customers$Telemetry$
|
|
4417
|
+
params = {} as Params$Resource$Customers$Telemetry$Events$List;
|
|
3339
4418
|
options = {};
|
|
3340
4419
|
}
|
|
3341
4420
|
|
|
@@ -3349,30 +4428,64 @@ export namespace chromemanagement_v1 {
|
|
|
3349
4428
|
const parameters = {
|
|
3350
4429
|
options: Object.assign(
|
|
3351
4430
|
{
|
|
3352
|
-
url: (rootUrl + '/v1/{+
|
|
4431
|
+
url: (rootUrl + '/v1/{+parent}/telemetry/events').replace(
|
|
4432
|
+
/([^:]\/)\/+/g,
|
|
4433
|
+
'$1'
|
|
4434
|
+
),
|
|
3353
4435
|
method: 'GET',
|
|
3354
4436
|
},
|
|
3355
4437
|
options
|
|
3356
4438
|
),
|
|
3357
4439
|
params,
|
|
3358
|
-
requiredParams: ['
|
|
3359
|
-
pathParams: ['
|
|
4440
|
+
requiredParams: ['parent'],
|
|
4441
|
+
pathParams: ['parent'],
|
|
3360
4442
|
context: this.context,
|
|
3361
4443
|
};
|
|
3362
4444
|
if (callback) {
|
|
3363
|
-
createAPIRequest<Schema$
|
|
4445
|
+
createAPIRequest<Schema$GoogleChromeManagementV1ListTelemetryEventsResponse>(
|
|
3364
4446
|
parameters,
|
|
3365
4447
|
callback as BodyResponseCallback<unknown>
|
|
3366
4448
|
);
|
|
3367
4449
|
} else {
|
|
3368
|
-
return createAPIRequest<Schema$
|
|
4450
|
+
return createAPIRequest<Schema$GoogleChromeManagementV1ListTelemetryEventsResponse>(
|
|
3369
4451
|
parameters
|
|
3370
4452
|
);
|
|
3371
4453
|
}
|
|
3372
4454
|
}
|
|
4455
|
+
}
|
|
3373
4456
|
|
|
4457
|
+
export interface Params$Resource$Customers$Telemetry$Events$List
|
|
4458
|
+
extends StandardParameters {
|
|
3374
4459
|
/**
|
|
3375
|
-
*
|
|
4460
|
+
* Optional. Only include resources that match the filter. Supported filter fields: - device_id - user_id - device_org_unit_id - user_org_unit_id - timestamp - event_type The "timestamp" filter accepts either Epoch milliseconds or RFC 3339 formatted time surrounded by simple double quotes.
|
|
4461
|
+
*/
|
|
4462
|
+
filter?: string;
|
|
4463
|
+
/**
|
|
4464
|
+
* Optional. Maximum number of results to return. Default value is 100. Maximum value is 1000.
|
|
4465
|
+
*/
|
|
4466
|
+
pageSize?: number;
|
|
4467
|
+
/**
|
|
4468
|
+
* Optional. Token to specify next page in the list.
|
|
4469
|
+
*/
|
|
4470
|
+
pageToken?: string;
|
|
4471
|
+
/**
|
|
4472
|
+
* Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
4473
|
+
*/
|
|
4474
|
+
parent?: string;
|
|
4475
|
+
/**
|
|
4476
|
+
* Required. Read mask to specify which fields to return.
|
|
4477
|
+
*/
|
|
4478
|
+
readMask?: string;
|
|
4479
|
+
}
|
|
4480
|
+
|
|
4481
|
+
export class Resource$Customers$Telemetry$Users {
|
|
4482
|
+
context: APIRequestContext;
|
|
4483
|
+
constructor(context: APIRequestContext) {
|
|
4484
|
+
this.context = context;
|
|
4485
|
+
}
|
|
4486
|
+
|
|
4487
|
+
/**
|
|
4488
|
+
* Get telemetry user.
|
|
3376
4489
|
* @example
|
|
3377
4490
|
* ```js
|
|
3378
4491
|
* // Before running the sample:
|
|
@@ -3399,24 +4512,22 @@ export namespace chromemanagement_v1 {
|
|
|
3399
4512
|
* google.options({auth: authClient});
|
|
3400
4513
|
*
|
|
3401
4514
|
* // Do the magic
|
|
3402
|
-
* const res = await chromemanagement.customers.telemetry.
|
|
3403
|
-
* //
|
|
3404
|
-
*
|
|
3405
|
-
* //
|
|
3406
|
-
* pageSize: 'placeholder-value',
|
|
3407
|
-
* // Token to specify next page in the list.
|
|
3408
|
-
* pageToken: 'placeholder-value',
|
|
3409
|
-
* // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
3410
|
-
* parent: 'customers/my-customer',
|
|
3411
|
-
* // Required. Read mask to specify which fields to return.
|
|
4515
|
+
* const res = await chromemanagement.customers.telemetry.users.get({
|
|
4516
|
+
* // Required. Name of the `TelemetryUser` to return.
|
|
4517
|
+
* name: 'customers/my-customer/telemetry/users/my-user',
|
|
4518
|
+
* // Read mask to specify which fields to return.
|
|
3412
4519
|
* readMask: 'placeholder-value',
|
|
3413
4520
|
* });
|
|
3414
4521
|
* console.log(res.data);
|
|
3415
4522
|
*
|
|
3416
4523
|
* // Example response
|
|
3417
4524
|
* // {
|
|
3418
|
-
* // "
|
|
3419
|
-
* // "
|
|
4525
|
+
* // "customer": "my_customer",
|
|
4526
|
+
* // "name": "my_name",
|
|
4527
|
+
* // "orgUnitId": "my_orgUnitId",
|
|
4528
|
+
* // "userDevice": [],
|
|
4529
|
+
* // "userEmail": "my_userEmail",
|
|
4530
|
+
* // "userId": "my_userId"
|
|
3420
4531
|
* // }
|
|
3421
4532
|
* }
|
|
3422
4533
|
*
|
|
@@ -3432,57 +4543,57 @@ export namespace chromemanagement_v1 {
|
|
|
3432
4543
|
* @param callback - Optional callback that handles the response.
|
|
3433
4544
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3434
4545
|
*/
|
|
3435
|
-
|
|
3436
|
-
params: Params$Resource$Customers$Telemetry$
|
|
4546
|
+
get(
|
|
4547
|
+
params: Params$Resource$Customers$Telemetry$Users$Get,
|
|
3437
4548
|
options: StreamMethodOptions
|
|
3438
4549
|
): GaxiosPromise<Readable>;
|
|
3439
|
-
|
|
3440
|
-
params?: Params$Resource$Customers$Telemetry$
|
|
4550
|
+
get(
|
|
4551
|
+
params?: Params$Resource$Customers$Telemetry$Users$Get,
|
|
3441
4552
|
options?: MethodOptions
|
|
3442
|
-
): GaxiosPromise<Schema$
|
|
3443
|
-
|
|
3444
|
-
params: Params$Resource$Customers$Telemetry$
|
|
4553
|
+
): GaxiosPromise<Schema$GoogleChromeManagementV1TelemetryUser>;
|
|
4554
|
+
get(
|
|
4555
|
+
params: Params$Resource$Customers$Telemetry$Users$Get,
|
|
3445
4556
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3446
4557
|
callback: BodyResponseCallback<Readable>
|
|
3447
4558
|
): void;
|
|
3448
|
-
|
|
3449
|
-
params: Params$Resource$Customers$Telemetry$
|
|
4559
|
+
get(
|
|
4560
|
+
params: Params$Resource$Customers$Telemetry$Users$Get,
|
|
3450
4561
|
options:
|
|
3451
4562
|
| MethodOptions
|
|
3452
|
-
| BodyResponseCallback<Schema$
|
|
3453
|
-
callback: BodyResponseCallback<Schema$
|
|
4563
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1TelemetryUser>,
|
|
4564
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1TelemetryUser>
|
|
3454
4565
|
): void;
|
|
3455
|
-
|
|
3456
|
-
params: Params$Resource$Customers$Telemetry$
|
|
3457
|
-
callback: BodyResponseCallback<Schema$
|
|
4566
|
+
get(
|
|
4567
|
+
params: Params$Resource$Customers$Telemetry$Users$Get,
|
|
4568
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1TelemetryUser>
|
|
3458
4569
|
): void;
|
|
3459
|
-
|
|
3460
|
-
callback: BodyResponseCallback<Schema$
|
|
4570
|
+
get(
|
|
4571
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1TelemetryUser>
|
|
3461
4572
|
): void;
|
|
3462
|
-
|
|
4573
|
+
get(
|
|
3463
4574
|
paramsOrCallback?:
|
|
3464
|
-
| Params$Resource$Customers$Telemetry$
|
|
3465
|
-
| BodyResponseCallback<Schema$
|
|
4575
|
+
| Params$Resource$Customers$Telemetry$Users$Get
|
|
4576
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1TelemetryUser>
|
|
3466
4577
|
| BodyResponseCallback<Readable>,
|
|
3467
4578
|
optionsOrCallback?:
|
|
3468
4579
|
| MethodOptions
|
|
3469
4580
|
| StreamMethodOptions
|
|
3470
|
-
| BodyResponseCallback<Schema$
|
|
4581
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1TelemetryUser>
|
|
3471
4582
|
| BodyResponseCallback<Readable>,
|
|
3472
4583
|
callback?:
|
|
3473
|
-
| BodyResponseCallback<Schema$
|
|
4584
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1TelemetryUser>
|
|
3474
4585
|
| BodyResponseCallback<Readable>
|
|
3475
4586
|
):
|
|
3476
4587
|
| void
|
|
3477
|
-
| GaxiosPromise<Schema$
|
|
4588
|
+
| GaxiosPromise<Schema$GoogleChromeManagementV1TelemetryUser>
|
|
3478
4589
|
| GaxiosPromise<Readable> {
|
|
3479
4590
|
let params = (paramsOrCallback ||
|
|
3480
|
-
{}) as Params$Resource$Customers$Telemetry$
|
|
4591
|
+
{}) as Params$Resource$Customers$Telemetry$Users$Get;
|
|
3481
4592
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3482
4593
|
|
|
3483
4594
|
if (typeof paramsOrCallback === 'function') {
|
|
3484
4595
|
callback = paramsOrCallback;
|
|
3485
|
-
params = {} as Params$Resource$Customers$Telemetry$
|
|
4596
|
+
params = {} as Params$Resource$Customers$Telemetry$Users$Get;
|
|
3486
4597
|
options = {};
|
|
3487
4598
|
}
|
|
3488
4599
|
|
|
@@ -3496,75 +4607,30 @@ export namespace chromemanagement_v1 {
|
|
|
3496
4607
|
const parameters = {
|
|
3497
4608
|
options: Object.assign(
|
|
3498
4609
|
{
|
|
3499
|
-
url: (rootUrl + '/v1/{+
|
|
3500
|
-
/([^:]\/)\/+/g,
|
|
3501
|
-
'$1'
|
|
3502
|
-
),
|
|
4610
|
+
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
3503
4611
|
method: 'GET',
|
|
3504
4612
|
},
|
|
3505
4613
|
options
|
|
3506
4614
|
),
|
|
3507
4615
|
params,
|
|
3508
|
-
requiredParams: ['
|
|
3509
|
-
pathParams: ['
|
|
4616
|
+
requiredParams: ['name'],
|
|
4617
|
+
pathParams: ['name'],
|
|
3510
4618
|
context: this.context,
|
|
3511
4619
|
};
|
|
3512
4620
|
if (callback) {
|
|
3513
|
-
createAPIRequest<Schema$
|
|
4621
|
+
createAPIRequest<Schema$GoogleChromeManagementV1TelemetryUser>(
|
|
3514
4622
|
parameters,
|
|
3515
4623
|
callback as BodyResponseCallback<unknown>
|
|
3516
4624
|
);
|
|
3517
4625
|
} else {
|
|
3518
|
-
return createAPIRequest<Schema$
|
|
4626
|
+
return createAPIRequest<Schema$GoogleChromeManagementV1TelemetryUser>(
|
|
3519
4627
|
parameters
|
|
3520
4628
|
);
|
|
3521
4629
|
}
|
|
3522
4630
|
}
|
|
3523
|
-
}
|
|
3524
|
-
|
|
3525
|
-
export interface Params$Resource$Customers$Telemetry$Devices$Get
|
|
3526
|
-
extends StandardParameters {
|
|
3527
|
-
/**
|
|
3528
|
-
* Required. Name of the `TelemetryDevice` to return.
|
|
3529
|
-
*/
|
|
3530
|
-
name?: string;
|
|
3531
|
-
/**
|
|
3532
|
-
* Required. Read mask to specify which fields to return.
|
|
3533
|
-
*/
|
|
3534
|
-
readMask?: string;
|
|
3535
|
-
}
|
|
3536
|
-
export interface Params$Resource$Customers$Telemetry$Devices$List
|
|
3537
|
-
extends StandardParameters {
|
|
3538
|
-
/**
|
|
3539
|
-
* Optional. Only include resources that match the filter. Supported filter fields: - org_unit_id - serial_number - device_id
|
|
3540
|
-
*/
|
|
3541
|
-
filter?: string;
|
|
3542
|
-
/**
|
|
3543
|
-
* Maximum number of results to return. Default value is 100. Maximum value is 1000.
|
|
3544
|
-
*/
|
|
3545
|
-
pageSize?: number;
|
|
3546
|
-
/**
|
|
3547
|
-
* Token to specify next page in the list.
|
|
3548
|
-
*/
|
|
3549
|
-
pageToken?: string;
|
|
3550
|
-
/**
|
|
3551
|
-
* Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
3552
|
-
*/
|
|
3553
|
-
parent?: string;
|
|
3554
|
-
/**
|
|
3555
|
-
* Required. Read mask to specify which fields to return.
|
|
3556
|
-
*/
|
|
3557
|
-
readMask?: string;
|
|
3558
|
-
}
|
|
3559
|
-
|
|
3560
|
-
export class Resource$Customers$Telemetry$Events {
|
|
3561
|
-
context: APIRequestContext;
|
|
3562
|
-
constructor(context: APIRequestContext) {
|
|
3563
|
-
this.context = context;
|
|
3564
|
-
}
|
|
3565
4631
|
|
|
3566
4632
|
/**
|
|
3567
|
-
* List telemetry
|
|
4633
|
+
* List all telemetry users.
|
|
3568
4634
|
* @example
|
|
3569
4635
|
* ```js
|
|
3570
4636
|
* // Before running the sample:
|
|
@@ -3591,16 +4657,16 @@ export namespace chromemanagement_v1 {
|
|
|
3591
4657
|
* google.options({auth: authClient});
|
|
3592
4658
|
*
|
|
3593
4659
|
* // Do the magic
|
|
3594
|
-
* const res = await chromemanagement.customers.telemetry.
|
|
3595
|
-
* //
|
|
4660
|
+
* const res = await chromemanagement.customers.telemetry.users.list({
|
|
4661
|
+
* // Only include resources that match the filter. Supported filter fields: - user_id - user_org_unit_id
|
|
3596
4662
|
* filter: 'placeholder-value',
|
|
3597
|
-
* //
|
|
4663
|
+
* // Maximum number of results to return. Default value is 100. Maximum value is 1000.
|
|
3598
4664
|
* pageSize: 'placeholder-value',
|
|
3599
|
-
* //
|
|
4665
|
+
* // Token to specify next page in the list.
|
|
3600
4666
|
* pageToken: 'placeholder-value',
|
|
3601
4667
|
* // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
3602
4668
|
* parent: 'customers/my-customer',
|
|
3603
|
-
* //
|
|
4669
|
+
* // Read mask to specify which fields to return.
|
|
3604
4670
|
* readMask: 'placeholder-value',
|
|
3605
4671
|
* });
|
|
3606
4672
|
* console.log(res.data);
|
|
@@ -3608,7 +4674,7 @@ export namespace chromemanagement_v1 {
|
|
|
3608
4674
|
* // Example response
|
|
3609
4675
|
* // {
|
|
3610
4676
|
* // "nextPageToken": "my_nextPageToken",
|
|
3611
|
-
* // "
|
|
4677
|
+
* // "telemetryUsers": []
|
|
3612
4678
|
* // }
|
|
3613
4679
|
* }
|
|
3614
4680
|
*
|
|
@@ -3625,56 +4691,56 @@ export namespace chromemanagement_v1 {
|
|
|
3625
4691
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3626
4692
|
*/
|
|
3627
4693
|
list(
|
|
3628
|
-
params: Params$Resource$Customers$Telemetry$
|
|
4694
|
+
params: Params$Resource$Customers$Telemetry$Users$List,
|
|
3629
4695
|
options: StreamMethodOptions
|
|
3630
4696
|
): GaxiosPromise<Readable>;
|
|
3631
4697
|
list(
|
|
3632
|
-
params?: Params$Resource$Customers$Telemetry$
|
|
4698
|
+
params?: Params$Resource$Customers$Telemetry$Users$List,
|
|
3633
4699
|
options?: MethodOptions
|
|
3634
|
-
): GaxiosPromise<Schema$
|
|
4700
|
+
): GaxiosPromise<Schema$GoogleChromeManagementV1ListTelemetryUsersResponse>;
|
|
3635
4701
|
list(
|
|
3636
|
-
params: Params$Resource$Customers$Telemetry$
|
|
4702
|
+
params: Params$Resource$Customers$Telemetry$Users$List,
|
|
3637
4703
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3638
4704
|
callback: BodyResponseCallback<Readable>
|
|
3639
4705
|
): void;
|
|
3640
4706
|
list(
|
|
3641
|
-
params: Params$Resource$Customers$Telemetry$
|
|
4707
|
+
params: Params$Resource$Customers$Telemetry$Users$List,
|
|
3642
4708
|
options:
|
|
3643
4709
|
| MethodOptions
|
|
3644
|
-
| BodyResponseCallback<Schema$
|
|
3645
|
-
callback: BodyResponseCallback<Schema$
|
|
4710
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1ListTelemetryUsersResponse>,
|
|
4711
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1ListTelemetryUsersResponse>
|
|
3646
4712
|
): void;
|
|
3647
4713
|
list(
|
|
3648
|
-
params: Params$Resource$Customers$Telemetry$
|
|
3649
|
-
callback: BodyResponseCallback<Schema$
|
|
4714
|
+
params: Params$Resource$Customers$Telemetry$Users$List,
|
|
4715
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1ListTelemetryUsersResponse>
|
|
3650
4716
|
): void;
|
|
3651
4717
|
list(
|
|
3652
|
-
callback: BodyResponseCallback<Schema$
|
|
4718
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1ListTelemetryUsersResponse>
|
|
3653
4719
|
): void;
|
|
3654
4720
|
list(
|
|
3655
4721
|
paramsOrCallback?:
|
|
3656
|
-
| Params$Resource$Customers$Telemetry$
|
|
3657
|
-
| BodyResponseCallback<Schema$
|
|
4722
|
+
| Params$Resource$Customers$Telemetry$Users$List
|
|
4723
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1ListTelemetryUsersResponse>
|
|
3658
4724
|
| BodyResponseCallback<Readable>,
|
|
3659
4725
|
optionsOrCallback?:
|
|
3660
4726
|
| MethodOptions
|
|
3661
4727
|
| StreamMethodOptions
|
|
3662
|
-
| BodyResponseCallback<Schema$
|
|
4728
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1ListTelemetryUsersResponse>
|
|
3663
4729
|
| BodyResponseCallback<Readable>,
|
|
3664
4730
|
callback?:
|
|
3665
|
-
| BodyResponseCallback<Schema$
|
|
4731
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1ListTelemetryUsersResponse>
|
|
3666
4732
|
| BodyResponseCallback<Readable>
|
|
3667
4733
|
):
|
|
3668
4734
|
| void
|
|
3669
|
-
| GaxiosPromise<Schema$
|
|
4735
|
+
| GaxiosPromise<Schema$GoogleChromeManagementV1ListTelemetryUsersResponse>
|
|
3670
4736
|
| GaxiosPromise<Readable> {
|
|
3671
4737
|
let params = (paramsOrCallback ||
|
|
3672
|
-
{}) as Params$Resource$Customers$Telemetry$
|
|
4738
|
+
{}) as Params$Resource$Customers$Telemetry$Users$List;
|
|
3673
4739
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3674
4740
|
|
|
3675
4741
|
if (typeof paramsOrCallback === 'function') {
|
|
3676
4742
|
callback = paramsOrCallback;
|
|
3677
|
-
params = {} as Params$Resource$Customers$Telemetry$
|
|
4743
|
+
params = {} as Params$Resource$Customers$Telemetry$Users$List;
|
|
3678
4744
|
options = {};
|
|
3679
4745
|
}
|
|
3680
4746
|
|
|
@@ -3688,7 +4754,7 @@ export namespace chromemanagement_v1 {
|
|
|
3688
4754
|
const parameters = {
|
|
3689
4755
|
options: Object.assign(
|
|
3690
4756
|
{
|
|
3691
|
-
url: (rootUrl + '/v1/{+parent}/telemetry/
|
|
4757
|
+
url: (rootUrl + '/v1/{+parent}/telemetry/users').replace(
|
|
3692
4758
|
/([^:]\/)\/+/g,
|
|
3693
4759
|
'$1'
|
|
3694
4760
|
),
|
|
@@ -3702,30 +4768,41 @@ export namespace chromemanagement_v1 {
|
|
|
3702
4768
|
context: this.context,
|
|
3703
4769
|
};
|
|
3704
4770
|
if (callback) {
|
|
3705
|
-
createAPIRequest<Schema$
|
|
4771
|
+
createAPIRequest<Schema$GoogleChromeManagementV1ListTelemetryUsersResponse>(
|
|
3706
4772
|
parameters,
|
|
3707
4773
|
callback as BodyResponseCallback<unknown>
|
|
3708
4774
|
);
|
|
3709
4775
|
} else {
|
|
3710
|
-
return createAPIRequest<Schema$
|
|
4776
|
+
return createAPIRequest<Schema$GoogleChromeManagementV1ListTelemetryUsersResponse>(
|
|
3711
4777
|
parameters
|
|
3712
4778
|
);
|
|
3713
4779
|
}
|
|
3714
4780
|
}
|
|
3715
4781
|
}
|
|
3716
4782
|
|
|
3717
|
-
export interface Params$Resource$Customers$Telemetry$
|
|
4783
|
+
export interface Params$Resource$Customers$Telemetry$Users$Get
|
|
4784
|
+
extends StandardParameters {
|
|
4785
|
+
/**
|
|
4786
|
+
* Required. Name of the `TelemetryUser` to return.
|
|
4787
|
+
*/
|
|
4788
|
+
name?: string;
|
|
4789
|
+
/**
|
|
4790
|
+
* Read mask to specify which fields to return.
|
|
4791
|
+
*/
|
|
4792
|
+
readMask?: string;
|
|
4793
|
+
}
|
|
4794
|
+
export interface Params$Resource$Customers$Telemetry$Users$List
|
|
3718
4795
|
extends StandardParameters {
|
|
3719
4796
|
/**
|
|
3720
|
-
*
|
|
4797
|
+
* Only include resources that match the filter. Supported filter fields: - user_id - user_org_unit_id
|
|
3721
4798
|
*/
|
|
3722
4799
|
filter?: string;
|
|
3723
4800
|
/**
|
|
3724
|
-
*
|
|
4801
|
+
* Maximum number of results to return. Default value is 100. Maximum value is 1000.
|
|
3725
4802
|
*/
|
|
3726
4803
|
pageSize?: number;
|
|
3727
4804
|
/**
|
|
3728
|
-
*
|
|
4805
|
+
* Token to specify next page in the list.
|
|
3729
4806
|
*/
|
|
3730
4807
|
pageToken?: string;
|
|
3731
4808
|
/**
|
|
@@ -3733,7 +4810,7 @@ export namespace chromemanagement_v1 {
|
|
|
3733
4810
|
*/
|
|
3734
4811
|
parent?: string;
|
|
3735
4812
|
/**
|
|
3736
|
-
*
|
|
4813
|
+
* Read mask to specify which fields to return.
|
|
3737
4814
|
*/
|
|
3738
4815
|
readMask?: string;
|
|
3739
4816
|
}
|