@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/build/v1.d.ts CHANGED
@@ -414,6 +414,10 @@ export declare namespace chromemanagement_v1 {
414
414
  * Output only. Whether this app is enabled for Kiosk mode on ChromeOS devices
415
415
  */
416
416
  kioskEnabled?: boolean | null;
417
+ /**
418
+ * Output only. The version of this extension's manifest.
419
+ */
420
+ manifestVersion?: string | null;
417
421
  /**
418
422
  * Output only. The minimum number of users using this app.
419
423
  */
@@ -886,6 +890,10 @@ export declare namespace chromemanagement_v1 {
886
890
  * Output only. Display width in millimeters.
887
891
  */
888
892
  displayWidthMm?: number | null;
893
+ /**
894
+ * Output only. EDID version.
895
+ */
896
+ edidVersion?: string | null;
889
897
  /**
890
898
  * Output only. Is display internal or not.
891
899
  */
@@ -902,6 +910,10 @@ export declare namespace chromemanagement_v1 {
902
910
  * Output only. Manufacturer product code.
903
911
  */
904
912
  modelId?: number | null;
913
+ /**
914
+ * Output only. Serial number.
915
+ */
916
+ serialNumber?: number | null;
905
917
  }
906
918
  /**
907
919
  * Information for a display.
@@ -915,6 +927,10 @@ export declare namespace chromemanagement_v1 {
915
927
  * Output only. Display device name.
916
928
  */
917
929
  displayName?: string | null;
930
+ /**
931
+ * Output only. EDID version.
932
+ */
933
+ edidVersion?: string | null;
918
934
  /**
919
935
  * Output only. Indicates if display is internal or not.
920
936
  */
@@ -931,6 +947,10 @@ export declare namespace chromemanagement_v1 {
931
947
  * Output only. Resolution width in pixels.
932
948
  */
933
949
  resolutionWidth?: number | null;
950
+ /**
951
+ * Output only. Serial number.
952
+ */
953
+ serialNumber?: number | null;
934
954
  }
935
955
  /**
936
956
  * Response containing a list of print jobs.
@@ -1840,6 +1860,10 @@ export declare namespace chromemanagement_v1 {
1840
1860
  * Output only. Payload for network connection state change event. Present only when `event_type` is `NETWORK_STATE_CHANGE`.
1841
1861
  */
1842
1862
  networkStateChangeEvent?: Schema$GoogleChromeManagementV1TelemetryNetworkConnectionStateChangeEvent;
1863
+ /**
1864
+ * Output only. Payload for OS crash event. Present only when `event_type` is `OS_CRASH`.
1865
+ */
1866
+ osCrashEvent?: Schema$GoogleChromeManagementV1TelemetryOsCrashEvent;
1843
1867
  /**
1844
1868
  * Timestamp that represents when the event was reported.
1845
1869
  */
@@ -1955,6 +1979,23 @@ export declare namespace chromemanagement_v1 {
1955
1979
  */
1956
1980
  userOrgUnitId?: string | null;
1957
1981
  }
1982
+ /**
1983
+ * OS crash data.
1984
+ */
1985
+ export interface Schema$GoogleChromeManagementV1TelemetryOsCrashEvent {
1986
+ /**
1987
+ * Crash id.
1988
+ */
1989
+ crashId?: string | null;
1990
+ /**
1991
+ * Crash type.
1992
+ */
1993
+ crashType?: string | null;
1994
+ /**
1995
+ * Session type.
1996
+ */
1997
+ sessionType?: string | null;
1998
+ }
1958
1999
  /**
1959
2000
  * `TelemetryUsbPeripheralsEvent` is triggered USB devices are either added or removed. * Granular permission needed: TELEMETRY_API_PERIPHERALS_REPORT
1960
2001
  */
@@ -2357,6 +2398,58 @@ export declare namespace chromemanagement_v1 {
2357
2398
  */
2358
2399
  userId?: string | null;
2359
2400
  }
2401
+ /**
2402
+ * A representation of a remote command for a Chrome browser profile.
2403
+ */
2404
+ export interface Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand {
2405
+ /**
2406
+ * Output only. Result of the remote command.
2407
+ */
2408
+ commandResult?: Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommandCommandResult;
2409
+ /**
2410
+ * Output only. State of the remote command.
2411
+ */
2412
+ commandState?: string | null;
2413
+ /**
2414
+ * Required. Type of the remote command. The only supported command_type is "clearBrowsingData".
2415
+ */
2416
+ commandType?: string | null;
2417
+ /**
2418
+ * Output only. Timestamp of the issurance of the remote command.
2419
+ */
2420
+ issueTime?: string | null;
2421
+ /**
2422
+ * Identifier. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}/commands/{command_id\}
2423
+ */
2424
+ name?: string | null;
2425
+ /**
2426
+ * Required. Payload of the remote command. The payload for "clearBrowsingData" command supports: - fields "clearCache" and "clearCookies" - values of boolean type.
2427
+ */
2428
+ payload?: {
2429
+ [key: string]: any;
2430
+ } | null;
2431
+ /**
2432
+ * Output only. Valid duration of the remote command.
2433
+ */
2434
+ validDuration?: string | null;
2435
+ }
2436
+ /**
2437
+ * Result of the execution of a command.
2438
+ */
2439
+ export interface Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommandCommandResult {
2440
+ /**
2441
+ * Output only. Timestamp of the client execution of the remote command.
2442
+ */
2443
+ clientExecutionTime?: string | null;
2444
+ /**
2445
+ * Output only. Result code that indicates the type of error or success of the command.
2446
+ */
2447
+ resultCode?: string | null;
2448
+ /**
2449
+ * Output only. Result type of the remote command.
2450
+ */
2451
+ resultType?: string | null;
2452
+ }
2360
2453
  /**
2361
2454
  * Describes the ChromeOS device that a `CertificateProvisioningProcess` belongs to.
2362
2455
  */
@@ -2426,6 +2519,23 @@ export declare namespace chromemanagement_v1 {
2426
2519
  */
2427
2520
  profileAdapterConfigReference?: string | null;
2428
2521
  }
2522
+ /**
2523
+ * Response to ListChromeBrowserProfileCommands method.
2524
+ */
2525
+ export interface Schema$GoogleChromeManagementVersionsV1ListChromeBrowserProfileCommandsResponse {
2526
+ /**
2527
+ * The list of commands returned.
2528
+ */
2529
+ chromeBrowserProfileCommands?: Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand[];
2530
+ /**
2531
+ * The pagination token that can be used to list the next page.
2532
+ */
2533
+ nextPageToken?: string | null;
2534
+ /**
2535
+ * Total size represents an estimated number of resources returned.
2536
+ */
2537
+ totalSize?: string | null;
2538
+ }
2429
2539
  /**
2430
2540
  * Response to ListChromeBrowserProfiles method.
2431
2541
  */
@@ -2647,6 +2757,64 @@ export declare namespace chromemanagement_v1 {
2647
2757
  constructor(context: APIRequestContext);
2648
2758
  /**
2649
2759
  * Generate summary of app installation requests.
2760
+ * @example
2761
+ * ```js
2762
+ * // Before running the sample:
2763
+ * // - Enable the API at:
2764
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
2765
+ * // - Login into gcloud by running:
2766
+ * // ```sh
2767
+ * // $ gcloud auth application-default login
2768
+ * // ```
2769
+ * // - Install the npm module by running:
2770
+ * // ```sh
2771
+ * // $ npm install googleapis
2772
+ * // ```
2773
+ *
2774
+ * const {google} = require('googleapis');
2775
+ * const chromemanagement = google.chromemanagement('v1');
2776
+ *
2777
+ * async function main() {
2778
+ * const auth = new google.auth.GoogleAuth({
2779
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2780
+ * scopes: [
2781
+ * 'https://www.googleapis.com/auth/chrome.management.appdetails.readonly',
2782
+ * ],
2783
+ * });
2784
+ *
2785
+ * // Acquire an auth client, and bind it to all future calls
2786
+ * const authClient = await auth.getClient();
2787
+ * google.options({auth: authClient});
2788
+ *
2789
+ * // Do the magic
2790
+ * const res = await chromemanagement.customers.apps.countChromeAppRequests({
2791
+ * // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
2792
+ * customer: 'customers/my-customer',
2793
+ * // Field used to order results. Supported fields: * request_count * latest_request_time
2794
+ * orderBy: 'placeholder-value',
2795
+ * // The ID of the organizational unit.
2796
+ * orgUnitId: 'placeholder-value',
2797
+ * // Maximum number of results to return. Maximum and default are 50, anything above will be coerced to 50.
2798
+ * pageSize: 'placeholder-value',
2799
+ * // Token to specify the page of the request to be returned.
2800
+ * pageToken: 'placeholder-value',
2801
+ * });
2802
+ * console.log(res.data);
2803
+ *
2804
+ * // Example response
2805
+ * // {
2806
+ * // "nextPageToken": "my_nextPageToken",
2807
+ * // "requestedApps": [],
2808
+ * // "totalSize": 0
2809
+ * // }
2810
+ * }
2811
+ *
2812
+ * main().catch(e => {
2813
+ * console.error(e);
2814
+ * throw e;
2815
+ * });
2816
+ *
2817
+ * ```
2650
2818
  *
2651
2819
  * @param params - Parameters for request
2652
2820
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2661,6 +2829,65 @@ export declare namespace chromemanagement_v1 {
2661
2829
  countChromeAppRequests(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeAppRequestsResponse>): void;
2662
2830
  /**
2663
2831
  * Get a list of devices that have requested to install an extension.
2832
+ * @example
2833
+ * ```js
2834
+ * // Before running the sample:
2835
+ * // - Enable the API at:
2836
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
2837
+ * // - Login into gcloud by running:
2838
+ * // ```sh
2839
+ * // $ gcloud auth application-default login
2840
+ * // ```
2841
+ * // - Install the npm module by running:
2842
+ * // ```sh
2843
+ * // $ npm install googleapis
2844
+ * // ```
2845
+ *
2846
+ * const {google} = require('googleapis');
2847
+ * const chromemanagement = google.chromemanagement('v1');
2848
+ *
2849
+ * async function main() {
2850
+ * const auth = new google.auth.GoogleAuth({
2851
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2852
+ * scopes: [
2853
+ * 'https://www.googleapis.com/auth/chrome.management.appdetails.readonly',
2854
+ * ],
2855
+ * });
2856
+ *
2857
+ * // Acquire an auth client, and bind it to all future calls
2858
+ * const authClient = await auth.getClient();
2859
+ * google.options({auth: authClient});
2860
+ *
2861
+ * // Do the magic
2862
+ * const res =
2863
+ * await chromemanagement.customers.apps.fetchDevicesRequestingExtension({
2864
+ * // Required. The customer ID or "my_customer" prefixed with "customers/".
2865
+ * customer: 'customers/my-customer',
2866
+ * // Required. The extension for which we want to find requesting devices.
2867
+ * extensionId: 'placeholder-value',
2868
+ * // 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.
2869
+ * orgUnitId: 'placeholder-value',
2870
+ * // Optional. Maximum number of results to return. Maximum and default are 50. Any page size larger than 50 will be coerced to 50.
2871
+ * pageSize: 'placeholder-value',
2872
+ * // Optional. Token to specify the page of the request to be returned. Token expires after 1 day.
2873
+ * pageToken: 'placeholder-value',
2874
+ * });
2875
+ * console.log(res.data);
2876
+ *
2877
+ * // Example response
2878
+ * // {
2879
+ * // "deviceDetails": [],
2880
+ * // "nextPageToken": "my_nextPageToken",
2881
+ * // "totalSize": 0
2882
+ * // }
2883
+ * }
2884
+ *
2885
+ * main().catch(e => {
2886
+ * console.error(e);
2887
+ * throw e;
2888
+ * });
2889
+ *
2890
+ * ```
2664
2891
  *
2665
2892
  * @param params - Parameters for request
2666
2893
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2675,6 +2902,65 @@ export declare namespace chromemanagement_v1 {
2675
2902
  fetchDevicesRequestingExtension(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1FetchDevicesRequestingExtensionResponse>): void;
2676
2903
  /**
2677
2904
  * Get a list of users that have requested to install an extension.
2905
+ * @example
2906
+ * ```js
2907
+ * // Before running the sample:
2908
+ * // - Enable the API at:
2909
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
2910
+ * // - Login into gcloud by running:
2911
+ * // ```sh
2912
+ * // $ gcloud auth application-default login
2913
+ * // ```
2914
+ * // - Install the npm module by running:
2915
+ * // ```sh
2916
+ * // $ npm install googleapis
2917
+ * // ```
2918
+ *
2919
+ * const {google} = require('googleapis');
2920
+ * const chromemanagement = google.chromemanagement('v1');
2921
+ *
2922
+ * async function main() {
2923
+ * const auth = new google.auth.GoogleAuth({
2924
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2925
+ * scopes: [
2926
+ * 'https://www.googleapis.com/auth/chrome.management.appdetails.readonly',
2927
+ * ],
2928
+ * });
2929
+ *
2930
+ * // Acquire an auth client, and bind it to all future calls
2931
+ * const authClient = await auth.getClient();
2932
+ * google.options({auth: authClient});
2933
+ *
2934
+ * // Do the magic
2935
+ * const res =
2936
+ * await chromemanagement.customers.apps.fetchUsersRequestingExtension({
2937
+ * // Required. The customer ID or "my_customer" prefixed with "customers/".
2938
+ * customer: 'customers/my-customer',
2939
+ * // Required. The extension for which we want to find the requesting users.
2940
+ * extensionId: 'placeholder-value',
2941
+ * // 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.
2942
+ * orgUnitId: 'placeholder-value',
2943
+ * // Optional. Maximum number of results to return. Maximum and default are 50. Any page size larger than 50 will be coerced to 50.
2944
+ * pageSize: 'placeholder-value',
2945
+ * // Optional. Token to specify the page of the request to be returned. Token expires after 1 day.
2946
+ * pageToken: 'placeholder-value',
2947
+ * });
2948
+ * console.log(res.data);
2949
+ *
2950
+ * // Example response
2951
+ * // {
2952
+ * // "nextPageToken": "my_nextPageToken",
2953
+ * // "totalSize": 0,
2954
+ * // "userDetails": []
2955
+ * // }
2956
+ * }
2957
+ *
2958
+ * main().catch(e => {
2959
+ * console.error(e);
2960
+ * throw e;
2961
+ * });
2962
+ *
2963
+ * ```
2678
2964
  *
2679
2965
  * @param params - Parameters for request
2680
2966
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2759,6 +3045,72 @@ export declare namespace chromemanagement_v1 {
2759
3045
  constructor(context: APIRequestContext);
2760
3046
  /**
2761
3047
  * Get a specific app for a customer by its resource name.
3048
+ * @example
3049
+ * ```js
3050
+ * // Before running the sample:
3051
+ * // - Enable the API at:
3052
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
3053
+ * // - Login into gcloud by running:
3054
+ * // ```sh
3055
+ * // $ gcloud auth application-default login
3056
+ * // ```
3057
+ * // - Install the npm module by running:
3058
+ * // ```sh
3059
+ * // $ npm install googleapis
3060
+ * // ```
3061
+ *
3062
+ * const {google} = require('googleapis');
3063
+ * const chromemanagement = google.chromemanagement('v1');
3064
+ *
3065
+ * async function main() {
3066
+ * const auth = new google.auth.GoogleAuth({
3067
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3068
+ * scopes: [
3069
+ * 'https://www.googleapis.com/auth/chrome.management.appdetails.readonly',
3070
+ * ],
3071
+ * });
3072
+ *
3073
+ * // Acquire an auth client, and bind it to all future calls
3074
+ * const authClient = await auth.getClient();
3075
+ * google.options({auth: authClient});
3076
+ *
3077
+ * // Do the magic
3078
+ * const res = await chromemanagement.customers.apps.android.get({
3079
+ * // 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.
3080
+ * name: 'customers/my-customer/apps/android/[^/]+',
3081
+ * });
3082
+ * console.log(res.data);
3083
+ *
3084
+ * // Example response
3085
+ * // {
3086
+ * // "androidAppInfo": {},
3087
+ * // "appId": "my_appId",
3088
+ * // "chromeAppInfo": {},
3089
+ * // "description": "my_description",
3090
+ * // "detailUri": "my_detailUri",
3091
+ * // "displayName": "my_displayName",
3092
+ * // "firstPublishTime": "my_firstPublishTime",
3093
+ * // "homepageUri": "my_homepageUri",
3094
+ * // "iconUri": "my_iconUri",
3095
+ * // "isPaidApp": false,
3096
+ * // "latestPublishTime": "my_latestPublishTime",
3097
+ * // "name": "my_name",
3098
+ * // "privacyPolicyUri": "my_privacyPolicyUri",
3099
+ * // "publisher": "my_publisher",
3100
+ * // "reviewNumber": "my_reviewNumber",
3101
+ * // "reviewRating": {},
3102
+ * // "revisionId": "my_revisionId",
3103
+ * // "serviceError": {},
3104
+ * // "type": "my_type"
3105
+ * // }
3106
+ * }
3107
+ *
3108
+ * main().catch(e => {
3109
+ * console.error(e);
3110
+ * throw e;
3111
+ * });
3112
+ *
3113
+ * ```
2762
3114
  *
2763
3115
  * @param params - Parameters for request
2764
3116
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2783,6 +3135,72 @@ export declare namespace chromemanagement_v1 {
2783
3135
  constructor(context: APIRequestContext);
2784
3136
  /**
2785
3137
  * Get a specific app for a customer by its resource name.
3138
+ * @example
3139
+ * ```js
3140
+ * // Before running the sample:
3141
+ * // - Enable the API at:
3142
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
3143
+ * // - Login into gcloud by running:
3144
+ * // ```sh
3145
+ * // $ gcloud auth application-default login
3146
+ * // ```
3147
+ * // - Install the npm module by running:
3148
+ * // ```sh
3149
+ * // $ npm install googleapis
3150
+ * // ```
3151
+ *
3152
+ * const {google} = require('googleapis');
3153
+ * const chromemanagement = google.chromemanagement('v1');
3154
+ *
3155
+ * async function main() {
3156
+ * const auth = new google.auth.GoogleAuth({
3157
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3158
+ * scopes: [
3159
+ * 'https://www.googleapis.com/auth/chrome.management.appdetails.readonly',
3160
+ * ],
3161
+ * });
3162
+ *
3163
+ * // Acquire an auth client, and bind it to all future calls
3164
+ * const authClient = await auth.getClient();
3165
+ * google.options({auth: authClient});
3166
+ *
3167
+ * // Do the magic
3168
+ * const res = await chromemanagement.customers.apps.chrome.get({
3169
+ * // 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.
3170
+ * name: 'customers/my-customer/apps/chrome/[^/]+',
3171
+ * });
3172
+ * console.log(res.data);
3173
+ *
3174
+ * // Example response
3175
+ * // {
3176
+ * // "androidAppInfo": {},
3177
+ * // "appId": "my_appId",
3178
+ * // "chromeAppInfo": {},
3179
+ * // "description": "my_description",
3180
+ * // "detailUri": "my_detailUri",
3181
+ * // "displayName": "my_displayName",
3182
+ * // "firstPublishTime": "my_firstPublishTime",
3183
+ * // "homepageUri": "my_homepageUri",
3184
+ * // "iconUri": "my_iconUri",
3185
+ * // "isPaidApp": false,
3186
+ * // "latestPublishTime": "my_latestPublishTime",
3187
+ * // "name": "my_name",
3188
+ * // "privacyPolicyUri": "my_privacyPolicyUri",
3189
+ * // "publisher": "my_publisher",
3190
+ * // "reviewNumber": "my_reviewNumber",
3191
+ * // "reviewRating": {},
3192
+ * // "revisionId": "my_revisionId",
3193
+ * // "serviceError": {},
3194
+ * // "type": "my_type"
3195
+ * // }
3196
+ * }
3197
+ *
3198
+ * main().catch(e => {
3199
+ * console.error(e);
3200
+ * throw e;
3201
+ * });
3202
+ *
3203
+ * ```
2786
3204
  *
2787
3205
  * @param params - Parameters for request
2788
3206
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2807,6 +3225,72 @@ export declare namespace chromemanagement_v1 {
2807
3225
  constructor(context: APIRequestContext);
2808
3226
  /**
2809
3227
  * Get a specific app for a customer by its resource name.
3228
+ * @example
3229
+ * ```js
3230
+ * // Before running the sample:
3231
+ * // - Enable the API at:
3232
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
3233
+ * // - Login into gcloud by running:
3234
+ * // ```sh
3235
+ * // $ gcloud auth application-default login
3236
+ * // ```
3237
+ * // - Install the npm module by running:
3238
+ * // ```sh
3239
+ * // $ npm install googleapis
3240
+ * // ```
3241
+ *
3242
+ * const {google} = require('googleapis');
3243
+ * const chromemanagement = google.chromemanagement('v1');
3244
+ *
3245
+ * async function main() {
3246
+ * const auth = new google.auth.GoogleAuth({
3247
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3248
+ * scopes: [
3249
+ * 'https://www.googleapis.com/auth/chrome.management.appdetails.readonly',
3250
+ * ],
3251
+ * });
3252
+ *
3253
+ * // Acquire an auth client, and bind it to all future calls
3254
+ * const authClient = await auth.getClient();
3255
+ * google.options({auth: authClient});
3256
+ *
3257
+ * // Do the magic
3258
+ * const res = await chromemanagement.customers.apps.web.get({
3259
+ * // 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.
3260
+ * name: 'customers/my-customer/apps/web/[^/]+',
3261
+ * });
3262
+ * console.log(res.data);
3263
+ *
3264
+ * // Example response
3265
+ * // {
3266
+ * // "androidAppInfo": {},
3267
+ * // "appId": "my_appId",
3268
+ * // "chromeAppInfo": {},
3269
+ * // "description": "my_description",
3270
+ * // "detailUri": "my_detailUri",
3271
+ * // "displayName": "my_displayName",
3272
+ * // "firstPublishTime": "my_firstPublishTime",
3273
+ * // "homepageUri": "my_homepageUri",
3274
+ * // "iconUri": "my_iconUri",
3275
+ * // "isPaidApp": false,
3276
+ * // "latestPublishTime": "my_latestPublishTime",
3277
+ * // "name": "my_name",
3278
+ * // "privacyPolicyUri": "my_privacyPolicyUri",
3279
+ * // "publisher": "my_publisher",
3280
+ * // "reviewNumber": "my_reviewNumber",
3281
+ * // "reviewRating": {},
3282
+ * // "revisionId": "my_revisionId",
3283
+ * // "serviceError": {},
3284
+ * // "type": "my_type"
3285
+ * // }
3286
+ * }
3287
+ *
3288
+ * main().catch(e => {
3289
+ * console.error(e);
3290
+ * throw e;
3291
+ * });
3292
+ *
3293
+ * ```
2810
3294
  *
2811
3295
  * @param params - Parameters for request
2812
3296
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2828,9 +3312,54 @@ export declare namespace chromemanagement_v1 {
2828
3312
  }
2829
3313
  export class Resource$Customers$Profiles {
2830
3314
  context: APIRequestContext;
3315
+ commands: Resource$Customers$Profiles$Commands;
2831
3316
  constructor(context: APIRequestContext);
2832
3317
  /**
2833
3318
  * Deletes the data collected from a Chrome browser profile.
3319
+ * @example
3320
+ * ```js
3321
+ * // Before running the sample:
3322
+ * // - Enable the API at:
3323
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
3324
+ * // - Login into gcloud by running:
3325
+ * // ```sh
3326
+ * // $ gcloud auth application-default login
3327
+ * // ```
3328
+ * // - Install the npm module by running:
3329
+ * // ```sh
3330
+ * // $ npm install googleapis
3331
+ * // ```
3332
+ *
3333
+ * const {google} = require('googleapis');
3334
+ * const chromemanagement = google.chromemanagement('v1');
3335
+ *
3336
+ * async function main() {
3337
+ * const auth = new google.auth.GoogleAuth({
3338
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3339
+ * scopes: ['https://www.googleapis.com/auth/chrome.management.profiles'],
3340
+ * });
3341
+ *
3342
+ * // Acquire an auth client, and bind it to all future calls
3343
+ * const authClient = await auth.getClient();
3344
+ * google.options({auth: authClient});
3345
+ *
3346
+ * // Do the magic
3347
+ * const res = await chromemanagement.customers.profiles.delete({
3348
+ * // Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}
3349
+ * name: 'customers/my-customer/profiles/my-profile',
3350
+ * });
3351
+ * console.log(res.data);
3352
+ *
3353
+ * // Example response
3354
+ * // {}
3355
+ * }
3356
+ *
3357
+ * main().catch(e => {
3358
+ * console.error(e);
3359
+ * throw e;
3360
+ * });
3361
+ *
3362
+ * ```
2834
3363
  *
2835
3364
  * @param params - Parameters for request
2836
3365
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2845,6 +3374,80 @@ export declare namespace chromemanagement_v1 {
2845
3374
  delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
2846
3375
  /**
2847
3376
  * Gets a Chrome browser profile with customer ID and profile permanent ID.
3377
+ * @example
3378
+ * ```js
3379
+ * // Before running the sample:
3380
+ * // - Enable the API at:
3381
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
3382
+ * // - Login into gcloud by running:
3383
+ * // ```sh
3384
+ * // $ gcloud auth application-default login
3385
+ * // ```
3386
+ * // - Install the npm module by running:
3387
+ * // ```sh
3388
+ * // $ npm install googleapis
3389
+ * // ```
3390
+ *
3391
+ * const {google} = require('googleapis');
3392
+ * const chromemanagement = google.chromemanagement('v1');
3393
+ *
3394
+ * async function main() {
3395
+ * const auth = new google.auth.GoogleAuth({
3396
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3397
+ * scopes: [
3398
+ * 'https://www.googleapis.com/auth/chrome.management.profiles',
3399
+ * 'https://www.googleapis.com/auth/chrome.management.profiles.readonly',
3400
+ * ],
3401
+ * });
3402
+ *
3403
+ * // Acquire an auth client, and bind it to all future calls
3404
+ * const authClient = await auth.getClient();
3405
+ * google.options({auth: authClient});
3406
+ *
3407
+ * // Do the magic
3408
+ * const res = await chromemanagement.customers.profiles.get({
3409
+ * // Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}
3410
+ * name: 'customers/my-customer/profiles/my-profile',
3411
+ * });
3412
+ * console.log(res.data);
3413
+ *
3414
+ * // Example response
3415
+ * // {
3416
+ * // "affiliationState": "my_affiliationState",
3417
+ * // "annotatedLocation": "my_annotatedLocation",
3418
+ * // "annotatedUser": "my_annotatedUser",
3419
+ * // "attestationCredential": {},
3420
+ * // "browserChannel": "my_browserChannel",
3421
+ * // "browserVersion": "my_browserVersion",
3422
+ * // "deviceInfo": {},
3423
+ * // "displayName": "my_displayName",
3424
+ * // "etag": "my_etag",
3425
+ * // "extensionCount": "my_extensionCount",
3426
+ * // "firstEnrollmentTime": "my_firstEnrollmentTime",
3427
+ * // "identityProvider": "my_identityProvider",
3428
+ * // "lastActivityTime": "my_lastActivityTime",
3429
+ * // "lastPolicyFetchTime": "my_lastPolicyFetchTime",
3430
+ * // "lastPolicySyncTime": "my_lastPolicySyncTime",
3431
+ * // "lastStatusReportTime": "my_lastStatusReportTime",
3432
+ * // "name": "my_name",
3433
+ * // "osPlatformType": "my_osPlatformType",
3434
+ * // "osPlatformVersion": "my_osPlatformVersion",
3435
+ * // "osVersion": "my_osVersion",
3436
+ * // "policyCount": "my_policyCount",
3437
+ * // "profileId": "my_profileId",
3438
+ * // "profilePermanentId": "my_profilePermanentId",
3439
+ * // "reportingData": {},
3440
+ * // "userEmail": "my_userEmail",
3441
+ * // "userId": "my_userId"
3442
+ * // }
3443
+ * }
3444
+ *
3445
+ * main().catch(e => {
3446
+ * console.error(e);
3447
+ * throw e;
3448
+ * });
3449
+ *
3450
+ * ```
2848
3451
  *
2849
3452
  * @param params - Parameters for request
2850
3453
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2859,6 +3462,65 @@ export declare namespace chromemanagement_v1 {
2859
3462
  get(callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>): void;
2860
3463
  /**
2861
3464
  * Lists Chrome browser profiles of a customer based on the given search and sorting criteria.
3465
+ * @example
3466
+ * ```js
3467
+ * // Before running the sample:
3468
+ * // - Enable the API at:
3469
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
3470
+ * // - Login into gcloud by running:
3471
+ * // ```sh
3472
+ * // $ gcloud auth application-default login
3473
+ * // ```
3474
+ * // - Install the npm module by running:
3475
+ * // ```sh
3476
+ * // $ npm install googleapis
3477
+ * // ```
3478
+ *
3479
+ * const {google} = require('googleapis');
3480
+ * const chromemanagement = google.chromemanagement('v1');
3481
+ *
3482
+ * async function main() {
3483
+ * const auth = new google.auth.GoogleAuth({
3484
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3485
+ * scopes: [
3486
+ * 'https://www.googleapis.com/auth/chrome.management.profiles',
3487
+ * 'https://www.googleapis.com/auth/chrome.management.profiles.readonly',
3488
+ * ],
3489
+ * });
3490
+ *
3491
+ * // Acquire an auth client, and bind it to all future calls
3492
+ * const authClient = await auth.getClient();
3493
+ * google.options({auth: authClient});
3494
+ *
3495
+ * // Do the magic
3496
+ * const res = await chromemanagement.customers.profiles.list({
3497
+ * // 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.
3498
+ * filter: 'placeholder-value',
3499
+ * // 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.
3500
+ * orderBy: 'placeholder-value',
3501
+ * // 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.
3502
+ * pageSize: 'placeholder-value',
3503
+ * // Optional. The page token used to retrieve a specific page of the listing request.
3504
+ * pageToken: 'placeholder-value',
3505
+ * // Required. Format: customers/{customer_id\}
3506
+ * parent: 'customers/my-customer',
3507
+ * });
3508
+ * console.log(res.data);
3509
+ *
3510
+ * // Example response
3511
+ * // {
3512
+ * // "chromeBrowserProfiles": [],
3513
+ * // "nextPageToken": "my_nextPageToken",
3514
+ * // "totalSize": "my_totalSize"
3515
+ * // }
3516
+ * }
3517
+ *
3518
+ * main().catch(e => {
3519
+ * console.error(e);
3520
+ * throw e;
3521
+ * });
3522
+ *
3523
+ * ```
2862
3524
  *
2863
3525
  * @param params - Parameters for request
2864
3526
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2906,11 +3568,318 @@ export declare namespace chromemanagement_v1 {
2906
3568
  */
2907
3569
  parent?: string;
2908
3570
  }
3571
+ export class Resource$Customers$Profiles$Commands {
3572
+ context: APIRequestContext;
3573
+ constructor(context: APIRequestContext);
3574
+ /**
3575
+ * Creates a Chrome browser profile remote command.
3576
+ * @example
3577
+ * ```js
3578
+ * // Before running the sample:
3579
+ * // - Enable the API at:
3580
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
3581
+ * // - Login into gcloud by running:
3582
+ * // ```sh
3583
+ * // $ gcloud auth application-default login
3584
+ * // ```
3585
+ * // - Install the npm module by running:
3586
+ * // ```sh
3587
+ * // $ npm install googleapis
3588
+ * // ```
3589
+ *
3590
+ * const {google} = require('googleapis');
3591
+ * const chromemanagement = google.chromemanagement('v1');
3592
+ *
3593
+ * async function main() {
3594
+ * const auth = new google.auth.GoogleAuth({
3595
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3596
+ * scopes: ['https://www.googleapis.com/auth/chrome.management.profiles'],
3597
+ * });
3598
+ *
3599
+ * // Acquire an auth client, and bind it to all future calls
3600
+ * const authClient = await auth.getClient();
3601
+ * google.options({auth: authClient});
3602
+ *
3603
+ * // Do the magic
3604
+ * const res = await chromemanagement.customers.profiles.commands.create({
3605
+ * // Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}
3606
+ * parent: 'customers/my-customer/profiles/my-profile',
3607
+ *
3608
+ * // Request body metadata
3609
+ * requestBody: {
3610
+ * // request body parameters
3611
+ * // {
3612
+ * // "commandResult": {},
3613
+ * // "commandState": "my_commandState",
3614
+ * // "commandType": "my_commandType",
3615
+ * // "issueTime": "my_issueTime",
3616
+ * // "name": "my_name",
3617
+ * // "payload": {},
3618
+ * // "validDuration": "my_validDuration"
3619
+ * // }
3620
+ * },
3621
+ * });
3622
+ * console.log(res.data);
3623
+ *
3624
+ * // Example response
3625
+ * // {
3626
+ * // "commandResult": {},
3627
+ * // "commandState": "my_commandState",
3628
+ * // "commandType": "my_commandType",
3629
+ * // "issueTime": "my_issueTime",
3630
+ * // "name": "my_name",
3631
+ * // "payload": {},
3632
+ * // "validDuration": "my_validDuration"
3633
+ * // }
3634
+ * }
3635
+ *
3636
+ * main().catch(e => {
3637
+ * console.error(e);
3638
+ * throw e;
3639
+ * });
3640
+ *
3641
+ * ```
3642
+ *
3643
+ * @param params - Parameters for request
3644
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3645
+ * @param callback - Optional callback that handles the response.
3646
+ * @returns A promise if used with async/await, or void if used with a callback.
3647
+ */
3648
+ create(params: Params$Resource$Customers$Profiles$Commands$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
3649
+ create(params?: Params$Resource$Customers$Profiles$Commands$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>>;
3650
+ create(params: Params$Resource$Customers$Profiles$Commands$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3651
+ create(params: Params$Resource$Customers$Profiles$Commands$Create, options: MethodOptions | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>, callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>): void;
3652
+ create(params: Params$Resource$Customers$Profiles$Commands$Create, callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>): void;
3653
+ create(callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>): void;
3654
+ /**
3655
+ * Gets a Chrome browser profile remote command.
3656
+ * @example
3657
+ * ```js
3658
+ * // Before running the sample:
3659
+ * // - Enable the API at:
3660
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
3661
+ * // - Login into gcloud by running:
3662
+ * // ```sh
3663
+ * // $ gcloud auth application-default login
3664
+ * // ```
3665
+ * // - Install the npm module by running:
3666
+ * // ```sh
3667
+ * // $ npm install googleapis
3668
+ * // ```
3669
+ *
3670
+ * const {google} = require('googleapis');
3671
+ * const chromemanagement = google.chromemanagement('v1');
3672
+ *
3673
+ * async function main() {
3674
+ * const auth = new google.auth.GoogleAuth({
3675
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3676
+ * scopes: [
3677
+ * 'https://www.googleapis.com/auth/chrome.management.profiles',
3678
+ * 'https://www.googleapis.com/auth/chrome.management.profiles.readonly',
3679
+ * ],
3680
+ * });
3681
+ *
3682
+ * // Acquire an auth client, and bind it to all future calls
3683
+ * const authClient = await auth.getClient();
3684
+ * google.options({auth: authClient});
3685
+ *
3686
+ * // Do the magic
3687
+ * const res = await chromemanagement.customers.profiles.commands.get({
3688
+ * // Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}/commands/{command_id\}
3689
+ * name: 'customers/my-customer/profiles/my-profile/commands/my-command',
3690
+ * });
3691
+ * console.log(res.data);
3692
+ *
3693
+ * // Example response
3694
+ * // {
3695
+ * // "commandResult": {},
3696
+ * // "commandState": "my_commandState",
3697
+ * // "commandType": "my_commandType",
3698
+ * // "issueTime": "my_issueTime",
3699
+ * // "name": "my_name",
3700
+ * // "payload": {},
3701
+ * // "validDuration": "my_validDuration"
3702
+ * // }
3703
+ * }
3704
+ *
3705
+ * main().catch(e => {
3706
+ * console.error(e);
3707
+ * throw e;
3708
+ * });
3709
+ *
3710
+ * ```
3711
+ *
3712
+ * @param params - Parameters for request
3713
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3714
+ * @param callback - Optional callback that handles the response.
3715
+ * @returns A promise if used with async/await, or void if used with a callback.
3716
+ */
3717
+ get(params: Params$Resource$Customers$Profiles$Commands$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
3718
+ get(params?: Params$Resource$Customers$Profiles$Commands$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>>;
3719
+ get(params: Params$Resource$Customers$Profiles$Commands$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3720
+ get(params: Params$Resource$Customers$Profiles$Commands$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>, callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>): void;
3721
+ get(params: Params$Resource$Customers$Profiles$Commands$Get, callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>): void;
3722
+ get(callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand>): void;
3723
+ /**
3724
+ * Lists remote commands of a Chrome browser profile.
3725
+ * @example
3726
+ * ```js
3727
+ * // Before running the sample:
3728
+ * // - Enable the API at:
3729
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
3730
+ * // - Login into gcloud by running:
3731
+ * // ```sh
3732
+ * // $ gcloud auth application-default login
3733
+ * // ```
3734
+ * // - Install the npm module by running:
3735
+ * // ```sh
3736
+ * // $ npm install googleapis
3737
+ * // ```
3738
+ *
3739
+ * const {google} = require('googleapis');
3740
+ * const chromemanagement = google.chromemanagement('v1');
3741
+ *
3742
+ * async function main() {
3743
+ * const auth = new google.auth.GoogleAuth({
3744
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3745
+ * scopes: [
3746
+ * 'https://www.googleapis.com/auth/chrome.management.profiles',
3747
+ * 'https://www.googleapis.com/auth/chrome.management.profiles.readonly',
3748
+ * ],
3749
+ * });
3750
+ *
3751
+ * // Acquire an auth client, and bind it to all future calls
3752
+ * const authClient = await auth.getClient();
3753
+ * google.options({auth: authClient});
3754
+ *
3755
+ * // Do the magic
3756
+ * const res = await chromemanagement.customers.profiles.commands.list({
3757
+ * // 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.
3758
+ * pageSize: 'placeholder-value',
3759
+ * // Optional. The page token used to retrieve a specific page of the listing request.
3760
+ * pageToken: 'placeholder-value',
3761
+ * // Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}
3762
+ * parent: 'customers/my-customer/profiles/my-profile',
3763
+ * });
3764
+ * console.log(res.data);
3765
+ *
3766
+ * // Example response
3767
+ * // {
3768
+ * // "chromeBrowserProfileCommands": [],
3769
+ * // "nextPageToken": "my_nextPageToken",
3770
+ * // "totalSize": "my_totalSize"
3771
+ * // }
3772
+ * }
3773
+ *
3774
+ * main().catch(e => {
3775
+ * console.error(e);
3776
+ * throw e;
3777
+ * });
3778
+ *
3779
+ * ```
3780
+ *
3781
+ * @param params - Parameters for request
3782
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3783
+ * @param callback - Optional callback that handles the response.
3784
+ * @returns A promise if used with async/await, or void if used with a callback.
3785
+ */
3786
+ list(params: Params$Resource$Customers$Profiles$Commands$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
3787
+ list(params?: Params$Resource$Customers$Profiles$Commands$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ListChromeBrowserProfileCommandsResponse>>;
3788
+ list(params: Params$Resource$Customers$Profiles$Commands$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3789
+ list(params: Params$Resource$Customers$Profiles$Commands$List, options: MethodOptions | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListChromeBrowserProfileCommandsResponse>, callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListChromeBrowserProfileCommandsResponse>): void;
3790
+ list(params: Params$Resource$Customers$Profiles$Commands$List, callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListChromeBrowserProfileCommandsResponse>): void;
3791
+ list(callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListChromeBrowserProfileCommandsResponse>): void;
3792
+ }
3793
+ export interface Params$Resource$Customers$Profiles$Commands$Create extends StandardParameters {
3794
+ /**
3795
+ * Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}
3796
+ */
3797
+ parent?: string;
3798
+ /**
3799
+ * Request body metadata
3800
+ */
3801
+ requestBody?: Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfileCommand;
3802
+ }
3803
+ export interface Params$Resource$Customers$Profiles$Commands$Get extends StandardParameters {
3804
+ /**
3805
+ * Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}/commands/{command_id\}
3806
+ */
3807
+ name?: string;
3808
+ }
3809
+ export interface Params$Resource$Customers$Profiles$Commands$List extends StandardParameters {
3810
+ /**
3811
+ * 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.
3812
+ */
3813
+ pageSize?: number;
3814
+ /**
3815
+ * Optional. The page token used to retrieve a specific page of the listing request.
3816
+ */
3817
+ pageToken?: string;
3818
+ /**
3819
+ * Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}
3820
+ */
3821
+ parent?: string;
3822
+ }
2909
3823
  export class Resource$Customers$Reports {
2910
3824
  context: APIRequestContext;
2911
3825
  constructor(context: APIRequestContext);
2912
3826
  /**
2913
3827
  * Count of Chrome Browsers that have been recently enrolled, have new policy to be synced, or have no recent activity.
3828
+ * @example
3829
+ * ```js
3830
+ * // Before running the sample:
3831
+ * // - Enable the API at:
3832
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
3833
+ * // - Login into gcloud by running:
3834
+ * // ```sh
3835
+ * // $ gcloud auth application-default login
3836
+ * // ```
3837
+ * // - Install the npm module by running:
3838
+ * // ```sh
3839
+ * // $ npm install googleapis
3840
+ * // ```
3841
+ *
3842
+ * const {google} = require('googleapis');
3843
+ * const chromemanagement = google.chromemanagement('v1');
3844
+ *
3845
+ * async function main() {
3846
+ * const auth = new google.auth.GoogleAuth({
3847
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3848
+ * scopes: [
3849
+ * 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
3850
+ * ],
3851
+ * });
3852
+ *
3853
+ * // Acquire an auth client, and bind it to all future calls
3854
+ * const authClient = await auth.getClient();
3855
+ * google.options({auth: authClient});
3856
+ *
3857
+ * // Do the magic
3858
+ * const res =
3859
+ * await chromemanagement.customers.reports.countChromeBrowsersNeedingAttention(
3860
+ * {
3861
+ * // Required. The customer ID or "my_customer" prefixed with "customers/".
3862
+ * customer: 'customers/my-customer',
3863
+ * // Optional. The ID of the organizational unit. If omitted, all data will be returned.
3864
+ * orgUnitId: 'placeholder-value',
3865
+ * },
3866
+ * );
3867
+ * console.log(res.data);
3868
+ *
3869
+ * // Example response
3870
+ * // {
3871
+ * // "noRecentActivityCount": "my_noRecentActivityCount",
3872
+ * // "pendingBrowserUpdateCount": "my_pendingBrowserUpdateCount",
3873
+ * // "recentlyEnrolledCount": "my_recentlyEnrolledCount"
3874
+ * // }
3875
+ * }
3876
+ *
3877
+ * main().catch(e => {
3878
+ * console.error(e);
3879
+ * throw e;
3880
+ * });
3881
+ *
3882
+ * ```
2914
3883
  *
2915
3884
  * @param params - Parameters for request
2916
3885
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2925,6 +3894,60 @@ export declare namespace chromemanagement_v1 {
2925
3894
  countChromeBrowsersNeedingAttention(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>): void;
2926
3895
  /**
2927
3896
  * Get a count of Chrome crash events.
3897
+ * @example
3898
+ * ```js
3899
+ * // Before running the sample:
3900
+ * // - Enable the API at:
3901
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
3902
+ * // - Login into gcloud by running:
3903
+ * // ```sh
3904
+ * // $ gcloud auth application-default login
3905
+ * // ```
3906
+ * // - Install the npm module by running:
3907
+ * // ```sh
3908
+ * // $ npm install googleapis
3909
+ * // ```
3910
+ *
3911
+ * const {google} = require('googleapis');
3912
+ * const chromemanagement = google.chromemanagement('v1');
3913
+ *
3914
+ * async function main() {
3915
+ * const auth = new google.auth.GoogleAuth({
3916
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3917
+ * scopes: [
3918
+ * 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
3919
+ * ],
3920
+ * });
3921
+ *
3922
+ * // Acquire an auth client, and bind it to all future calls
3923
+ * const authClient = await auth.getClient();
3924
+ * google.options({auth: authClient});
3925
+ *
3926
+ * // Do the magic
3927
+ * const res = await chromemanagement.customers.reports.countChromeCrashEvents({
3928
+ * // Customer ID.
3929
+ * customer: 'customers/my-customer',
3930
+ * // 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'`.
3931
+ * filter: 'placeholder-value',
3932
+ * // Field used to order results. Supported order by fields: * browser_version * count * date
3933
+ * orderBy: 'placeholder-value',
3934
+ * // If specified, only count the number of crash events of the devices in this organizational unit.
3935
+ * orgUnitId: 'placeholder-value',
3936
+ * });
3937
+ * console.log(res.data);
3938
+ *
3939
+ * // Example response
3940
+ * // {
3941
+ * // "crashEventCounts": []
3942
+ * // }
3943
+ * }
3944
+ *
3945
+ * main().catch(e => {
3946
+ * console.error(e);
3947
+ * throw e;
3948
+ * });
3949
+ *
3950
+ * ```
2928
3951
  *
2929
3952
  * @param params - Parameters for request
2930
3953
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2939,6 +3962,63 @@ export declare namespace chromemanagement_v1 {
2939
3962
  countChromeCrashEvents(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeCrashEventsResponse>): void;
2940
3963
  /**
2941
3964
  * 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).
3965
+ * @example
3966
+ * ```js
3967
+ * // Before running the sample:
3968
+ * // - Enable the API at:
3969
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
3970
+ * // - Login into gcloud by running:
3971
+ * // ```sh
3972
+ * // $ gcloud auth application-default login
3973
+ * // ```
3974
+ * // - Install the npm module by running:
3975
+ * // ```sh
3976
+ * // $ npm install googleapis
3977
+ * // ```
3978
+ *
3979
+ * const {google} = require('googleapis');
3980
+ * const chromemanagement = google.chromemanagement('v1');
3981
+ *
3982
+ * async function main() {
3983
+ * const auth = new google.auth.GoogleAuth({
3984
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3985
+ * scopes: [
3986
+ * 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
3987
+ * ],
3988
+ * });
3989
+ *
3990
+ * // Acquire an auth client, and bind it to all future calls
3991
+ * const authClient = await auth.getClient();
3992
+ * google.options({auth: authClient});
3993
+ *
3994
+ * // Do the magic
3995
+ * const res =
3996
+ * await chromemanagement.customers.reports.countChromeDevicesReachingAutoExpirationDate(
3997
+ * {
3998
+ * // Required. The customer ID or "my_customer" prefixed with "customers/".
3999
+ * customer: 'customers/my-customer',
4000
+ * // 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.
4001
+ * maxAueDate: 'placeholder-value',
4002
+ * // 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.
4003
+ * minAueDate: 'placeholder-value',
4004
+ * // Optional. The organizational unit ID, if omitted, will return data for all organizational units.
4005
+ * orgUnitId: 'placeholder-value',
4006
+ * },
4007
+ * );
4008
+ * console.log(res.data);
4009
+ *
4010
+ * // Example response
4011
+ * // {
4012
+ * // "deviceAueCountReports": []
4013
+ * // }
4014
+ * }
4015
+ *
4016
+ * main().catch(e => {
4017
+ * console.error(e);
4018
+ * throw e;
4019
+ * });
4020
+ *
4021
+ * ```
2942
4022
  *
2943
4023
  * @param params - Parameters for request
2944
4024
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2953,6 +4033,65 @@ export declare namespace chromemanagement_v1 {
2953
4033
  countChromeDevicesReachingAutoExpirationDate(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse>): void;
2954
4034
  /**
2955
4035
  * 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
4036
+ * @example
4037
+ * ```js
4038
+ * // Before running the sample:
4039
+ * // - Enable the API at:
4040
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
4041
+ * // - Login into gcloud by running:
4042
+ * // ```sh
4043
+ * // $ gcloud auth application-default login
4044
+ * // ```
4045
+ * // - Install the npm module by running:
4046
+ * // ```sh
4047
+ * // $ npm install googleapis
4048
+ * // ```
4049
+ *
4050
+ * const {google} = require('googleapis');
4051
+ * const chromemanagement = google.chromemanagement('v1');
4052
+ *
4053
+ * async function main() {
4054
+ * const auth = new google.auth.GoogleAuth({
4055
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4056
+ * scopes: [
4057
+ * 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
4058
+ * ],
4059
+ * });
4060
+ *
4061
+ * // Acquire an auth client, and bind it to all future calls
4062
+ * const authClient = await auth.getClient();
4063
+ * google.options({auth: authClient});
4064
+ *
4065
+ * // Do the magic
4066
+ * const res =
4067
+ * await chromemanagement.customers.reports.countChromeDevicesThatNeedAttention(
4068
+ * {
4069
+ * // Required. The customer ID or "my_customer" prefixed with "customers/".
4070
+ * customer: 'customers/my-customer',
4071
+ * // Optional. The ID of the organizational unit. If omitted, all data will be returned.
4072
+ * orgUnitId: 'placeholder-value',
4073
+ * // Required. Mask of the fields that should be populated in the returned report.
4074
+ * readMask: 'placeholder-value',
4075
+ * },
4076
+ * );
4077
+ * console.log(res.data);
4078
+ *
4079
+ * // Example response
4080
+ * // {
4081
+ * // "noRecentPolicySyncCount": "my_noRecentPolicySyncCount",
4082
+ * // "noRecentUserActivityCount": "my_noRecentUserActivityCount",
4083
+ * // "osVersionNotCompliantCount": "my_osVersionNotCompliantCount",
4084
+ * // "pendingUpdate": "my_pendingUpdate",
4085
+ * // "unsupportedPolicyCount": "my_unsupportedPolicyCount"
4086
+ * // }
4087
+ * }
4088
+ *
4089
+ * main().catch(e => {
4090
+ * console.error(e);
4091
+ * throw e;
4092
+ * });
4093
+ *
4094
+ * ```
2956
4095
  *
2957
4096
  * @param params - Parameters for request
2958
4097
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2967,6 +4106,62 @@ export declare namespace chromemanagement_v1 {
2967
4106
  countChromeDevicesThatNeedAttention(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse>): void;
2968
4107
  /**
2969
4108
  * 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
4109
+ * @example
4110
+ * ```js
4111
+ * // Before running the sample:
4112
+ * // - Enable the API at:
4113
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
4114
+ * // - Login into gcloud by running:
4115
+ * // ```sh
4116
+ * // $ gcloud auth application-default login
4117
+ * // ```
4118
+ * // - Install the npm module by running:
4119
+ * // ```sh
4120
+ * // $ npm install googleapis
4121
+ * // ```
4122
+ *
4123
+ * const {google} = require('googleapis');
4124
+ * const chromemanagement = google.chromemanagement('v1');
4125
+ *
4126
+ * async function main() {
4127
+ * const auth = new google.auth.GoogleAuth({
4128
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4129
+ * scopes: [
4130
+ * 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
4131
+ * ],
4132
+ * });
4133
+ *
4134
+ * // Acquire an auth client, and bind it to all future calls
4135
+ * const authClient = await auth.getClient();
4136
+ * google.options({auth: authClient});
4137
+ *
4138
+ * // Do the magic
4139
+ * const res =
4140
+ * await chromemanagement.customers.reports.countChromeHardwareFleetDevices({
4141
+ * // Required. The customer ID or "my_customer".
4142
+ * customer: 'customers/my-customer',
4143
+ * // Optional. The ID of the organizational unit. If omitted, all data will be returned.
4144
+ * orgUnitId: 'placeholder-value',
4145
+ * // Required. Mask of the fields that should be populated in the returned report.
4146
+ * readMask: 'placeholder-value',
4147
+ * });
4148
+ * console.log(res.data);
4149
+ *
4150
+ * // Example response
4151
+ * // {
4152
+ * // "cpuReports": [],
4153
+ * // "memoryReports": [],
4154
+ * // "modelReports": [],
4155
+ * // "storageReports": []
4156
+ * // }
4157
+ * }
4158
+ *
4159
+ * main().catch(e => {
4160
+ * console.error(e);
4161
+ * throw e;
4162
+ * });
4163
+ *
4164
+ * ```
2970
4165
  *
2971
4166
  * @param params - Parameters for request
2972
4167
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2981,6 +4176,64 @@ export declare namespace chromemanagement_v1 {
2981
4176
  countChromeHardwareFleetDevices(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse>): void;
2982
4177
  /**
2983
4178
  * Generate report of installed Chrome versions.
4179
+ * @example
4180
+ * ```js
4181
+ * // Before running the sample:
4182
+ * // - Enable the API at:
4183
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
4184
+ * // - Login into gcloud by running:
4185
+ * // ```sh
4186
+ * // $ gcloud auth application-default login
4187
+ * // ```
4188
+ * // - Install the npm module by running:
4189
+ * // ```sh
4190
+ * // $ npm install googleapis
4191
+ * // ```
4192
+ *
4193
+ * const {google} = require('googleapis');
4194
+ * const chromemanagement = google.chromemanagement('v1');
4195
+ *
4196
+ * async function main() {
4197
+ * const auth = new google.auth.GoogleAuth({
4198
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4199
+ * scopes: [
4200
+ * 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
4201
+ * ],
4202
+ * });
4203
+ *
4204
+ * // Acquire an auth client, and bind it to all future calls
4205
+ * const authClient = await auth.getClient();
4206
+ * google.options({auth: authClient});
4207
+ *
4208
+ * // Do the magic
4209
+ * const res = await chromemanagement.customers.reports.countChromeVersions({
4210
+ * // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
4211
+ * customer: 'customers/my-customer',
4212
+ * // 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
4213
+ * filter: 'placeholder-value',
4214
+ * // The ID of the organizational unit.
4215
+ * orgUnitId: 'placeholder-value',
4216
+ * // Maximum number of results to return. Maximum and default are 100.
4217
+ * pageSize: 'placeholder-value',
4218
+ * // Token to specify the page of the request to be returned.
4219
+ * pageToken: 'placeholder-value',
4220
+ * });
4221
+ * console.log(res.data);
4222
+ *
4223
+ * // Example response
4224
+ * // {
4225
+ * // "browserVersions": [],
4226
+ * // "nextPageToken": "my_nextPageToken",
4227
+ * // "totalSize": 0
4228
+ * // }
4229
+ * }
4230
+ *
4231
+ * main().catch(e => {
4232
+ * console.error(e);
4233
+ * throw e;
4234
+ * });
4235
+ *
4236
+ * ```
2984
4237
  *
2985
4238
  * @param params - Parameters for request
2986
4239
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2995,6 +4248,66 @@ export declare namespace chromemanagement_v1 {
2995
4248
  countChromeVersions(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeVersionsResponse>): void;
2996
4249
  /**
2997
4250
  * Generate report of app installations.
4251
+ * @example
4252
+ * ```js
4253
+ * // Before running the sample:
4254
+ * // - Enable the API at:
4255
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
4256
+ * // - Login into gcloud by running:
4257
+ * // ```sh
4258
+ * // $ gcloud auth application-default login
4259
+ * // ```
4260
+ * // - Install the npm module by running:
4261
+ * // ```sh
4262
+ * // $ npm install googleapis
4263
+ * // ```
4264
+ *
4265
+ * const {google} = require('googleapis');
4266
+ * const chromemanagement = google.chromemanagement('v1');
4267
+ *
4268
+ * async function main() {
4269
+ * const auth = new google.auth.GoogleAuth({
4270
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4271
+ * scopes: [
4272
+ * 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
4273
+ * ],
4274
+ * });
4275
+ *
4276
+ * // Acquire an auth client, and bind it to all future calls
4277
+ * const authClient = await auth.getClient();
4278
+ * google.options({auth: authClient});
4279
+ *
4280
+ * // Do the magic
4281
+ * const res = await chromemanagement.customers.reports.countInstalledApps({
4282
+ * // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
4283
+ * customer: 'customers/my-customer',
4284
+ * // 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
4285
+ * filter: 'placeholder-value',
4286
+ * // 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
4287
+ * orderBy: 'placeholder-value',
4288
+ * // The ID of the organizational unit.
4289
+ * orgUnitId: 'placeholder-value',
4290
+ * // Maximum number of results to return. Maximum and default are 100.
4291
+ * pageSize: 'placeholder-value',
4292
+ * // Token to specify the page of the request to be returned.
4293
+ * pageToken: 'placeholder-value',
4294
+ * });
4295
+ * console.log(res.data);
4296
+ *
4297
+ * // Example response
4298
+ * // {
4299
+ * // "installedApps": [],
4300
+ * // "nextPageToken": "my_nextPageToken",
4301
+ * // "totalSize": 0
4302
+ * // }
4303
+ * }
4304
+ *
4305
+ * main().catch(e => {
4306
+ * console.error(e);
4307
+ * throw e;
4308
+ * });
4309
+ *
4310
+ * ```
2998
4311
  *
2999
4312
  * @param params - Parameters for request
3000
4313
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3009,6 +4322,66 @@ export declare namespace chromemanagement_v1 {
3009
4322
  countInstalledApps(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountInstalledAppsResponse>): void;
3010
4323
  /**
3011
4324
  * Get a summary of printing done by each printer.
4325
+ * @example
4326
+ * ```js
4327
+ * // Before running the sample:
4328
+ * // - Enable the API at:
4329
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
4330
+ * // - Login into gcloud by running:
4331
+ * // ```sh
4332
+ * // $ gcloud auth application-default login
4333
+ * // ```
4334
+ * // - Install the npm module by running:
4335
+ * // ```sh
4336
+ * // $ npm install googleapis
4337
+ * // ```
4338
+ *
4339
+ * const {google} = require('googleapis');
4340
+ * const chromemanagement = google.chromemanagement('v1');
4341
+ *
4342
+ * async function main() {
4343
+ * const auth = new google.auth.GoogleAuth({
4344
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4345
+ * scopes: [
4346
+ * 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
4347
+ * ],
4348
+ * });
4349
+ *
4350
+ * // Acquire an auth client, and bind it to all future calls
4351
+ * const authClient = await auth.getClient();
4352
+ * google.options({auth: authClient});
4353
+ *
4354
+ * // Do the magic
4355
+ * const res = await chromemanagement.customers.reports.countPrintJobsByPrinter({
4356
+ * // Required. Customer ID prefixed with "customers/" or "customers/my_customer" to use the customer associated to the account making the request.
4357
+ * customer: 'customers/my-customer',
4358
+ * // 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
4359
+ * filter: 'placeholder-value',
4360
+ * // 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
4361
+ * orderBy: 'placeholder-value',
4362
+ * // Maximum number of results to return. Maximum and default are 100.
4363
+ * pageSize: 'placeholder-value',
4364
+ * // Token to specify the page of the response to be returned.
4365
+ * pageToken: 'placeholder-value',
4366
+ * // 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.
4367
+ * printerOrgUnitId: 'placeholder-value',
4368
+ * });
4369
+ * console.log(res.data);
4370
+ *
4371
+ * // Example response
4372
+ * // {
4373
+ * // "nextPageToken": "my_nextPageToken",
4374
+ * // "printerReports": [],
4375
+ * // "totalSize": "my_totalSize"
4376
+ * // }
4377
+ * }
4378
+ *
4379
+ * main().catch(e => {
4380
+ * console.error(e);
4381
+ * throw e;
4382
+ * });
4383
+ *
4384
+ * ```
3012
4385
  *
3013
4386
  * @param params - Parameters for request
3014
4387
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3023,6 +4396,66 @@ export declare namespace chromemanagement_v1 {
3023
4396
  countPrintJobsByPrinter(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse>): void;
3024
4397
  /**
3025
4398
  * Get a summary of printing done by each user.
4399
+ * @example
4400
+ * ```js
4401
+ * // Before running the sample:
4402
+ * // - Enable the API at:
4403
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
4404
+ * // - Login into gcloud by running:
4405
+ * // ```sh
4406
+ * // $ gcloud auth application-default login
4407
+ * // ```
4408
+ * // - Install the npm module by running:
4409
+ * // ```sh
4410
+ * // $ npm install googleapis
4411
+ * // ```
4412
+ *
4413
+ * const {google} = require('googleapis');
4414
+ * const chromemanagement = google.chromemanagement('v1');
4415
+ *
4416
+ * async function main() {
4417
+ * const auth = new google.auth.GoogleAuth({
4418
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4419
+ * scopes: [
4420
+ * 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
4421
+ * ],
4422
+ * });
4423
+ *
4424
+ * // Acquire an auth client, and bind it to all future calls
4425
+ * const authClient = await auth.getClient();
4426
+ * google.options({auth: authClient});
4427
+ *
4428
+ * // Do the magic
4429
+ * const res = await chromemanagement.customers.reports.countPrintJobsByUser({
4430
+ * // Required. Customer ID prefixed with "customers/" or "customers/my_customer" to use the customer associated to the account making the request.
4431
+ * customer: 'customers/my-customer',
4432
+ * // 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
4433
+ * filter: 'placeholder-value',
4434
+ * // 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
4435
+ * orderBy: 'placeholder-value',
4436
+ * // Maximum number of results to return. Maximum and default are 100.
4437
+ * pageSize: 'placeholder-value',
4438
+ * // Token to specify the page of the response to be returned.
4439
+ * pageToken: 'placeholder-value',
4440
+ * // 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.
4441
+ * printerOrgUnitId: 'placeholder-value',
4442
+ * });
4443
+ * console.log(res.data);
4444
+ *
4445
+ * // Example response
4446
+ * // {
4447
+ * // "nextPageToken": "my_nextPageToken",
4448
+ * // "totalSize": "my_totalSize",
4449
+ * // "userPrintReports": []
4450
+ * // }
4451
+ * }
4452
+ *
4453
+ * main().catch(e => {
4454
+ * console.error(e);
4455
+ * throw e;
4456
+ * });
4457
+ *
4458
+ * ```
3026
4459
  *
3027
4460
  * @param params - Parameters for request
3028
4461
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3037,6 +4470,66 @@ export declare namespace chromemanagement_v1 {
3037
4470
  countPrintJobsByUser(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse>): void;
3038
4471
  /**
3039
4472
  * Get a list of print jobs.
4473
+ * @example
4474
+ * ```js
4475
+ * // Before running the sample:
4476
+ * // - Enable the API at:
4477
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
4478
+ * // - Login into gcloud by running:
4479
+ * // ```sh
4480
+ * // $ gcloud auth application-default login
4481
+ * // ```
4482
+ * // - Install the npm module by running:
4483
+ * // ```sh
4484
+ * // $ npm install googleapis
4485
+ * // ```
4486
+ *
4487
+ * const {google} = require('googleapis');
4488
+ * const chromemanagement = google.chromemanagement('v1');
4489
+ *
4490
+ * async function main() {
4491
+ * const auth = new google.auth.GoogleAuth({
4492
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4493
+ * scopes: [
4494
+ * 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
4495
+ * ],
4496
+ * });
4497
+ *
4498
+ * // Acquire an auth client, and bind it to all future calls
4499
+ * const authClient = await auth.getClient();
4500
+ * google.options({auth: authClient});
4501
+ *
4502
+ * // Do the magic
4503
+ * const res = await chromemanagement.customers.reports.enumeratePrintJobs({
4504
+ * // Required. Customer ID prefixed with "customers/" or "customers/my_customer" to use the customer associated to the account making the request.
4505
+ * customer: 'customers/my-customer',
4506
+ * // 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
4507
+ * filter: 'placeholder-value',
4508
+ * // 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
4509
+ * orderBy: 'placeholder-value',
4510
+ * // 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.
4511
+ * pageSize: 'placeholder-value',
4512
+ * // 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.
4513
+ * pageToken: 'placeholder-value',
4514
+ * // The ID of the organizational unit for printers. If specified, only print jobs submitted to printers from the specified organizational unit will be returned.
4515
+ * printerOrgUnitId: 'placeholder-value',
4516
+ * });
4517
+ * console.log(res.data);
4518
+ *
4519
+ * // Example response
4520
+ * // {
4521
+ * // "nextPageToken": "my_nextPageToken",
4522
+ * // "printJobs": [],
4523
+ * // "totalSize": "my_totalSize"
4524
+ * // }
4525
+ * }
4526
+ *
4527
+ * main().catch(e => {
4528
+ * console.error(e);
4529
+ * throw e;
4530
+ * });
4531
+ *
4532
+ * ```
3040
4533
  *
3041
4534
  * @param params - Parameters for request
3042
4535
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3051,6 +4544,70 @@ export declare namespace chromemanagement_v1 {
3051
4544
  enumeratePrintJobs(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1EnumeratePrintJobsResponse>): void;
3052
4545
  /**
3053
4546
  * Generate report of managed Chrome browser devices that have a specified app installed.
4547
+ * @example
4548
+ * ```js
4549
+ * // Before running the sample:
4550
+ * // - Enable the API at:
4551
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
4552
+ * // - Login into gcloud by running:
4553
+ * // ```sh
4554
+ * // $ gcloud auth application-default login
4555
+ * // ```
4556
+ * // - Install the npm module by running:
4557
+ * // ```sh
4558
+ * // $ npm install googleapis
4559
+ * // ```
4560
+ *
4561
+ * const {google} = require('googleapis');
4562
+ * const chromemanagement = google.chromemanagement('v1');
4563
+ *
4564
+ * async function main() {
4565
+ * const auth = new google.auth.GoogleAuth({
4566
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4567
+ * scopes: [
4568
+ * 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
4569
+ * ],
4570
+ * });
4571
+ *
4572
+ * // Acquire an auth client, and bind it to all future calls
4573
+ * const authClient = await auth.getClient();
4574
+ * google.options({auth: authClient});
4575
+ *
4576
+ * // Do the magic
4577
+ * const res = await chromemanagement.customers.reports.findInstalledAppDevices({
4578
+ * // 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).
4579
+ * appId: 'placeholder-value',
4580
+ * // Type of the app. Optional. If not provided, an app type will be inferred from the format of the app ID.
4581
+ * appType: 'placeholder-value',
4582
+ * // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
4583
+ * customer: 'customers/my-customer',
4584
+ * // 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
4585
+ * filter: 'placeholder-value',
4586
+ * // Field used to order results. Supported order by fields: * machine * device_id
4587
+ * orderBy: 'placeholder-value',
4588
+ * // The ID of the organizational unit.
4589
+ * orgUnitId: 'placeholder-value',
4590
+ * // Maximum number of results to return. Maximum and default are 100.
4591
+ * pageSize: 'placeholder-value',
4592
+ * // Token to specify the page of the request to be returned.
4593
+ * pageToken: 'placeholder-value',
4594
+ * });
4595
+ * console.log(res.data);
4596
+ *
4597
+ * // Example response
4598
+ * // {
4599
+ * // "devices": [],
4600
+ * // "nextPageToken": "my_nextPageToken",
4601
+ * // "totalSize": 0
4602
+ * // }
4603
+ * }
4604
+ *
4605
+ * main().catch(e => {
4606
+ * console.error(e);
4607
+ * throw e;
4608
+ * });
4609
+ *
4610
+ * ```
3054
4611
  *
3055
4612
  * @param params - Parameters for request
3056
4613
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3311,6 +4868,83 @@ export declare namespace chromemanagement_v1 {
3311
4868
  constructor(context: APIRequestContext);
3312
4869
  /**
3313
4870
  * Get telemetry device.
4871
+ * @example
4872
+ * ```js
4873
+ * // Before running the sample:
4874
+ * // - Enable the API at:
4875
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
4876
+ * // - Login into gcloud by running:
4877
+ * // ```sh
4878
+ * // $ gcloud auth application-default login
4879
+ * // ```
4880
+ * // - Install the npm module by running:
4881
+ * // ```sh
4882
+ * // $ npm install googleapis
4883
+ * // ```
4884
+ *
4885
+ * const {google} = require('googleapis');
4886
+ * const chromemanagement = google.chromemanagement('v1');
4887
+ *
4888
+ * async function main() {
4889
+ * const auth = new google.auth.GoogleAuth({
4890
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4891
+ * scopes: [
4892
+ * 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
4893
+ * ],
4894
+ * });
4895
+ *
4896
+ * // Acquire an auth client, and bind it to all future calls
4897
+ * const authClient = await auth.getClient();
4898
+ * google.options({auth: authClient});
4899
+ *
4900
+ * // Do the magic
4901
+ * const res = await chromemanagement.customers.telemetry.devices.get({
4902
+ * // Required. Name of the `TelemetryDevice` to return.
4903
+ * name: 'customers/my-customer/telemetry/devices/my-device',
4904
+ * // 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
4905
+ * readMask: 'placeholder-value',
4906
+ * });
4907
+ * console.log(res.data);
4908
+ *
4909
+ * // Example response
4910
+ * // {
4911
+ * // "appReport": [],
4912
+ * // "audioStatusReport": [],
4913
+ * // "batteryInfo": [],
4914
+ * // "batteryStatusReport": [],
4915
+ * // "bootPerformanceReport": [],
4916
+ * // "cpuInfo": [],
4917
+ * // "cpuStatusReport": [],
4918
+ * // "customer": "my_customer",
4919
+ * // "deviceId": "my_deviceId",
4920
+ * // "graphicsInfo": {},
4921
+ * // "graphicsStatusReport": [],
4922
+ * // "heartbeatStatusReport": [],
4923
+ * // "kioskAppStatusReport": [],
4924
+ * // "memoryInfo": {},
4925
+ * // "memoryStatusReport": [],
4926
+ * // "name": "my_name",
4927
+ * // "networkBandwidthReport": [],
4928
+ * // "networkDiagnosticsReport": [],
4929
+ * // "networkInfo": {},
4930
+ * // "networkStatusReport": [],
4931
+ * // "orgUnitId": "my_orgUnitId",
4932
+ * // "osUpdateStatus": [],
4933
+ * // "peripheralsReport": [],
4934
+ * // "runtimeCountersReport": [],
4935
+ * // "serialNumber": "my_serialNumber",
4936
+ * // "storageInfo": {},
4937
+ * // "storageStatusReport": [],
4938
+ * // "thunderboltInfo": []
4939
+ * // }
4940
+ * }
4941
+ *
4942
+ * main().catch(e => {
4943
+ * console.error(e);
4944
+ * throw e;
4945
+ * });
4946
+ *
4947
+ * ```
3314
4948
  *
3315
4949
  * @param params - Parameters for request
3316
4950
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3325,6 +4959,63 @@ export declare namespace chromemanagement_v1 {
3325
4959
  get(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1TelemetryDevice>): void;
3326
4960
  /**
3327
4961
  * List all telemetry devices.
4962
+ * @example
4963
+ * ```js
4964
+ * // Before running the sample:
4965
+ * // - Enable the API at:
4966
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
4967
+ * // - Login into gcloud by running:
4968
+ * // ```sh
4969
+ * // $ gcloud auth application-default login
4970
+ * // ```
4971
+ * // - Install the npm module by running:
4972
+ * // ```sh
4973
+ * // $ npm install googleapis
4974
+ * // ```
4975
+ *
4976
+ * const {google} = require('googleapis');
4977
+ * const chromemanagement = google.chromemanagement('v1');
4978
+ *
4979
+ * async function main() {
4980
+ * const auth = new google.auth.GoogleAuth({
4981
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4982
+ * scopes: [
4983
+ * 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
4984
+ * ],
4985
+ * });
4986
+ *
4987
+ * // Acquire an auth client, and bind it to all future calls
4988
+ * const authClient = await auth.getClient();
4989
+ * google.options({auth: authClient});
4990
+ *
4991
+ * // Do the magic
4992
+ * const res = await chromemanagement.customers.telemetry.devices.list({
4993
+ * // 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".
4994
+ * filter: 'placeholder-value',
4995
+ * // Maximum number of results to return. Default value is 100. Maximum value is 1000.
4996
+ * pageSize: 'placeholder-value',
4997
+ * // Token to specify next page in the list.
4998
+ * pageToken: 'placeholder-value',
4999
+ * // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
5000
+ * parent: 'customers/my-customer',
5001
+ * // 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
5002
+ * readMask: 'placeholder-value',
5003
+ * });
5004
+ * console.log(res.data);
5005
+ *
5006
+ * // Example response
5007
+ * // {
5008
+ * // "devices": [],
5009
+ * // "nextPageToken": "my_nextPageToken"
5010
+ * // }
5011
+ * }
5012
+ *
5013
+ * main().catch(e => {
5014
+ * console.error(e);
5015
+ * throw e;
5016
+ * });
5017
+ *
5018
+ * ```
3328
5019
  *
3329
5020
  * @param params - Parameters for request
3330
5021
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3375,6 +5066,63 @@ export declare namespace chromemanagement_v1 {
3375
5066
  constructor(context: APIRequestContext);
3376
5067
  /**
3377
5068
  * List telemetry events.
5069
+ * @example
5070
+ * ```js
5071
+ * // Before running the sample:
5072
+ * // - Enable the API at:
5073
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
5074
+ * // - Login into gcloud by running:
5075
+ * // ```sh
5076
+ * // $ gcloud auth application-default login
5077
+ * // ```
5078
+ * // - Install the npm module by running:
5079
+ * // ```sh
5080
+ * // $ npm install googleapis
5081
+ * // ```
5082
+ *
5083
+ * const {google} = require('googleapis');
5084
+ * const chromemanagement = google.chromemanagement('v1');
5085
+ *
5086
+ * async function main() {
5087
+ * const auth = new google.auth.GoogleAuth({
5088
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5089
+ * scopes: [
5090
+ * 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
5091
+ * ],
5092
+ * });
5093
+ *
5094
+ * // Acquire an auth client, and bind it to all future calls
5095
+ * const authClient = await auth.getClient();
5096
+ * google.options({auth: authClient});
5097
+ *
5098
+ * // Do the magic
5099
+ * const res = await chromemanagement.customers.telemetry.events.list({
5100
+ * // 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".
5101
+ * filter: 'placeholder-value',
5102
+ * // Optional. Maximum number of results to return. Default value is 100. Maximum value is 1000.
5103
+ * pageSize: 'placeholder-value',
5104
+ * // Optional. Token to specify next page in the list.
5105
+ * pageToken: 'placeholder-value',
5106
+ * // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
5107
+ * parent: 'customers/my-customer',
5108
+ * // 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
5109
+ * readMask: 'placeholder-value',
5110
+ * });
5111
+ * console.log(res.data);
5112
+ *
5113
+ * // Example response
5114
+ * // {
5115
+ * // "nextPageToken": "my_nextPageToken",
5116
+ * // "telemetryEvents": []
5117
+ * // }
5118
+ * }
5119
+ *
5120
+ * main().catch(e => {
5121
+ * console.error(e);
5122
+ * throw e;
5123
+ * });
5124
+ *
5125
+ * ```
3378
5126
  *
3379
5127
  * @param params - Parameters for request
3380
5128
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3415,6 +5163,69 @@ export declare namespace chromemanagement_v1 {
3415
5163
  constructor(context: APIRequestContext);
3416
5164
  /**
3417
5165
  * Create a telemetry notification config.
5166
+ * @example
5167
+ * ```js
5168
+ * // Before running the sample:
5169
+ * // - Enable the API at:
5170
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
5171
+ * // - Login into gcloud by running:
5172
+ * // ```sh
5173
+ * // $ gcloud auth application-default login
5174
+ * // ```
5175
+ * // - Install the npm module by running:
5176
+ * // ```sh
5177
+ * // $ npm install googleapis
5178
+ * // ```
5179
+ *
5180
+ * const {google} = require('googleapis');
5181
+ * const chromemanagement = google.chromemanagement('v1');
5182
+ *
5183
+ * async function main() {
5184
+ * const auth = new google.auth.GoogleAuth({
5185
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5186
+ * scopes: [
5187
+ * 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
5188
+ * ],
5189
+ * });
5190
+ *
5191
+ * // Acquire an auth client, and bind it to all future calls
5192
+ * const authClient = await auth.getClient();
5193
+ * google.options({auth: authClient});
5194
+ *
5195
+ * // Do the magic
5196
+ * const res =
5197
+ * await chromemanagement.customers.telemetry.notificationConfigs.create({
5198
+ * // Required. The parent resource where this notification config will be created. Format: `customers/{customer\}`
5199
+ * parent: 'customers/my-customer',
5200
+ *
5201
+ * // Request body metadata
5202
+ * requestBody: {
5203
+ * // request body parameters
5204
+ * // {
5205
+ * // "customer": "my_customer",
5206
+ * // "filter": {},
5207
+ * // "googleCloudPubsubTopic": "my_googleCloudPubsubTopic",
5208
+ * // "name": "my_name"
5209
+ * // }
5210
+ * },
5211
+ * });
5212
+ * console.log(res.data);
5213
+ *
5214
+ * // Example response
5215
+ * // {
5216
+ * // "customer": "my_customer",
5217
+ * // "filter": {},
5218
+ * // "googleCloudPubsubTopic": "my_googleCloudPubsubTopic",
5219
+ * // "name": "my_name"
5220
+ * // }
5221
+ * }
5222
+ *
5223
+ * main().catch(e => {
5224
+ * console.error(e);
5225
+ * throw e;
5226
+ * });
5227
+ *
5228
+ * ```
3418
5229
  *
3419
5230
  * @param params - Parameters for request
3420
5231
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3429,6 +5240,53 @@ export declare namespace chromemanagement_v1 {
3429
5240
  create(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1TelemetryNotificationConfig>): void;
3430
5241
  /**
3431
5242
  * Delete a telemetry notification config.
5243
+ * @example
5244
+ * ```js
5245
+ * // Before running the sample:
5246
+ * // - Enable the API at:
5247
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
5248
+ * // - Login into gcloud by running:
5249
+ * // ```sh
5250
+ * // $ gcloud auth application-default login
5251
+ * // ```
5252
+ * // - Install the npm module by running:
5253
+ * // ```sh
5254
+ * // $ npm install googleapis
5255
+ * // ```
5256
+ *
5257
+ * const {google} = require('googleapis');
5258
+ * const chromemanagement = google.chromemanagement('v1');
5259
+ *
5260
+ * async function main() {
5261
+ * const auth = new google.auth.GoogleAuth({
5262
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5263
+ * scopes: [
5264
+ * 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
5265
+ * ],
5266
+ * });
5267
+ *
5268
+ * // Acquire an auth client, and bind it to all future calls
5269
+ * const authClient = await auth.getClient();
5270
+ * google.options({auth: authClient});
5271
+ *
5272
+ * // Do the magic
5273
+ * const res =
5274
+ * await chromemanagement.customers.telemetry.notificationConfigs.delete({
5275
+ * // Required. The name of the notification config to delete. Format: `customers/{customer\}/telemetry/notificationConfigs/{notification_config\}`
5276
+ * name: 'customers/my-customer/telemetry/notificationConfigs/my-notificationConfig',
5277
+ * });
5278
+ * console.log(res.data);
5279
+ *
5280
+ * // Example response
5281
+ * // {}
5282
+ * }
5283
+ *
5284
+ * main().catch(e => {
5285
+ * console.error(e);
5286
+ * throw e;
5287
+ * });
5288
+ *
5289
+ * ```
3432
5290
  *
3433
5291
  * @param params - Parameters for request
3434
5292
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3443,6 +5301,60 @@ export declare namespace chromemanagement_v1 {
3443
5301
  delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
3444
5302
  /**
3445
5303
  * List all telemetry notification configs.
5304
+ * @example
5305
+ * ```js
5306
+ * // Before running the sample:
5307
+ * // - Enable the API at:
5308
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
5309
+ * // - Login into gcloud by running:
5310
+ * // ```sh
5311
+ * // $ gcloud auth application-default login
5312
+ * // ```
5313
+ * // - Install the npm module by running:
5314
+ * // ```sh
5315
+ * // $ npm install googleapis
5316
+ * // ```
5317
+ *
5318
+ * const {google} = require('googleapis');
5319
+ * const chromemanagement = google.chromemanagement('v1');
5320
+ *
5321
+ * async function main() {
5322
+ * const auth = new google.auth.GoogleAuth({
5323
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5324
+ * scopes: [
5325
+ * 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
5326
+ * ],
5327
+ * });
5328
+ *
5329
+ * // Acquire an auth client, and bind it to all future calls
5330
+ * const authClient = await auth.getClient();
5331
+ * google.options({auth: authClient});
5332
+ *
5333
+ * // Do the magic
5334
+ * const res =
5335
+ * await chromemanagement.customers.telemetry.notificationConfigs.list({
5336
+ * // 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.
5337
+ * pageSize: 'placeholder-value',
5338
+ * // 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.
5339
+ * pageToken: 'placeholder-value',
5340
+ * // Required. The parent which owns the notification configs.
5341
+ * parent: 'customers/my-customer',
5342
+ * });
5343
+ * console.log(res.data);
5344
+ *
5345
+ * // Example response
5346
+ * // {
5347
+ * // "nextPageToken": "my_nextPageToken",
5348
+ * // "telemetryNotificationConfigs": []
5349
+ * // }
5350
+ * }
5351
+ *
5352
+ * main().catch(e => {
5353
+ * console.error(e);
5354
+ * throw e;
5355
+ * });
5356
+ *
5357
+ * ```
3446
5358
  *
3447
5359
  * @param params - Parameters for request
3448
5360
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3491,6 +5403,61 @@ export declare namespace chromemanagement_v1 {
3491
5403
  constructor(context: APIRequestContext);
3492
5404
  /**
3493
5405
  * Get telemetry user.
5406
+ * @example
5407
+ * ```js
5408
+ * // Before running the sample:
5409
+ * // - Enable the API at:
5410
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
5411
+ * // - Login into gcloud by running:
5412
+ * // ```sh
5413
+ * // $ gcloud auth application-default login
5414
+ * // ```
5415
+ * // - Install the npm module by running:
5416
+ * // ```sh
5417
+ * // $ npm install googleapis
5418
+ * // ```
5419
+ *
5420
+ * const {google} = require('googleapis');
5421
+ * const chromemanagement = google.chromemanagement('v1');
5422
+ *
5423
+ * async function main() {
5424
+ * const auth = new google.auth.GoogleAuth({
5425
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5426
+ * scopes: [
5427
+ * 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
5428
+ * ],
5429
+ * });
5430
+ *
5431
+ * // Acquire an auth client, and bind it to all future calls
5432
+ * const authClient = await auth.getClient();
5433
+ * google.options({auth: authClient});
5434
+ *
5435
+ * // Do the magic
5436
+ * const res = await chromemanagement.customers.telemetry.users.get({
5437
+ * // Required. Name of the `TelemetryUser` to return.
5438
+ * name: 'customers/my-customer/telemetry/users/my-user',
5439
+ * // 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
5440
+ * readMask: 'placeholder-value',
5441
+ * });
5442
+ * console.log(res.data);
5443
+ *
5444
+ * // Example response
5445
+ * // {
5446
+ * // "customer": "my_customer",
5447
+ * // "name": "my_name",
5448
+ * // "orgUnitId": "my_orgUnitId",
5449
+ * // "userDevice": [],
5450
+ * // "userEmail": "my_userEmail",
5451
+ * // "userId": "my_userId"
5452
+ * // }
5453
+ * }
5454
+ *
5455
+ * main().catch(e => {
5456
+ * console.error(e);
5457
+ * throw e;
5458
+ * });
5459
+ *
5460
+ * ```
3494
5461
  *
3495
5462
  * @param params - Parameters for request
3496
5463
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3505,6 +5472,63 @@ export declare namespace chromemanagement_v1 {
3505
5472
  get(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1TelemetryUser>): void;
3506
5473
  /**
3507
5474
  * List all telemetry users.
5475
+ * @example
5476
+ * ```js
5477
+ * // Before running the sample:
5478
+ * // - Enable the API at:
5479
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
5480
+ * // - Login into gcloud by running:
5481
+ * // ```sh
5482
+ * // $ gcloud auth application-default login
5483
+ * // ```
5484
+ * // - Install the npm module by running:
5485
+ * // ```sh
5486
+ * // $ npm install googleapis
5487
+ * // ```
5488
+ *
5489
+ * const {google} = require('googleapis');
5490
+ * const chromemanagement = google.chromemanagement('v1');
5491
+ *
5492
+ * async function main() {
5493
+ * const auth = new google.auth.GoogleAuth({
5494
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5495
+ * scopes: [
5496
+ * 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
5497
+ * ],
5498
+ * });
5499
+ *
5500
+ * // Acquire an auth client, and bind it to all future calls
5501
+ * const authClient = await auth.getClient();
5502
+ * google.options({auth: authClient});
5503
+ *
5504
+ * // Do the magic
5505
+ * const res = await chromemanagement.customers.telemetry.users.list({
5506
+ * // Only include resources that match the filter. Supported filter fields: - user_id - user_org_unit_id
5507
+ * filter: 'placeholder-value',
5508
+ * // Maximum number of results to return. Default value is 100. Maximum value is 1000.
5509
+ * pageSize: 'placeholder-value',
5510
+ * // Token to specify next page in the list.
5511
+ * pageToken: 'placeholder-value',
5512
+ * // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
5513
+ * parent: 'customers/my-customer',
5514
+ * // 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
5515
+ * readMask: 'placeholder-value',
5516
+ * });
5517
+ * console.log(res.data);
5518
+ *
5519
+ * // Example response
5520
+ * // {
5521
+ * // "nextPageToken": "my_nextPageToken",
5522
+ * // "telemetryUsers": []
5523
+ * // }
5524
+ * }
5525
+ *
5526
+ * main().catch(e => {
5527
+ * console.error(e);
5528
+ * throw e;
5529
+ * });
5530
+ *
5531
+ * ```
3508
5532
  *
3509
5533
  * @param params - Parameters for request
3510
5534
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.