@googleapis/chromemanagement 20.0.1 → 21.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/build/v1.d.ts +2024 -0
- package/build/v1.js +103 -0
- package/build/v1.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +2375 -83
package/v1.ts
CHANGED
|
@@ -467,6 +467,10 @@ export namespace chromemanagement_v1 {
|
|
|
467
467
|
* Output only. Whether this app is enabled for Kiosk mode on ChromeOS devices
|
|
468
468
|
*/
|
|
469
469
|
kioskEnabled?: boolean | null;
|
|
470
|
+
/**
|
|
471
|
+
* Output only. The version of this extension's manifest.
|
|
472
|
+
*/
|
|
473
|
+
manifestVersion?: string | null;
|
|
470
474
|
/**
|
|
471
475
|
* Output only. The minimum number of users using this app.
|
|
472
476
|
*/
|
|
@@ -939,6 +943,10 @@ export namespace chromemanagement_v1 {
|
|
|
939
943
|
* Output only. Display width in millimeters.
|
|
940
944
|
*/
|
|
941
945
|
displayWidthMm?: number | null;
|
|
946
|
+
/**
|
|
947
|
+
* Output only. EDID version.
|
|
948
|
+
*/
|
|
949
|
+
edidVersion?: string | null;
|
|
942
950
|
/**
|
|
943
951
|
* Output only. Is display internal or not.
|
|
944
952
|
*/
|
|
@@ -955,6 +963,10 @@ export namespace chromemanagement_v1 {
|
|
|
955
963
|
* Output only. Manufacturer product code.
|
|
956
964
|
*/
|
|
957
965
|
modelId?: number | null;
|
|
966
|
+
/**
|
|
967
|
+
* Output only. Serial number.
|
|
968
|
+
*/
|
|
969
|
+
serialNumber?: number | null;
|
|
958
970
|
}
|
|
959
971
|
/**
|
|
960
972
|
* Information for a display.
|
|
@@ -968,6 +980,10 @@ export namespace chromemanagement_v1 {
|
|
|
968
980
|
* Output only. Display device name.
|
|
969
981
|
*/
|
|
970
982
|
displayName?: string | null;
|
|
983
|
+
/**
|
|
984
|
+
* Output only. EDID version.
|
|
985
|
+
*/
|
|
986
|
+
edidVersion?: string | null;
|
|
971
987
|
/**
|
|
972
988
|
* Output only. Indicates if display is internal or not.
|
|
973
989
|
*/
|
|
@@ -984,6 +1000,10 @@ export namespace chromemanagement_v1 {
|
|
|
984
1000
|
* Output only. Resolution width in pixels.
|
|
985
1001
|
*/
|
|
986
1002
|
resolutionWidth?: number | null;
|
|
1003
|
+
/**
|
|
1004
|
+
* Output only. Serial number.
|
|
1005
|
+
*/
|
|
1006
|
+
serialNumber?: number | null;
|
|
987
1007
|
}
|
|
988
1008
|
/**
|
|
989
1009
|
* Response containing a list of print jobs.
|
|
@@ -1892,6 +1912,10 @@ export namespace chromemanagement_v1 {
|
|
|
1892
1912
|
* Output only. Payload for network connection state change event. Present only when `event_type` is `NETWORK_STATE_CHANGE`.
|
|
1893
1913
|
*/
|
|
1894
1914
|
networkStateChangeEvent?: Schema$GoogleChromeManagementV1TelemetryNetworkConnectionStateChangeEvent;
|
|
1915
|
+
/**
|
|
1916
|
+
* Output only. Payload for OS crash event. Present only when `event_type` is `OS_CRASH`.
|
|
1917
|
+
*/
|
|
1918
|
+
osCrashEvent?: Schema$GoogleChromeManagementV1TelemetryOsCrashEvent;
|
|
1895
1919
|
/**
|
|
1896
1920
|
* Timestamp that represents when the event was reported.
|
|
1897
1921
|
*/
|
|
@@ -2007,6 +2031,23 @@ export namespace chromemanagement_v1 {
|
|
|
2007
2031
|
*/
|
|
2008
2032
|
userOrgUnitId?: string | null;
|
|
2009
2033
|
}
|
|
2034
|
+
/**
|
|
2035
|
+
* OS crash data.
|
|
2036
|
+
*/
|
|
2037
|
+
export interface Schema$GoogleChromeManagementV1TelemetryOsCrashEvent {
|
|
2038
|
+
/**
|
|
2039
|
+
* Crash id.
|
|
2040
|
+
*/
|
|
2041
|
+
crashId?: string | null;
|
|
2042
|
+
/**
|
|
2043
|
+
* Crash type.
|
|
2044
|
+
*/
|
|
2045
|
+
crashType?: string | null;
|
|
2046
|
+
/**
|
|
2047
|
+
* Session type.
|
|
2048
|
+
*/
|
|
2049
|
+
sessionType?: string | null;
|
|
2050
|
+
}
|
|
2010
2051
|
/**
|
|
2011
2052
|
* `TelemetryUsbPeripheralsEvent` is triggered USB devices are either added or removed. * Granular permission needed: TELEMETRY_API_PERIPHERALS_REPORT
|
|
2012
2053
|
*/
|
|
@@ -2409,6 +2450,56 @@ export namespace chromemanagement_v1 {
|
|
|
2409
2450
|
*/
|
|
2410
2451
|
userId?: string | null;
|
|
2411
2452
|
}
|
|
2453
|
+
/**
|
|
2454
|
+
* A representation of a remote command for a Chrome browser profile.
|
|
2455
|
+
*/
|
|
2456
|
+
export interface Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand {
|
|
2457
|
+
/**
|
|
2458
|
+
* Output only. Result of the remote command.
|
|
2459
|
+
*/
|
|
2460
|
+
commandResult?: Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommandCommandResult;
|
|
2461
|
+
/**
|
|
2462
|
+
* Output only. State of the remote command.
|
|
2463
|
+
*/
|
|
2464
|
+
commandState?: string | null;
|
|
2465
|
+
/**
|
|
2466
|
+
* Required. Type of the remote command. The only supported command_type is "clearBrowsingData".
|
|
2467
|
+
*/
|
|
2468
|
+
commandType?: string | null;
|
|
2469
|
+
/**
|
|
2470
|
+
* Output only. Timestamp of the issurance of the remote command.
|
|
2471
|
+
*/
|
|
2472
|
+
issueTime?: string | null;
|
|
2473
|
+
/**
|
|
2474
|
+
* Identifier. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}/commands/{command_id\}
|
|
2475
|
+
*/
|
|
2476
|
+
name?: string | null;
|
|
2477
|
+
/**
|
|
2478
|
+
* Required. Payload of the remote command. The payload for "clearBrowsingData" command supports: - fields "clearCache" and "clearCookies" - values of boolean type.
|
|
2479
|
+
*/
|
|
2480
|
+
payload?: {[key: string]: any} | null;
|
|
2481
|
+
/**
|
|
2482
|
+
* Output only. Valid duration of the remote command.
|
|
2483
|
+
*/
|
|
2484
|
+
validDuration?: string | null;
|
|
2485
|
+
}
|
|
2486
|
+
/**
|
|
2487
|
+
* Result of the execution of a command.
|
|
2488
|
+
*/
|
|
2489
|
+
export interface Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommandCommandResult {
|
|
2490
|
+
/**
|
|
2491
|
+
* Output only. Timestamp of the client execution of the remote command.
|
|
2492
|
+
*/
|
|
2493
|
+
clientExecutionTime?: string | null;
|
|
2494
|
+
/**
|
|
2495
|
+
* Output only. Result code that indicates the type of error or success of the command.
|
|
2496
|
+
*/
|
|
2497
|
+
resultCode?: string | null;
|
|
2498
|
+
/**
|
|
2499
|
+
* Output only. Result type of the remote command.
|
|
2500
|
+
*/
|
|
2501
|
+
resultType?: string | null;
|
|
2502
|
+
}
|
|
2412
2503
|
/**
|
|
2413
2504
|
* Describes the ChromeOS device that a `CertificateProvisioningProcess` belongs to.
|
|
2414
2505
|
*/
|
|
@@ -2478,6 +2569,23 @@ export namespace chromemanagement_v1 {
|
|
|
2478
2569
|
*/
|
|
2479
2570
|
profileAdapterConfigReference?: string | null;
|
|
2480
2571
|
}
|
|
2572
|
+
/**
|
|
2573
|
+
* Response to ListChromeBrowserProfileCommands method.
|
|
2574
|
+
*/
|
|
2575
|
+
export interface Schema$GoogleChromeManagementVersionsV1ListChromeBrowserProfileCommandsResponse {
|
|
2576
|
+
/**
|
|
2577
|
+
* The list of commands returned.
|
|
2578
|
+
*/
|
|
2579
|
+
chromeBrowserProfileCommands?: Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand[];
|
|
2580
|
+
/**
|
|
2581
|
+
* The pagination token that can be used to list the next page.
|
|
2582
|
+
*/
|
|
2583
|
+
nextPageToken?: string | null;
|
|
2584
|
+
/**
|
|
2585
|
+
* Total size represents an estimated number of resources returned.
|
|
2586
|
+
*/
|
|
2587
|
+
totalSize?: string | null;
|
|
2588
|
+
}
|
|
2481
2589
|
/**
|
|
2482
2590
|
* Response to ListChromeBrowserProfiles method.
|
|
2483
2591
|
*/
|
|
@@ -2710,6 +2818,64 @@ export namespace chromemanagement_v1 {
|
|
|
2710
2818
|
|
|
2711
2819
|
/**
|
|
2712
2820
|
* Generate summary of app installation requests.
|
|
2821
|
+
* @example
|
|
2822
|
+
* ```js
|
|
2823
|
+
* // Before running the sample:
|
|
2824
|
+
* // - Enable the API at:
|
|
2825
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
2826
|
+
* // - Login into gcloud by running:
|
|
2827
|
+
* // ```sh
|
|
2828
|
+
* // $ gcloud auth application-default login
|
|
2829
|
+
* // ```
|
|
2830
|
+
* // - Install the npm module by running:
|
|
2831
|
+
* // ```sh
|
|
2832
|
+
* // $ npm install googleapis
|
|
2833
|
+
* // ```
|
|
2834
|
+
*
|
|
2835
|
+
* const {google} = require('googleapis');
|
|
2836
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
2837
|
+
*
|
|
2838
|
+
* async function main() {
|
|
2839
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2840
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2841
|
+
* scopes: [
|
|
2842
|
+
* 'https://www.googleapis.com/auth/chrome.management.appdetails.readonly',
|
|
2843
|
+
* ],
|
|
2844
|
+
* });
|
|
2845
|
+
*
|
|
2846
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2847
|
+
* const authClient = await auth.getClient();
|
|
2848
|
+
* google.options({auth: authClient});
|
|
2849
|
+
*
|
|
2850
|
+
* // Do the magic
|
|
2851
|
+
* const res = await chromemanagement.customers.apps.countChromeAppRequests({
|
|
2852
|
+
* // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
2853
|
+
* customer: 'customers/my-customer',
|
|
2854
|
+
* // Field used to order results. Supported fields: * request_count * latest_request_time
|
|
2855
|
+
* orderBy: 'placeholder-value',
|
|
2856
|
+
* // The ID of the organizational unit.
|
|
2857
|
+
* orgUnitId: 'placeholder-value',
|
|
2858
|
+
* // Maximum number of results to return. Maximum and default are 50, anything above will be coerced to 50.
|
|
2859
|
+
* pageSize: 'placeholder-value',
|
|
2860
|
+
* // Token to specify the page of the request to be returned.
|
|
2861
|
+
* pageToken: 'placeholder-value',
|
|
2862
|
+
* });
|
|
2863
|
+
* console.log(res.data);
|
|
2864
|
+
*
|
|
2865
|
+
* // Example response
|
|
2866
|
+
* // {
|
|
2867
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
2868
|
+
* // "requestedApps": [],
|
|
2869
|
+
* // "totalSize": 0
|
|
2870
|
+
* // }
|
|
2871
|
+
* }
|
|
2872
|
+
*
|
|
2873
|
+
* main().catch(e => {
|
|
2874
|
+
* console.error(e);
|
|
2875
|
+
* throw e;
|
|
2876
|
+
* });
|
|
2877
|
+
*
|
|
2878
|
+
* ```
|
|
2713
2879
|
*
|
|
2714
2880
|
* @param params - Parameters for request
|
|
2715
2881
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2811,6 +2977,65 @@ export namespace chromemanagement_v1 {
|
|
|
2811
2977
|
|
|
2812
2978
|
/**
|
|
2813
2979
|
* Get a list of devices that have requested to install an extension.
|
|
2980
|
+
* @example
|
|
2981
|
+
* ```js
|
|
2982
|
+
* // Before running the sample:
|
|
2983
|
+
* // - Enable the API at:
|
|
2984
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
2985
|
+
* // - Login into gcloud by running:
|
|
2986
|
+
* // ```sh
|
|
2987
|
+
* // $ gcloud auth application-default login
|
|
2988
|
+
* // ```
|
|
2989
|
+
* // - Install the npm module by running:
|
|
2990
|
+
* // ```sh
|
|
2991
|
+
* // $ npm install googleapis
|
|
2992
|
+
* // ```
|
|
2993
|
+
*
|
|
2994
|
+
* const {google} = require('googleapis');
|
|
2995
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
2996
|
+
*
|
|
2997
|
+
* async function main() {
|
|
2998
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2999
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3000
|
+
* scopes: [
|
|
3001
|
+
* 'https://www.googleapis.com/auth/chrome.management.appdetails.readonly',
|
|
3002
|
+
* ],
|
|
3003
|
+
* });
|
|
3004
|
+
*
|
|
3005
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3006
|
+
* const authClient = await auth.getClient();
|
|
3007
|
+
* google.options({auth: authClient});
|
|
3008
|
+
*
|
|
3009
|
+
* // Do the magic
|
|
3010
|
+
* const res =
|
|
3011
|
+
* await chromemanagement.customers.apps.fetchDevicesRequestingExtension({
|
|
3012
|
+
* // Required. The customer ID or "my_customer" prefixed with "customers/".
|
|
3013
|
+
* customer: 'customers/my-customer',
|
|
3014
|
+
* // Required. The extension for which we want to find requesting devices.
|
|
3015
|
+
* extensionId: 'placeholder-value',
|
|
3016
|
+
* // The ID of the organizational unit. Only consider devices that directly belong to this org unit, i.e. sub-orgunits are not counted. If omitted, all data will be returned.
|
|
3017
|
+
* orgUnitId: 'placeholder-value',
|
|
3018
|
+
* // Optional. Maximum number of results to return. Maximum and default are 50. Any page size larger than 50 will be coerced to 50.
|
|
3019
|
+
* pageSize: 'placeholder-value',
|
|
3020
|
+
* // Optional. Token to specify the page of the request to be returned. Token expires after 1 day.
|
|
3021
|
+
* pageToken: 'placeholder-value',
|
|
3022
|
+
* });
|
|
3023
|
+
* console.log(res.data);
|
|
3024
|
+
*
|
|
3025
|
+
* // Example response
|
|
3026
|
+
* // {
|
|
3027
|
+
* // "deviceDetails": [],
|
|
3028
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
3029
|
+
* // "totalSize": 0
|
|
3030
|
+
* // }
|
|
3031
|
+
* }
|
|
3032
|
+
*
|
|
3033
|
+
* main().catch(e => {
|
|
3034
|
+
* console.error(e);
|
|
3035
|
+
* throw e;
|
|
3036
|
+
* });
|
|
3037
|
+
*
|
|
3038
|
+
* ```
|
|
2814
3039
|
*
|
|
2815
3040
|
* @param params - Parameters for request
|
|
2816
3041
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2913,6 +3138,65 @@ export namespace chromemanagement_v1 {
|
|
|
2913
3138
|
|
|
2914
3139
|
/**
|
|
2915
3140
|
* Get a list of users that have requested to install an extension.
|
|
3141
|
+
* @example
|
|
3142
|
+
* ```js
|
|
3143
|
+
* // Before running the sample:
|
|
3144
|
+
* // - Enable the API at:
|
|
3145
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
3146
|
+
* // - Login into gcloud by running:
|
|
3147
|
+
* // ```sh
|
|
3148
|
+
* // $ gcloud auth application-default login
|
|
3149
|
+
* // ```
|
|
3150
|
+
* // - Install the npm module by running:
|
|
3151
|
+
* // ```sh
|
|
3152
|
+
* // $ npm install googleapis
|
|
3153
|
+
* // ```
|
|
3154
|
+
*
|
|
3155
|
+
* const {google} = require('googleapis');
|
|
3156
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
3157
|
+
*
|
|
3158
|
+
* async function main() {
|
|
3159
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3160
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3161
|
+
* scopes: [
|
|
3162
|
+
* 'https://www.googleapis.com/auth/chrome.management.appdetails.readonly',
|
|
3163
|
+
* ],
|
|
3164
|
+
* });
|
|
3165
|
+
*
|
|
3166
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3167
|
+
* const authClient = await auth.getClient();
|
|
3168
|
+
* google.options({auth: authClient});
|
|
3169
|
+
*
|
|
3170
|
+
* // Do the magic
|
|
3171
|
+
* const res =
|
|
3172
|
+
* await chromemanagement.customers.apps.fetchUsersRequestingExtension({
|
|
3173
|
+
* // Required. The customer ID or "my_customer" prefixed with "customers/".
|
|
3174
|
+
* customer: 'customers/my-customer',
|
|
3175
|
+
* // Required. The extension for which we want to find the requesting users.
|
|
3176
|
+
* extensionId: 'placeholder-value',
|
|
3177
|
+
* // The ID of the organizational unit. Only consider devices that directly belong to this org unit, i.e. sub-orgunits are not counted. If omitted, all data will be returned.
|
|
3178
|
+
* orgUnitId: 'placeholder-value',
|
|
3179
|
+
* // Optional. Maximum number of results to return. Maximum and default are 50. Any page size larger than 50 will be coerced to 50.
|
|
3180
|
+
* pageSize: 'placeholder-value',
|
|
3181
|
+
* // Optional. Token to specify the page of the request to be returned. Token expires after 1 day.
|
|
3182
|
+
* pageToken: 'placeholder-value',
|
|
3183
|
+
* });
|
|
3184
|
+
* console.log(res.data);
|
|
3185
|
+
*
|
|
3186
|
+
* // Example response
|
|
3187
|
+
* // {
|
|
3188
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
3189
|
+
* // "totalSize": 0,
|
|
3190
|
+
* // "userDetails": []
|
|
3191
|
+
* // }
|
|
3192
|
+
* }
|
|
3193
|
+
*
|
|
3194
|
+
* main().catch(e => {
|
|
3195
|
+
* console.error(e);
|
|
3196
|
+
* throw e;
|
|
3197
|
+
* });
|
|
3198
|
+
*
|
|
3199
|
+
* ```
|
|
2916
3200
|
*
|
|
2917
3201
|
* @param params - Parameters for request
|
|
2918
3202
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3092,6 +3376,72 @@ export namespace chromemanagement_v1 {
|
|
|
3092
3376
|
|
|
3093
3377
|
/**
|
|
3094
3378
|
* Get a specific app for a customer by its resource name.
|
|
3379
|
+
* @example
|
|
3380
|
+
* ```js
|
|
3381
|
+
* // Before running the sample:
|
|
3382
|
+
* // - Enable the API at:
|
|
3383
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
3384
|
+
* // - Login into gcloud by running:
|
|
3385
|
+
* // ```sh
|
|
3386
|
+
* // $ gcloud auth application-default login
|
|
3387
|
+
* // ```
|
|
3388
|
+
* // - Install the npm module by running:
|
|
3389
|
+
* // ```sh
|
|
3390
|
+
* // $ npm install googleapis
|
|
3391
|
+
* // ```
|
|
3392
|
+
*
|
|
3393
|
+
* const {google} = require('googleapis');
|
|
3394
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
3395
|
+
*
|
|
3396
|
+
* async function main() {
|
|
3397
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3398
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3399
|
+
* scopes: [
|
|
3400
|
+
* 'https://www.googleapis.com/auth/chrome.management.appdetails.readonly',
|
|
3401
|
+
* ],
|
|
3402
|
+
* });
|
|
3403
|
+
*
|
|
3404
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3405
|
+
* const authClient = await auth.getClient();
|
|
3406
|
+
* google.options({auth: authClient});
|
|
3407
|
+
*
|
|
3408
|
+
* // Do the magic
|
|
3409
|
+
* const res = await chromemanagement.customers.apps.android.get({
|
|
3410
|
+
* // Required. The app for which details are being queried. Examples: "customers/my_customer/apps/chrome/gmbmikajjgmnabiglmofipeabaddhgne@2.1.2" for the Save to Google Drive Chrome extension version 2.1.2, "customers/my_customer/apps/android/com.google.android.apps.docs" for the Google Drive Android app's latest version.
|
|
3411
|
+
* name: 'customers/my-customer/apps/android/[^/]+',
|
|
3412
|
+
* });
|
|
3413
|
+
* console.log(res.data);
|
|
3414
|
+
*
|
|
3415
|
+
* // Example response
|
|
3416
|
+
* // {
|
|
3417
|
+
* // "androidAppInfo": {},
|
|
3418
|
+
* // "appId": "my_appId",
|
|
3419
|
+
* // "chromeAppInfo": {},
|
|
3420
|
+
* // "description": "my_description",
|
|
3421
|
+
* // "detailUri": "my_detailUri",
|
|
3422
|
+
* // "displayName": "my_displayName",
|
|
3423
|
+
* // "firstPublishTime": "my_firstPublishTime",
|
|
3424
|
+
* // "homepageUri": "my_homepageUri",
|
|
3425
|
+
* // "iconUri": "my_iconUri",
|
|
3426
|
+
* // "isPaidApp": false,
|
|
3427
|
+
* // "latestPublishTime": "my_latestPublishTime",
|
|
3428
|
+
* // "name": "my_name",
|
|
3429
|
+
* // "privacyPolicyUri": "my_privacyPolicyUri",
|
|
3430
|
+
* // "publisher": "my_publisher",
|
|
3431
|
+
* // "reviewNumber": "my_reviewNumber",
|
|
3432
|
+
* // "reviewRating": {},
|
|
3433
|
+
* // "revisionId": "my_revisionId",
|
|
3434
|
+
* // "serviceError": {},
|
|
3435
|
+
* // "type": "my_type"
|
|
3436
|
+
* // }
|
|
3437
|
+
* }
|
|
3438
|
+
*
|
|
3439
|
+
* main().catch(e => {
|
|
3440
|
+
* console.error(e);
|
|
3441
|
+
* throw e;
|
|
3442
|
+
* });
|
|
3443
|
+
*
|
|
3444
|
+
* ```
|
|
3095
3445
|
*
|
|
3096
3446
|
* @param params - Parameters for request
|
|
3097
3447
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3206,6 +3556,72 @@ export namespace chromemanagement_v1 {
|
|
|
3206
3556
|
|
|
3207
3557
|
/**
|
|
3208
3558
|
* Get a specific app for a customer by its resource name.
|
|
3559
|
+
* @example
|
|
3560
|
+
* ```js
|
|
3561
|
+
* // Before running the sample:
|
|
3562
|
+
* // - Enable the API at:
|
|
3563
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
3564
|
+
* // - Login into gcloud by running:
|
|
3565
|
+
* // ```sh
|
|
3566
|
+
* // $ gcloud auth application-default login
|
|
3567
|
+
* // ```
|
|
3568
|
+
* // - Install the npm module by running:
|
|
3569
|
+
* // ```sh
|
|
3570
|
+
* // $ npm install googleapis
|
|
3571
|
+
* // ```
|
|
3572
|
+
*
|
|
3573
|
+
* const {google} = require('googleapis');
|
|
3574
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
3575
|
+
*
|
|
3576
|
+
* async function main() {
|
|
3577
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3578
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3579
|
+
* scopes: [
|
|
3580
|
+
* 'https://www.googleapis.com/auth/chrome.management.appdetails.readonly',
|
|
3581
|
+
* ],
|
|
3582
|
+
* });
|
|
3583
|
+
*
|
|
3584
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3585
|
+
* const authClient = await auth.getClient();
|
|
3586
|
+
* google.options({auth: authClient});
|
|
3587
|
+
*
|
|
3588
|
+
* // Do the magic
|
|
3589
|
+
* const res = await chromemanagement.customers.apps.chrome.get({
|
|
3590
|
+
* // Required. The app for which details are being queried. Examples: "customers/my_customer/apps/chrome/gmbmikajjgmnabiglmofipeabaddhgne@2.1.2" for the Save to Google Drive Chrome extension version 2.1.2, "customers/my_customer/apps/android/com.google.android.apps.docs" for the Google Drive Android app's latest version.
|
|
3591
|
+
* name: 'customers/my-customer/apps/chrome/[^/]+',
|
|
3592
|
+
* });
|
|
3593
|
+
* console.log(res.data);
|
|
3594
|
+
*
|
|
3595
|
+
* // Example response
|
|
3596
|
+
* // {
|
|
3597
|
+
* // "androidAppInfo": {},
|
|
3598
|
+
* // "appId": "my_appId",
|
|
3599
|
+
* // "chromeAppInfo": {},
|
|
3600
|
+
* // "description": "my_description",
|
|
3601
|
+
* // "detailUri": "my_detailUri",
|
|
3602
|
+
* // "displayName": "my_displayName",
|
|
3603
|
+
* // "firstPublishTime": "my_firstPublishTime",
|
|
3604
|
+
* // "homepageUri": "my_homepageUri",
|
|
3605
|
+
* // "iconUri": "my_iconUri",
|
|
3606
|
+
* // "isPaidApp": false,
|
|
3607
|
+
* // "latestPublishTime": "my_latestPublishTime",
|
|
3608
|
+
* // "name": "my_name",
|
|
3609
|
+
* // "privacyPolicyUri": "my_privacyPolicyUri",
|
|
3610
|
+
* // "publisher": "my_publisher",
|
|
3611
|
+
* // "reviewNumber": "my_reviewNumber",
|
|
3612
|
+
* // "reviewRating": {},
|
|
3613
|
+
* // "revisionId": "my_revisionId",
|
|
3614
|
+
* // "serviceError": {},
|
|
3615
|
+
* // "type": "my_type"
|
|
3616
|
+
* // }
|
|
3617
|
+
* }
|
|
3618
|
+
*
|
|
3619
|
+
* main().catch(e => {
|
|
3620
|
+
* console.error(e);
|
|
3621
|
+
* throw e;
|
|
3622
|
+
* });
|
|
3623
|
+
*
|
|
3624
|
+
* ```
|
|
3209
3625
|
*
|
|
3210
3626
|
* @param params - Parameters for request
|
|
3211
3627
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3320,6 +3736,72 @@ export namespace chromemanagement_v1 {
|
|
|
3320
3736
|
|
|
3321
3737
|
/**
|
|
3322
3738
|
* Get a specific app for a customer by its resource name.
|
|
3739
|
+
* @example
|
|
3740
|
+
* ```js
|
|
3741
|
+
* // Before running the sample:
|
|
3742
|
+
* // - Enable the API at:
|
|
3743
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
3744
|
+
* // - Login into gcloud by running:
|
|
3745
|
+
* // ```sh
|
|
3746
|
+
* // $ gcloud auth application-default login
|
|
3747
|
+
* // ```
|
|
3748
|
+
* // - Install the npm module by running:
|
|
3749
|
+
* // ```sh
|
|
3750
|
+
* // $ npm install googleapis
|
|
3751
|
+
* // ```
|
|
3752
|
+
*
|
|
3753
|
+
* const {google} = require('googleapis');
|
|
3754
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
3755
|
+
*
|
|
3756
|
+
* async function main() {
|
|
3757
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3758
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3759
|
+
* scopes: [
|
|
3760
|
+
* 'https://www.googleapis.com/auth/chrome.management.appdetails.readonly',
|
|
3761
|
+
* ],
|
|
3762
|
+
* });
|
|
3763
|
+
*
|
|
3764
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3765
|
+
* const authClient = await auth.getClient();
|
|
3766
|
+
* google.options({auth: authClient});
|
|
3767
|
+
*
|
|
3768
|
+
* // Do the magic
|
|
3769
|
+
* const res = await chromemanagement.customers.apps.web.get({
|
|
3770
|
+
* // Required. The app for which details are being queried. Examples: "customers/my_customer/apps/chrome/gmbmikajjgmnabiglmofipeabaddhgne@2.1.2" for the Save to Google Drive Chrome extension version 2.1.2, "customers/my_customer/apps/android/com.google.android.apps.docs" for the Google Drive Android app's latest version.
|
|
3771
|
+
* name: 'customers/my-customer/apps/web/[^/]+',
|
|
3772
|
+
* });
|
|
3773
|
+
* console.log(res.data);
|
|
3774
|
+
*
|
|
3775
|
+
* // Example response
|
|
3776
|
+
* // {
|
|
3777
|
+
* // "androidAppInfo": {},
|
|
3778
|
+
* // "appId": "my_appId",
|
|
3779
|
+
* // "chromeAppInfo": {},
|
|
3780
|
+
* // "description": "my_description",
|
|
3781
|
+
* // "detailUri": "my_detailUri",
|
|
3782
|
+
* // "displayName": "my_displayName",
|
|
3783
|
+
* // "firstPublishTime": "my_firstPublishTime",
|
|
3784
|
+
* // "homepageUri": "my_homepageUri",
|
|
3785
|
+
* // "iconUri": "my_iconUri",
|
|
3786
|
+
* // "isPaidApp": false,
|
|
3787
|
+
* // "latestPublishTime": "my_latestPublishTime",
|
|
3788
|
+
* // "name": "my_name",
|
|
3789
|
+
* // "privacyPolicyUri": "my_privacyPolicyUri",
|
|
3790
|
+
* // "publisher": "my_publisher",
|
|
3791
|
+
* // "reviewNumber": "my_reviewNumber",
|
|
3792
|
+
* // "reviewRating": {},
|
|
3793
|
+
* // "revisionId": "my_revisionId",
|
|
3794
|
+
* // "serviceError": {},
|
|
3795
|
+
* // "type": "my_type"
|
|
3796
|
+
* // }
|
|
3797
|
+
* }
|
|
3798
|
+
*
|
|
3799
|
+
* main().catch(e => {
|
|
3800
|
+
* console.error(e);
|
|
3801
|
+
* throw e;
|
|
3802
|
+
* });
|
|
3803
|
+
*
|
|
3804
|
+
* ```
|
|
3323
3805
|
*
|
|
3324
3806
|
* @param params - Parameters for request
|
|
3325
3807
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3428,12 +3910,58 @@ export namespace chromemanagement_v1 {
|
|
|
3428
3910
|
|
|
3429
3911
|
export class Resource$Customers$Profiles {
|
|
3430
3912
|
context: APIRequestContext;
|
|
3913
|
+
commands: Resource$Customers$Profiles$Commands;
|
|
3431
3914
|
constructor(context: APIRequestContext) {
|
|
3432
3915
|
this.context = context;
|
|
3916
|
+
this.commands = new Resource$Customers$Profiles$Commands(this.context);
|
|
3433
3917
|
}
|
|
3434
3918
|
|
|
3435
3919
|
/**
|
|
3436
3920
|
* Deletes the data collected from a Chrome browser profile.
|
|
3921
|
+
* @example
|
|
3922
|
+
* ```js
|
|
3923
|
+
* // Before running the sample:
|
|
3924
|
+
* // - Enable the API at:
|
|
3925
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
3926
|
+
* // - Login into gcloud by running:
|
|
3927
|
+
* // ```sh
|
|
3928
|
+
* // $ gcloud auth application-default login
|
|
3929
|
+
* // ```
|
|
3930
|
+
* // - Install the npm module by running:
|
|
3931
|
+
* // ```sh
|
|
3932
|
+
* // $ npm install googleapis
|
|
3933
|
+
* // ```
|
|
3934
|
+
*
|
|
3935
|
+
* const {google} = require('googleapis');
|
|
3936
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
3937
|
+
*
|
|
3938
|
+
* async function main() {
|
|
3939
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3940
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3941
|
+
* scopes: ['https://www.googleapis.com/auth/chrome.management.profiles'],
|
|
3942
|
+
* });
|
|
3943
|
+
*
|
|
3944
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3945
|
+
* const authClient = await auth.getClient();
|
|
3946
|
+
* google.options({auth: authClient});
|
|
3947
|
+
*
|
|
3948
|
+
* // Do the magic
|
|
3949
|
+
* const res = await chromemanagement.customers.profiles.delete({
|
|
3950
|
+
* // Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}
|
|
3951
|
+
* name: 'customers/my-customer/profiles/my-profile',
|
|
3952
|
+
* });
|
|
3953
|
+
* console.log(res.data);
|
|
3954
|
+
*
|
|
3955
|
+
* // Example response
|
|
3956
|
+
* // {}
|
|
3957
|
+
* }
|
|
3958
|
+
*
|
|
3959
|
+
* main().catch(e => {
|
|
3960
|
+
* console.error(e);
|
|
3961
|
+
* throw e;
|
|
3962
|
+
* });
|
|
3963
|
+
*
|
|
3964
|
+
* ```
|
|
3437
3965
|
*
|
|
3438
3966
|
* @param params - Parameters for request
|
|
3439
3967
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3523,6 +4051,80 @@ export namespace chromemanagement_v1 {
|
|
|
3523
4051
|
|
|
3524
4052
|
/**
|
|
3525
4053
|
* Gets a Chrome browser profile with customer ID and profile permanent ID.
|
|
4054
|
+
* @example
|
|
4055
|
+
* ```js
|
|
4056
|
+
* // Before running the sample:
|
|
4057
|
+
* // - Enable the API at:
|
|
4058
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
4059
|
+
* // - Login into gcloud by running:
|
|
4060
|
+
* // ```sh
|
|
4061
|
+
* // $ gcloud auth application-default login
|
|
4062
|
+
* // ```
|
|
4063
|
+
* // - Install the npm module by running:
|
|
4064
|
+
* // ```sh
|
|
4065
|
+
* // $ npm install googleapis
|
|
4066
|
+
* // ```
|
|
4067
|
+
*
|
|
4068
|
+
* const {google} = require('googleapis');
|
|
4069
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
4070
|
+
*
|
|
4071
|
+
* async function main() {
|
|
4072
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4073
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4074
|
+
* scopes: [
|
|
4075
|
+
* 'https://www.googleapis.com/auth/chrome.management.profiles',
|
|
4076
|
+
* 'https://www.googleapis.com/auth/chrome.management.profiles.readonly',
|
|
4077
|
+
* ],
|
|
4078
|
+
* });
|
|
4079
|
+
*
|
|
4080
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4081
|
+
* const authClient = await auth.getClient();
|
|
4082
|
+
* google.options({auth: authClient});
|
|
4083
|
+
*
|
|
4084
|
+
* // Do the magic
|
|
4085
|
+
* const res = await chromemanagement.customers.profiles.get({
|
|
4086
|
+
* // Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}
|
|
4087
|
+
* name: 'customers/my-customer/profiles/my-profile',
|
|
4088
|
+
* });
|
|
4089
|
+
* console.log(res.data);
|
|
4090
|
+
*
|
|
4091
|
+
* // Example response
|
|
4092
|
+
* // {
|
|
4093
|
+
* // "affiliationState": "my_affiliationState",
|
|
4094
|
+
* // "annotatedLocation": "my_annotatedLocation",
|
|
4095
|
+
* // "annotatedUser": "my_annotatedUser",
|
|
4096
|
+
* // "attestationCredential": {},
|
|
4097
|
+
* // "browserChannel": "my_browserChannel",
|
|
4098
|
+
* // "browserVersion": "my_browserVersion",
|
|
4099
|
+
* // "deviceInfo": {},
|
|
4100
|
+
* // "displayName": "my_displayName",
|
|
4101
|
+
* // "etag": "my_etag",
|
|
4102
|
+
* // "extensionCount": "my_extensionCount",
|
|
4103
|
+
* // "firstEnrollmentTime": "my_firstEnrollmentTime",
|
|
4104
|
+
* // "identityProvider": "my_identityProvider",
|
|
4105
|
+
* // "lastActivityTime": "my_lastActivityTime",
|
|
4106
|
+
* // "lastPolicyFetchTime": "my_lastPolicyFetchTime",
|
|
4107
|
+
* // "lastPolicySyncTime": "my_lastPolicySyncTime",
|
|
4108
|
+
* // "lastStatusReportTime": "my_lastStatusReportTime",
|
|
4109
|
+
* // "name": "my_name",
|
|
4110
|
+
* // "osPlatformType": "my_osPlatformType",
|
|
4111
|
+
* // "osPlatformVersion": "my_osPlatformVersion",
|
|
4112
|
+
* // "osVersion": "my_osVersion",
|
|
4113
|
+
* // "policyCount": "my_policyCount",
|
|
4114
|
+
* // "profileId": "my_profileId",
|
|
4115
|
+
* // "profilePermanentId": "my_profilePermanentId",
|
|
4116
|
+
* // "reportingData": {},
|
|
4117
|
+
* // "userEmail": "my_userEmail",
|
|
4118
|
+
* // "userId": "my_userId"
|
|
4119
|
+
* // }
|
|
4120
|
+
* }
|
|
4121
|
+
*
|
|
4122
|
+
* main().catch(e => {
|
|
4123
|
+
* console.error(e);
|
|
4124
|
+
* throw e;
|
|
4125
|
+
* });
|
|
4126
|
+
*
|
|
4127
|
+
* ```
|
|
3526
4128
|
*
|
|
3527
4129
|
* @param params - Parameters for request
|
|
3528
4130
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3622,6 +4224,65 @@ export namespace chromemanagement_v1 {
|
|
|
3622
4224
|
|
|
3623
4225
|
/**
|
|
3624
4226
|
* Lists Chrome browser profiles of a customer based on the given search and sorting criteria.
|
|
4227
|
+
* @example
|
|
4228
|
+
* ```js
|
|
4229
|
+
* // Before running the sample:
|
|
4230
|
+
* // - Enable the API at:
|
|
4231
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
4232
|
+
* // - Login into gcloud by running:
|
|
4233
|
+
* // ```sh
|
|
4234
|
+
* // $ gcloud auth application-default login
|
|
4235
|
+
* // ```
|
|
4236
|
+
* // - Install the npm module by running:
|
|
4237
|
+
* // ```sh
|
|
4238
|
+
* // $ npm install googleapis
|
|
4239
|
+
* // ```
|
|
4240
|
+
*
|
|
4241
|
+
* const {google} = require('googleapis');
|
|
4242
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
4243
|
+
*
|
|
4244
|
+
* async function main() {
|
|
4245
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4246
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4247
|
+
* scopes: [
|
|
4248
|
+
* 'https://www.googleapis.com/auth/chrome.management.profiles',
|
|
4249
|
+
* 'https://www.googleapis.com/auth/chrome.management.profiles.readonly',
|
|
4250
|
+
* ],
|
|
4251
|
+
* });
|
|
4252
|
+
*
|
|
4253
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4254
|
+
* const authClient = await auth.getClient();
|
|
4255
|
+
* google.options({auth: authClient});
|
|
4256
|
+
*
|
|
4257
|
+
* // Do the magic
|
|
4258
|
+
* const res = await chromemanagement.customers.profiles.list({
|
|
4259
|
+
* // Optional. The filter used to filter profiles. The following fields can be used in the filter: - profile_id - display_name - user_email - last_activity_time - last_policy_sync_time - last_status_report_time - first_enrollment_time - os_platform_type - os_version - browser_version - browser_channel - policy_count - extension_count - identity_provider - affiliation_state - os_platform_version - ouId Any of the above fields can be used to specify a filter, and filtering by multiple fields is supported with AND operator. String type fields and enum type fields support '=' and '!=' operators. The integer type and the timestamp type fields support '=', '!=', '<', '\>', '<=' and '\>=' operators. Timestamps expect an RFC-3339 formatted string (e.g. 2012-04-21T11:30:00-04:00). Wildcard '*' can be used with a string type field filter. In addition, string literal filtering is also supported, for example, 'ABC' as a filter maps to a filter that checks if any of the filterable string type fields contains 'ABC'. Organization unit number can be used as a filtering criteria here by specifying 'ouId = ${your_org_unit_id\}', please note that only single OU ID matching is supported.
|
|
4260
|
+
* filter: 'placeholder-value',
|
|
4261
|
+
* // Optional. The fields used to specify the ordering of the results. The supported fields are: - profile_id - display_name - user_email - last_activity_time - last_policy_sync_time - last_status_report_time - first_enrollment_time - os_platform_type - os_version - browser_version - browser_channel - policy_count - extension_count - identity_provider - affiliation_state - os_platform_version By default, sorting is in ascending order, to specify descending order for a field, a suffix " desc" should be added to the field name. The default ordering is the descending order of last_status_report_time.
|
|
4262
|
+
* orderBy: 'placeholder-value',
|
|
4263
|
+
* // Optional. The maximum number of profiles to return. The default page size is 100 if page_size is unspecified, and the maximum page size allowed is 200.
|
|
4264
|
+
* pageSize: 'placeholder-value',
|
|
4265
|
+
* // Optional. The page token used to retrieve a specific page of the listing request.
|
|
4266
|
+
* pageToken: 'placeholder-value',
|
|
4267
|
+
* // Required. Format: customers/{customer_id\}
|
|
4268
|
+
* parent: 'customers/my-customer',
|
|
4269
|
+
* });
|
|
4270
|
+
* console.log(res.data);
|
|
4271
|
+
*
|
|
4272
|
+
* // Example response
|
|
4273
|
+
* // {
|
|
4274
|
+
* // "chromeBrowserProfiles": [],
|
|
4275
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
4276
|
+
* // "totalSize": "my_totalSize"
|
|
4277
|
+
* // }
|
|
4278
|
+
* }
|
|
4279
|
+
*
|
|
4280
|
+
* main().catch(e => {
|
|
4281
|
+
* console.error(e);
|
|
4282
|
+
* throw e;
|
|
4283
|
+
* });
|
|
4284
|
+
*
|
|
4285
|
+
* ```
|
|
3625
4286
|
*
|
|
3626
4287
|
* @param params - Parameters for request
|
|
3627
4288
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3761,76 +4422,141 @@ export namespace chromemanagement_v1 {
|
|
|
3761
4422
|
parent?: string;
|
|
3762
4423
|
}
|
|
3763
4424
|
|
|
3764
|
-
export class Resource$Customers$
|
|
4425
|
+
export class Resource$Customers$Profiles$Commands {
|
|
3765
4426
|
context: APIRequestContext;
|
|
3766
4427
|
constructor(context: APIRequestContext) {
|
|
3767
4428
|
this.context = context;
|
|
3768
4429
|
}
|
|
3769
4430
|
|
|
3770
4431
|
/**
|
|
3771
|
-
*
|
|
4432
|
+
* Creates a Chrome browser profile remote command.
|
|
4433
|
+
* @example
|
|
4434
|
+
* ```js
|
|
4435
|
+
* // Before running the sample:
|
|
4436
|
+
* // - Enable the API at:
|
|
4437
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
4438
|
+
* // - Login into gcloud by running:
|
|
4439
|
+
* // ```sh
|
|
4440
|
+
* // $ gcloud auth application-default login
|
|
4441
|
+
* // ```
|
|
4442
|
+
* // - Install the npm module by running:
|
|
4443
|
+
* // ```sh
|
|
4444
|
+
* // $ npm install googleapis
|
|
4445
|
+
* // ```
|
|
4446
|
+
*
|
|
4447
|
+
* const {google} = require('googleapis');
|
|
4448
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
4449
|
+
*
|
|
4450
|
+
* async function main() {
|
|
4451
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4452
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4453
|
+
* scopes: ['https://www.googleapis.com/auth/chrome.management.profiles'],
|
|
4454
|
+
* });
|
|
4455
|
+
*
|
|
4456
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4457
|
+
* const authClient = await auth.getClient();
|
|
4458
|
+
* google.options({auth: authClient});
|
|
4459
|
+
*
|
|
4460
|
+
* // Do the magic
|
|
4461
|
+
* const res = await chromemanagement.customers.profiles.commands.create({
|
|
4462
|
+
* // Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}
|
|
4463
|
+
* parent: 'customers/my-customer/profiles/my-profile',
|
|
4464
|
+
*
|
|
4465
|
+
* // Request body metadata
|
|
4466
|
+
* requestBody: {
|
|
4467
|
+
* // request body parameters
|
|
4468
|
+
* // {
|
|
4469
|
+
* // "commandResult": {},
|
|
4470
|
+
* // "commandState": "my_commandState",
|
|
4471
|
+
* // "commandType": "my_commandType",
|
|
4472
|
+
* // "issueTime": "my_issueTime",
|
|
4473
|
+
* // "name": "my_name",
|
|
4474
|
+
* // "payload": {},
|
|
4475
|
+
* // "validDuration": "my_validDuration"
|
|
4476
|
+
* // }
|
|
4477
|
+
* },
|
|
4478
|
+
* });
|
|
4479
|
+
* console.log(res.data);
|
|
4480
|
+
*
|
|
4481
|
+
* // Example response
|
|
4482
|
+
* // {
|
|
4483
|
+
* // "commandResult": {},
|
|
4484
|
+
* // "commandState": "my_commandState",
|
|
4485
|
+
* // "commandType": "my_commandType",
|
|
4486
|
+
* // "issueTime": "my_issueTime",
|
|
4487
|
+
* // "name": "my_name",
|
|
4488
|
+
* // "payload": {},
|
|
4489
|
+
* // "validDuration": "my_validDuration"
|
|
4490
|
+
* // }
|
|
4491
|
+
* }
|
|
4492
|
+
*
|
|
4493
|
+
* main().catch(e => {
|
|
4494
|
+
* console.error(e);
|
|
4495
|
+
* throw e;
|
|
4496
|
+
* });
|
|
4497
|
+
*
|
|
4498
|
+
* ```
|
|
3772
4499
|
*
|
|
3773
4500
|
* @param params - Parameters for request
|
|
3774
4501
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3775
4502
|
* @param callback - Optional callback that handles the response.
|
|
3776
4503
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3777
4504
|
*/
|
|
3778
|
-
|
|
3779
|
-
params: Params$Resource$Customers$
|
|
4505
|
+
create(
|
|
4506
|
+
params: Params$Resource$Customers$Profiles$Commands$Create,
|
|
3780
4507
|
options: StreamMethodOptions
|
|
3781
4508
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3782
|
-
|
|
3783
|
-
params?: Params$Resource$Customers$
|
|
4509
|
+
create(
|
|
4510
|
+
params?: Params$Resource$Customers$Profiles$Commands$Create,
|
|
3784
4511
|
options?: MethodOptions
|
|
3785
4512
|
): Promise<
|
|
3786
|
-
GaxiosResponseWithHTTP2<Schema$
|
|
4513
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>
|
|
3787
4514
|
>;
|
|
3788
|
-
|
|
3789
|
-
params: Params$Resource$Customers$
|
|
4515
|
+
create(
|
|
4516
|
+
params: Params$Resource$Customers$Profiles$Commands$Create,
|
|
3790
4517
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3791
4518
|
callback: BodyResponseCallback<Readable>
|
|
3792
4519
|
): void;
|
|
3793
|
-
|
|
3794
|
-
params: Params$Resource$Customers$
|
|
4520
|
+
create(
|
|
4521
|
+
params: Params$Resource$Customers$Profiles$Commands$Create,
|
|
3795
4522
|
options:
|
|
3796
4523
|
| MethodOptions
|
|
3797
|
-
| BodyResponseCallback<Schema$
|
|
3798
|
-
callback: BodyResponseCallback<Schema$
|
|
4524
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>,
|
|
4525
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>
|
|
3799
4526
|
): void;
|
|
3800
|
-
|
|
3801
|
-
params: Params$Resource$Customers$
|
|
3802
|
-
callback: BodyResponseCallback<Schema$
|
|
4527
|
+
create(
|
|
4528
|
+
params: Params$Resource$Customers$Profiles$Commands$Create,
|
|
4529
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>
|
|
3803
4530
|
): void;
|
|
3804
|
-
|
|
3805
|
-
callback: BodyResponseCallback<Schema$
|
|
4531
|
+
create(
|
|
4532
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>
|
|
3806
4533
|
): void;
|
|
3807
|
-
|
|
4534
|
+
create(
|
|
3808
4535
|
paramsOrCallback?:
|
|
3809
|
-
| Params$Resource$Customers$
|
|
3810
|
-
| BodyResponseCallback<Schema$
|
|
4536
|
+
| Params$Resource$Customers$Profiles$Commands$Create
|
|
4537
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>
|
|
3811
4538
|
| BodyResponseCallback<Readable>,
|
|
3812
4539
|
optionsOrCallback?:
|
|
3813
4540
|
| MethodOptions
|
|
3814
4541
|
| StreamMethodOptions
|
|
3815
|
-
| BodyResponseCallback<Schema$
|
|
4542
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>
|
|
3816
4543
|
| BodyResponseCallback<Readable>,
|
|
3817
4544
|
callback?:
|
|
3818
|
-
| BodyResponseCallback<Schema$
|
|
4545
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>
|
|
3819
4546
|
| BodyResponseCallback<Readable>
|
|
3820
4547
|
):
|
|
3821
4548
|
| void
|
|
3822
4549
|
| Promise<
|
|
3823
|
-
GaxiosResponseWithHTTP2<Schema$
|
|
4550
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>
|
|
3824
4551
|
>
|
|
3825
4552
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
3826
4553
|
let params = (paramsOrCallback ||
|
|
3827
|
-
{}) as Params$Resource$Customers$
|
|
4554
|
+
{}) as Params$Resource$Customers$Profiles$Commands$Create;
|
|
3828
4555
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3829
4556
|
|
|
3830
4557
|
if (typeof paramsOrCallback === 'function') {
|
|
3831
4558
|
callback = paramsOrCallback;
|
|
3832
|
-
params =
|
|
3833
|
-
{} as Params$Resource$Customers$Reports$Countchromebrowsersneedingattention;
|
|
4559
|
+
params = {} as Params$Resource$Customers$Profiles$Commands$Create;
|
|
3834
4560
|
options = {};
|
|
3835
4561
|
}
|
|
3836
4562
|
|
|
@@ -3844,95 +4570,150 @@ export namespace chromemanagement_v1 {
|
|
|
3844
4570
|
const parameters = {
|
|
3845
4571
|
options: Object.assign(
|
|
3846
4572
|
{
|
|
3847
|
-
url: (
|
|
3848
|
-
|
|
3849
|
-
'
|
|
3850
|
-
)
|
|
3851
|
-
method: '
|
|
4573
|
+
url: (rootUrl + '/v1/{+parent}/commands').replace(
|
|
4574
|
+
/([^:]\/)\/+/g,
|
|
4575
|
+
'$1'
|
|
4576
|
+
),
|
|
4577
|
+
method: 'POST',
|
|
3852
4578
|
apiVersion: '',
|
|
3853
4579
|
},
|
|
3854
4580
|
options
|
|
3855
4581
|
),
|
|
3856
4582
|
params,
|
|
3857
|
-
requiredParams: ['
|
|
3858
|
-
pathParams: ['
|
|
4583
|
+
requiredParams: ['parent'],
|
|
4584
|
+
pathParams: ['parent'],
|
|
3859
4585
|
context: this.context,
|
|
3860
4586
|
};
|
|
3861
4587
|
if (callback) {
|
|
3862
|
-
createAPIRequest<Schema$
|
|
4588
|
+
createAPIRequest<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>(
|
|
3863
4589
|
parameters,
|
|
3864
4590
|
callback as BodyResponseCallback<unknown>
|
|
3865
4591
|
);
|
|
3866
4592
|
} else {
|
|
3867
|
-
return createAPIRequest<Schema$
|
|
4593
|
+
return createAPIRequest<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>(
|
|
3868
4594
|
parameters
|
|
3869
4595
|
);
|
|
3870
4596
|
}
|
|
3871
4597
|
}
|
|
3872
4598
|
|
|
3873
4599
|
/**
|
|
3874
|
-
*
|
|
4600
|
+
* Gets a Chrome browser profile remote command.
|
|
4601
|
+
* @example
|
|
4602
|
+
* ```js
|
|
4603
|
+
* // Before running the sample:
|
|
4604
|
+
* // - Enable the API at:
|
|
4605
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
4606
|
+
* // - Login into gcloud by running:
|
|
4607
|
+
* // ```sh
|
|
4608
|
+
* // $ gcloud auth application-default login
|
|
4609
|
+
* // ```
|
|
4610
|
+
* // - Install the npm module by running:
|
|
4611
|
+
* // ```sh
|
|
4612
|
+
* // $ npm install googleapis
|
|
4613
|
+
* // ```
|
|
4614
|
+
*
|
|
4615
|
+
* const {google} = require('googleapis');
|
|
4616
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
4617
|
+
*
|
|
4618
|
+
* async function main() {
|
|
4619
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4620
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4621
|
+
* scopes: [
|
|
4622
|
+
* 'https://www.googleapis.com/auth/chrome.management.profiles',
|
|
4623
|
+
* 'https://www.googleapis.com/auth/chrome.management.profiles.readonly',
|
|
4624
|
+
* ],
|
|
4625
|
+
* });
|
|
4626
|
+
*
|
|
4627
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4628
|
+
* const authClient = await auth.getClient();
|
|
4629
|
+
* google.options({auth: authClient});
|
|
4630
|
+
*
|
|
4631
|
+
* // Do the magic
|
|
4632
|
+
* const res = await chromemanagement.customers.profiles.commands.get({
|
|
4633
|
+
* // Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}/commands/{command_id\}
|
|
4634
|
+
* name: 'customers/my-customer/profiles/my-profile/commands/my-command',
|
|
4635
|
+
* });
|
|
4636
|
+
* console.log(res.data);
|
|
4637
|
+
*
|
|
4638
|
+
* // Example response
|
|
4639
|
+
* // {
|
|
4640
|
+
* // "commandResult": {},
|
|
4641
|
+
* // "commandState": "my_commandState",
|
|
4642
|
+
* // "commandType": "my_commandType",
|
|
4643
|
+
* // "issueTime": "my_issueTime",
|
|
4644
|
+
* // "name": "my_name",
|
|
4645
|
+
* // "payload": {},
|
|
4646
|
+
* // "validDuration": "my_validDuration"
|
|
4647
|
+
* // }
|
|
4648
|
+
* }
|
|
4649
|
+
*
|
|
4650
|
+
* main().catch(e => {
|
|
4651
|
+
* console.error(e);
|
|
4652
|
+
* throw e;
|
|
4653
|
+
* });
|
|
4654
|
+
*
|
|
4655
|
+
* ```
|
|
3875
4656
|
*
|
|
3876
4657
|
* @param params - Parameters for request
|
|
3877
4658
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3878
4659
|
* @param callback - Optional callback that handles the response.
|
|
3879
4660
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3880
4661
|
*/
|
|
3881
|
-
|
|
3882
|
-
params: Params$Resource$Customers$
|
|
4662
|
+
get(
|
|
4663
|
+
params: Params$Resource$Customers$Profiles$Commands$Get,
|
|
3883
4664
|
options: StreamMethodOptions
|
|
3884
4665
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3885
|
-
|
|
3886
|
-
params?: Params$Resource$Customers$
|
|
4666
|
+
get(
|
|
4667
|
+
params?: Params$Resource$Customers$Profiles$Commands$Get,
|
|
3887
4668
|
options?: MethodOptions
|
|
3888
4669
|
): Promise<
|
|
3889
|
-
GaxiosResponseWithHTTP2<Schema$
|
|
4670
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>
|
|
3890
4671
|
>;
|
|
3891
|
-
|
|
3892
|
-
params: Params$Resource$Customers$
|
|
4672
|
+
get(
|
|
4673
|
+
params: Params$Resource$Customers$Profiles$Commands$Get,
|
|
3893
4674
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3894
4675
|
callback: BodyResponseCallback<Readable>
|
|
3895
4676
|
): void;
|
|
3896
|
-
|
|
3897
|
-
params: Params$Resource$Customers$
|
|
4677
|
+
get(
|
|
4678
|
+
params: Params$Resource$Customers$Profiles$Commands$Get,
|
|
3898
4679
|
options:
|
|
3899
4680
|
| MethodOptions
|
|
3900
|
-
| BodyResponseCallback<Schema$
|
|
3901
|
-
callback: BodyResponseCallback<Schema$
|
|
4681
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>,
|
|
4682
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>
|
|
3902
4683
|
): void;
|
|
3903
|
-
|
|
3904
|
-
params: Params$Resource$Customers$
|
|
3905
|
-
callback: BodyResponseCallback<Schema$
|
|
4684
|
+
get(
|
|
4685
|
+
params: Params$Resource$Customers$Profiles$Commands$Get,
|
|
4686
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>
|
|
3906
4687
|
): void;
|
|
3907
|
-
|
|
3908
|
-
callback: BodyResponseCallback<Schema$
|
|
4688
|
+
get(
|
|
4689
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>
|
|
3909
4690
|
): void;
|
|
3910
|
-
|
|
4691
|
+
get(
|
|
3911
4692
|
paramsOrCallback?:
|
|
3912
|
-
| Params$Resource$Customers$
|
|
3913
|
-
| BodyResponseCallback<Schema$
|
|
4693
|
+
| Params$Resource$Customers$Profiles$Commands$Get
|
|
4694
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>
|
|
3914
4695
|
| BodyResponseCallback<Readable>,
|
|
3915
4696
|
optionsOrCallback?:
|
|
3916
4697
|
| MethodOptions
|
|
3917
4698
|
| StreamMethodOptions
|
|
3918
|
-
| BodyResponseCallback<Schema$
|
|
4699
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>
|
|
3919
4700
|
| BodyResponseCallback<Readable>,
|
|
3920
4701
|
callback?:
|
|
3921
|
-
| BodyResponseCallback<Schema$
|
|
4702
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>
|
|
3922
4703
|
| BodyResponseCallback<Readable>
|
|
3923
4704
|
):
|
|
3924
4705
|
| void
|
|
3925
4706
|
| Promise<
|
|
3926
|
-
GaxiosResponseWithHTTP2<Schema$
|
|
4707
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>
|
|
3927
4708
|
>
|
|
3928
4709
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
3929
4710
|
let params = (paramsOrCallback ||
|
|
3930
|
-
{}) as Params$Resource$Customers$
|
|
4711
|
+
{}) as Params$Resource$Customers$Profiles$Commands$Get;
|
|
3931
4712
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3932
4713
|
|
|
3933
4714
|
if (typeof paramsOrCallback === 'function') {
|
|
3934
4715
|
callback = paramsOrCallback;
|
|
3935
|
-
params = {} as Params$Resource$Customers$
|
|
4716
|
+
params = {} as Params$Resource$Customers$Profiles$Commands$Get;
|
|
3936
4717
|
options = {};
|
|
3937
4718
|
}
|
|
3938
4719
|
|
|
@@ -3946,64 +4727,631 @@ export namespace chromemanagement_v1 {
|
|
|
3946
4727
|
const parameters = {
|
|
3947
4728
|
options: Object.assign(
|
|
3948
4729
|
{
|
|
3949
|
-
url: (
|
|
3950
|
-
rootUrl + '/v1/{+customer}/reports:countChromeCrashEvents'
|
|
3951
|
-
).replace(/([^:]\/)\/+/g, '$1'),
|
|
4730
|
+
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
3952
4731
|
method: 'GET',
|
|
3953
4732
|
apiVersion: '',
|
|
3954
4733
|
},
|
|
3955
4734
|
options
|
|
3956
4735
|
),
|
|
3957
4736
|
params,
|
|
3958
|
-
requiredParams: ['
|
|
3959
|
-
pathParams: ['
|
|
4737
|
+
requiredParams: ['name'],
|
|
4738
|
+
pathParams: ['name'],
|
|
3960
4739
|
context: this.context,
|
|
3961
4740
|
};
|
|
3962
4741
|
if (callback) {
|
|
3963
|
-
createAPIRequest<Schema$
|
|
4742
|
+
createAPIRequest<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>(
|
|
3964
4743
|
parameters,
|
|
3965
4744
|
callback as BodyResponseCallback<unknown>
|
|
3966
4745
|
);
|
|
3967
4746
|
} else {
|
|
3968
|
-
return createAPIRequest<Schema$
|
|
4747
|
+
return createAPIRequest<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>(
|
|
3969
4748
|
parameters
|
|
3970
4749
|
);
|
|
3971
4750
|
}
|
|
3972
4751
|
}
|
|
3973
4752
|
|
|
3974
4753
|
/**
|
|
3975
|
-
*
|
|
4754
|
+
* Lists remote commands of a Chrome browser profile.
|
|
4755
|
+
* @example
|
|
4756
|
+
* ```js
|
|
4757
|
+
* // Before running the sample:
|
|
4758
|
+
* // - Enable the API at:
|
|
4759
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
4760
|
+
* // - Login into gcloud by running:
|
|
4761
|
+
* // ```sh
|
|
4762
|
+
* // $ gcloud auth application-default login
|
|
4763
|
+
* // ```
|
|
4764
|
+
* // - Install the npm module by running:
|
|
4765
|
+
* // ```sh
|
|
4766
|
+
* // $ npm install googleapis
|
|
4767
|
+
* // ```
|
|
4768
|
+
*
|
|
4769
|
+
* const {google} = require('googleapis');
|
|
4770
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
4771
|
+
*
|
|
4772
|
+
* async function main() {
|
|
4773
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4774
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4775
|
+
* scopes: [
|
|
4776
|
+
* 'https://www.googleapis.com/auth/chrome.management.profiles',
|
|
4777
|
+
* 'https://www.googleapis.com/auth/chrome.management.profiles.readonly',
|
|
4778
|
+
* ],
|
|
4779
|
+
* });
|
|
4780
|
+
*
|
|
4781
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4782
|
+
* const authClient = await auth.getClient();
|
|
4783
|
+
* google.options({auth: authClient});
|
|
4784
|
+
*
|
|
4785
|
+
* // Do the magic
|
|
4786
|
+
* const res = await chromemanagement.customers.profiles.commands.list({
|
|
4787
|
+
* // Optional. The maximum number of commands to return. The default page size is 100 if page_size is unspecified, and the maximum page size allowed is 100.
|
|
4788
|
+
* pageSize: 'placeholder-value',
|
|
4789
|
+
* // Optional. The page token used to retrieve a specific page of the listing request.
|
|
4790
|
+
* pageToken: 'placeholder-value',
|
|
4791
|
+
* // Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}
|
|
4792
|
+
* parent: 'customers/my-customer/profiles/my-profile',
|
|
4793
|
+
* });
|
|
4794
|
+
* console.log(res.data);
|
|
4795
|
+
*
|
|
4796
|
+
* // Example response
|
|
4797
|
+
* // {
|
|
4798
|
+
* // "chromeBrowserProfileCommands": [],
|
|
4799
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
4800
|
+
* // "totalSize": "my_totalSize"
|
|
4801
|
+
* // }
|
|
4802
|
+
* }
|
|
4803
|
+
*
|
|
4804
|
+
* main().catch(e => {
|
|
4805
|
+
* console.error(e);
|
|
4806
|
+
* throw e;
|
|
4807
|
+
* });
|
|
4808
|
+
*
|
|
4809
|
+
* ```
|
|
3976
4810
|
*
|
|
3977
4811
|
* @param params - Parameters for request
|
|
3978
4812
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3979
4813
|
* @param callback - Optional callback that handles the response.
|
|
3980
4814
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3981
4815
|
*/
|
|
3982
|
-
|
|
3983
|
-
params: Params$Resource$Customers$
|
|
4816
|
+
list(
|
|
4817
|
+
params: Params$Resource$Customers$Profiles$Commands$List,
|
|
3984
4818
|
options: StreamMethodOptions
|
|
3985
4819
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3986
|
-
|
|
3987
|
-
params?: Params$Resource$Customers$
|
|
4820
|
+
list(
|
|
4821
|
+
params?: Params$Resource$Customers$Profiles$Commands$List,
|
|
3988
4822
|
options?: MethodOptions
|
|
3989
4823
|
): Promise<
|
|
3990
|
-
GaxiosResponseWithHTTP2<Schema$
|
|
4824
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ListChromeBrowserProfileCommandsResponse>
|
|
3991
4825
|
>;
|
|
3992
|
-
|
|
3993
|
-
params: Params$Resource$Customers$
|
|
4826
|
+
list(
|
|
4827
|
+
params: Params$Resource$Customers$Profiles$Commands$List,
|
|
3994
4828
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3995
4829
|
callback: BodyResponseCallback<Readable>
|
|
3996
4830
|
): void;
|
|
3997
|
-
|
|
3998
|
-
params: Params$Resource$Customers$
|
|
4831
|
+
list(
|
|
4832
|
+
params: Params$Resource$Customers$Profiles$Commands$List,
|
|
3999
4833
|
options:
|
|
4000
4834
|
| MethodOptions
|
|
4001
|
-
| BodyResponseCallback<Schema$
|
|
4002
|
-
callback: BodyResponseCallback<Schema$
|
|
4835
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListChromeBrowserProfileCommandsResponse>,
|
|
4836
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListChromeBrowserProfileCommandsResponse>
|
|
4003
4837
|
): void;
|
|
4004
|
-
|
|
4005
|
-
params: Params$Resource$Customers$
|
|
4006
|
-
callback: BodyResponseCallback<Schema$
|
|
4838
|
+
list(
|
|
4839
|
+
params: Params$Resource$Customers$Profiles$Commands$List,
|
|
4840
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListChromeBrowserProfileCommandsResponse>
|
|
4841
|
+
): void;
|
|
4842
|
+
list(
|
|
4843
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListChromeBrowserProfileCommandsResponse>
|
|
4844
|
+
): void;
|
|
4845
|
+
list(
|
|
4846
|
+
paramsOrCallback?:
|
|
4847
|
+
| Params$Resource$Customers$Profiles$Commands$List
|
|
4848
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListChromeBrowserProfileCommandsResponse>
|
|
4849
|
+
| BodyResponseCallback<Readable>,
|
|
4850
|
+
optionsOrCallback?:
|
|
4851
|
+
| MethodOptions
|
|
4852
|
+
| StreamMethodOptions
|
|
4853
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListChromeBrowserProfileCommandsResponse>
|
|
4854
|
+
| BodyResponseCallback<Readable>,
|
|
4855
|
+
callback?:
|
|
4856
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListChromeBrowserProfileCommandsResponse>
|
|
4857
|
+
| BodyResponseCallback<Readable>
|
|
4858
|
+
):
|
|
4859
|
+
| void
|
|
4860
|
+
| Promise<
|
|
4861
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ListChromeBrowserProfileCommandsResponse>
|
|
4862
|
+
>
|
|
4863
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
4864
|
+
let params = (paramsOrCallback ||
|
|
4865
|
+
{}) as Params$Resource$Customers$Profiles$Commands$List;
|
|
4866
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
4867
|
+
|
|
4868
|
+
if (typeof paramsOrCallback === 'function') {
|
|
4869
|
+
callback = paramsOrCallback;
|
|
4870
|
+
params = {} as Params$Resource$Customers$Profiles$Commands$List;
|
|
4871
|
+
options = {};
|
|
4872
|
+
}
|
|
4873
|
+
|
|
4874
|
+
if (typeof optionsOrCallback === 'function') {
|
|
4875
|
+
callback = optionsOrCallback;
|
|
4876
|
+
options = {};
|
|
4877
|
+
}
|
|
4878
|
+
|
|
4879
|
+
const rootUrl =
|
|
4880
|
+
options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
4881
|
+
const parameters = {
|
|
4882
|
+
options: Object.assign(
|
|
4883
|
+
{
|
|
4884
|
+
url: (rootUrl + '/v1/{+parent}/commands').replace(
|
|
4885
|
+
/([^:]\/)\/+/g,
|
|
4886
|
+
'$1'
|
|
4887
|
+
),
|
|
4888
|
+
method: 'GET',
|
|
4889
|
+
apiVersion: '',
|
|
4890
|
+
},
|
|
4891
|
+
options
|
|
4892
|
+
),
|
|
4893
|
+
params,
|
|
4894
|
+
requiredParams: ['parent'],
|
|
4895
|
+
pathParams: ['parent'],
|
|
4896
|
+
context: this.context,
|
|
4897
|
+
};
|
|
4898
|
+
if (callback) {
|
|
4899
|
+
createAPIRequest<Schema$GoogleChromeManagementVersionsV1ListChromeBrowserProfileCommandsResponse>(
|
|
4900
|
+
parameters,
|
|
4901
|
+
callback as BodyResponseCallback<unknown>
|
|
4902
|
+
);
|
|
4903
|
+
} else {
|
|
4904
|
+
return createAPIRequest<Schema$GoogleChromeManagementVersionsV1ListChromeBrowserProfileCommandsResponse>(
|
|
4905
|
+
parameters
|
|
4906
|
+
);
|
|
4907
|
+
}
|
|
4908
|
+
}
|
|
4909
|
+
}
|
|
4910
|
+
|
|
4911
|
+
export interface Params$Resource$Customers$Profiles$Commands$Create
|
|
4912
|
+
extends StandardParameters {
|
|
4913
|
+
/**
|
|
4914
|
+
* Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}
|
|
4915
|
+
*/
|
|
4916
|
+
parent?: string;
|
|
4917
|
+
|
|
4918
|
+
/**
|
|
4919
|
+
* Request body metadata
|
|
4920
|
+
*/
|
|
4921
|
+
requestBody?: Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand;
|
|
4922
|
+
}
|
|
4923
|
+
export interface Params$Resource$Customers$Profiles$Commands$Get
|
|
4924
|
+
extends StandardParameters {
|
|
4925
|
+
/**
|
|
4926
|
+
* Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}/commands/{command_id\}
|
|
4927
|
+
*/
|
|
4928
|
+
name?: string;
|
|
4929
|
+
}
|
|
4930
|
+
export interface Params$Resource$Customers$Profiles$Commands$List
|
|
4931
|
+
extends StandardParameters {
|
|
4932
|
+
/**
|
|
4933
|
+
* Optional. The maximum number of commands to return. The default page size is 100 if page_size is unspecified, and the maximum page size allowed is 100.
|
|
4934
|
+
*/
|
|
4935
|
+
pageSize?: number;
|
|
4936
|
+
/**
|
|
4937
|
+
* Optional. The page token used to retrieve a specific page of the listing request.
|
|
4938
|
+
*/
|
|
4939
|
+
pageToken?: string;
|
|
4940
|
+
/**
|
|
4941
|
+
* Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}
|
|
4942
|
+
*/
|
|
4943
|
+
parent?: string;
|
|
4944
|
+
}
|
|
4945
|
+
|
|
4946
|
+
export class Resource$Customers$Reports {
|
|
4947
|
+
context: APIRequestContext;
|
|
4948
|
+
constructor(context: APIRequestContext) {
|
|
4949
|
+
this.context = context;
|
|
4950
|
+
}
|
|
4951
|
+
|
|
4952
|
+
/**
|
|
4953
|
+
* Count of Chrome Browsers that have been recently enrolled, have new policy to be synced, or have no recent activity.
|
|
4954
|
+
* @example
|
|
4955
|
+
* ```js
|
|
4956
|
+
* // Before running the sample:
|
|
4957
|
+
* // - Enable the API at:
|
|
4958
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
4959
|
+
* // - Login into gcloud by running:
|
|
4960
|
+
* // ```sh
|
|
4961
|
+
* // $ gcloud auth application-default login
|
|
4962
|
+
* // ```
|
|
4963
|
+
* // - Install the npm module by running:
|
|
4964
|
+
* // ```sh
|
|
4965
|
+
* // $ npm install googleapis
|
|
4966
|
+
* // ```
|
|
4967
|
+
*
|
|
4968
|
+
* const {google} = require('googleapis');
|
|
4969
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
4970
|
+
*
|
|
4971
|
+
* async function main() {
|
|
4972
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4973
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4974
|
+
* scopes: [
|
|
4975
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
4976
|
+
* ],
|
|
4977
|
+
* });
|
|
4978
|
+
*
|
|
4979
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4980
|
+
* const authClient = await auth.getClient();
|
|
4981
|
+
* google.options({auth: authClient});
|
|
4982
|
+
*
|
|
4983
|
+
* // Do the magic
|
|
4984
|
+
* const res =
|
|
4985
|
+
* await chromemanagement.customers.reports.countChromeBrowsersNeedingAttention(
|
|
4986
|
+
* {
|
|
4987
|
+
* // Required. The customer ID or "my_customer" prefixed with "customers/".
|
|
4988
|
+
* customer: 'customers/my-customer',
|
|
4989
|
+
* // Optional. The ID of the organizational unit. If omitted, all data will be returned.
|
|
4990
|
+
* orgUnitId: 'placeholder-value',
|
|
4991
|
+
* },
|
|
4992
|
+
* );
|
|
4993
|
+
* console.log(res.data);
|
|
4994
|
+
*
|
|
4995
|
+
* // Example response
|
|
4996
|
+
* // {
|
|
4997
|
+
* // "noRecentActivityCount": "my_noRecentActivityCount",
|
|
4998
|
+
* // "pendingBrowserUpdateCount": "my_pendingBrowserUpdateCount",
|
|
4999
|
+
* // "recentlyEnrolledCount": "my_recentlyEnrolledCount"
|
|
5000
|
+
* // }
|
|
5001
|
+
* }
|
|
5002
|
+
*
|
|
5003
|
+
* main().catch(e => {
|
|
5004
|
+
* console.error(e);
|
|
5005
|
+
* throw e;
|
|
5006
|
+
* });
|
|
5007
|
+
*
|
|
5008
|
+
* ```
|
|
5009
|
+
*
|
|
5010
|
+
* @param params - Parameters for request
|
|
5011
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5012
|
+
* @param callback - Optional callback that handles the response.
|
|
5013
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5014
|
+
*/
|
|
5015
|
+
countChromeBrowsersNeedingAttention(
|
|
5016
|
+
params: Params$Resource$Customers$Reports$Countchromebrowsersneedingattention,
|
|
5017
|
+
options: StreamMethodOptions
|
|
5018
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5019
|
+
countChromeBrowsersNeedingAttention(
|
|
5020
|
+
params?: Params$Resource$Customers$Reports$Countchromebrowsersneedingattention,
|
|
5021
|
+
options?: MethodOptions
|
|
5022
|
+
): Promise<
|
|
5023
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>
|
|
5024
|
+
>;
|
|
5025
|
+
countChromeBrowsersNeedingAttention(
|
|
5026
|
+
params: Params$Resource$Customers$Reports$Countchromebrowsersneedingattention,
|
|
5027
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
5028
|
+
callback: BodyResponseCallback<Readable>
|
|
5029
|
+
): void;
|
|
5030
|
+
countChromeBrowsersNeedingAttention(
|
|
5031
|
+
params: Params$Resource$Customers$Reports$Countchromebrowsersneedingattention,
|
|
5032
|
+
options:
|
|
5033
|
+
| MethodOptions
|
|
5034
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>,
|
|
5035
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>
|
|
5036
|
+
): void;
|
|
5037
|
+
countChromeBrowsersNeedingAttention(
|
|
5038
|
+
params: Params$Resource$Customers$Reports$Countchromebrowsersneedingattention,
|
|
5039
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>
|
|
5040
|
+
): void;
|
|
5041
|
+
countChromeBrowsersNeedingAttention(
|
|
5042
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>
|
|
5043
|
+
): void;
|
|
5044
|
+
countChromeBrowsersNeedingAttention(
|
|
5045
|
+
paramsOrCallback?:
|
|
5046
|
+
| Params$Resource$Customers$Reports$Countchromebrowsersneedingattention
|
|
5047
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>
|
|
5048
|
+
| BodyResponseCallback<Readable>,
|
|
5049
|
+
optionsOrCallback?:
|
|
5050
|
+
| MethodOptions
|
|
5051
|
+
| StreamMethodOptions
|
|
5052
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>
|
|
5053
|
+
| BodyResponseCallback<Readable>,
|
|
5054
|
+
callback?:
|
|
5055
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>
|
|
5056
|
+
| BodyResponseCallback<Readable>
|
|
5057
|
+
):
|
|
5058
|
+
| void
|
|
5059
|
+
| Promise<
|
|
5060
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>
|
|
5061
|
+
>
|
|
5062
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
5063
|
+
let params = (paramsOrCallback ||
|
|
5064
|
+
{}) as Params$Resource$Customers$Reports$Countchromebrowsersneedingattention;
|
|
5065
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
5066
|
+
|
|
5067
|
+
if (typeof paramsOrCallback === 'function') {
|
|
5068
|
+
callback = paramsOrCallback;
|
|
5069
|
+
params =
|
|
5070
|
+
{} as Params$Resource$Customers$Reports$Countchromebrowsersneedingattention;
|
|
5071
|
+
options = {};
|
|
5072
|
+
}
|
|
5073
|
+
|
|
5074
|
+
if (typeof optionsOrCallback === 'function') {
|
|
5075
|
+
callback = optionsOrCallback;
|
|
5076
|
+
options = {};
|
|
5077
|
+
}
|
|
5078
|
+
|
|
5079
|
+
const rootUrl =
|
|
5080
|
+
options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
5081
|
+
const parameters = {
|
|
5082
|
+
options: Object.assign(
|
|
5083
|
+
{
|
|
5084
|
+
url: (
|
|
5085
|
+
rootUrl +
|
|
5086
|
+
'/v1/{+customer}/reports:countChromeBrowsersNeedingAttention'
|
|
5087
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
5088
|
+
method: 'GET',
|
|
5089
|
+
apiVersion: '',
|
|
5090
|
+
},
|
|
5091
|
+
options
|
|
5092
|
+
),
|
|
5093
|
+
params,
|
|
5094
|
+
requiredParams: ['customer'],
|
|
5095
|
+
pathParams: ['customer'],
|
|
5096
|
+
context: this.context,
|
|
5097
|
+
};
|
|
5098
|
+
if (callback) {
|
|
5099
|
+
createAPIRequest<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>(
|
|
5100
|
+
parameters,
|
|
5101
|
+
callback as BodyResponseCallback<unknown>
|
|
5102
|
+
);
|
|
5103
|
+
} else {
|
|
5104
|
+
return createAPIRequest<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>(
|
|
5105
|
+
parameters
|
|
5106
|
+
);
|
|
5107
|
+
}
|
|
5108
|
+
}
|
|
5109
|
+
|
|
5110
|
+
/**
|
|
5111
|
+
* Get a count of Chrome crash events.
|
|
5112
|
+
* @example
|
|
5113
|
+
* ```js
|
|
5114
|
+
* // Before running the sample:
|
|
5115
|
+
* // - Enable the API at:
|
|
5116
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
5117
|
+
* // - Login into gcloud by running:
|
|
5118
|
+
* // ```sh
|
|
5119
|
+
* // $ gcloud auth application-default login
|
|
5120
|
+
* // ```
|
|
5121
|
+
* // - Install the npm module by running:
|
|
5122
|
+
* // ```sh
|
|
5123
|
+
* // $ npm install googleapis
|
|
5124
|
+
* // ```
|
|
5125
|
+
*
|
|
5126
|
+
* const {google} = require('googleapis');
|
|
5127
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
5128
|
+
*
|
|
5129
|
+
* async function main() {
|
|
5130
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5131
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5132
|
+
* scopes: [
|
|
5133
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
5134
|
+
* ],
|
|
5135
|
+
* });
|
|
5136
|
+
*
|
|
5137
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5138
|
+
* const authClient = await auth.getClient();
|
|
5139
|
+
* google.options({auth: authClient});
|
|
5140
|
+
*
|
|
5141
|
+
* // Do the magic
|
|
5142
|
+
* const res = await chromemanagement.customers.reports.countChromeCrashEvents({
|
|
5143
|
+
* // Customer ID.
|
|
5144
|
+
* customer: 'customers/my-customer',
|
|
5145
|
+
* // Query string to filter results, AND-separated fields in EBNF syntax. Supported filter fields: * major_browser_version * minor_browser_version * browser_channel * device_platform * past_number_days Example: `major_browser_version = 'M115' AND past_number_days = '28'`.
|
|
5146
|
+
* filter: 'placeholder-value',
|
|
5147
|
+
* // Field used to order results. Supported order by fields: * browser_version * count * date
|
|
5148
|
+
* orderBy: 'placeholder-value',
|
|
5149
|
+
* // If specified, only count the number of crash events of the devices in this organizational unit.
|
|
5150
|
+
* orgUnitId: 'placeholder-value',
|
|
5151
|
+
* });
|
|
5152
|
+
* console.log(res.data);
|
|
5153
|
+
*
|
|
5154
|
+
* // Example response
|
|
5155
|
+
* // {
|
|
5156
|
+
* // "crashEventCounts": []
|
|
5157
|
+
* // }
|
|
5158
|
+
* }
|
|
5159
|
+
*
|
|
5160
|
+
* main().catch(e => {
|
|
5161
|
+
* console.error(e);
|
|
5162
|
+
* throw e;
|
|
5163
|
+
* });
|
|
5164
|
+
*
|
|
5165
|
+
* ```
|
|
5166
|
+
*
|
|
5167
|
+
* @param params - Parameters for request
|
|
5168
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5169
|
+
* @param callback - Optional callback that handles the response.
|
|
5170
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5171
|
+
*/
|
|
5172
|
+
countChromeCrashEvents(
|
|
5173
|
+
params: Params$Resource$Customers$Reports$Countchromecrashevents,
|
|
5174
|
+
options: StreamMethodOptions
|
|
5175
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5176
|
+
countChromeCrashEvents(
|
|
5177
|
+
params?: Params$Resource$Customers$Reports$Countchromecrashevents,
|
|
5178
|
+
options?: MethodOptions
|
|
5179
|
+
): Promise<
|
|
5180
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1CountChromeCrashEventsResponse>
|
|
5181
|
+
>;
|
|
5182
|
+
countChromeCrashEvents(
|
|
5183
|
+
params: Params$Resource$Customers$Reports$Countchromecrashevents,
|
|
5184
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
5185
|
+
callback: BodyResponseCallback<Readable>
|
|
5186
|
+
): void;
|
|
5187
|
+
countChromeCrashEvents(
|
|
5188
|
+
params: Params$Resource$Customers$Reports$Countchromecrashevents,
|
|
5189
|
+
options:
|
|
5190
|
+
| MethodOptions
|
|
5191
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeCrashEventsResponse>,
|
|
5192
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeCrashEventsResponse>
|
|
5193
|
+
): void;
|
|
5194
|
+
countChromeCrashEvents(
|
|
5195
|
+
params: Params$Resource$Customers$Reports$Countchromecrashevents,
|
|
5196
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeCrashEventsResponse>
|
|
5197
|
+
): void;
|
|
5198
|
+
countChromeCrashEvents(
|
|
5199
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeCrashEventsResponse>
|
|
5200
|
+
): void;
|
|
5201
|
+
countChromeCrashEvents(
|
|
5202
|
+
paramsOrCallback?:
|
|
5203
|
+
| Params$Resource$Customers$Reports$Countchromecrashevents
|
|
5204
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeCrashEventsResponse>
|
|
5205
|
+
| BodyResponseCallback<Readable>,
|
|
5206
|
+
optionsOrCallback?:
|
|
5207
|
+
| MethodOptions
|
|
5208
|
+
| StreamMethodOptions
|
|
5209
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeCrashEventsResponse>
|
|
5210
|
+
| BodyResponseCallback<Readable>,
|
|
5211
|
+
callback?:
|
|
5212
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeCrashEventsResponse>
|
|
5213
|
+
| BodyResponseCallback<Readable>
|
|
5214
|
+
):
|
|
5215
|
+
| void
|
|
5216
|
+
| Promise<
|
|
5217
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1CountChromeCrashEventsResponse>
|
|
5218
|
+
>
|
|
5219
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
5220
|
+
let params = (paramsOrCallback ||
|
|
5221
|
+
{}) as Params$Resource$Customers$Reports$Countchromecrashevents;
|
|
5222
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
5223
|
+
|
|
5224
|
+
if (typeof paramsOrCallback === 'function') {
|
|
5225
|
+
callback = paramsOrCallback;
|
|
5226
|
+
params = {} as Params$Resource$Customers$Reports$Countchromecrashevents;
|
|
5227
|
+
options = {};
|
|
5228
|
+
}
|
|
5229
|
+
|
|
5230
|
+
if (typeof optionsOrCallback === 'function') {
|
|
5231
|
+
callback = optionsOrCallback;
|
|
5232
|
+
options = {};
|
|
5233
|
+
}
|
|
5234
|
+
|
|
5235
|
+
const rootUrl =
|
|
5236
|
+
options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
5237
|
+
const parameters = {
|
|
5238
|
+
options: Object.assign(
|
|
5239
|
+
{
|
|
5240
|
+
url: (
|
|
5241
|
+
rootUrl + '/v1/{+customer}/reports:countChromeCrashEvents'
|
|
5242
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
5243
|
+
method: 'GET',
|
|
5244
|
+
apiVersion: '',
|
|
5245
|
+
},
|
|
5246
|
+
options
|
|
5247
|
+
),
|
|
5248
|
+
params,
|
|
5249
|
+
requiredParams: ['customer'],
|
|
5250
|
+
pathParams: ['customer'],
|
|
5251
|
+
context: this.context,
|
|
5252
|
+
};
|
|
5253
|
+
if (callback) {
|
|
5254
|
+
createAPIRequest<Schema$GoogleChromeManagementV1CountChromeCrashEventsResponse>(
|
|
5255
|
+
parameters,
|
|
5256
|
+
callback as BodyResponseCallback<unknown>
|
|
5257
|
+
);
|
|
5258
|
+
} else {
|
|
5259
|
+
return createAPIRequest<Schema$GoogleChromeManagementV1CountChromeCrashEventsResponse>(
|
|
5260
|
+
parameters
|
|
5261
|
+
);
|
|
5262
|
+
}
|
|
5263
|
+
}
|
|
5264
|
+
|
|
5265
|
+
/**
|
|
5266
|
+
* 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).
|
|
5267
|
+
* @example
|
|
5268
|
+
* ```js
|
|
5269
|
+
* // Before running the sample:
|
|
5270
|
+
* // - Enable the API at:
|
|
5271
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
5272
|
+
* // - Login into gcloud by running:
|
|
5273
|
+
* // ```sh
|
|
5274
|
+
* // $ gcloud auth application-default login
|
|
5275
|
+
* // ```
|
|
5276
|
+
* // - Install the npm module by running:
|
|
5277
|
+
* // ```sh
|
|
5278
|
+
* // $ npm install googleapis
|
|
5279
|
+
* // ```
|
|
5280
|
+
*
|
|
5281
|
+
* const {google} = require('googleapis');
|
|
5282
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
5283
|
+
*
|
|
5284
|
+
* async function main() {
|
|
5285
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5286
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5287
|
+
* scopes: [
|
|
5288
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
5289
|
+
* ],
|
|
5290
|
+
* });
|
|
5291
|
+
*
|
|
5292
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5293
|
+
* const authClient = await auth.getClient();
|
|
5294
|
+
* google.options({auth: authClient});
|
|
5295
|
+
*
|
|
5296
|
+
* // Do the magic
|
|
5297
|
+
* const res =
|
|
5298
|
+
* await chromemanagement.customers.reports.countChromeDevicesReachingAutoExpirationDate(
|
|
5299
|
+
* {
|
|
5300
|
+
* // Required. The customer ID or "my_customer" prefixed with "customers/".
|
|
5301
|
+
* customer: 'customers/my-customer',
|
|
5302
|
+
* // Optional. Maximum expiration date in format yyyy-mm-dd in UTC timezone. If included returns all devices that have already expired and devices with auto expiration date equal to or earlier than the maximum date.
|
|
5303
|
+
* maxAueDate: 'placeholder-value',
|
|
5304
|
+
* // Optional. Maximum expiration date in format yyyy-mm-dd in UTC timezone. If included returns all devices that have already expired and devices with auto expiration date equal to or later than the minimum date.
|
|
5305
|
+
* minAueDate: 'placeholder-value',
|
|
5306
|
+
* // Optional. The organizational unit ID, if omitted, will return data for all organizational units.
|
|
5307
|
+
* orgUnitId: 'placeholder-value',
|
|
5308
|
+
* },
|
|
5309
|
+
* );
|
|
5310
|
+
* console.log(res.data);
|
|
5311
|
+
*
|
|
5312
|
+
* // Example response
|
|
5313
|
+
* // {
|
|
5314
|
+
* // "deviceAueCountReports": []
|
|
5315
|
+
* // }
|
|
5316
|
+
* }
|
|
5317
|
+
*
|
|
5318
|
+
* main().catch(e => {
|
|
5319
|
+
* console.error(e);
|
|
5320
|
+
* throw e;
|
|
5321
|
+
* });
|
|
5322
|
+
*
|
|
5323
|
+
* ```
|
|
5324
|
+
*
|
|
5325
|
+
* @param params - Parameters for request
|
|
5326
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5327
|
+
* @param callback - Optional callback that handles the response.
|
|
5328
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5329
|
+
*/
|
|
5330
|
+
countChromeDevicesReachingAutoExpirationDate(
|
|
5331
|
+
params: Params$Resource$Customers$Reports$Countchromedevicesreachingautoexpirationdate,
|
|
5332
|
+
options: StreamMethodOptions
|
|
5333
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5334
|
+
countChromeDevicesReachingAutoExpirationDate(
|
|
5335
|
+
params?: Params$Resource$Customers$Reports$Countchromedevicesreachingautoexpirationdate,
|
|
5336
|
+
options?: MethodOptions
|
|
5337
|
+
): Promise<
|
|
5338
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse>
|
|
5339
|
+
>;
|
|
5340
|
+
countChromeDevicesReachingAutoExpirationDate(
|
|
5341
|
+
params: Params$Resource$Customers$Reports$Countchromedevicesreachingautoexpirationdate,
|
|
5342
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
5343
|
+
callback: BodyResponseCallback<Readable>
|
|
5344
|
+
): void;
|
|
5345
|
+
countChromeDevicesReachingAutoExpirationDate(
|
|
5346
|
+
params: Params$Resource$Customers$Reports$Countchromedevicesreachingautoexpirationdate,
|
|
5347
|
+
options:
|
|
5348
|
+
| MethodOptions
|
|
5349
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse>,
|
|
5350
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse>
|
|
5351
|
+
): void;
|
|
5352
|
+
countChromeDevicesReachingAutoExpirationDate(
|
|
5353
|
+
params: Params$Resource$Customers$Reports$Countchromedevicesreachingautoexpirationdate,
|
|
5354
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse>
|
|
4007
5355
|
): void;
|
|
4008
5356
|
countChromeDevicesReachingAutoExpirationDate(
|
|
4009
5357
|
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse>
|
|
@@ -4076,6 +5424,65 @@ export namespace chromemanagement_v1 {
|
|
|
4076
5424
|
|
|
4077
5425
|
/**
|
|
4078
5426
|
* Counts of ChromeOS devices that have not synced policies or have lacked user activity in the past 28 days, are out of date, or are not complaint. Further information can be found here https://support.google.com/chrome/a/answer/10564947
|
|
5427
|
+
* @example
|
|
5428
|
+
* ```js
|
|
5429
|
+
* // Before running the sample:
|
|
5430
|
+
* // - Enable the API at:
|
|
5431
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
5432
|
+
* // - Login into gcloud by running:
|
|
5433
|
+
* // ```sh
|
|
5434
|
+
* // $ gcloud auth application-default login
|
|
5435
|
+
* // ```
|
|
5436
|
+
* // - Install the npm module by running:
|
|
5437
|
+
* // ```sh
|
|
5438
|
+
* // $ npm install googleapis
|
|
5439
|
+
* // ```
|
|
5440
|
+
*
|
|
5441
|
+
* const {google} = require('googleapis');
|
|
5442
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
5443
|
+
*
|
|
5444
|
+
* async function main() {
|
|
5445
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5446
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5447
|
+
* scopes: [
|
|
5448
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
5449
|
+
* ],
|
|
5450
|
+
* });
|
|
5451
|
+
*
|
|
5452
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5453
|
+
* const authClient = await auth.getClient();
|
|
5454
|
+
* google.options({auth: authClient});
|
|
5455
|
+
*
|
|
5456
|
+
* // Do the magic
|
|
5457
|
+
* const res =
|
|
5458
|
+
* await chromemanagement.customers.reports.countChromeDevicesThatNeedAttention(
|
|
5459
|
+
* {
|
|
5460
|
+
* // Required. The customer ID or "my_customer" prefixed with "customers/".
|
|
5461
|
+
* customer: 'customers/my-customer',
|
|
5462
|
+
* // Optional. The ID of the organizational unit. If omitted, all data will be returned.
|
|
5463
|
+
* orgUnitId: 'placeholder-value',
|
|
5464
|
+
* // Required. Mask of the fields that should be populated in the returned report.
|
|
5465
|
+
* readMask: 'placeholder-value',
|
|
5466
|
+
* },
|
|
5467
|
+
* );
|
|
5468
|
+
* console.log(res.data);
|
|
5469
|
+
*
|
|
5470
|
+
* // Example response
|
|
5471
|
+
* // {
|
|
5472
|
+
* // "noRecentPolicySyncCount": "my_noRecentPolicySyncCount",
|
|
5473
|
+
* // "noRecentUserActivityCount": "my_noRecentUserActivityCount",
|
|
5474
|
+
* // "osVersionNotCompliantCount": "my_osVersionNotCompliantCount",
|
|
5475
|
+
* // "pendingUpdate": "my_pendingUpdate",
|
|
5476
|
+
* // "unsupportedPolicyCount": "my_unsupportedPolicyCount"
|
|
5477
|
+
* // }
|
|
5478
|
+
* }
|
|
5479
|
+
*
|
|
5480
|
+
* main().catch(e => {
|
|
5481
|
+
* console.error(e);
|
|
5482
|
+
* throw e;
|
|
5483
|
+
* });
|
|
5484
|
+
*
|
|
5485
|
+
* ```
|
|
4079
5486
|
*
|
|
4080
5487
|
* @param params - Parameters for request
|
|
4081
5488
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4179,6 +5586,62 @@ export namespace chromemanagement_v1 {
|
|
|
4179
5586
|
|
|
4180
5587
|
/**
|
|
4181
5588
|
* Counts of devices with a specific hardware specification from the requested hardware type (for example model name, processor type). Further information can be found here https://support.google.com/chrome/a/answer/10564947
|
|
5589
|
+
* @example
|
|
5590
|
+
* ```js
|
|
5591
|
+
* // Before running the sample:
|
|
5592
|
+
* // - Enable the API at:
|
|
5593
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
5594
|
+
* // - Login into gcloud by running:
|
|
5595
|
+
* // ```sh
|
|
5596
|
+
* // $ gcloud auth application-default login
|
|
5597
|
+
* // ```
|
|
5598
|
+
* // - Install the npm module by running:
|
|
5599
|
+
* // ```sh
|
|
5600
|
+
* // $ npm install googleapis
|
|
5601
|
+
* // ```
|
|
5602
|
+
*
|
|
5603
|
+
* const {google} = require('googleapis');
|
|
5604
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
5605
|
+
*
|
|
5606
|
+
* async function main() {
|
|
5607
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5608
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5609
|
+
* scopes: [
|
|
5610
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
5611
|
+
* ],
|
|
5612
|
+
* });
|
|
5613
|
+
*
|
|
5614
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5615
|
+
* const authClient = await auth.getClient();
|
|
5616
|
+
* google.options({auth: authClient});
|
|
5617
|
+
*
|
|
5618
|
+
* // Do the magic
|
|
5619
|
+
* const res =
|
|
5620
|
+
* await chromemanagement.customers.reports.countChromeHardwareFleetDevices({
|
|
5621
|
+
* // Required. The customer ID or "my_customer".
|
|
5622
|
+
* customer: 'customers/my-customer',
|
|
5623
|
+
* // Optional. The ID of the organizational unit. If omitted, all data will be returned.
|
|
5624
|
+
* orgUnitId: 'placeholder-value',
|
|
5625
|
+
* // Required. Mask of the fields that should be populated in the returned report.
|
|
5626
|
+
* readMask: 'placeholder-value',
|
|
5627
|
+
* });
|
|
5628
|
+
* console.log(res.data);
|
|
5629
|
+
*
|
|
5630
|
+
* // Example response
|
|
5631
|
+
* // {
|
|
5632
|
+
* // "cpuReports": [],
|
|
5633
|
+
* // "memoryReports": [],
|
|
5634
|
+
* // "modelReports": [],
|
|
5635
|
+
* // "storageReports": []
|
|
5636
|
+
* // }
|
|
5637
|
+
* }
|
|
5638
|
+
*
|
|
5639
|
+
* main().catch(e => {
|
|
5640
|
+
* console.error(e);
|
|
5641
|
+
* throw e;
|
|
5642
|
+
* });
|
|
5643
|
+
*
|
|
5644
|
+
* ```
|
|
4182
5645
|
*
|
|
4183
5646
|
* @param params - Parameters for request
|
|
4184
5647
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4282,6 +5745,64 @@ export namespace chromemanagement_v1 {
|
|
|
4282
5745
|
|
|
4283
5746
|
/**
|
|
4284
5747
|
* Generate report of installed Chrome versions.
|
|
5748
|
+
* @example
|
|
5749
|
+
* ```js
|
|
5750
|
+
* // Before running the sample:
|
|
5751
|
+
* // - Enable the API at:
|
|
5752
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
5753
|
+
* // - Login into gcloud by running:
|
|
5754
|
+
* // ```sh
|
|
5755
|
+
* // $ gcloud auth application-default login
|
|
5756
|
+
* // ```
|
|
5757
|
+
* // - Install the npm module by running:
|
|
5758
|
+
* // ```sh
|
|
5759
|
+
* // $ npm install googleapis
|
|
5760
|
+
* // ```
|
|
5761
|
+
*
|
|
5762
|
+
* const {google} = require('googleapis');
|
|
5763
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
5764
|
+
*
|
|
5765
|
+
* async function main() {
|
|
5766
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5767
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5768
|
+
* scopes: [
|
|
5769
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
5770
|
+
* ],
|
|
5771
|
+
* });
|
|
5772
|
+
*
|
|
5773
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5774
|
+
* const authClient = await auth.getClient();
|
|
5775
|
+
* google.options({auth: authClient});
|
|
5776
|
+
*
|
|
5777
|
+
* // Do the magic
|
|
5778
|
+
* const res = await chromemanagement.customers.reports.countChromeVersions({
|
|
5779
|
+
* // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
5780
|
+
* customer: 'customers/my-customer',
|
|
5781
|
+
* // 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
|
|
5782
|
+
* filter: 'placeholder-value',
|
|
5783
|
+
* // The ID of the organizational unit.
|
|
5784
|
+
* orgUnitId: 'placeholder-value',
|
|
5785
|
+
* // Maximum number of results to return. Maximum and default are 100.
|
|
5786
|
+
* pageSize: 'placeholder-value',
|
|
5787
|
+
* // Token to specify the page of the request to be returned.
|
|
5788
|
+
* pageToken: 'placeholder-value',
|
|
5789
|
+
* });
|
|
5790
|
+
* console.log(res.data);
|
|
5791
|
+
*
|
|
5792
|
+
* // Example response
|
|
5793
|
+
* // {
|
|
5794
|
+
* // "browserVersions": [],
|
|
5795
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
5796
|
+
* // "totalSize": 0
|
|
5797
|
+
* // }
|
|
5798
|
+
* }
|
|
5799
|
+
*
|
|
5800
|
+
* main().catch(e => {
|
|
5801
|
+
* console.error(e);
|
|
5802
|
+
* throw e;
|
|
5803
|
+
* });
|
|
5804
|
+
*
|
|
5805
|
+
* ```
|
|
4285
5806
|
*
|
|
4286
5807
|
* @param params - Parameters for request
|
|
4287
5808
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4383,6 +5904,66 @@ export namespace chromemanagement_v1 {
|
|
|
4383
5904
|
|
|
4384
5905
|
/**
|
|
4385
5906
|
* Generate report of app installations.
|
|
5907
|
+
* @example
|
|
5908
|
+
* ```js
|
|
5909
|
+
* // Before running the sample:
|
|
5910
|
+
* // - Enable the API at:
|
|
5911
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
5912
|
+
* // - Login into gcloud by running:
|
|
5913
|
+
* // ```sh
|
|
5914
|
+
* // $ gcloud auth application-default login
|
|
5915
|
+
* // ```
|
|
5916
|
+
* // - Install the npm module by running:
|
|
5917
|
+
* // ```sh
|
|
5918
|
+
* // $ npm install googleapis
|
|
5919
|
+
* // ```
|
|
5920
|
+
*
|
|
5921
|
+
* const {google} = require('googleapis');
|
|
5922
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
5923
|
+
*
|
|
5924
|
+
* async function main() {
|
|
5925
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5926
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5927
|
+
* scopes: [
|
|
5928
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
5929
|
+
* ],
|
|
5930
|
+
* });
|
|
5931
|
+
*
|
|
5932
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5933
|
+
* const authClient = await auth.getClient();
|
|
5934
|
+
* google.options({auth: authClient});
|
|
5935
|
+
*
|
|
5936
|
+
* // Do the magic
|
|
5937
|
+
* const res = await chromemanagement.customers.reports.countInstalledApps({
|
|
5938
|
+
* // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
5939
|
+
* customer: 'customers/my-customer',
|
|
5940
|
+
* // 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 * manifest_versions * risk_score
|
|
5941
|
+
* filter: 'placeholder-value',
|
|
5942
|
+
* // Field used to order results. Supported order by fields: * app_name * app_type * install_type * number_of_permissions * total_install_count * app_id * manifest_versions * risk_score
|
|
5943
|
+
* orderBy: 'placeholder-value',
|
|
5944
|
+
* // The ID of the organizational unit.
|
|
5945
|
+
* orgUnitId: 'placeholder-value',
|
|
5946
|
+
* // Maximum number of results to return. Maximum and default are 100.
|
|
5947
|
+
* pageSize: 'placeholder-value',
|
|
5948
|
+
* // Token to specify the page of the request to be returned.
|
|
5949
|
+
* pageToken: 'placeholder-value',
|
|
5950
|
+
* });
|
|
5951
|
+
* console.log(res.data);
|
|
5952
|
+
*
|
|
5953
|
+
* // Example response
|
|
5954
|
+
* // {
|
|
5955
|
+
* // "installedApps": [],
|
|
5956
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
5957
|
+
* // "totalSize": 0
|
|
5958
|
+
* // }
|
|
5959
|
+
* }
|
|
5960
|
+
*
|
|
5961
|
+
* main().catch(e => {
|
|
5962
|
+
* console.error(e);
|
|
5963
|
+
* throw e;
|
|
5964
|
+
* });
|
|
5965
|
+
*
|
|
5966
|
+
* ```
|
|
4386
5967
|
*
|
|
4387
5968
|
* @param params - Parameters for request
|
|
4388
5969
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4484,6 +6065,66 @@ export namespace chromemanagement_v1 {
|
|
|
4484
6065
|
|
|
4485
6066
|
/**
|
|
4486
6067
|
* Get a summary of printing done by each printer.
|
|
6068
|
+
* @example
|
|
6069
|
+
* ```js
|
|
6070
|
+
* // Before running the sample:
|
|
6071
|
+
* // - Enable the API at:
|
|
6072
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
6073
|
+
* // - Login into gcloud by running:
|
|
6074
|
+
* // ```sh
|
|
6075
|
+
* // $ gcloud auth application-default login
|
|
6076
|
+
* // ```
|
|
6077
|
+
* // - Install the npm module by running:
|
|
6078
|
+
* // ```sh
|
|
6079
|
+
* // $ npm install googleapis
|
|
6080
|
+
* // ```
|
|
6081
|
+
*
|
|
6082
|
+
* const {google} = require('googleapis');
|
|
6083
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
6084
|
+
*
|
|
6085
|
+
* async function main() {
|
|
6086
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6087
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6088
|
+
* scopes: [
|
|
6089
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
6090
|
+
* ],
|
|
6091
|
+
* });
|
|
6092
|
+
*
|
|
6093
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6094
|
+
* const authClient = await auth.getClient();
|
|
6095
|
+
* google.options({auth: authClient});
|
|
6096
|
+
*
|
|
6097
|
+
* // Do the magic
|
|
6098
|
+
* const res = await chromemanagement.customers.reports.countPrintJobsByPrinter({
|
|
6099
|
+
* // Required. Customer ID prefixed with "customers/" or "customers/my_customer" to use the customer associated to the account making the request.
|
|
6100
|
+
* customer: 'customers/my-customer',
|
|
6101
|
+
* // 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: * complete_time
|
|
6102
|
+
* filter: 'placeholder-value',
|
|
6103
|
+
* // 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
|
|
6104
|
+
* orderBy: 'placeholder-value',
|
|
6105
|
+
* // Maximum number of results to return. Maximum and default are 100.
|
|
6106
|
+
* pageSize: 'placeholder-value',
|
|
6107
|
+
* // Token to specify the page of the response to be returned.
|
|
6108
|
+
* pageToken: 'placeholder-value',
|
|
6109
|
+
* // 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.
|
|
6110
|
+
* printerOrgUnitId: 'placeholder-value',
|
|
6111
|
+
* });
|
|
6112
|
+
* console.log(res.data);
|
|
6113
|
+
*
|
|
6114
|
+
* // Example response
|
|
6115
|
+
* // {
|
|
6116
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
6117
|
+
* // "printerReports": [],
|
|
6118
|
+
* // "totalSize": "my_totalSize"
|
|
6119
|
+
* // }
|
|
6120
|
+
* }
|
|
6121
|
+
*
|
|
6122
|
+
* main().catch(e => {
|
|
6123
|
+
* console.error(e);
|
|
6124
|
+
* throw e;
|
|
6125
|
+
* });
|
|
6126
|
+
*
|
|
6127
|
+
* ```
|
|
4487
6128
|
*
|
|
4488
6129
|
* @param params - Parameters for request
|
|
4489
6130
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4586,6 +6227,66 @@ export namespace chromemanagement_v1 {
|
|
|
4586
6227
|
|
|
4587
6228
|
/**
|
|
4588
6229
|
* Get a summary of printing done by each user.
|
|
6230
|
+
* @example
|
|
6231
|
+
* ```js
|
|
6232
|
+
* // Before running the sample:
|
|
6233
|
+
* // - Enable the API at:
|
|
6234
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
6235
|
+
* // - Login into gcloud by running:
|
|
6236
|
+
* // ```sh
|
|
6237
|
+
* // $ gcloud auth application-default login
|
|
6238
|
+
* // ```
|
|
6239
|
+
* // - Install the npm module by running:
|
|
6240
|
+
* // ```sh
|
|
6241
|
+
* // $ npm install googleapis
|
|
6242
|
+
* // ```
|
|
6243
|
+
*
|
|
6244
|
+
* const {google} = require('googleapis');
|
|
6245
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
6246
|
+
*
|
|
6247
|
+
* async function main() {
|
|
6248
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6249
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6250
|
+
* scopes: [
|
|
6251
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
6252
|
+
* ],
|
|
6253
|
+
* });
|
|
6254
|
+
*
|
|
6255
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6256
|
+
* const authClient = await auth.getClient();
|
|
6257
|
+
* google.options({auth: authClient});
|
|
6258
|
+
*
|
|
6259
|
+
* // Do the magic
|
|
6260
|
+
* const res = await chromemanagement.customers.reports.countPrintJobsByUser({
|
|
6261
|
+
* // Required. Customer ID prefixed with "customers/" or "customers/my_customer" to use the customer associated to the account making the request.
|
|
6262
|
+
* customer: 'customers/my-customer',
|
|
6263
|
+
* // 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: * complete_time
|
|
6264
|
+
* filter: 'placeholder-value',
|
|
6265
|
+
* // 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
|
|
6266
|
+
* orderBy: 'placeholder-value',
|
|
6267
|
+
* // Maximum number of results to return. Maximum and default are 100.
|
|
6268
|
+
* pageSize: 'placeholder-value',
|
|
6269
|
+
* // Token to specify the page of the response to be returned.
|
|
6270
|
+
* pageToken: 'placeholder-value',
|
|
6271
|
+
* // 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.
|
|
6272
|
+
* printerOrgUnitId: 'placeholder-value',
|
|
6273
|
+
* });
|
|
6274
|
+
* console.log(res.data);
|
|
6275
|
+
*
|
|
6276
|
+
* // Example response
|
|
6277
|
+
* // {
|
|
6278
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
6279
|
+
* // "totalSize": "my_totalSize",
|
|
6280
|
+
* // "userPrintReports": []
|
|
6281
|
+
* // }
|
|
6282
|
+
* }
|
|
6283
|
+
*
|
|
6284
|
+
* main().catch(e => {
|
|
6285
|
+
* console.error(e);
|
|
6286
|
+
* throw e;
|
|
6287
|
+
* });
|
|
6288
|
+
*
|
|
6289
|
+
* ```
|
|
4589
6290
|
*
|
|
4590
6291
|
* @param params - Parameters for request
|
|
4591
6292
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4687,6 +6388,66 @@ export namespace chromemanagement_v1 {
|
|
|
4687
6388
|
|
|
4688
6389
|
/**
|
|
4689
6390
|
* Get a list of print jobs.
|
|
6391
|
+
* @example
|
|
6392
|
+
* ```js
|
|
6393
|
+
* // Before running the sample:
|
|
6394
|
+
* // - Enable the API at:
|
|
6395
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
6396
|
+
* // - Login into gcloud by running:
|
|
6397
|
+
* // ```sh
|
|
6398
|
+
* // $ gcloud auth application-default login
|
|
6399
|
+
* // ```
|
|
6400
|
+
* // - Install the npm module by running:
|
|
6401
|
+
* // ```sh
|
|
6402
|
+
* // $ npm install googleapis
|
|
6403
|
+
* // ```
|
|
6404
|
+
*
|
|
6405
|
+
* const {google} = require('googleapis');
|
|
6406
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
6407
|
+
*
|
|
6408
|
+
* async function main() {
|
|
6409
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6410
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6411
|
+
* scopes: [
|
|
6412
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
6413
|
+
* ],
|
|
6414
|
+
* });
|
|
6415
|
+
*
|
|
6416
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6417
|
+
* const authClient = await auth.getClient();
|
|
6418
|
+
* google.options({auth: authClient});
|
|
6419
|
+
*
|
|
6420
|
+
* // Do the magic
|
|
6421
|
+
* const res = await chromemanagement.customers.reports.enumeratePrintJobs({
|
|
6422
|
+
* // Required. Customer ID prefixed with "customers/" or "customers/my_customer" to use the customer associated to the account making the request.
|
|
6423
|
+
* customer: 'customers/my-customer',
|
|
6424
|
+
* // 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 for `complete_time`. Note: Only = comparator supported for `user_id` and `printer_id`. Supported filter fields: * complete_time * printer_id * user_id
|
|
6425
|
+
* filter: 'placeholder-value',
|
|
6426
|
+
* // Field used to order results. If not specified, results will be ordered in descending order of the `complete_time` field. Supported order by fields: * title * state * create_time * complete_time * document_page_count * color_mode * duplex_mode * printer * user_email
|
|
6427
|
+
* orderBy: 'placeholder-value',
|
|
6428
|
+
* // The number of print jobs in the page from 0 to 100 inclusive, if page_size is not specified or zero, the size will be 50.
|
|
6429
|
+
* pageSize: 'placeholder-value',
|
|
6430
|
+
* // A page token received from a previous `EnumeratePrintJobs` call. Provide this to retrieve the subsequent page. If omitted, the first page of results will be returned. When paginating, all other parameters provided to `EnumeratePrintJobs` must match the call that provided the page token.
|
|
6431
|
+
* pageToken: 'placeholder-value',
|
|
6432
|
+
* // The ID of the organizational unit for printers. If specified, only print jobs submitted to printers from the specified organizational unit will be returned.
|
|
6433
|
+
* printerOrgUnitId: 'placeholder-value',
|
|
6434
|
+
* });
|
|
6435
|
+
* console.log(res.data);
|
|
6436
|
+
*
|
|
6437
|
+
* // Example response
|
|
6438
|
+
* // {
|
|
6439
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
6440
|
+
* // "printJobs": [],
|
|
6441
|
+
* // "totalSize": "my_totalSize"
|
|
6442
|
+
* // }
|
|
6443
|
+
* }
|
|
6444
|
+
*
|
|
6445
|
+
* main().catch(e => {
|
|
6446
|
+
* console.error(e);
|
|
6447
|
+
* throw e;
|
|
6448
|
+
* });
|
|
6449
|
+
*
|
|
6450
|
+
* ```
|
|
4690
6451
|
*
|
|
4691
6452
|
* @param params - Parameters for request
|
|
4692
6453
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4788,6 +6549,70 @@ export namespace chromemanagement_v1 {
|
|
|
4788
6549
|
|
|
4789
6550
|
/**
|
|
4790
6551
|
* Generate report of managed Chrome browser devices that have a specified app installed.
|
|
6552
|
+
* @example
|
|
6553
|
+
* ```js
|
|
6554
|
+
* // Before running the sample:
|
|
6555
|
+
* // - Enable the API at:
|
|
6556
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
6557
|
+
* // - Login into gcloud by running:
|
|
6558
|
+
* // ```sh
|
|
6559
|
+
* // $ gcloud auth application-default login
|
|
6560
|
+
* // ```
|
|
6561
|
+
* // - Install the npm module by running:
|
|
6562
|
+
* // ```sh
|
|
6563
|
+
* // $ npm install googleapis
|
|
6564
|
+
* // ```
|
|
6565
|
+
*
|
|
6566
|
+
* const {google} = require('googleapis');
|
|
6567
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
6568
|
+
*
|
|
6569
|
+
* async function main() {
|
|
6570
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6571
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6572
|
+
* scopes: [
|
|
6573
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
6574
|
+
* ],
|
|
6575
|
+
* });
|
|
6576
|
+
*
|
|
6577
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6578
|
+
* const authClient = await auth.getClient();
|
|
6579
|
+
* google.options({auth: authClient});
|
|
6580
|
+
*
|
|
6581
|
+
* // Do the magic
|
|
6582
|
+
* const res = await chromemanagement.customers.reports.findInstalledAppDevices({
|
|
6583
|
+
* // 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).
|
|
6584
|
+
* appId: 'placeholder-value',
|
|
6585
|
+
* // Type of the app. Optional. If not provided, an app type will be inferred from the format of the app ID.
|
|
6586
|
+
* appType: 'placeholder-value',
|
|
6587
|
+
* // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
6588
|
+
* customer: 'customers/my-customer',
|
|
6589
|
+
* // 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
|
|
6590
|
+
* filter: 'placeholder-value',
|
|
6591
|
+
* // Field used to order results. Supported order by fields: * machine * device_id
|
|
6592
|
+
* orderBy: 'placeholder-value',
|
|
6593
|
+
* // The ID of the organizational unit.
|
|
6594
|
+
* orgUnitId: 'placeholder-value',
|
|
6595
|
+
* // Maximum number of results to return. Maximum and default are 100.
|
|
6596
|
+
* pageSize: 'placeholder-value',
|
|
6597
|
+
* // Token to specify the page of the request to be returned.
|
|
6598
|
+
* pageToken: 'placeholder-value',
|
|
6599
|
+
* });
|
|
6600
|
+
* console.log(res.data);
|
|
6601
|
+
*
|
|
6602
|
+
* // Example response
|
|
6603
|
+
* // {
|
|
6604
|
+
* // "devices": [],
|
|
6605
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
6606
|
+
* // "totalSize": 0
|
|
6607
|
+
* // }
|
|
6608
|
+
* }
|
|
6609
|
+
*
|
|
6610
|
+
* main().catch(e => {
|
|
6611
|
+
* console.error(e);
|
|
6612
|
+
* throw e;
|
|
6613
|
+
* });
|
|
6614
|
+
*
|
|
6615
|
+
* ```
|
|
4791
6616
|
*
|
|
4792
6617
|
* @param params - Parameters for request
|
|
4793
6618
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5159,6 +6984,83 @@ export namespace chromemanagement_v1 {
|
|
|
5159
6984
|
|
|
5160
6985
|
/**
|
|
5161
6986
|
* Get telemetry device.
|
|
6987
|
+
* @example
|
|
6988
|
+
* ```js
|
|
6989
|
+
* // Before running the sample:
|
|
6990
|
+
* // - Enable the API at:
|
|
6991
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
6992
|
+
* // - Login into gcloud by running:
|
|
6993
|
+
* // ```sh
|
|
6994
|
+
* // $ gcloud auth application-default login
|
|
6995
|
+
* // ```
|
|
6996
|
+
* // - Install the npm module by running:
|
|
6997
|
+
* // ```sh
|
|
6998
|
+
* // $ npm install googleapis
|
|
6999
|
+
* // ```
|
|
7000
|
+
*
|
|
7001
|
+
* const {google} = require('googleapis');
|
|
7002
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
7003
|
+
*
|
|
7004
|
+
* async function main() {
|
|
7005
|
+
* const auth = new google.auth.GoogleAuth({
|
|
7006
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7007
|
+
* scopes: [
|
|
7008
|
+
* 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
|
|
7009
|
+
* ],
|
|
7010
|
+
* });
|
|
7011
|
+
*
|
|
7012
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
7013
|
+
* const authClient = await auth.getClient();
|
|
7014
|
+
* google.options({auth: authClient});
|
|
7015
|
+
*
|
|
7016
|
+
* // Do the magic
|
|
7017
|
+
* const res = await chromemanagement.customers.telemetry.devices.get({
|
|
7018
|
+
* // Required. Name of the `TelemetryDevice` to return.
|
|
7019
|
+
* name: 'customers/my-customer/telemetry/devices/my-device',
|
|
7020
|
+
* // Required. Read mask to specify which fields to return. Supported read_mask paths are: - name - org_unit_id - device_id - serial_number - cpu_info - cpu_status_report - memory_info - memory_status_report - network_info - network_diagnostics_report - network_status_report - os_update_status - graphics_info - graphics_status_report - battery_info - battery_status_report - storage_info - storage_status_report - thunderbolt_info - audio_status_report - boot_performance_report - heartbeat_status_report - network_bandwidth_report - peripherals_report - kiosk_app_status_report - app_report - runtime_counters_report
|
|
7021
|
+
* readMask: 'placeholder-value',
|
|
7022
|
+
* });
|
|
7023
|
+
* console.log(res.data);
|
|
7024
|
+
*
|
|
7025
|
+
* // Example response
|
|
7026
|
+
* // {
|
|
7027
|
+
* // "appReport": [],
|
|
7028
|
+
* // "audioStatusReport": [],
|
|
7029
|
+
* // "batteryInfo": [],
|
|
7030
|
+
* // "batteryStatusReport": [],
|
|
7031
|
+
* // "bootPerformanceReport": [],
|
|
7032
|
+
* // "cpuInfo": [],
|
|
7033
|
+
* // "cpuStatusReport": [],
|
|
7034
|
+
* // "customer": "my_customer",
|
|
7035
|
+
* // "deviceId": "my_deviceId",
|
|
7036
|
+
* // "graphicsInfo": {},
|
|
7037
|
+
* // "graphicsStatusReport": [],
|
|
7038
|
+
* // "heartbeatStatusReport": [],
|
|
7039
|
+
* // "kioskAppStatusReport": [],
|
|
7040
|
+
* // "memoryInfo": {},
|
|
7041
|
+
* // "memoryStatusReport": [],
|
|
7042
|
+
* // "name": "my_name",
|
|
7043
|
+
* // "networkBandwidthReport": [],
|
|
7044
|
+
* // "networkDiagnosticsReport": [],
|
|
7045
|
+
* // "networkInfo": {},
|
|
7046
|
+
* // "networkStatusReport": [],
|
|
7047
|
+
* // "orgUnitId": "my_orgUnitId",
|
|
7048
|
+
* // "osUpdateStatus": [],
|
|
7049
|
+
* // "peripheralsReport": [],
|
|
7050
|
+
* // "runtimeCountersReport": [],
|
|
7051
|
+
* // "serialNumber": "my_serialNumber",
|
|
7052
|
+
* // "storageInfo": {},
|
|
7053
|
+
* // "storageStatusReport": [],
|
|
7054
|
+
* // "thunderboltInfo": []
|
|
7055
|
+
* // }
|
|
7056
|
+
* }
|
|
7057
|
+
*
|
|
7058
|
+
* main().catch(e => {
|
|
7059
|
+
* console.error(e);
|
|
7060
|
+
* throw e;
|
|
7061
|
+
* });
|
|
7062
|
+
*
|
|
7063
|
+
* ```
|
|
5162
7064
|
*
|
|
5163
7065
|
* @param params - Parameters for request
|
|
5164
7066
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5258,6 +7160,63 @@ export namespace chromemanagement_v1 {
|
|
|
5258
7160
|
|
|
5259
7161
|
/**
|
|
5260
7162
|
* List all telemetry devices.
|
|
7163
|
+
* @example
|
|
7164
|
+
* ```js
|
|
7165
|
+
* // Before running the sample:
|
|
7166
|
+
* // - Enable the API at:
|
|
7167
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
7168
|
+
* // - Login into gcloud by running:
|
|
7169
|
+
* // ```sh
|
|
7170
|
+
* // $ gcloud auth application-default login
|
|
7171
|
+
* // ```
|
|
7172
|
+
* // - Install the npm module by running:
|
|
7173
|
+
* // ```sh
|
|
7174
|
+
* // $ npm install googleapis
|
|
7175
|
+
* // ```
|
|
7176
|
+
*
|
|
7177
|
+
* const {google} = require('googleapis');
|
|
7178
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
7179
|
+
*
|
|
7180
|
+
* async function main() {
|
|
7181
|
+
* const auth = new google.auth.GoogleAuth({
|
|
7182
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7183
|
+
* scopes: [
|
|
7184
|
+
* 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
|
|
7185
|
+
* ],
|
|
7186
|
+
* });
|
|
7187
|
+
*
|
|
7188
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
7189
|
+
* const authClient = await auth.getClient();
|
|
7190
|
+
* google.options({auth: authClient});
|
|
7191
|
+
*
|
|
7192
|
+
* // Do the magic
|
|
7193
|
+
* const res = await chromemanagement.customers.telemetry.devices.list({
|
|
7194
|
+
* // Optional. Only include resources that match the filter. Requests that don't specify a "reports_timestamp" value will default to returning only recent reports. Specify "reports_timestamp\>=0" to get all report data. Supported filter fields: - org_unit_id - serial_number - device_id - reports_timestamp The "reports_timestamp" filter accepts either the Unix Epoch milliseconds format or the RFC3339 UTC "Zulu" format with nanosecond resolution and up to nine fractional digits. Both formats should be surrounded by simple double quotes. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z", "1679283943823".
|
|
7195
|
+
* filter: 'placeholder-value',
|
|
7196
|
+
* // Maximum number of results to return. Default value is 100. Maximum value is 1000.
|
|
7197
|
+
* pageSize: 'placeholder-value',
|
|
7198
|
+
* // Token to specify next page in the list.
|
|
7199
|
+
* pageToken: 'placeholder-value',
|
|
7200
|
+
* // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
7201
|
+
* parent: 'customers/my-customer',
|
|
7202
|
+
* // Required. Read mask to specify which fields to return. Supported read_mask paths are: - name - org_unit_id - device_id - serial_number - cpu_info - cpu_status_report - memory_info - memory_status_report - network_info - network_diagnostics_report - network_status_report - os_update_status - graphics_info - graphics_status_report - battery_info - battery_status_report - storage_info - storage_status_report - thunderbolt_info - audio_status_report - boot_performance_report - heartbeat_status_report - network_bandwidth_report - peripherals_report - kiosk_app_status_report - app_report - runtime_counters_report
|
|
7203
|
+
* readMask: 'placeholder-value',
|
|
7204
|
+
* });
|
|
7205
|
+
* console.log(res.data);
|
|
7206
|
+
*
|
|
7207
|
+
* // Example response
|
|
7208
|
+
* // {
|
|
7209
|
+
* // "devices": [],
|
|
7210
|
+
* // "nextPageToken": "my_nextPageToken"
|
|
7211
|
+
* // }
|
|
7212
|
+
* }
|
|
7213
|
+
*
|
|
7214
|
+
* main().catch(e => {
|
|
7215
|
+
* console.error(e);
|
|
7216
|
+
* throw e;
|
|
7217
|
+
* });
|
|
7218
|
+
*
|
|
7219
|
+
* ```
|
|
5261
7220
|
*
|
|
5262
7221
|
* @param params - Parameters for request
|
|
5263
7222
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5402,6 +7361,63 @@ export namespace chromemanagement_v1 {
|
|
|
5402
7361
|
|
|
5403
7362
|
/**
|
|
5404
7363
|
* List telemetry events.
|
|
7364
|
+
* @example
|
|
7365
|
+
* ```js
|
|
7366
|
+
* // Before running the sample:
|
|
7367
|
+
* // - Enable the API at:
|
|
7368
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
7369
|
+
* // - Login into gcloud by running:
|
|
7370
|
+
* // ```sh
|
|
7371
|
+
* // $ gcloud auth application-default login
|
|
7372
|
+
* // ```
|
|
7373
|
+
* // - Install the npm module by running:
|
|
7374
|
+
* // ```sh
|
|
7375
|
+
* // $ npm install googleapis
|
|
7376
|
+
* // ```
|
|
7377
|
+
*
|
|
7378
|
+
* const {google} = require('googleapis');
|
|
7379
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
7380
|
+
*
|
|
7381
|
+
* async function main() {
|
|
7382
|
+
* const auth = new google.auth.GoogleAuth({
|
|
7383
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7384
|
+
* scopes: [
|
|
7385
|
+
* 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
|
|
7386
|
+
* ],
|
|
7387
|
+
* });
|
|
7388
|
+
*
|
|
7389
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
7390
|
+
* const authClient = await auth.getClient();
|
|
7391
|
+
* google.options({auth: authClient});
|
|
7392
|
+
*
|
|
7393
|
+
* // Do the magic
|
|
7394
|
+
* const res = await chromemanagement.customers.telemetry.events.list({
|
|
7395
|
+
* // Optional. Only include resources that match the filter. Although this parameter is currently optional, this parameter will be required- please specify at least 1 event type. Supported filter fields: - device_id - user_id - device_org_unit_id - user_org_unit_id - timestamp - event_type The "timestamp" filter accepts either the Unix Epoch milliseconds format or the RFC3339 UTC "Zulu" format with nanosecond resolution and up to nine fractional digits. Both formats should be surrounded by simple double quotes. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z", "1679283943823".
|
|
7396
|
+
* filter: 'placeholder-value',
|
|
7397
|
+
* // Optional. Maximum number of results to return. Default value is 100. Maximum value is 1000.
|
|
7398
|
+
* pageSize: 'placeholder-value',
|
|
7399
|
+
* // Optional. Token to specify next page in the list.
|
|
7400
|
+
* pageToken: 'placeholder-value',
|
|
7401
|
+
* // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
7402
|
+
* parent: 'customers/my-customer',
|
|
7403
|
+
* // Required. Read mask to specify which fields to return. Although currently required, this field will become optional, while the filter parameter with an event type will be come required. Supported read_mask paths are: - device - user - audio_severe_underrun_event - usb_peripherals_event - https_latency_change_event - network_state_change_event - wifi_signal_strength_event - vpn_connection_state_change_event - app_install_event - app_uninstall_event - app_launch_event - os_crash_event
|
|
7404
|
+
* readMask: 'placeholder-value',
|
|
7405
|
+
* });
|
|
7406
|
+
* console.log(res.data);
|
|
7407
|
+
*
|
|
7408
|
+
* // Example response
|
|
7409
|
+
* // {
|
|
7410
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
7411
|
+
* // "telemetryEvents": []
|
|
7412
|
+
* // }
|
|
7413
|
+
* }
|
|
7414
|
+
*
|
|
7415
|
+
* main().catch(e => {
|
|
7416
|
+
* console.error(e);
|
|
7417
|
+
* throw e;
|
|
7418
|
+
* });
|
|
7419
|
+
*
|
|
7420
|
+
* ```
|
|
5405
7421
|
*
|
|
5406
7422
|
* @param params - Parameters for request
|
|
5407
7423
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5535,6 +7551,69 @@ export namespace chromemanagement_v1 {
|
|
|
5535
7551
|
|
|
5536
7552
|
/**
|
|
5537
7553
|
* Create a telemetry notification config.
|
|
7554
|
+
* @example
|
|
7555
|
+
* ```js
|
|
7556
|
+
* // Before running the sample:
|
|
7557
|
+
* // - Enable the API at:
|
|
7558
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
7559
|
+
* // - Login into gcloud by running:
|
|
7560
|
+
* // ```sh
|
|
7561
|
+
* // $ gcloud auth application-default login
|
|
7562
|
+
* // ```
|
|
7563
|
+
* // - Install the npm module by running:
|
|
7564
|
+
* // ```sh
|
|
7565
|
+
* // $ npm install googleapis
|
|
7566
|
+
* // ```
|
|
7567
|
+
*
|
|
7568
|
+
* const {google} = require('googleapis');
|
|
7569
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
7570
|
+
*
|
|
7571
|
+
* async function main() {
|
|
7572
|
+
* const auth = new google.auth.GoogleAuth({
|
|
7573
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7574
|
+
* scopes: [
|
|
7575
|
+
* 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
|
|
7576
|
+
* ],
|
|
7577
|
+
* });
|
|
7578
|
+
*
|
|
7579
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
7580
|
+
* const authClient = await auth.getClient();
|
|
7581
|
+
* google.options({auth: authClient});
|
|
7582
|
+
*
|
|
7583
|
+
* // Do the magic
|
|
7584
|
+
* const res =
|
|
7585
|
+
* await chromemanagement.customers.telemetry.notificationConfigs.create({
|
|
7586
|
+
* // Required. The parent resource where this notification config will be created. Format: `customers/{customer\}`
|
|
7587
|
+
* parent: 'customers/my-customer',
|
|
7588
|
+
*
|
|
7589
|
+
* // Request body metadata
|
|
7590
|
+
* requestBody: {
|
|
7591
|
+
* // request body parameters
|
|
7592
|
+
* // {
|
|
7593
|
+
* // "customer": "my_customer",
|
|
7594
|
+
* // "filter": {},
|
|
7595
|
+
* // "googleCloudPubsubTopic": "my_googleCloudPubsubTopic",
|
|
7596
|
+
* // "name": "my_name"
|
|
7597
|
+
* // }
|
|
7598
|
+
* },
|
|
7599
|
+
* });
|
|
7600
|
+
* console.log(res.data);
|
|
7601
|
+
*
|
|
7602
|
+
* // Example response
|
|
7603
|
+
* // {
|
|
7604
|
+
* // "customer": "my_customer",
|
|
7605
|
+
* // "filter": {},
|
|
7606
|
+
* // "googleCloudPubsubTopic": "my_googleCloudPubsubTopic",
|
|
7607
|
+
* // "name": "my_name"
|
|
7608
|
+
* // }
|
|
7609
|
+
* }
|
|
7610
|
+
*
|
|
7611
|
+
* main().catch(e => {
|
|
7612
|
+
* console.error(e);
|
|
7613
|
+
* throw e;
|
|
7614
|
+
* });
|
|
7615
|
+
*
|
|
7616
|
+
* ```
|
|
5538
7617
|
*
|
|
5539
7618
|
* @param params - Parameters for request
|
|
5540
7619
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5637,6 +7716,53 @@ export namespace chromemanagement_v1 {
|
|
|
5637
7716
|
|
|
5638
7717
|
/**
|
|
5639
7718
|
* Delete a telemetry notification config.
|
|
7719
|
+
* @example
|
|
7720
|
+
* ```js
|
|
7721
|
+
* // Before running the sample:
|
|
7722
|
+
* // - Enable the API at:
|
|
7723
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
7724
|
+
* // - Login into gcloud by running:
|
|
7725
|
+
* // ```sh
|
|
7726
|
+
* // $ gcloud auth application-default login
|
|
7727
|
+
* // ```
|
|
7728
|
+
* // - Install the npm module by running:
|
|
7729
|
+
* // ```sh
|
|
7730
|
+
* // $ npm install googleapis
|
|
7731
|
+
* // ```
|
|
7732
|
+
*
|
|
7733
|
+
* const {google} = require('googleapis');
|
|
7734
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
7735
|
+
*
|
|
7736
|
+
* async function main() {
|
|
7737
|
+
* const auth = new google.auth.GoogleAuth({
|
|
7738
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7739
|
+
* scopes: [
|
|
7740
|
+
* 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
|
|
7741
|
+
* ],
|
|
7742
|
+
* });
|
|
7743
|
+
*
|
|
7744
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
7745
|
+
* const authClient = await auth.getClient();
|
|
7746
|
+
* google.options({auth: authClient});
|
|
7747
|
+
*
|
|
7748
|
+
* // Do the magic
|
|
7749
|
+
* const res =
|
|
7750
|
+
* await chromemanagement.customers.telemetry.notificationConfigs.delete({
|
|
7751
|
+
* // Required. The name of the notification config to delete. Format: `customers/{customer\}/telemetry/notificationConfigs/{notification_config\}`
|
|
7752
|
+
* name: 'customers/my-customer/telemetry/notificationConfigs/my-notificationConfig',
|
|
7753
|
+
* });
|
|
7754
|
+
* console.log(res.data);
|
|
7755
|
+
*
|
|
7756
|
+
* // Example response
|
|
7757
|
+
* // {}
|
|
7758
|
+
* }
|
|
7759
|
+
*
|
|
7760
|
+
* main().catch(e => {
|
|
7761
|
+
* console.error(e);
|
|
7762
|
+
* throw e;
|
|
7763
|
+
* });
|
|
7764
|
+
*
|
|
7765
|
+
* ```
|
|
5640
7766
|
*
|
|
5641
7767
|
* @param params - Parameters for request
|
|
5642
7768
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5727,6 +7853,60 @@ export namespace chromemanagement_v1 {
|
|
|
5727
7853
|
|
|
5728
7854
|
/**
|
|
5729
7855
|
* List all telemetry notification configs.
|
|
7856
|
+
* @example
|
|
7857
|
+
* ```js
|
|
7858
|
+
* // Before running the sample:
|
|
7859
|
+
* // - Enable the API at:
|
|
7860
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
7861
|
+
* // - Login into gcloud by running:
|
|
7862
|
+
* // ```sh
|
|
7863
|
+
* // $ gcloud auth application-default login
|
|
7864
|
+
* // ```
|
|
7865
|
+
* // - Install the npm module by running:
|
|
7866
|
+
* // ```sh
|
|
7867
|
+
* // $ npm install googleapis
|
|
7868
|
+
* // ```
|
|
7869
|
+
*
|
|
7870
|
+
* const {google} = require('googleapis');
|
|
7871
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
7872
|
+
*
|
|
7873
|
+
* async function main() {
|
|
7874
|
+
* const auth = new google.auth.GoogleAuth({
|
|
7875
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7876
|
+
* scopes: [
|
|
7877
|
+
* 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
|
|
7878
|
+
* ],
|
|
7879
|
+
* });
|
|
7880
|
+
*
|
|
7881
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
7882
|
+
* const authClient = await auth.getClient();
|
|
7883
|
+
* google.options({auth: authClient});
|
|
7884
|
+
*
|
|
7885
|
+
* // Do the magic
|
|
7886
|
+
* const res =
|
|
7887
|
+
* await chromemanagement.customers.telemetry.notificationConfigs.list({
|
|
7888
|
+
* // The maximum number of notification configs to return. The service may return fewer than this value. If unspecified, at most 100 notification configs will be returned. The maximum value is 100; values above 100 will be coerced to 100.
|
|
7889
|
+
* pageSize: 'placeholder-value',
|
|
7890
|
+
* // A page token, received from a previous `ListTelemetryNotificationConfigs` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListTelemetryNotificationConfigs` must match the call that provided the page token.
|
|
7891
|
+
* pageToken: 'placeholder-value',
|
|
7892
|
+
* // Required. The parent which owns the notification configs.
|
|
7893
|
+
* parent: 'customers/my-customer',
|
|
7894
|
+
* });
|
|
7895
|
+
* console.log(res.data);
|
|
7896
|
+
*
|
|
7897
|
+
* // Example response
|
|
7898
|
+
* // {
|
|
7899
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
7900
|
+
* // "telemetryNotificationConfigs": []
|
|
7901
|
+
* // }
|
|
7902
|
+
* }
|
|
7903
|
+
*
|
|
7904
|
+
* main().catch(e => {
|
|
7905
|
+
* console.error(e);
|
|
7906
|
+
* throw e;
|
|
7907
|
+
* });
|
|
7908
|
+
*
|
|
7909
|
+
* ```
|
|
5730
7910
|
*
|
|
5731
7911
|
* @param params - Parameters for request
|
|
5732
7912
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5871,6 +8051,61 @@ export namespace chromemanagement_v1 {
|
|
|
5871
8051
|
|
|
5872
8052
|
/**
|
|
5873
8053
|
* Get telemetry user.
|
|
8054
|
+
* @example
|
|
8055
|
+
* ```js
|
|
8056
|
+
* // Before running the sample:
|
|
8057
|
+
* // - Enable the API at:
|
|
8058
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
8059
|
+
* // - Login into gcloud by running:
|
|
8060
|
+
* // ```sh
|
|
8061
|
+
* // $ gcloud auth application-default login
|
|
8062
|
+
* // ```
|
|
8063
|
+
* // - Install the npm module by running:
|
|
8064
|
+
* // ```sh
|
|
8065
|
+
* // $ npm install googleapis
|
|
8066
|
+
* // ```
|
|
8067
|
+
*
|
|
8068
|
+
* const {google} = require('googleapis');
|
|
8069
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
8070
|
+
*
|
|
8071
|
+
* async function main() {
|
|
8072
|
+
* const auth = new google.auth.GoogleAuth({
|
|
8073
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
8074
|
+
* scopes: [
|
|
8075
|
+
* 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
|
|
8076
|
+
* ],
|
|
8077
|
+
* });
|
|
8078
|
+
*
|
|
8079
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
8080
|
+
* const authClient = await auth.getClient();
|
|
8081
|
+
* google.options({auth: authClient});
|
|
8082
|
+
*
|
|
8083
|
+
* // Do the magic
|
|
8084
|
+
* const res = await chromemanagement.customers.telemetry.users.get({
|
|
8085
|
+
* // Required. Name of the `TelemetryUser` to return.
|
|
8086
|
+
* name: 'customers/my-customer/telemetry/users/my-user',
|
|
8087
|
+
* // Read mask to specify which fields to return. Supported read_mask paths are: - name - org_unit_id - user_id - user_email - user_device.device_id - user_device.audio_status_report - user_device.device_activity_report - user_device.network_bandwidth_report - user_device.peripherals_report - user_device.app_report
|
|
8088
|
+
* readMask: 'placeholder-value',
|
|
8089
|
+
* });
|
|
8090
|
+
* console.log(res.data);
|
|
8091
|
+
*
|
|
8092
|
+
* // Example response
|
|
8093
|
+
* // {
|
|
8094
|
+
* // "customer": "my_customer",
|
|
8095
|
+
* // "name": "my_name",
|
|
8096
|
+
* // "orgUnitId": "my_orgUnitId",
|
|
8097
|
+
* // "userDevice": [],
|
|
8098
|
+
* // "userEmail": "my_userEmail",
|
|
8099
|
+
* // "userId": "my_userId"
|
|
8100
|
+
* // }
|
|
8101
|
+
* }
|
|
8102
|
+
*
|
|
8103
|
+
* main().catch(e => {
|
|
8104
|
+
* console.error(e);
|
|
8105
|
+
* throw e;
|
|
8106
|
+
* });
|
|
8107
|
+
*
|
|
8108
|
+
* ```
|
|
5874
8109
|
*
|
|
5875
8110
|
* @param params - Parameters for request
|
|
5876
8111
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5970,6 +8205,63 @@ export namespace chromemanagement_v1 {
|
|
|
5970
8205
|
|
|
5971
8206
|
/**
|
|
5972
8207
|
* List all telemetry users.
|
|
8208
|
+
* @example
|
|
8209
|
+
* ```js
|
|
8210
|
+
* // Before running the sample:
|
|
8211
|
+
* // - Enable the API at:
|
|
8212
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
8213
|
+
* // - Login into gcloud by running:
|
|
8214
|
+
* // ```sh
|
|
8215
|
+
* // $ gcloud auth application-default login
|
|
8216
|
+
* // ```
|
|
8217
|
+
* // - Install the npm module by running:
|
|
8218
|
+
* // ```sh
|
|
8219
|
+
* // $ npm install googleapis
|
|
8220
|
+
* // ```
|
|
8221
|
+
*
|
|
8222
|
+
* const {google} = require('googleapis');
|
|
8223
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
8224
|
+
*
|
|
8225
|
+
* async function main() {
|
|
8226
|
+
* const auth = new google.auth.GoogleAuth({
|
|
8227
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
8228
|
+
* scopes: [
|
|
8229
|
+
* 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
|
|
8230
|
+
* ],
|
|
8231
|
+
* });
|
|
8232
|
+
*
|
|
8233
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
8234
|
+
* const authClient = await auth.getClient();
|
|
8235
|
+
* google.options({auth: authClient});
|
|
8236
|
+
*
|
|
8237
|
+
* // Do the magic
|
|
8238
|
+
* const res = await chromemanagement.customers.telemetry.users.list({
|
|
8239
|
+
* // Only include resources that match the filter. Supported filter fields: - user_id - user_org_unit_id
|
|
8240
|
+
* filter: 'placeholder-value',
|
|
8241
|
+
* // Maximum number of results to return. Default value is 100. Maximum value is 1000.
|
|
8242
|
+
* pageSize: 'placeholder-value',
|
|
8243
|
+
* // Token to specify next page in the list.
|
|
8244
|
+
* pageToken: 'placeholder-value',
|
|
8245
|
+
* // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
8246
|
+
* parent: 'customers/my-customer',
|
|
8247
|
+
* // Read mask to specify which fields to return. Supported read_mask paths are: - name - org_unit_id - user_id - user_email - user_device.device_id - user_device.audio_status_report - user_device.device_activity_report - user_device.network_bandwidth_report - user_device.peripherals_report - user_device.app_report
|
|
8248
|
+
* readMask: 'placeholder-value',
|
|
8249
|
+
* });
|
|
8250
|
+
* console.log(res.data);
|
|
8251
|
+
*
|
|
8252
|
+
* // Example response
|
|
8253
|
+
* // {
|
|
8254
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
8255
|
+
* // "telemetryUsers": []
|
|
8256
|
+
* // }
|
|
8257
|
+
* }
|
|
8258
|
+
*
|
|
8259
|
+
* main().catch(e => {
|
|
8260
|
+
* console.error(e);
|
|
8261
|
+
* throw e;
|
|
8262
|
+
* });
|
|
8263
|
+
*
|
|
8264
|
+
* ```
|
|
5973
8265
|
*
|
|
5974
8266
|
* @param params - Parameters for request
|
|
5975
8267
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|