@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/build/v1.d.ts
CHANGED
|
@@ -396,6 +396,10 @@ export declare namespace chromemanagement_v1 {
|
|
|
396
396
|
* 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.
|
|
397
397
|
*/
|
|
398
398
|
supportEnabled?: boolean | null;
|
|
399
|
+
/**
|
|
400
|
+
* Output only. Types of an item in the Chrome Web Store
|
|
401
|
+
*/
|
|
402
|
+
type?: string | null;
|
|
399
403
|
}
|
|
400
404
|
/**
|
|
401
405
|
* Permission requested by a Chrome app or extension.
|
|
@@ -473,6 +477,23 @@ export declare namespace chromemanagement_v1 {
|
|
|
473
477
|
*/
|
|
474
478
|
totalSize?: number | null;
|
|
475
479
|
}
|
|
480
|
+
/**
|
|
481
|
+
* Response containing counts for browsers that need attention.
|
|
482
|
+
*/
|
|
483
|
+
export interface Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse {
|
|
484
|
+
/**
|
|
485
|
+
* Number of browsers that haven’t had any recent activity
|
|
486
|
+
*/
|
|
487
|
+
noRecentActivityCount?: string | null;
|
|
488
|
+
/**
|
|
489
|
+
* Number of browsers that are pending an OS update
|
|
490
|
+
*/
|
|
491
|
+
pendingBrowserUpdateCount?: string | null;
|
|
492
|
+
/**
|
|
493
|
+
* Number of browsers that have been recently enrolled
|
|
494
|
+
*/
|
|
495
|
+
recentlyEnrolledCount?: string | null;
|
|
496
|
+
}
|
|
476
497
|
/**
|
|
477
498
|
* Response containing a list of devices expiring in each month of a selected time frame. Counts are grouped by model and Auto Update Expiration date.
|
|
478
499
|
*/
|
|
@@ -562,6 +583,40 @@ export declare namespace chromemanagement_v1 {
|
|
|
562
583
|
*/
|
|
563
584
|
totalSize?: number | null;
|
|
564
585
|
}
|
|
586
|
+
/**
|
|
587
|
+
* Response containing a summary printing report for each printer from the specified organizational unit for the requested time interval.
|
|
588
|
+
*/
|
|
589
|
+
export interface Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse {
|
|
590
|
+
/**
|
|
591
|
+
* Pagination token for requesting the next page.
|
|
592
|
+
*/
|
|
593
|
+
nextPageToken?: string | null;
|
|
594
|
+
/**
|
|
595
|
+
* List of PrinterReports matching request.
|
|
596
|
+
*/
|
|
597
|
+
printerReports?: Schema$GoogleChromeManagementV1PrinterReport[];
|
|
598
|
+
/**
|
|
599
|
+
* Total number of printers matching request.
|
|
600
|
+
*/
|
|
601
|
+
totalSize?: string | null;
|
|
602
|
+
}
|
|
603
|
+
/**
|
|
604
|
+
* Response containing a summary printing report for each user that has initiated a print job with a printer from the specified organizational unit during the requested time interval.
|
|
605
|
+
*/
|
|
606
|
+
export interface Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse {
|
|
607
|
+
/**
|
|
608
|
+
* Pagination token for requesting the next page.
|
|
609
|
+
*/
|
|
610
|
+
nextPageToken?: string | null;
|
|
611
|
+
/**
|
|
612
|
+
* Total number of users matching request.
|
|
613
|
+
*/
|
|
614
|
+
totalSize?: string | null;
|
|
615
|
+
/**
|
|
616
|
+
* List of UserPrintReports matching request.
|
|
617
|
+
*/
|
|
618
|
+
userPrintReports?: Schema$GoogleChromeManagementV1UserPrintReport[];
|
|
619
|
+
}
|
|
565
620
|
/**
|
|
566
621
|
* CPU specifications for the device * This field provides device information, which is static and will not change over time. * Data for this field is controlled via policy: [ReportDeviceCpuInfo](https://chromeenterprise.google/policies/#ReportDeviceCpuInfo) * Data Collection Frequency: Only at Upload * Default Data Reporting Frequency: 3 hours - Policy Controlled: Yes * Cache: If the device is offline, the collected data is stored locally, and will be reported when the device is next online: No * Reported for affiliated users only: N/A
|
|
567
622
|
*/
|
|
@@ -798,7 +853,7 @@ export declare namespace chromemanagement_v1 {
|
|
|
798
853
|
adapterInfo?: Schema$GoogleChromeManagementV1GraphicsAdapterInfo;
|
|
799
854
|
}
|
|
800
855
|
/**
|
|
801
|
-
* 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:
|
|
856
|
+
* 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
|
|
802
857
|
*/
|
|
803
858
|
export interface Schema$GoogleChromeManagementV1GraphicsStatusReport {
|
|
804
859
|
/**
|
|
@@ -895,6 +950,19 @@ export declare namespace chromemanagement_v1 {
|
|
|
895
950
|
*/
|
|
896
951
|
telemetryEvents?: Schema$GoogleChromeManagementV1TelemetryEvent[];
|
|
897
952
|
}
|
|
953
|
+
/**
|
|
954
|
+
* Response message for listing telemetry users for a customer.
|
|
955
|
+
*/
|
|
956
|
+
export interface Schema$GoogleChromeManagementV1ListTelemetryUsersResponse {
|
|
957
|
+
/**
|
|
958
|
+
* Token to specify next page in the list.
|
|
959
|
+
*/
|
|
960
|
+
nextPageToken?: string | null;
|
|
961
|
+
/**
|
|
962
|
+
* Telemetry users returned in the response.
|
|
963
|
+
*/
|
|
964
|
+
telemetryUsers?: Schema$GoogleChromeManagementV1TelemetryUser[];
|
|
965
|
+
}
|
|
898
966
|
/**
|
|
899
967
|
* 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
|
|
900
968
|
*/
|
|
@@ -1074,6 +1142,48 @@ export declare namespace chromemanagement_v1 {
|
|
|
1074
1142
|
*/
|
|
1075
1143
|
updateState?: string | null;
|
|
1076
1144
|
}
|
|
1145
|
+
/**
|
|
1146
|
+
* Peripherals report.
|
|
1147
|
+
*/
|
|
1148
|
+
export interface Schema$GoogleChromeManagementV1PeripheralsReport {
|
|
1149
|
+
/**
|
|
1150
|
+
* Output only. Timestamp of when the report was collected.
|
|
1151
|
+
*/
|
|
1152
|
+
reportTime?: string | null;
|
|
1153
|
+
/**
|
|
1154
|
+
* Reports of all usb connected devices.
|
|
1155
|
+
*/
|
|
1156
|
+
usbPeripheralReport?: Schema$GoogleChromeManagementV1UsbPeripheralReport[];
|
|
1157
|
+
}
|
|
1158
|
+
/**
|
|
1159
|
+
* 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.
|
|
1160
|
+
*/
|
|
1161
|
+
export interface Schema$GoogleChromeManagementV1PrinterReport {
|
|
1162
|
+
/**
|
|
1163
|
+
* Number of chrome devices that have been used to send print jobs to the specified printer.
|
|
1164
|
+
*/
|
|
1165
|
+
deviceCount?: string | null;
|
|
1166
|
+
/**
|
|
1167
|
+
* Number of print jobs sent to the printer.
|
|
1168
|
+
*/
|
|
1169
|
+
jobCount?: string | null;
|
|
1170
|
+
/**
|
|
1171
|
+
* Printer name.
|
|
1172
|
+
*/
|
|
1173
|
+
printer?: string | null;
|
|
1174
|
+
/**
|
|
1175
|
+
* Printer API ID.
|
|
1176
|
+
*/
|
|
1177
|
+
printerId?: string | null;
|
|
1178
|
+
/**
|
|
1179
|
+
* Printer model.
|
|
1180
|
+
*/
|
|
1181
|
+
printerModel?: string | null;
|
|
1182
|
+
/**
|
|
1183
|
+
* Number of users that have sent print jobs to the printer.
|
|
1184
|
+
*/
|
|
1185
|
+
userCount?: string | null;
|
|
1186
|
+
}
|
|
1077
1187
|
/**
|
|
1078
1188
|
* 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
|
|
1079
1189
|
*/
|
|
@@ -1202,6 +1312,10 @@ export declare namespace chromemanagement_v1 {
|
|
|
1202
1312
|
* Output only. Contains relevant information regarding ChromeOS update status.
|
|
1203
1313
|
*/
|
|
1204
1314
|
osUpdateStatus?: Schema$GoogleChromeManagementV1OsUpdateStatus[];
|
|
1315
|
+
/**
|
|
1316
|
+
* Output only. Peripherals reports collected periodically sorted in a decreasing order of report_time.
|
|
1317
|
+
*/
|
|
1318
|
+
peripheralsReport?: Schema$GoogleChromeManagementV1PeripheralsReport[];
|
|
1205
1319
|
/**
|
|
1206
1320
|
* Output only. Device serial number. This value is the same as the Admin Console's Serial Number in the ChromeOS Devices tab.
|
|
1207
1321
|
*/
|
|
@@ -1256,14 +1370,14 @@ export declare namespace chromemanagement_v1 {
|
|
|
1256
1370
|
* Output only. Resource name of the event.
|
|
1257
1371
|
*/
|
|
1258
1372
|
name?: string | null;
|
|
1259
|
-
/**
|
|
1260
|
-
* Output only. Payload for network connection state change event. Present only when `event_type` is `NETWORK_CONNECTION_STATE_CHANGE`.
|
|
1261
|
-
*/
|
|
1262
|
-
networkConnectionStateChangeEvent?: Schema$GoogleChromeManagementV1TelemetryNetworkConnectionStateChangeEvent;
|
|
1263
1373
|
/**
|
|
1264
1374
|
* Timestamp that represents when the event was reported.
|
|
1265
1375
|
*/
|
|
1266
1376
|
reportTime?: string | null;
|
|
1377
|
+
/**
|
|
1378
|
+
* Output only. Payload for usb peripherals event. Present only when the `event_type` field is either `USB_ADDED` or `USB_REMOVED`.
|
|
1379
|
+
*/
|
|
1380
|
+
usbPeripheralsEvent?: Schema$GoogleChromeManagementV1TelemetryUsbPeripheralsEvent;
|
|
1267
1381
|
/**
|
|
1268
1382
|
* Output only. Information about the user associated with the event.
|
|
1269
1383
|
*/
|
|
@@ -1283,17 +1397,59 @@ export declare namespace chromemanagement_v1 {
|
|
|
1283
1397
|
httpsLatencyState?: string | null;
|
|
1284
1398
|
}
|
|
1285
1399
|
/**
|
|
1286
|
-
* `
|
|
1400
|
+
* `TelemetryUsbPeripheralsEvent` is triggered USB devices are either added or removed.
|
|
1287
1401
|
*/
|
|
1288
|
-
export interface Schema$
|
|
1402
|
+
export interface Schema$GoogleChromeManagementV1TelemetryUsbPeripheralsEvent {
|
|
1289
1403
|
/**
|
|
1290
|
-
*
|
|
1404
|
+
* List of usb devices that were either added or removed.
|
|
1291
1405
|
*/
|
|
1292
|
-
|
|
1406
|
+
usbPeripheralReport?: Schema$GoogleChromeManagementV1UsbPeripheralReport[];
|
|
1407
|
+
}
|
|
1408
|
+
/**
|
|
1409
|
+
* Telemetry data collected from a managed user.
|
|
1410
|
+
*/
|
|
1411
|
+
export interface Schema$GoogleChromeManagementV1TelemetryUser {
|
|
1293
1412
|
/**
|
|
1294
|
-
*
|
|
1413
|
+
* G Suite Customer whose enterprise enrolled the device.
|
|
1295
1414
|
*/
|
|
1296
|
-
|
|
1415
|
+
customer?: string | null;
|
|
1416
|
+
/**
|
|
1417
|
+
* Resource name of the user.
|
|
1418
|
+
*/
|
|
1419
|
+
name?: string | null;
|
|
1420
|
+
/**
|
|
1421
|
+
* Organization unit of the user.
|
|
1422
|
+
*/
|
|
1423
|
+
orgUnitId?: string | null;
|
|
1424
|
+
/**
|
|
1425
|
+
* Telemetry data collected from a managed user and device.
|
|
1426
|
+
*/
|
|
1427
|
+
userDevice?: Schema$GoogleChromeManagementV1TelemetryUserDevice[];
|
|
1428
|
+
/**
|
|
1429
|
+
* Email address of the user.
|
|
1430
|
+
*/
|
|
1431
|
+
userEmail?: string | null;
|
|
1432
|
+
/**
|
|
1433
|
+
* Directory ID of the user.
|
|
1434
|
+
*/
|
|
1435
|
+
userId?: string | null;
|
|
1436
|
+
}
|
|
1437
|
+
/**
|
|
1438
|
+
* Telemetry data collected for a managed user and device.
|
|
1439
|
+
*/
|
|
1440
|
+
export interface Schema$GoogleChromeManagementV1TelemetryUserDevice {
|
|
1441
|
+
/**
|
|
1442
|
+
* Output only. Audio reports collected periodically sorted in a decreasing order of report_time.
|
|
1443
|
+
*/
|
|
1444
|
+
audioStatusReport?: Schema$GoogleChromeManagementV1AudioStatusReport[];
|
|
1445
|
+
/**
|
|
1446
|
+
* 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.
|
|
1447
|
+
*/
|
|
1448
|
+
deviceId?: string | null;
|
|
1449
|
+
/**
|
|
1450
|
+
* Output only. Peripherals reports collected periodically sorted in a decreasing order of report_time.
|
|
1451
|
+
*/
|
|
1452
|
+
peripheralsReport?: Schema$GoogleChromeManagementV1PeripheralsReport[];
|
|
1297
1453
|
}
|
|
1298
1454
|
/**
|
|
1299
1455
|
* Information about a user associated with telemetry data.
|
|
@@ -1338,6 +1494,68 @@ export declare namespace chromemanagement_v1 {
|
|
|
1338
1494
|
*/
|
|
1339
1495
|
maxKeys?: string | null;
|
|
1340
1496
|
}
|
|
1497
|
+
/**
|
|
1498
|
+
* USB connected peripheral report.
|
|
1499
|
+
*/
|
|
1500
|
+
export interface Schema$GoogleChromeManagementV1UsbPeripheralReport {
|
|
1501
|
+
/**
|
|
1502
|
+
* Output only. Categories the device belongs to https://www.usb.org/defined-class-codes
|
|
1503
|
+
*/
|
|
1504
|
+
categories?: string[] | null;
|
|
1505
|
+
/**
|
|
1506
|
+
* Output only. Class ID https://www.usb.org/defined-class-codes
|
|
1507
|
+
*/
|
|
1508
|
+
classId?: number | null;
|
|
1509
|
+
/**
|
|
1510
|
+
* Output only. Firmware version
|
|
1511
|
+
*/
|
|
1512
|
+
firmwareVersion?: string | null;
|
|
1513
|
+
/**
|
|
1514
|
+
* Output only. Device name, model name, or product name
|
|
1515
|
+
*/
|
|
1516
|
+
name?: string | null;
|
|
1517
|
+
/**
|
|
1518
|
+
* Output only. Product ID
|
|
1519
|
+
*/
|
|
1520
|
+
pid?: number | null;
|
|
1521
|
+
/**
|
|
1522
|
+
* Output only. Subclass ID https://www.usb.org/defined-class-codes
|
|
1523
|
+
*/
|
|
1524
|
+
subclassId?: number | null;
|
|
1525
|
+
/**
|
|
1526
|
+
* Output only. Vendor name
|
|
1527
|
+
*/
|
|
1528
|
+
vendor?: string | null;
|
|
1529
|
+
/**
|
|
1530
|
+
* Output only. Vendor ID
|
|
1531
|
+
*/
|
|
1532
|
+
vid?: number | null;
|
|
1533
|
+
}
|
|
1534
|
+
/**
|
|
1535
|
+
* 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.
|
|
1536
|
+
*/
|
|
1537
|
+
export interface Schema$GoogleChromeManagementV1UserPrintReport {
|
|
1538
|
+
/**
|
|
1539
|
+
* Number of chrome devices that have been used to initiate print jobs by the user.
|
|
1540
|
+
*/
|
|
1541
|
+
deviceCount?: string | null;
|
|
1542
|
+
/**
|
|
1543
|
+
* Number of print jobs initiated by the user.
|
|
1544
|
+
*/
|
|
1545
|
+
jobCount?: string | null;
|
|
1546
|
+
/**
|
|
1547
|
+
* Number of printers used by the user.
|
|
1548
|
+
*/
|
|
1549
|
+
printerCount?: string | null;
|
|
1550
|
+
/**
|
|
1551
|
+
* The primary e-mail address of the user.
|
|
1552
|
+
*/
|
|
1553
|
+
userEmail?: string | null;
|
|
1554
|
+
/**
|
|
1555
|
+
* The unique Directory API ID of the user.
|
|
1556
|
+
*/
|
|
1557
|
+
userId?: string | null;
|
|
1558
|
+
}
|
|
1341
1559
|
/**
|
|
1342
1560
|
* 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).
|
|
1343
1561
|
*/
|
|
@@ -1739,6 +1957,71 @@ export declare namespace chromemanagement_v1 {
|
|
|
1739
1957
|
export class Resource$Customers$Reports {
|
|
1740
1958
|
context: APIRequestContext;
|
|
1741
1959
|
constructor(context: APIRequestContext);
|
|
1960
|
+
/**
|
|
1961
|
+
* Count of Chrome Browsers that have been recently enrolled, have new policy to be synced, or have no recent activity.
|
|
1962
|
+
* @example
|
|
1963
|
+
* ```js
|
|
1964
|
+
* // Before running the sample:
|
|
1965
|
+
* // - Enable the API at:
|
|
1966
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
1967
|
+
* // - Login into gcloud by running:
|
|
1968
|
+
* // `$ gcloud auth application-default login`
|
|
1969
|
+
* // - Install the npm module by running:
|
|
1970
|
+
* // `$ npm install googleapis`
|
|
1971
|
+
*
|
|
1972
|
+
* const {google} = require('googleapis');
|
|
1973
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
1974
|
+
*
|
|
1975
|
+
* async function main() {
|
|
1976
|
+
* const auth = new google.auth.GoogleAuth({
|
|
1977
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1978
|
+
* scopes: [
|
|
1979
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
1980
|
+
* ],
|
|
1981
|
+
* });
|
|
1982
|
+
*
|
|
1983
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
1984
|
+
* const authClient = await auth.getClient();
|
|
1985
|
+
* google.options({auth: authClient});
|
|
1986
|
+
*
|
|
1987
|
+
* // Do the magic
|
|
1988
|
+
* const res =
|
|
1989
|
+
* await chromemanagement.customers.reports.countChromeBrowsersNeedingAttention(
|
|
1990
|
+
* {
|
|
1991
|
+
* // Required. The customer ID or "my_customer" prefixed with "customers/".
|
|
1992
|
+
* customer: 'customers/my-customer',
|
|
1993
|
+
* // Optional. The ID of the organizational unit. If omitted, all data will be returned.
|
|
1994
|
+
* orgUnitId: 'placeholder-value',
|
|
1995
|
+
* }
|
|
1996
|
+
* );
|
|
1997
|
+
* console.log(res.data);
|
|
1998
|
+
*
|
|
1999
|
+
* // Example response
|
|
2000
|
+
* // {
|
|
2001
|
+
* // "noRecentActivityCount": "my_noRecentActivityCount",
|
|
2002
|
+
* // "pendingBrowserUpdateCount": "my_pendingBrowserUpdateCount",
|
|
2003
|
+
* // "recentlyEnrolledCount": "my_recentlyEnrolledCount"
|
|
2004
|
+
* // }
|
|
2005
|
+
* }
|
|
2006
|
+
*
|
|
2007
|
+
* main().catch(e => {
|
|
2008
|
+
* console.error(e);
|
|
2009
|
+
* throw e;
|
|
2010
|
+
* });
|
|
2011
|
+
*
|
|
2012
|
+
* ```
|
|
2013
|
+
*
|
|
2014
|
+
* @param params - Parameters for request
|
|
2015
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2016
|
+
* @param callback - Optional callback that handles the response.
|
|
2017
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2018
|
+
*/
|
|
2019
|
+
countChromeBrowsersNeedingAttention(params: Params$Resource$Customers$Reports$Countchromebrowsersneedingattention, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
2020
|
+
countChromeBrowsersNeedingAttention(params?: Params$Resource$Customers$Reports$Countchromebrowsersneedingattention, options?: MethodOptions): GaxiosPromise<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>;
|
|
2021
|
+
countChromeBrowsersNeedingAttention(params: Params$Resource$Customers$Reports$Countchromebrowsersneedingattention, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2022
|
+
countChromeBrowsersNeedingAttention(params: Params$Resource$Customers$Reports$Countchromebrowsersneedingattention, options: MethodOptions | BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>, callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>): void;
|
|
2023
|
+
countChromeBrowsersNeedingAttention(params: Params$Resource$Customers$Reports$Countchromebrowsersneedingattention, callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>): void;
|
|
2024
|
+
countChromeBrowsersNeedingAttention(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>): void;
|
|
1742
2025
|
/**
|
|
1743
2026
|
* 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).
|
|
1744
2027
|
* @example
|
|
@@ -2040,9 +2323,9 @@ export declare namespace chromemanagement_v1 {
|
|
|
2040
2323
|
* const res = await chromemanagement.customers.reports.countInstalledApps({
|
|
2041
2324
|
* // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
2042
2325
|
* customer: 'customers/my-customer',
|
|
2043
|
-
* // 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
|
|
2326
|
+
* // 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
|
|
2044
2327
|
* filter: 'placeholder-value',
|
|
2045
|
-
* // Field used to order results. Supported order by fields: * app_name * app_type * install_type * number_of_permissions * total_install_count
|
|
2328
|
+
* // Field used to order results. Supported order by fields: * app_name * app_type * install_type * number_of_permissions * total_install_count * app_id
|
|
2046
2329
|
* orderBy: 'placeholder-value',
|
|
2047
2330
|
* // The ID of the organizational unit.
|
|
2048
2331
|
* orgUnitId: 'placeholder-value',
|
|
@@ -2079,6 +2362,146 @@ export declare namespace chromemanagement_v1 {
|
|
|
2079
2362
|
countInstalledApps(params: Params$Resource$Customers$Reports$Countinstalledapps, options: MethodOptions | BodyResponseCallback<Schema$GoogleChromeManagementV1CountInstalledAppsResponse>, callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountInstalledAppsResponse>): void;
|
|
2080
2363
|
countInstalledApps(params: Params$Resource$Customers$Reports$Countinstalledapps, callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountInstalledAppsResponse>): void;
|
|
2081
2364
|
countInstalledApps(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountInstalledAppsResponse>): void;
|
|
2365
|
+
/**
|
|
2366
|
+
* Get a summary of printing done by each printer.
|
|
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 = await chromemanagement.customers.reports.countPrintJobsByPrinter({
|
|
2394
|
+
* // Required. Customer ID prefixed with "customers/" or "customers/my_customer" to use the customer associated to the account making the request.
|
|
2395
|
+
* customer: 'customers/my-customer',
|
|
2396
|
+
* // 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
|
|
2397
|
+
* filter: 'placeholder-value',
|
|
2398
|
+
* // 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
|
|
2399
|
+
* orderBy: 'placeholder-value',
|
|
2400
|
+
* // Maximum number of results to return. Maximum and default are 100.
|
|
2401
|
+
* pageSize: 'placeholder-value',
|
|
2402
|
+
* // Token to specify the page of the response to be returned.
|
|
2403
|
+
* pageToken: 'placeholder-value',
|
|
2404
|
+
* // 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.
|
|
2405
|
+
* printerOrgUnitId: 'placeholder-value',
|
|
2406
|
+
* });
|
|
2407
|
+
* console.log(res.data);
|
|
2408
|
+
*
|
|
2409
|
+
* // Example response
|
|
2410
|
+
* // {
|
|
2411
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
2412
|
+
* // "printerReports": [],
|
|
2413
|
+
* // "totalSize": "my_totalSize"
|
|
2414
|
+
* // }
|
|
2415
|
+
* }
|
|
2416
|
+
*
|
|
2417
|
+
* main().catch(e => {
|
|
2418
|
+
* console.error(e);
|
|
2419
|
+
* throw e;
|
|
2420
|
+
* });
|
|
2421
|
+
*
|
|
2422
|
+
* ```
|
|
2423
|
+
*
|
|
2424
|
+
* @param params - Parameters for request
|
|
2425
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2426
|
+
* @param callback - Optional callback that handles the response.
|
|
2427
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2428
|
+
*/
|
|
2429
|
+
countPrintJobsByPrinter(params: Params$Resource$Customers$Reports$Countprintjobsbyprinter, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
2430
|
+
countPrintJobsByPrinter(params?: Params$Resource$Customers$Reports$Countprintjobsbyprinter, options?: MethodOptions): GaxiosPromise<Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse>;
|
|
2431
|
+
countPrintJobsByPrinter(params: Params$Resource$Customers$Reports$Countprintjobsbyprinter, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2432
|
+
countPrintJobsByPrinter(params: Params$Resource$Customers$Reports$Countprintjobsbyprinter, options: MethodOptions | BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse>, callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse>): void;
|
|
2433
|
+
countPrintJobsByPrinter(params: Params$Resource$Customers$Reports$Countprintjobsbyprinter, callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse>): void;
|
|
2434
|
+
countPrintJobsByPrinter(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse>): void;
|
|
2435
|
+
/**
|
|
2436
|
+
* Get a summary of printing done by each user.
|
|
2437
|
+
* @example
|
|
2438
|
+
* ```js
|
|
2439
|
+
* // Before running the sample:
|
|
2440
|
+
* // - Enable the API at:
|
|
2441
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
2442
|
+
* // - Login into gcloud by running:
|
|
2443
|
+
* // `$ gcloud auth application-default login`
|
|
2444
|
+
* // - Install the npm module by running:
|
|
2445
|
+
* // `$ npm install googleapis`
|
|
2446
|
+
*
|
|
2447
|
+
* const {google} = require('googleapis');
|
|
2448
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
2449
|
+
*
|
|
2450
|
+
* async function main() {
|
|
2451
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2452
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2453
|
+
* scopes: [
|
|
2454
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
2455
|
+
* ],
|
|
2456
|
+
* });
|
|
2457
|
+
*
|
|
2458
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2459
|
+
* const authClient = await auth.getClient();
|
|
2460
|
+
* google.options({auth: authClient});
|
|
2461
|
+
*
|
|
2462
|
+
* // Do the magic
|
|
2463
|
+
* const res = await chromemanagement.customers.reports.countPrintJobsByUser({
|
|
2464
|
+
* // Required. Customer ID prefixed with "customers/" or "customers/my_customer" to use the customer associated to the account making the request.
|
|
2465
|
+
* customer: 'customers/my-customer',
|
|
2466
|
+
* // 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
|
|
2467
|
+
* filter: 'placeholder-value',
|
|
2468
|
+
* // 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
|
|
2469
|
+
* orderBy: 'placeholder-value',
|
|
2470
|
+
* // Maximum number of results to return. Maximum and default are 100.
|
|
2471
|
+
* pageSize: 'placeholder-value',
|
|
2472
|
+
* // Token to specify the page of the response to be returned.
|
|
2473
|
+
* pageToken: 'placeholder-value',
|
|
2474
|
+
* // 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.
|
|
2475
|
+
* printerOrgUnitId: 'placeholder-value',
|
|
2476
|
+
* });
|
|
2477
|
+
* console.log(res.data);
|
|
2478
|
+
*
|
|
2479
|
+
* // Example response
|
|
2480
|
+
* // {
|
|
2481
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
2482
|
+
* // "totalSize": "my_totalSize",
|
|
2483
|
+
* // "userPrintReports": []
|
|
2484
|
+
* // }
|
|
2485
|
+
* }
|
|
2486
|
+
*
|
|
2487
|
+
* main().catch(e => {
|
|
2488
|
+
* console.error(e);
|
|
2489
|
+
* throw e;
|
|
2490
|
+
* });
|
|
2491
|
+
*
|
|
2492
|
+
* ```
|
|
2493
|
+
*
|
|
2494
|
+
* @param params - Parameters for request
|
|
2495
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2496
|
+
* @param callback - Optional callback that handles the response.
|
|
2497
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2498
|
+
*/
|
|
2499
|
+
countPrintJobsByUser(params: Params$Resource$Customers$Reports$Countprintjobsbyuser, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
2500
|
+
countPrintJobsByUser(params?: Params$Resource$Customers$Reports$Countprintjobsbyuser, options?: MethodOptions): GaxiosPromise<Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse>;
|
|
2501
|
+
countPrintJobsByUser(params: Params$Resource$Customers$Reports$Countprintjobsbyuser, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2502
|
+
countPrintJobsByUser(params: Params$Resource$Customers$Reports$Countprintjobsbyuser, options: MethodOptions | BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse>, callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse>): void;
|
|
2503
|
+
countPrintJobsByUser(params: Params$Resource$Customers$Reports$Countprintjobsbyuser, callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse>): void;
|
|
2504
|
+
countPrintJobsByUser(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse>): void;
|
|
2082
2505
|
/**
|
|
2083
2506
|
* Generate report of devices that have a specified app installed.
|
|
2084
2507
|
* @example
|
|
@@ -2154,6 +2577,16 @@ export declare namespace chromemanagement_v1 {
|
|
|
2154
2577
|
findInstalledAppDevices(params: Params$Resource$Customers$Reports$Findinstalledappdevices, callback: BodyResponseCallback<Schema$GoogleChromeManagementV1FindInstalledAppDevicesResponse>): void;
|
|
2155
2578
|
findInstalledAppDevices(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1FindInstalledAppDevicesResponse>): void;
|
|
2156
2579
|
}
|
|
2580
|
+
export interface Params$Resource$Customers$Reports$Countchromebrowsersneedingattention extends StandardParameters {
|
|
2581
|
+
/**
|
|
2582
|
+
* Required. The customer ID or "my_customer" prefixed with "customers/".
|
|
2583
|
+
*/
|
|
2584
|
+
customer?: string;
|
|
2585
|
+
/**
|
|
2586
|
+
* Optional. The ID of the organizational unit. If omitted, all data will be returned.
|
|
2587
|
+
*/
|
|
2588
|
+
orgUnitId?: string;
|
|
2589
|
+
}
|
|
2157
2590
|
export interface Params$Resource$Customers$Reports$Countchromedevicesreachingautoexpirationdate extends StandardParameters {
|
|
2158
2591
|
/**
|
|
2159
2592
|
* Required. The customer ID or "my_customer" prefixed with "customers/".
|
|
@@ -2228,11 +2661,11 @@ export declare namespace chromemanagement_v1 {
|
|
|
2228
2661
|
*/
|
|
2229
2662
|
customer?: string;
|
|
2230
2663
|
/**
|
|
2231
|
-
* 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
|
|
2664
|
+
* 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
|
|
2232
2665
|
*/
|
|
2233
2666
|
filter?: string;
|
|
2234
2667
|
/**
|
|
2235
|
-
* Field used to order results. Supported order by fields: * app_name * app_type * install_type * number_of_permissions * total_install_count
|
|
2668
|
+
* Field used to order results. Supported order by fields: * app_name * app_type * install_type * number_of_permissions * total_install_count * app_id
|
|
2236
2669
|
*/
|
|
2237
2670
|
orderBy?: string;
|
|
2238
2671
|
/**
|
|
@@ -2248,6 +2681,58 @@ export declare namespace chromemanagement_v1 {
|
|
|
2248
2681
|
*/
|
|
2249
2682
|
pageToken?: string;
|
|
2250
2683
|
}
|
|
2684
|
+
export interface Params$Resource$Customers$Reports$Countprintjobsbyprinter extends StandardParameters {
|
|
2685
|
+
/**
|
|
2686
|
+
* Required. Customer ID prefixed with "customers/" or "customers/my_customer" to use the customer associated to the account making the request.
|
|
2687
|
+
*/
|
|
2688
|
+
customer?: string;
|
|
2689
|
+
/**
|
|
2690
|
+
* 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
|
|
2691
|
+
*/
|
|
2692
|
+
filter?: string;
|
|
2693
|
+
/**
|
|
2694
|
+
* 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
|
|
2695
|
+
*/
|
|
2696
|
+
orderBy?: string;
|
|
2697
|
+
/**
|
|
2698
|
+
* Maximum number of results to return. Maximum and default are 100.
|
|
2699
|
+
*/
|
|
2700
|
+
pageSize?: number;
|
|
2701
|
+
/**
|
|
2702
|
+
* Token to specify the page of the response to be returned.
|
|
2703
|
+
*/
|
|
2704
|
+
pageToken?: string;
|
|
2705
|
+
/**
|
|
2706
|
+
* 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.
|
|
2707
|
+
*/
|
|
2708
|
+
printerOrgUnitId?: string;
|
|
2709
|
+
}
|
|
2710
|
+
export interface Params$Resource$Customers$Reports$Countprintjobsbyuser extends StandardParameters {
|
|
2711
|
+
/**
|
|
2712
|
+
* Required. Customer ID prefixed with "customers/" or "customers/my_customer" to use the customer associated to the account making the request.
|
|
2713
|
+
*/
|
|
2714
|
+
customer?: string;
|
|
2715
|
+
/**
|
|
2716
|
+
* 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
|
|
2717
|
+
*/
|
|
2718
|
+
filter?: string;
|
|
2719
|
+
/**
|
|
2720
|
+
* 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
|
|
2721
|
+
*/
|
|
2722
|
+
orderBy?: string;
|
|
2723
|
+
/**
|
|
2724
|
+
* Maximum number of results to return. Maximum and default are 100.
|
|
2725
|
+
*/
|
|
2726
|
+
pageSize?: number;
|
|
2727
|
+
/**
|
|
2728
|
+
* Token to specify the page of the response to be returned.
|
|
2729
|
+
*/
|
|
2730
|
+
pageToken?: string;
|
|
2731
|
+
/**
|
|
2732
|
+
* 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.
|
|
2733
|
+
*/
|
|
2734
|
+
printerOrgUnitId?: string;
|
|
2735
|
+
}
|
|
2251
2736
|
export interface Params$Resource$Customers$Reports$Findinstalledappdevices extends StandardParameters {
|
|
2252
2737
|
/**
|
|
2253
2738
|
* 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).
|
|
@@ -2286,6 +2771,7 @@ export declare namespace chromemanagement_v1 {
|
|
|
2286
2771
|
context: APIRequestContext;
|
|
2287
2772
|
devices: Resource$Customers$Telemetry$Devices;
|
|
2288
2773
|
events: Resource$Customers$Telemetry$Events;
|
|
2774
|
+
users: Resource$Customers$Telemetry$Users;
|
|
2289
2775
|
constructor(context: APIRequestContext);
|
|
2290
2776
|
}
|
|
2291
2777
|
export class Resource$Customers$Telemetry$Devices {
|
|
@@ -2347,6 +2833,7 @@ export declare namespace chromemanagement_v1 {
|
|
|
2347
2833
|
* // "networkStatusReport": [],
|
|
2348
2834
|
* // "orgUnitId": "my_orgUnitId",
|
|
2349
2835
|
* // "osUpdateStatus": [],
|
|
2836
|
+
* // "peripheralsReport": [],
|
|
2350
2837
|
* // "serialNumber": "my_serialNumber",
|
|
2351
2838
|
* // "storageInfo": {},
|
|
2352
2839
|
* // "storageStatusReport": [],
|
|
@@ -2504,7 +2991,7 @@ export declare namespace chromemanagement_v1 {
|
|
|
2504
2991
|
*
|
|
2505
2992
|
* // Do the magic
|
|
2506
2993
|
* const res = await chromemanagement.customers.telemetry.events.list({
|
|
2507
|
-
* // Optional. Only include resources that match the filter. Supported filter fields:
|
|
2994
|
+
* // 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.
|
|
2508
2995
|
* filter: 'placeholder-value',
|
|
2509
2996
|
* // Optional. Maximum number of results to return. Default value is 100. Maximum value is 1000.
|
|
2510
2997
|
* pageSize: 'placeholder-value',
|
|
@@ -2545,7 +3032,7 @@ export declare namespace chromemanagement_v1 {
|
|
|
2545
3032
|
}
|
|
2546
3033
|
export interface Params$Resource$Customers$Telemetry$Events$List extends StandardParameters {
|
|
2547
3034
|
/**
|
|
2548
|
-
* Optional. Only include resources that match the filter. Supported filter fields:
|
|
3035
|
+
* 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.
|
|
2549
3036
|
*/
|
|
2550
3037
|
filter?: string;
|
|
2551
3038
|
/**
|
|
@@ -2565,5 +3052,173 @@ export declare namespace chromemanagement_v1 {
|
|
|
2565
3052
|
*/
|
|
2566
3053
|
readMask?: string;
|
|
2567
3054
|
}
|
|
3055
|
+
export class Resource$Customers$Telemetry$Users {
|
|
3056
|
+
context: APIRequestContext;
|
|
3057
|
+
constructor(context: APIRequestContext);
|
|
3058
|
+
/**
|
|
3059
|
+
* Get telemetry user.
|
|
3060
|
+
* @example
|
|
3061
|
+
* ```js
|
|
3062
|
+
* // Before running the sample:
|
|
3063
|
+
* // - Enable the API at:
|
|
3064
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
3065
|
+
* // - Login into gcloud by running:
|
|
3066
|
+
* // `$ gcloud auth application-default login`
|
|
3067
|
+
* // - Install the npm module by running:
|
|
3068
|
+
* // `$ npm install googleapis`
|
|
3069
|
+
*
|
|
3070
|
+
* const {google} = require('googleapis');
|
|
3071
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
3072
|
+
*
|
|
3073
|
+
* async function main() {
|
|
3074
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3075
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3076
|
+
* scopes: [
|
|
3077
|
+
* 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
|
|
3078
|
+
* ],
|
|
3079
|
+
* });
|
|
3080
|
+
*
|
|
3081
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3082
|
+
* const authClient = await auth.getClient();
|
|
3083
|
+
* google.options({auth: authClient});
|
|
3084
|
+
*
|
|
3085
|
+
* // Do the magic
|
|
3086
|
+
* const res = await chromemanagement.customers.telemetry.users.get({
|
|
3087
|
+
* // Required. Name of the `TelemetryUser` to return.
|
|
3088
|
+
* name: 'customers/my-customer/telemetry/users/my-user',
|
|
3089
|
+
* // Read mask to specify which fields to return.
|
|
3090
|
+
* readMask: 'placeholder-value',
|
|
3091
|
+
* });
|
|
3092
|
+
* console.log(res.data);
|
|
3093
|
+
*
|
|
3094
|
+
* // Example response
|
|
3095
|
+
* // {
|
|
3096
|
+
* // "customer": "my_customer",
|
|
3097
|
+
* // "name": "my_name",
|
|
3098
|
+
* // "orgUnitId": "my_orgUnitId",
|
|
3099
|
+
* // "userDevice": [],
|
|
3100
|
+
* // "userEmail": "my_userEmail",
|
|
3101
|
+
* // "userId": "my_userId"
|
|
3102
|
+
* // }
|
|
3103
|
+
* }
|
|
3104
|
+
*
|
|
3105
|
+
* main().catch(e => {
|
|
3106
|
+
* console.error(e);
|
|
3107
|
+
* throw e;
|
|
3108
|
+
* });
|
|
3109
|
+
*
|
|
3110
|
+
* ```
|
|
3111
|
+
*
|
|
3112
|
+
* @param params - Parameters for request
|
|
3113
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3114
|
+
* @param callback - Optional callback that handles the response.
|
|
3115
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3116
|
+
*/
|
|
3117
|
+
get(params: Params$Resource$Customers$Telemetry$Users$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
3118
|
+
get(params?: Params$Resource$Customers$Telemetry$Users$Get, options?: MethodOptions): GaxiosPromise<Schema$GoogleChromeManagementV1TelemetryUser>;
|
|
3119
|
+
get(params: Params$Resource$Customers$Telemetry$Users$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
3120
|
+
get(params: Params$Resource$Customers$Telemetry$Users$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleChromeManagementV1TelemetryUser>, callback: BodyResponseCallback<Schema$GoogleChromeManagementV1TelemetryUser>): void;
|
|
3121
|
+
get(params: Params$Resource$Customers$Telemetry$Users$Get, callback: BodyResponseCallback<Schema$GoogleChromeManagementV1TelemetryUser>): void;
|
|
3122
|
+
get(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1TelemetryUser>): void;
|
|
3123
|
+
/**
|
|
3124
|
+
* List all telemetry users.
|
|
3125
|
+
* @example
|
|
3126
|
+
* ```js
|
|
3127
|
+
* // Before running the sample:
|
|
3128
|
+
* // - Enable the API at:
|
|
3129
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
3130
|
+
* // - Login into gcloud by running:
|
|
3131
|
+
* // `$ gcloud auth application-default login`
|
|
3132
|
+
* // - Install the npm module by running:
|
|
3133
|
+
* // `$ npm install googleapis`
|
|
3134
|
+
*
|
|
3135
|
+
* const {google} = require('googleapis');
|
|
3136
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
3137
|
+
*
|
|
3138
|
+
* async function main() {
|
|
3139
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3140
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3141
|
+
* scopes: [
|
|
3142
|
+
* 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
|
|
3143
|
+
* ],
|
|
3144
|
+
* });
|
|
3145
|
+
*
|
|
3146
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3147
|
+
* const authClient = await auth.getClient();
|
|
3148
|
+
* google.options({auth: authClient});
|
|
3149
|
+
*
|
|
3150
|
+
* // Do the magic
|
|
3151
|
+
* const res = await chromemanagement.customers.telemetry.users.list({
|
|
3152
|
+
* // Only include resources that match the filter. Supported filter fields: - user_id - user_org_unit_id
|
|
3153
|
+
* filter: 'placeholder-value',
|
|
3154
|
+
* // Maximum number of results to return. Default value is 100. Maximum value is 1000.
|
|
3155
|
+
* pageSize: 'placeholder-value',
|
|
3156
|
+
* // Token to specify next page in the list.
|
|
3157
|
+
* pageToken: 'placeholder-value',
|
|
3158
|
+
* // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
3159
|
+
* parent: 'customers/my-customer',
|
|
3160
|
+
* // Read mask to specify which fields to return.
|
|
3161
|
+
* readMask: 'placeholder-value',
|
|
3162
|
+
* });
|
|
3163
|
+
* console.log(res.data);
|
|
3164
|
+
*
|
|
3165
|
+
* // Example response
|
|
3166
|
+
* // {
|
|
3167
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
3168
|
+
* // "telemetryUsers": []
|
|
3169
|
+
* // }
|
|
3170
|
+
* }
|
|
3171
|
+
*
|
|
3172
|
+
* main().catch(e => {
|
|
3173
|
+
* console.error(e);
|
|
3174
|
+
* throw e;
|
|
3175
|
+
* });
|
|
3176
|
+
*
|
|
3177
|
+
* ```
|
|
3178
|
+
*
|
|
3179
|
+
* @param params - Parameters for request
|
|
3180
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3181
|
+
* @param callback - Optional callback that handles the response.
|
|
3182
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3183
|
+
*/
|
|
3184
|
+
list(params: Params$Resource$Customers$Telemetry$Users$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
3185
|
+
list(params?: Params$Resource$Customers$Telemetry$Users$List, options?: MethodOptions): GaxiosPromise<Schema$GoogleChromeManagementV1ListTelemetryUsersResponse>;
|
|
3186
|
+
list(params: Params$Resource$Customers$Telemetry$Users$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
3187
|
+
list(params: Params$Resource$Customers$Telemetry$Users$List, options: MethodOptions | BodyResponseCallback<Schema$GoogleChromeManagementV1ListTelemetryUsersResponse>, callback: BodyResponseCallback<Schema$GoogleChromeManagementV1ListTelemetryUsersResponse>): void;
|
|
3188
|
+
list(params: Params$Resource$Customers$Telemetry$Users$List, callback: BodyResponseCallback<Schema$GoogleChromeManagementV1ListTelemetryUsersResponse>): void;
|
|
3189
|
+
list(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1ListTelemetryUsersResponse>): void;
|
|
3190
|
+
}
|
|
3191
|
+
export interface Params$Resource$Customers$Telemetry$Users$Get extends StandardParameters {
|
|
3192
|
+
/**
|
|
3193
|
+
* Required. Name of the `TelemetryUser` to return.
|
|
3194
|
+
*/
|
|
3195
|
+
name?: string;
|
|
3196
|
+
/**
|
|
3197
|
+
* Read mask to specify which fields to return.
|
|
3198
|
+
*/
|
|
3199
|
+
readMask?: string;
|
|
3200
|
+
}
|
|
3201
|
+
export interface Params$Resource$Customers$Telemetry$Users$List extends StandardParameters {
|
|
3202
|
+
/**
|
|
3203
|
+
* Only include resources that match the filter. Supported filter fields: - user_id - user_org_unit_id
|
|
3204
|
+
*/
|
|
3205
|
+
filter?: string;
|
|
3206
|
+
/**
|
|
3207
|
+
* Maximum number of results to return. Default value is 100. Maximum value is 1000.
|
|
3208
|
+
*/
|
|
3209
|
+
pageSize?: number;
|
|
3210
|
+
/**
|
|
3211
|
+
* Token to specify next page in the list.
|
|
3212
|
+
*/
|
|
3213
|
+
pageToken?: string;
|
|
3214
|
+
/**
|
|
3215
|
+
* Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
3216
|
+
*/
|
|
3217
|
+
parent?: string;
|
|
3218
|
+
/**
|
|
3219
|
+
* Read mask to specify which fields to return.
|
|
3220
|
+
*/
|
|
3221
|
+
readMask?: string;
|
|
3222
|
+
}
|
|
2568
3223
|
export {};
|
|
2569
3224
|
}
|