@googleapis/chromemanagement 23.1.0 → 25.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/tsconfig.tsbuildinfo +1 -1
- package/build/v1.d.ts +394 -0
- package/build/v1.js +98 -0
- package/build/v1.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +660 -0
package/build/v1.d.ts
CHANGED
|
@@ -498,6 +498,19 @@ export declare namespace chromemanagement_v1 {
|
|
|
498
498
|
*/
|
|
499
499
|
hostMatch?: string | null;
|
|
500
500
|
}
|
|
501
|
+
/**
|
|
502
|
+
* Response containing the number of active devices.
|
|
503
|
+
*/
|
|
504
|
+
export interface Schema$GoogleChromeManagementV1CountActiveDevicesResponse {
|
|
505
|
+
/**
|
|
506
|
+
* Number of active devices in the 7 days leading up to the date specified in the request.
|
|
507
|
+
*/
|
|
508
|
+
sevenDaysCount?: string | null;
|
|
509
|
+
/**
|
|
510
|
+
* Number of active devices in the 30 days leading up to the date specified in the request.
|
|
511
|
+
*/
|
|
512
|
+
thirtyDaysCount?: string | null;
|
|
513
|
+
}
|
|
501
514
|
/**
|
|
502
515
|
* Response containing summary of requested app installations.
|
|
503
516
|
*/
|
|
@@ -630,6 +643,60 @@ export declare namespace chromemanagement_v1 {
|
|
|
630
643
|
*/
|
|
631
644
|
totalSize?: number | null;
|
|
632
645
|
}
|
|
646
|
+
/**
|
|
647
|
+
* Response containing the number of devices with the given boot type.
|
|
648
|
+
*/
|
|
649
|
+
export interface Schema$GoogleChromeManagementV1CountDevicesPerBootTypeResponse {
|
|
650
|
+
/**
|
|
651
|
+
* Number of devices with dev boot type.
|
|
652
|
+
*/
|
|
653
|
+
devBootTypeCount?: string | null;
|
|
654
|
+
/**
|
|
655
|
+
* Number of devices with unreported boot type.
|
|
656
|
+
*/
|
|
657
|
+
unreportedBootTypeCount?: string | null;
|
|
658
|
+
/**
|
|
659
|
+
* Number of devices with verified boot type.
|
|
660
|
+
*/
|
|
661
|
+
verifiedBootTypeCount?: string | null;
|
|
662
|
+
}
|
|
663
|
+
/**
|
|
664
|
+
* Response containing the number of devices with the given channel.
|
|
665
|
+
*/
|
|
666
|
+
export interface Schema$GoogleChromeManagementV1CountDevicesPerReleaseChannelResponse {
|
|
667
|
+
/**
|
|
668
|
+
* Number of devices with beta release channel.
|
|
669
|
+
*/
|
|
670
|
+
betaChannelCount?: string | null;
|
|
671
|
+
/**
|
|
672
|
+
* Number of devices with canary release channel.
|
|
673
|
+
*/
|
|
674
|
+
canaryChannelCount?: string | null;
|
|
675
|
+
/**
|
|
676
|
+
* Number of devices with dev release channel.
|
|
677
|
+
*/
|
|
678
|
+
devChannelCount?: string | null;
|
|
679
|
+
/**
|
|
680
|
+
* Number of devices with ltc release channel.
|
|
681
|
+
*/
|
|
682
|
+
ltcChannelCount?: string | null;
|
|
683
|
+
/**
|
|
684
|
+
* Number of devices with lts release channel.
|
|
685
|
+
*/
|
|
686
|
+
ltsChannelCount?: string | null;
|
|
687
|
+
/**
|
|
688
|
+
* Number of devices with stable release channel.
|
|
689
|
+
*/
|
|
690
|
+
stableChannelCount?: string | null;
|
|
691
|
+
/**
|
|
692
|
+
* Number of devices with an unreported release channel.
|
|
693
|
+
*/
|
|
694
|
+
unreportedChannelCount?: string | null;
|
|
695
|
+
/**
|
|
696
|
+
* Number of devices with unsupported release channel.
|
|
697
|
+
*/
|
|
698
|
+
unsupportedChannelCount?: string | null;
|
|
699
|
+
}
|
|
633
700
|
/**
|
|
634
701
|
* Response containing details of queried installed apps.
|
|
635
702
|
*/
|
|
@@ -1338,14 +1405,30 @@ export declare namespace chromemanagement_v1 {
|
|
|
1338
1405
|
* Output only. Gateway IP address.
|
|
1339
1406
|
*/
|
|
1340
1407
|
gatewayIpAddress?: string | null;
|
|
1408
|
+
/**
|
|
1409
|
+
* Output only. The gateway IPv6 for this interface, if detected
|
|
1410
|
+
*/
|
|
1411
|
+
gatewayIpv6Address?: string | null;
|
|
1341
1412
|
/**
|
|
1342
1413
|
* Output only. Network connection guid.
|
|
1343
1414
|
*/
|
|
1344
1415
|
guid?: string | null;
|
|
1416
|
+
/**
|
|
1417
|
+
* Output only. IPv6 addresses assigned to this network, if any. Each address is a string in standard IPv6 text representation (e.g., "2001:db8::1").
|
|
1418
|
+
*/
|
|
1419
|
+
ipv6Address?: string[] | null;
|
|
1345
1420
|
/**
|
|
1346
1421
|
* Output only. LAN IP address.
|
|
1347
1422
|
*/
|
|
1348
1423
|
lanIpAddress?: string | null;
|
|
1424
|
+
/**
|
|
1425
|
+
* Output only. The maximum downstream bandwidth in Kilobits per second (Kbps), if reported by the network interface or connection.
|
|
1426
|
+
*/
|
|
1427
|
+
linkDownSpeedKbps?: string | null;
|
|
1428
|
+
/**
|
|
1429
|
+
* Output only. Whether the network was detected as metered.
|
|
1430
|
+
*/
|
|
1431
|
+
metered?: boolean | null;
|
|
1349
1432
|
/**
|
|
1350
1433
|
* Output only. Receiving bit rate measured in Megabits per second.
|
|
1351
1434
|
*/
|
|
@@ -1848,6 +1931,10 @@ export declare namespace chromemanagement_v1 {
|
|
|
1848
1931
|
* The event type of the current event.
|
|
1849
1932
|
*/
|
|
1850
1933
|
eventType?: string | null;
|
|
1934
|
+
/**
|
|
1935
|
+
* Output only. Payload for external display connected/disconnected event. Present only when `event_type` is `EXTERNAL_DISPLAY_CONNECTED` or `EXTERNAL_DISPLAY_DISCONNECTED`.
|
|
1936
|
+
*/
|
|
1937
|
+
externalDisplaysEvent?: Schema$GoogleChromeManagementV1TelemetryExternalDisplayEvent;
|
|
1851
1938
|
/**
|
|
1852
1939
|
* Output only. Payload for HTTPS latency change event. Present only when `event_type` is `NETWORK_HTTPS_LATENCY_CHANGE`.
|
|
1853
1940
|
*/
|
|
@@ -1894,6 +1981,44 @@ export declare namespace chromemanagement_v1 {
|
|
|
1894
1981
|
*/
|
|
1895
1982
|
eventTypes?: string[] | null;
|
|
1896
1983
|
}
|
|
1984
|
+
/**
|
|
1985
|
+
* External display data.
|
|
1986
|
+
*/
|
|
1987
|
+
export interface Schema$GoogleChromeManagementV1TelemetryExternalDisplayData {
|
|
1988
|
+
/**
|
|
1989
|
+
* The display name.
|
|
1990
|
+
*/
|
|
1991
|
+
displayName?: string | null;
|
|
1992
|
+
/**
|
|
1993
|
+
* The EDID version.
|
|
1994
|
+
*/
|
|
1995
|
+
edidVersion?: string | null;
|
|
1996
|
+
/**
|
|
1997
|
+
* The refresh rate.
|
|
1998
|
+
*/
|
|
1999
|
+
refreshRate?: string | null;
|
|
2000
|
+
/**
|
|
2001
|
+
* The horizontal resolution.
|
|
2002
|
+
*/
|
|
2003
|
+
resolutionHorizontal?: number | null;
|
|
2004
|
+
/**
|
|
2005
|
+
* The vertical resolution.
|
|
2006
|
+
*/
|
|
2007
|
+
resolutionVertical?: number | null;
|
|
2008
|
+
/**
|
|
2009
|
+
* The serial number.
|
|
2010
|
+
*/
|
|
2011
|
+
serialNumber?: number | null;
|
|
2012
|
+
}
|
|
2013
|
+
/**
|
|
2014
|
+
* External display connected/disconnected event payload.
|
|
2015
|
+
*/
|
|
2016
|
+
export interface Schema$GoogleChromeManagementV1TelemetryExternalDisplayEvent {
|
|
2017
|
+
/**
|
|
2018
|
+
* List of external displays that were connected/disconnected.
|
|
2019
|
+
*/
|
|
2020
|
+
externalDisplayData?: Schema$GoogleChromeManagementV1TelemetryExternalDisplayData[];
|
|
2021
|
+
}
|
|
1897
2022
|
/**
|
|
1898
2023
|
* Https latency routine is run periodically and `TelemetryHttpsLatencyChangeEvent` is triggered if a latency problem was detected or if the device has recovered from a latency problem. * Granular permission needed: TELEMETRY_API_NETWORK_REPORT
|
|
1899
2024
|
*/
|
|
@@ -4520,6 +4645,75 @@ export declare namespace chromemanagement_v1 {
|
|
|
4520
4645
|
export class Resource$Customers$Reports {
|
|
4521
4646
|
context: APIRequestContext;
|
|
4522
4647
|
constructor(context: APIRequestContext);
|
|
4648
|
+
/**
|
|
4649
|
+
* Get a count of active devices per set time frames.
|
|
4650
|
+
* @example
|
|
4651
|
+
* ```js
|
|
4652
|
+
* // Before running the sample:
|
|
4653
|
+
* // - Enable the API at:
|
|
4654
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
4655
|
+
* // - Login into gcloud by running:
|
|
4656
|
+
* // ```sh
|
|
4657
|
+
* // $ gcloud auth application-default login
|
|
4658
|
+
* // ```
|
|
4659
|
+
* // - Install the npm module by running:
|
|
4660
|
+
* // ```sh
|
|
4661
|
+
* // $ npm install googleapis
|
|
4662
|
+
* // ```
|
|
4663
|
+
*
|
|
4664
|
+
* const {google} = require('googleapis');
|
|
4665
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
4666
|
+
*
|
|
4667
|
+
* async function main() {
|
|
4668
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4669
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4670
|
+
* scopes: [
|
|
4671
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
4672
|
+
* ],
|
|
4673
|
+
* });
|
|
4674
|
+
*
|
|
4675
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4676
|
+
* const authClient = await auth.getClient();
|
|
4677
|
+
* google.options({auth: authClient});
|
|
4678
|
+
*
|
|
4679
|
+
* // Do the magic
|
|
4680
|
+
* const res = await chromemanagement.customers.reports.countActiveDevices({
|
|
4681
|
+
* // Required. Obfuscated customer ID prefixed with "customers/C" or "customers/my_customer".
|
|
4682
|
+
* customer: 'customers/my-customer',
|
|
4683
|
+
* // Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
|
|
4684
|
+
* 'date.day': 'placeholder-value',
|
|
4685
|
+
* // Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
|
|
4686
|
+
* 'date.month': 'placeholder-value',
|
|
4687
|
+
* // Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
|
|
4688
|
+
* 'date.year': 'placeholder-value',
|
|
4689
|
+
* });
|
|
4690
|
+
* console.log(res.data);
|
|
4691
|
+
*
|
|
4692
|
+
* // Example response
|
|
4693
|
+
* // {
|
|
4694
|
+
* // "sevenDaysCount": "my_sevenDaysCount",
|
|
4695
|
+
* // "thirtyDaysCount": "my_thirtyDaysCount"
|
|
4696
|
+
* // }
|
|
4697
|
+
* }
|
|
4698
|
+
*
|
|
4699
|
+
* main().catch(e => {
|
|
4700
|
+
* console.error(e);
|
|
4701
|
+
* throw e;
|
|
4702
|
+
* });
|
|
4703
|
+
*
|
|
4704
|
+
* ```
|
|
4705
|
+
*
|
|
4706
|
+
* @param params - Parameters for request
|
|
4707
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4708
|
+
* @param callback - Optional callback that handles the response.
|
|
4709
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4710
|
+
*/
|
|
4711
|
+
countActiveDevices(params: Params$Resource$Customers$Reports$Countactivedevices, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4712
|
+
countActiveDevices(params?: Params$Resource$Customers$Reports$Countactivedevices, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1CountActiveDevicesResponse>>;
|
|
4713
|
+
countActiveDevices(params: Params$Resource$Customers$Reports$Countactivedevices, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
4714
|
+
countActiveDevices(params: Params$Resource$Customers$Reports$Countactivedevices, options: MethodOptions | BodyResponseCallback<Schema$GoogleChromeManagementV1CountActiveDevicesResponse>, callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountActiveDevicesResponse>): void;
|
|
4715
|
+
countActiveDevices(params: Params$Resource$Customers$Reports$Countactivedevices, callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountActiveDevicesResponse>): void;
|
|
4716
|
+
countActiveDevices(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountActiveDevicesResponse>): void;
|
|
4523
4717
|
/**
|
|
4524
4718
|
* Count of Chrome Browsers that have been recently enrolled, have new policy to be synced, or have no recent activity.
|
|
4525
4719
|
* @example
|
|
@@ -4943,6 +5137,152 @@ export declare namespace chromemanagement_v1 {
|
|
|
4943
5137
|
countChromeVersions(params: Params$Resource$Customers$Reports$Countchromeversions, options: MethodOptions | BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeVersionsResponse>, callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeVersionsResponse>): void;
|
|
4944
5138
|
countChromeVersions(params: Params$Resource$Customers$Reports$Countchromeversions, callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeVersionsResponse>): void;
|
|
4945
5139
|
countChromeVersions(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeVersionsResponse>): void;
|
|
5140
|
+
/**
|
|
5141
|
+
* Get a count of devices per boot type.
|
|
5142
|
+
* @example
|
|
5143
|
+
* ```js
|
|
5144
|
+
* // Before running the sample:
|
|
5145
|
+
* // - Enable the API at:
|
|
5146
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
5147
|
+
* // - Login into gcloud by running:
|
|
5148
|
+
* // ```sh
|
|
5149
|
+
* // $ gcloud auth application-default login
|
|
5150
|
+
* // ```
|
|
5151
|
+
* // - Install the npm module by running:
|
|
5152
|
+
* // ```sh
|
|
5153
|
+
* // $ npm install googleapis
|
|
5154
|
+
* // ```
|
|
5155
|
+
*
|
|
5156
|
+
* const {google} = require('googleapis');
|
|
5157
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
5158
|
+
*
|
|
5159
|
+
* async function main() {
|
|
5160
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5161
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5162
|
+
* scopes: [
|
|
5163
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
5164
|
+
* ],
|
|
5165
|
+
* });
|
|
5166
|
+
*
|
|
5167
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5168
|
+
* const authClient = await auth.getClient();
|
|
5169
|
+
* google.options({auth: authClient});
|
|
5170
|
+
*
|
|
5171
|
+
* // Do the magic
|
|
5172
|
+
* const res = await chromemanagement.customers.reports.countDevicesPerBootType({
|
|
5173
|
+
* // Required. Obfuscated customer ID prefixed with "customers/C" or "customers/my_customer".
|
|
5174
|
+
* customer: 'customers/my-customer',
|
|
5175
|
+
* // Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
|
|
5176
|
+
* 'date.day': 'placeholder-value',
|
|
5177
|
+
* // Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
|
|
5178
|
+
* 'date.month': 'placeholder-value',
|
|
5179
|
+
* // Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
|
|
5180
|
+
* 'date.year': 'placeholder-value',
|
|
5181
|
+
* });
|
|
5182
|
+
* console.log(res.data);
|
|
5183
|
+
*
|
|
5184
|
+
* // Example response
|
|
5185
|
+
* // {
|
|
5186
|
+
* // "devBootTypeCount": "my_devBootTypeCount",
|
|
5187
|
+
* // "unreportedBootTypeCount": "my_unreportedBootTypeCount",
|
|
5188
|
+
* // "verifiedBootTypeCount": "my_verifiedBootTypeCount"
|
|
5189
|
+
* // }
|
|
5190
|
+
* }
|
|
5191
|
+
*
|
|
5192
|
+
* main().catch(e => {
|
|
5193
|
+
* console.error(e);
|
|
5194
|
+
* throw e;
|
|
5195
|
+
* });
|
|
5196
|
+
*
|
|
5197
|
+
* ```
|
|
5198
|
+
*
|
|
5199
|
+
* @param params - Parameters for request
|
|
5200
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5201
|
+
* @param callback - Optional callback that handles the response.
|
|
5202
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5203
|
+
*/
|
|
5204
|
+
countDevicesPerBootType(params: Params$Resource$Customers$Reports$Countdevicesperboottype, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5205
|
+
countDevicesPerBootType(params?: Params$Resource$Customers$Reports$Countdevicesperboottype, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1CountDevicesPerBootTypeResponse>>;
|
|
5206
|
+
countDevicesPerBootType(params: Params$Resource$Customers$Reports$Countdevicesperboottype, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
5207
|
+
countDevicesPerBootType(params: Params$Resource$Customers$Reports$Countdevicesperboottype, options: MethodOptions | BodyResponseCallback<Schema$GoogleChromeManagementV1CountDevicesPerBootTypeResponse>, callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountDevicesPerBootTypeResponse>): void;
|
|
5208
|
+
countDevicesPerBootType(params: Params$Resource$Customers$Reports$Countdevicesperboottype, callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountDevicesPerBootTypeResponse>): void;
|
|
5209
|
+
countDevicesPerBootType(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountDevicesPerBootTypeResponse>): void;
|
|
5210
|
+
/**
|
|
5211
|
+
* Get a count of devices per channel.
|
|
5212
|
+
* @example
|
|
5213
|
+
* ```js
|
|
5214
|
+
* // Before running the sample:
|
|
5215
|
+
* // - Enable the API at:
|
|
5216
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
5217
|
+
* // - Login into gcloud by running:
|
|
5218
|
+
* // ```sh
|
|
5219
|
+
* // $ gcloud auth application-default login
|
|
5220
|
+
* // ```
|
|
5221
|
+
* // - Install the npm module by running:
|
|
5222
|
+
* // ```sh
|
|
5223
|
+
* // $ npm install googleapis
|
|
5224
|
+
* // ```
|
|
5225
|
+
*
|
|
5226
|
+
* const {google} = require('googleapis');
|
|
5227
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
5228
|
+
*
|
|
5229
|
+
* async function main() {
|
|
5230
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5231
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5232
|
+
* scopes: [
|
|
5233
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
5234
|
+
* ],
|
|
5235
|
+
* });
|
|
5236
|
+
*
|
|
5237
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5238
|
+
* const authClient = await auth.getClient();
|
|
5239
|
+
* google.options({auth: authClient});
|
|
5240
|
+
*
|
|
5241
|
+
* // Do the magic
|
|
5242
|
+
* const res =
|
|
5243
|
+
* await chromemanagement.customers.reports.countDevicesPerReleaseChannel({
|
|
5244
|
+
* // Required. Obfuscated customer ID prefixed with "customers/C" or "customers/my_customer".
|
|
5245
|
+
* customer: 'customers/my-customer',
|
|
5246
|
+
* // Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
|
|
5247
|
+
* 'date.day': 'placeholder-value',
|
|
5248
|
+
* // Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
|
|
5249
|
+
* 'date.month': 'placeholder-value',
|
|
5250
|
+
* // Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
|
|
5251
|
+
* 'date.year': 'placeholder-value',
|
|
5252
|
+
* });
|
|
5253
|
+
* console.log(res.data);
|
|
5254
|
+
*
|
|
5255
|
+
* // Example response
|
|
5256
|
+
* // {
|
|
5257
|
+
* // "betaChannelCount": "my_betaChannelCount",
|
|
5258
|
+
* // "canaryChannelCount": "my_canaryChannelCount",
|
|
5259
|
+
* // "devChannelCount": "my_devChannelCount",
|
|
5260
|
+
* // "ltcChannelCount": "my_ltcChannelCount",
|
|
5261
|
+
* // "ltsChannelCount": "my_ltsChannelCount",
|
|
5262
|
+
* // "stableChannelCount": "my_stableChannelCount",
|
|
5263
|
+
* // "unreportedChannelCount": "my_unreportedChannelCount",
|
|
5264
|
+
* // "unsupportedChannelCount": "my_unsupportedChannelCount"
|
|
5265
|
+
* // }
|
|
5266
|
+
* }
|
|
5267
|
+
*
|
|
5268
|
+
* main().catch(e => {
|
|
5269
|
+
* console.error(e);
|
|
5270
|
+
* throw e;
|
|
5271
|
+
* });
|
|
5272
|
+
*
|
|
5273
|
+
* ```
|
|
5274
|
+
*
|
|
5275
|
+
* @param params - Parameters for request
|
|
5276
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5277
|
+
* @param callback - Optional callback that handles the response.
|
|
5278
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5279
|
+
*/
|
|
5280
|
+
countDevicesPerReleaseChannel(params: Params$Resource$Customers$Reports$Countdevicesperreleasechannel, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5281
|
+
countDevicesPerReleaseChannel(params?: Params$Resource$Customers$Reports$Countdevicesperreleasechannel, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1CountDevicesPerReleaseChannelResponse>>;
|
|
5282
|
+
countDevicesPerReleaseChannel(params: Params$Resource$Customers$Reports$Countdevicesperreleasechannel, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
5283
|
+
countDevicesPerReleaseChannel(params: Params$Resource$Customers$Reports$Countdevicesperreleasechannel, options: MethodOptions | BodyResponseCallback<Schema$GoogleChromeManagementV1CountDevicesPerReleaseChannelResponse>, callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountDevicesPerReleaseChannelResponse>): void;
|
|
5284
|
+
countDevicesPerReleaseChannel(params: Params$Resource$Customers$Reports$Countdevicesperreleasechannel, callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountDevicesPerReleaseChannelResponse>): void;
|
|
5285
|
+
countDevicesPerReleaseChannel(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountDevicesPerReleaseChannelResponse>): void;
|
|
4946
5286
|
/**
|
|
4947
5287
|
* Generate report of app installations.
|
|
4948
5288
|
* @example
|
|
@@ -5318,6 +5658,24 @@ export declare namespace chromemanagement_v1 {
|
|
|
5318
5658
|
findInstalledAppDevices(params: Params$Resource$Customers$Reports$Findinstalledappdevices, callback: BodyResponseCallback<Schema$GoogleChromeManagementV1FindInstalledAppDevicesResponse>): void;
|
|
5319
5659
|
findInstalledAppDevices(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1FindInstalledAppDevicesResponse>): void;
|
|
5320
5660
|
}
|
|
5661
|
+
export interface Params$Resource$Customers$Reports$Countactivedevices extends StandardParameters {
|
|
5662
|
+
/**
|
|
5663
|
+
* Required. Obfuscated customer ID prefixed with "customers/C" or "customers/my_customer".
|
|
5664
|
+
*/
|
|
5665
|
+
customer?: string;
|
|
5666
|
+
/**
|
|
5667
|
+
* Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
|
|
5668
|
+
*/
|
|
5669
|
+
'date.day'?: number;
|
|
5670
|
+
/**
|
|
5671
|
+
* Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
|
|
5672
|
+
*/
|
|
5673
|
+
'date.month'?: number;
|
|
5674
|
+
/**
|
|
5675
|
+
* Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
|
|
5676
|
+
*/
|
|
5677
|
+
'date.year'?: number;
|
|
5678
|
+
}
|
|
5321
5679
|
export interface Params$Resource$Customers$Reports$Countchromebrowsersneedingattention extends StandardParameters {
|
|
5322
5680
|
/**
|
|
5323
5681
|
* Required. The customer ID or "my_customer" prefixed with "customers/".
|
|
@@ -5414,6 +5772,42 @@ export declare namespace chromemanagement_v1 {
|
|
|
5414
5772
|
*/
|
|
5415
5773
|
pageToken?: string;
|
|
5416
5774
|
}
|
|
5775
|
+
export interface Params$Resource$Customers$Reports$Countdevicesperboottype extends StandardParameters {
|
|
5776
|
+
/**
|
|
5777
|
+
* Required. Obfuscated customer ID prefixed with "customers/C" or "customers/my_customer".
|
|
5778
|
+
*/
|
|
5779
|
+
customer?: string;
|
|
5780
|
+
/**
|
|
5781
|
+
* Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
|
|
5782
|
+
*/
|
|
5783
|
+
'date.day'?: number;
|
|
5784
|
+
/**
|
|
5785
|
+
* Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
|
|
5786
|
+
*/
|
|
5787
|
+
'date.month'?: number;
|
|
5788
|
+
/**
|
|
5789
|
+
* Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
|
|
5790
|
+
*/
|
|
5791
|
+
'date.year'?: number;
|
|
5792
|
+
}
|
|
5793
|
+
export interface Params$Resource$Customers$Reports$Countdevicesperreleasechannel extends StandardParameters {
|
|
5794
|
+
/**
|
|
5795
|
+
* Required. Obfuscated customer ID prefixed with "customers/C" or "customers/my_customer".
|
|
5796
|
+
*/
|
|
5797
|
+
customer?: string;
|
|
5798
|
+
/**
|
|
5799
|
+
* Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
|
|
5800
|
+
*/
|
|
5801
|
+
'date.day'?: number;
|
|
5802
|
+
/**
|
|
5803
|
+
* Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
|
|
5804
|
+
*/
|
|
5805
|
+
'date.month'?: number;
|
|
5806
|
+
/**
|
|
5807
|
+
* Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
|
|
5808
|
+
*/
|
|
5809
|
+
'date.year'?: number;
|
|
5810
|
+
}
|
|
5417
5811
|
export interface Params$Resource$Customers$Reports$Countinstalledapps extends StandardParameters {
|
|
5418
5812
|
/**
|
|
5419
5813
|
* Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
package/build/v1.js
CHANGED
|
@@ -723,6 +723,38 @@ var chromemanagement_v1;
|
|
|
723
723
|
constructor(context) {
|
|
724
724
|
this.context = context;
|
|
725
725
|
}
|
|
726
|
+
countActiveDevices(paramsOrCallback, optionsOrCallback, callback) {
|
|
727
|
+
let params = (paramsOrCallback ||
|
|
728
|
+
{});
|
|
729
|
+
let options = (optionsOrCallback || {});
|
|
730
|
+
if (typeof paramsOrCallback === 'function') {
|
|
731
|
+
callback = paramsOrCallback;
|
|
732
|
+
params = {};
|
|
733
|
+
options = {};
|
|
734
|
+
}
|
|
735
|
+
if (typeof optionsOrCallback === 'function') {
|
|
736
|
+
callback = optionsOrCallback;
|
|
737
|
+
options = {};
|
|
738
|
+
}
|
|
739
|
+
const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
740
|
+
const parameters = {
|
|
741
|
+
options: Object.assign({
|
|
742
|
+
url: (rootUrl + '/v1/{+customer}/reports:countActiveDevices').replace(/([^:]\/)\/+/g, '$1'),
|
|
743
|
+
method: 'GET',
|
|
744
|
+
apiVersion: '',
|
|
745
|
+
}, options),
|
|
746
|
+
params,
|
|
747
|
+
requiredParams: ['customer'],
|
|
748
|
+
pathParams: ['customer'],
|
|
749
|
+
context: this.context,
|
|
750
|
+
};
|
|
751
|
+
if (callback) {
|
|
752
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
753
|
+
}
|
|
754
|
+
else {
|
|
755
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
756
|
+
}
|
|
757
|
+
}
|
|
726
758
|
countChromeBrowsersNeedingAttention(paramsOrCallback, optionsOrCallback, callback) {
|
|
727
759
|
let params = (paramsOrCallback ||
|
|
728
760
|
{});
|
|
@@ -923,6 +955,72 @@ var chromemanagement_v1;
|
|
|
923
955
|
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
924
956
|
}
|
|
925
957
|
}
|
|
958
|
+
countDevicesPerBootType(paramsOrCallback, optionsOrCallback, callback) {
|
|
959
|
+
let params = (paramsOrCallback ||
|
|
960
|
+
{});
|
|
961
|
+
let options = (optionsOrCallback || {});
|
|
962
|
+
if (typeof paramsOrCallback === 'function') {
|
|
963
|
+
callback = paramsOrCallback;
|
|
964
|
+
params =
|
|
965
|
+
{};
|
|
966
|
+
options = {};
|
|
967
|
+
}
|
|
968
|
+
if (typeof optionsOrCallback === 'function') {
|
|
969
|
+
callback = optionsOrCallback;
|
|
970
|
+
options = {};
|
|
971
|
+
}
|
|
972
|
+
const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
973
|
+
const parameters = {
|
|
974
|
+
options: Object.assign({
|
|
975
|
+
url: (rootUrl + '/v1/{+customer}/reports:countDevicesPerBootType').replace(/([^:]\/)\/+/g, '$1'),
|
|
976
|
+
method: 'GET',
|
|
977
|
+
apiVersion: '',
|
|
978
|
+
}, options),
|
|
979
|
+
params,
|
|
980
|
+
requiredParams: ['customer'],
|
|
981
|
+
pathParams: ['customer'],
|
|
982
|
+
context: this.context,
|
|
983
|
+
};
|
|
984
|
+
if (callback) {
|
|
985
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
986
|
+
}
|
|
987
|
+
else {
|
|
988
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
countDevicesPerReleaseChannel(paramsOrCallback, optionsOrCallback, callback) {
|
|
992
|
+
let params = (paramsOrCallback ||
|
|
993
|
+
{});
|
|
994
|
+
let options = (optionsOrCallback || {});
|
|
995
|
+
if (typeof paramsOrCallback === 'function') {
|
|
996
|
+
callback = paramsOrCallback;
|
|
997
|
+
params =
|
|
998
|
+
{};
|
|
999
|
+
options = {};
|
|
1000
|
+
}
|
|
1001
|
+
if (typeof optionsOrCallback === 'function') {
|
|
1002
|
+
callback = optionsOrCallback;
|
|
1003
|
+
options = {};
|
|
1004
|
+
}
|
|
1005
|
+
const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
1006
|
+
const parameters = {
|
|
1007
|
+
options: Object.assign({
|
|
1008
|
+
url: (rootUrl + '/v1/{+customer}/reports:countDevicesPerReleaseChannel').replace(/([^:]\/)\/+/g, '$1'),
|
|
1009
|
+
method: 'GET',
|
|
1010
|
+
apiVersion: '',
|
|
1011
|
+
}, options),
|
|
1012
|
+
params,
|
|
1013
|
+
requiredParams: ['customer'],
|
|
1014
|
+
pathParams: ['customer'],
|
|
1015
|
+
context: this.context,
|
|
1016
|
+
};
|
|
1017
|
+
if (callback) {
|
|
1018
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
1019
|
+
}
|
|
1020
|
+
else {
|
|
1021
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
926
1024
|
countInstalledApps(paramsOrCallback, optionsOrCallback, callback) {
|
|
927
1025
|
let params = (paramsOrCallback ||
|
|
928
1026
|
{});
|