@googleapis/chromemanagement 19.0.1 → 21.0.1

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/v1.ts CHANGED
@@ -23,7 +23,7 @@ import {
23
23
  Compute,
24
24
  UserRefreshClient,
25
25
  BaseExternalAccountClient,
26
- GaxiosPromise,
26
+ GaxiosResponseWithHTTP2,
27
27
  GoogleConfigurable,
28
28
  createAPIRequest,
29
29
  MethodOptions,
@@ -1892,6 +1892,10 @@ export namespace chromemanagement_v1 {
1892
1892
  * Output only. Payload for network connection state change event. Present only when `event_type` is `NETWORK_STATE_CHANGE`.
1893
1893
  */
1894
1894
  networkStateChangeEvent?: Schema$GoogleChromeManagementV1TelemetryNetworkConnectionStateChangeEvent;
1895
+ /**
1896
+ * Output only. Payload for OS crash event. Present only when `event_type` is `OS_CRASH`.
1897
+ */
1898
+ osCrashEvent?: Schema$GoogleChromeManagementV1TelemetryOsCrashEvent;
1895
1899
  /**
1896
1900
  * Timestamp that represents when the event was reported.
1897
1901
  */
@@ -2007,6 +2011,23 @@ export namespace chromemanagement_v1 {
2007
2011
  */
2008
2012
  userOrgUnitId?: string | null;
2009
2013
  }
2014
+ /**
2015
+ * OS crash data.
2016
+ */
2017
+ export interface Schema$GoogleChromeManagementV1TelemetryOsCrashEvent {
2018
+ /**
2019
+ * Crash id.
2020
+ */
2021
+ crashId?: string | null;
2022
+ /**
2023
+ * Crash type.
2024
+ */
2025
+ crashType?: string | null;
2026
+ /**
2027
+ * Session type.
2028
+ */
2029
+ sessionType?: string | null;
2030
+ }
2010
2031
  /**
2011
2032
  * `TelemetryUsbPeripheralsEvent` is triggered USB devices are either added or removed. * Granular permission needed: TELEMETRY_API_PERIPHERALS_REPORT
2012
2033
  */
@@ -2710,6 +2731,64 @@ export namespace chromemanagement_v1 {
2710
2731
 
2711
2732
  /**
2712
2733
  * Generate summary of app installation requests.
2734
+ * @example
2735
+ * ```js
2736
+ * // Before running the sample:
2737
+ * // - Enable the API at:
2738
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
2739
+ * // - Login into gcloud by running:
2740
+ * // ```sh
2741
+ * // $ gcloud auth application-default login
2742
+ * // ```
2743
+ * // - Install the npm module by running:
2744
+ * // ```sh
2745
+ * // $ npm install googleapis
2746
+ * // ```
2747
+ *
2748
+ * const {google} = require('googleapis');
2749
+ * const chromemanagement = google.chromemanagement('v1');
2750
+ *
2751
+ * async function main() {
2752
+ * const auth = new google.auth.GoogleAuth({
2753
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2754
+ * scopes: [
2755
+ * 'https://www.googleapis.com/auth/chrome.management.appdetails.readonly',
2756
+ * ],
2757
+ * });
2758
+ *
2759
+ * // Acquire an auth client, and bind it to all future calls
2760
+ * const authClient = await auth.getClient();
2761
+ * google.options({auth: authClient});
2762
+ *
2763
+ * // Do the magic
2764
+ * const res = await chromemanagement.customers.apps.countChromeAppRequests({
2765
+ * // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
2766
+ * customer: 'customers/my-customer',
2767
+ * // Field used to order results. Supported fields: * request_count * latest_request_time
2768
+ * orderBy: 'placeholder-value',
2769
+ * // The ID of the organizational unit.
2770
+ * orgUnitId: 'placeholder-value',
2771
+ * // Maximum number of results to return. Maximum and default are 50, anything above will be coerced to 50.
2772
+ * pageSize: 'placeholder-value',
2773
+ * // Token to specify the page of the request to be returned.
2774
+ * pageToken: 'placeholder-value',
2775
+ * });
2776
+ * console.log(res.data);
2777
+ *
2778
+ * // Example response
2779
+ * // {
2780
+ * // "nextPageToken": "my_nextPageToken",
2781
+ * // "requestedApps": [],
2782
+ * // "totalSize": 0
2783
+ * // }
2784
+ * }
2785
+ *
2786
+ * main().catch(e => {
2787
+ * console.error(e);
2788
+ * throw e;
2789
+ * });
2790
+ *
2791
+ * ```
2713
2792
  *
2714
2793
  * @param params - Parameters for request
2715
2794
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2719,11 +2798,13 @@ export namespace chromemanagement_v1 {
2719
2798
  countChromeAppRequests(
2720
2799
  params: Params$Resource$Customers$Apps$Countchromeapprequests,
2721
2800
  options: StreamMethodOptions
2722
- ): GaxiosPromise<Readable>;
2801
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2723
2802
  countChromeAppRequests(
2724
2803
  params?: Params$Resource$Customers$Apps$Countchromeapprequests,
2725
2804
  options?: MethodOptions
2726
- ): GaxiosPromise<Schema$GoogleChromeManagementV1CountChromeAppRequestsResponse>;
2805
+ ): Promise<
2806
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1CountChromeAppRequestsResponse>
2807
+ >;
2727
2808
  countChromeAppRequests(
2728
2809
  params: Params$Resource$Customers$Apps$Countchromeapprequests,
2729
2810
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -2758,8 +2839,10 @@ export namespace chromemanagement_v1 {
2758
2839
  | BodyResponseCallback<Readable>
2759
2840
  ):
2760
2841
  | void
2761
- | GaxiosPromise<Schema$GoogleChromeManagementV1CountChromeAppRequestsResponse>
2762
- | GaxiosPromise<Readable> {
2842
+ | Promise<
2843
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1CountChromeAppRequestsResponse>
2844
+ >
2845
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2763
2846
  let params = (paramsOrCallback ||
2764
2847
  {}) as Params$Resource$Customers$Apps$Countchromeapprequests;
2765
2848
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -2807,6 +2890,65 @@ export namespace chromemanagement_v1 {
2807
2890
 
2808
2891
  /**
2809
2892
  * Get a list of devices that have requested to install an extension.
2893
+ * @example
2894
+ * ```js
2895
+ * // Before running the sample:
2896
+ * // - Enable the API at:
2897
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
2898
+ * // - Login into gcloud by running:
2899
+ * // ```sh
2900
+ * // $ gcloud auth application-default login
2901
+ * // ```
2902
+ * // - Install the npm module by running:
2903
+ * // ```sh
2904
+ * // $ npm install googleapis
2905
+ * // ```
2906
+ *
2907
+ * const {google} = require('googleapis');
2908
+ * const chromemanagement = google.chromemanagement('v1');
2909
+ *
2910
+ * async function main() {
2911
+ * const auth = new google.auth.GoogleAuth({
2912
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2913
+ * scopes: [
2914
+ * 'https://www.googleapis.com/auth/chrome.management.appdetails.readonly',
2915
+ * ],
2916
+ * });
2917
+ *
2918
+ * // Acquire an auth client, and bind it to all future calls
2919
+ * const authClient = await auth.getClient();
2920
+ * google.options({auth: authClient});
2921
+ *
2922
+ * // Do the magic
2923
+ * const res =
2924
+ * await chromemanagement.customers.apps.fetchDevicesRequestingExtension({
2925
+ * // Required. The customer ID or "my_customer" prefixed with "customers/".
2926
+ * customer: 'customers/my-customer',
2927
+ * // Required. The extension for which we want to find requesting devices.
2928
+ * extensionId: 'placeholder-value',
2929
+ * // 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.
2930
+ * orgUnitId: 'placeholder-value',
2931
+ * // Optional. Maximum number of results to return. Maximum and default are 50. Any page size larger than 50 will be coerced to 50.
2932
+ * pageSize: 'placeholder-value',
2933
+ * // Optional. Token to specify the page of the request to be returned. Token expires after 1 day.
2934
+ * pageToken: 'placeholder-value',
2935
+ * });
2936
+ * console.log(res.data);
2937
+ *
2938
+ * // Example response
2939
+ * // {
2940
+ * // "deviceDetails": [],
2941
+ * // "nextPageToken": "my_nextPageToken",
2942
+ * // "totalSize": 0
2943
+ * // }
2944
+ * }
2945
+ *
2946
+ * main().catch(e => {
2947
+ * console.error(e);
2948
+ * throw e;
2949
+ * });
2950
+ *
2951
+ * ```
2810
2952
  *
2811
2953
  * @param params - Parameters for request
2812
2954
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2816,11 +2958,13 @@ export namespace chromemanagement_v1 {
2816
2958
  fetchDevicesRequestingExtension(
2817
2959
  params: Params$Resource$Customers$Apps$Fetchdevicesrequestingextension,
2818
2960
  options: StreamMethodOptions
2819
- ): GaxiosPromise<Readable>;
2961
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2820
2962
  fetchDevicesRequestingExtension(
2821
2963
  params?: Params$Resource$Customers$Apps$Fetchdevicesrequestingextension,
2822
2964
  options?: MethodOptions
2823
- ): GaxiosPromise<Schema$GoogleChromeManagementV1FetchDevicesRequestingExtensionResponse>;
2965
+ ): Promise<
2966
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1FetchDevicesRequestingExtensionResponse>
2967
+ >;
2824
2968
  fetchDevicesRequestingExtension(
2825
2969
  params: Params$Resource$Customers$Apps$Fetchdevicesrequestingextension,
2826
2970
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -2855,8 +2999,10 @@ export namespace chromemanagement_v1 {
2855
2999
  | BodyResponseCallback<Readable>
2856
3000
  ):
2857
3001
  | void
2858
- | GaxiosPromise<Schema$GoogleChromeManagementV1FetchDevicesRequestingExtensionResponse>
2859
- | GaxiosPromise<Readable> {
3002
+ | Promise<
3003
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1FetchDevicesRequestingExtensionResponse>
3004
+ >
3005
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2860
3006
  let params = (paramsOrCallback ||
2861
3007
  {}) as Params$Resource$Customers$Apps$Fetchdevicesrequestingextension;
2862
3008
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -2905,6 +3051,65 @@ export namespace chromemanagement_v1 {
2905
3051
 
2906
3052
  /**
2907
3053
  * Get a list of users that have requested to install an extension.
3054
+ * @example
3055
+ * ```js
3056
+ * // Before running the sample:
3057
+ * // - Enable the API at:
3058
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
3059
+ * // - Login into gcloud by running:
3060
+ * // ```sh
3061
+ * // $ gcloud auth application-default login
3062
+ * // ```
3063
+ * // - Install the npm module by running:
3064
+ * // ```sh
3065
+ * // $ npm install googleapis
3066
+ * // ```
3067
+ *
3068
+ * const {google} = require('googleapis');
3069
+ * const chromemanagement = google.chromemanagement('v1');
3070
+ *
3071
+ * async function main() {
3072
+ * const auth = new google.auth.GoogleAuth({
3073
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3074
+ * scopes: [
3075
+ * 'https://www.googleapis.com/auth/chrome.management.appdetails.readonly',
3076
+ * ],
3077
+ * });
3078
+ *
3079
+ * // Acquire an auth client, and bind it to all future calls
3080
+ * const authClient = await auth.getClient();
3081
+ * google.options({auth: authClient});
3082
+ *
3083
+ * // Do the magic
3084
+ * const res =
3085
+ * await chromemanagement.customers.apps.fetchUsersRequestingExtension({
3086
+ * // Required. The customer ID or "my_customer" prefixed with "customers/".
3087
+ * customer: 'customers/my-customer',
3088
+ * // Required. The extension for which we want to find the requesting users.
3089
+ * extensionId: 'placeholder-value',
3090
+ * // 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.
3091
+ * orgUnitId: 'placeholder-value',
3092
+ * // Optional. Maximum number of results to return. Maximum and default are 50. Any page size larger than 50 will be coerced to 50.
3093
+ * pageSize: 'placeholder-value',
3094
+ * // Optional. Token to specify the page of the request to be returned. Token expires after 1 day.
3095
+ * pageToken: 'placeholder-value',
3096
+ * });
3097
+ * console.log(res.data);
3098
+ *
3099
+ * // Example response
3100
+ * // {
3101
+ * // "nextPageToken": "my_nextPageToken",
3102
+ * // "totalSize": 0,
3103
+ * // "userDetails": []
3104
+ * // }
3105
+ * }
3106
+ *
3107
+ * main().catch(e => {
3108
+ * console.error(e);
3109
+ * throw e;
3110
+ * });
3111
+ *
3112
+ * ```
2908
3113
  *
2909
3114
  * @param params - Parameters for request
2910
3115
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2914,11 +3119,13 @@ export namespace chromemanagement_v1 {
2914
3119
  fetchUsersRequestingExtension(
2915
3120
  params: Params$Resource$Customers$Apps$Fetchusersrequestingextension,
2916
3121
  options: StreamMethodOptions
2917
- ): GaxiosPromise<Readable>;
3122
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2918
3123
  fetchUsersRequestingExtension(
2919
3124
  params?: Params$Resource$Customers$Apps$Fetchusersrequestingextension,
2920
3125
  options?: MethodOptions
2921
- ): GaxiosPromise<Schema$GoogleChromeManagementV1FetchUsersRequestingExtensionResponse>;
3126
+ ): Promise<
3127
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1FetchUsersRequestingExtensionResponse>
3128
+ >;
2922
3129
  fetchUsersRequestingExtension(
2923
3130
  params: Params$Resource$Customers$Apps$Fetchusersrequestingextension,
2924
3131
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -2953,8 +3160,10 @@ export namespace chromemanagement_v1 {
2953
3160
  | BodyResponseCallback<Readable>
2954
3161
  ):
2955
3162
  | void
2956
- | GaxiosPromise<Schema$GoogleChromeManagementV1FetchUsersRequestingExtensionResponse>
2957
- | GaxiosPromise<Readable> {
3163
+ | Promise<
3164
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1FetchUsersRequestingExtensionResponse>
3165
+ >
3166
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2958
3167
  let params = (paramsOrCallback ||
2959
3168
  {}) as Params$Resource$Customers$Apps$Fetchusersrequestingextension;
2960
3169
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -3080,6 +3289,72 @@ export namespace chromemanagement_v1 {
3080
3289
 
3081
3290
  /**
3082
3291
  * Get a specific app for a customer by its resource name.
3292
+ * @example
3293
+ * ```js
3294
+ * // Before running the sample:
3295
+ * // - Enable the API at:
3296
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
3297
+ * // - Login into gcloud by running:
3298
+ * // ```sh
3299
+ * // $ gcloud auth application-default login
3300
+ * // ```
3301
+ * // - Install the npm module by running:
3302
+ * // ```sh
3303
+ * // $ npm install googleapis
3304
+ * // ```
3305
+ *
3306
+ * const {google} = require('googleapis');
3307
+ * const chromemanagement = google.chromemanagement('v1');
3308
+ *
3309
+ * async function main() {
3310
+ * const auth = new google.auth.GoogleAuth({
3311
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3312
+ * scopes: [
3313
+ * 'https://www.googleapis.com/auth/chrome.management.appdetails.readonly',
3314
+ * ],
3315
+ * });
3316
+ *
3317
+ * // Acquire an auth client, and bind it to all future calls
3318
+ * const authClient = await auth.getClient();
3319
+ * google.options({auth: authClient});
3320
+ *
3321
+ * // Do the magic
3322
+ * const res = await chromemanagement.customers.apps.android.get({
3323
+ * // 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.
3324
+ * name: 'customers/my-customer/apps/android/[^/]+',
3325
+ * });
3326
+ * console.log(res.data);
3327
+ *
3328
+ * // Example response
3329
+ * // {
3330
+ * // "androidAppInfo": {},
3331
+ * // "appId": "my_appId",
3332
+ * // "chromeAppInfo": {},
3333
+ * // "description": "my_description",
3334
+ * // "detailUri": "my_detailUri",
3335
+ * // "displayName": "my_displayName",
3336
+ * // "firstPublishTime": "my_firstPublishTime",
3337
+ * // "homepageUri": "my_homepageUri",
3338
+ * // "iconUri": "my_iconUri",
3339
+ * // "isPaidApp": false,
3340
+ * // "latestPublishTime": "my_latestPublishTime",
3341
+ * // "name": "my_name",
3342
+ * // "privacyPolicyUri": "my_privacyPolicyUri",
3343
+ * // "publisher": "my_publisher",
3344
+ * // "reviewNumber": "my_reviewNumber",
3345
+ * // "reviewRating": {},
3346
+ * // "revisionId": "my_revisionId",
3347
+ * // "serviceError": {},
3348
+ * // "type": "my_type"
3349
+ * // }
3350
+ * }
3351
+ *
3352
+ * main().catch(e => {
3353
+ * console.error(e);
3354
+ * throw e;
3355
+ * });
3356
+ *
3357
+ * ```
3083
3358
  *
3084
3359
  * @param params - Parameters for request
3085
3360
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3089,11 +3364,13 @@ export namespace chromemanagement_v1 {
3089
3364
  get(
3090
3365
  params: Params$Resource$Customers$Apps$Android$Get,
3091
3366
  options: StreamMethodOptions
3092
- ): GaxiosPromise<Readable>;
3367
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3093
3368
  get(
3094
3369
  params?: Params$Resource$Customers$Apps$Android$Get,
3095
3370
  options?: MethodOptions
3096
- ): GaxiosPromise<Schema$GoogleChromeManagementV1AppDetails>;
3371
+ ): Promise<
3372
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1AppDetails>
3373
+ >;
3097
3374
  get(
3098
3375
  params: Params$Resource$Customers$Apps$Android$Get,
3099
3376
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3128,8 +3405,10 @@ export namespace chromemanagement_v1 {
3128
3405
  | BodyResponseCallback<Readable>
3129
3406
  ):
3130
3407
  | void
3131
- | GaxiosPromise<Schema$GoogleChromeManagementV1AppDetails>
3132
- | GaxiosPromise<Readable> {
3408
+ | Promise<
3409
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1AppDetails>
3410
+ >
3411
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3133
3412
  let params = (paramsOrCallback ||
3134
3413
  {}) as Params$Resource$Customers$Apps$Android$Get;
3135
3414
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -3190,6 +3469,72 @@ export namespace chromemanagement_v1 {
3190
3469
 
3191
3470
  /**
3192
3471
  * Get a specific app for a customer by its resource name.
3472
+ * @example
3473
+ * ```js
3474
+ * // Before running the sample:
3475
+ * // - Enable the API at:
3476
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
3477
+ * // - Login into gcloud by running:
3478
+ * // ```sh
3479
+ * // $ gcloud auth application-default login
3480
+ * // ```
3481
+ * // - Install the npm module by running:
3482
+ * // ```sh
3483
+ * // $ npm install googleapis
3484
+ * // ```
3485
+ *
3486
+ * const {google} = require('googleapis');
3487
+ * const chromemanagement = google.chromemanagement('v1');
3488
+ *
3489
+ * async function main() {
3490
+ * const auth = new google.auth.GoogleAuth({
3491
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3492
+ * scopes: [
3493
+ * 'https://www.googleapis.com/auth/chrome.management.appdetails.readonly',
3494
+ * ],
3495
+ * });
3496
+ *
3497
+ * // Acquire an auth client, and bind it to all future calls
3498
+ * const authClient = await auth.getClient();
3499
+ * google.options({auth: authClient});
3500
+ *
3501
+ * // Do the magic
3502
+ * const res = await chromemanagement.customers.apps.chrome.get({
3503
+ * // 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.
3504
+ * name: 'customers/my-customer/apps/chrome/[^/]+',
3505
+ * });
3506
+ * console.log(res.data);
3507
+ *
3508
+ * // Example response
3509
+ * // {
3510
+ * // "androidAppInfo": {},
3511
+ * // "appId": "my_appId",
3512
+ * // "chromeAppInfo": {},
3513
+ * // "description": "my_description",
3514
+ * // "detailUri": "my_detailUri",
3515
+ * // "displayName": "my_displayName",
3516
+ * // "firstPublishTime": "my_firstPublishTime",
3517
+ * // "homepageUri": "my_homepageUri",
3518
+ * // "iconUri": "my_iconUri",
3519
+ * // "isPaidApp": false,
3520
+ * // "latestPublishTime": "my_latestPublishTime",
3521
+ * // "name": "my_name",
3522
+ * // "privacyPolicyUri": "my_privacyPolicyUri",
3523
+ * // "publisher": "my_publisher",
3524
+ * // "reviewNumber": "my_reviewNumber",
3525
+ * // "reviewRating": {},
3526
+ * // "revisionId": "my_revisionId",
3527
+ * // "serviceError": {},
3528
+ * // "type": "my_type"
3529
+ * // }
3530
+ * }
3531
+ *
3532
+ * main().catch(e => {
3533
+ * console.error(e);
3534
+ * throw e;
3535
+ * });
3536
+ *
3537
+ * ```
3193
3538
  *
3194
3539
  * @param params - Parameters for request
3195
3540
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3199,11 +3544,13 @@ export namespace chromemanagement_v1 {
3199
3544
  get(
3200
3545
  params: Params$Resource$Customers$Apps$Chrome$Get,
3201
3546
  options: StreamMethodOptions
3202
- ): GaxiosPromise<Readable>;
3547
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3203
3548
  get(
3204
3549
  params?: Params$Resource$Customers$Apps$Chrome$Get,
3205
3550
  options?: MethodOptions
3206
- ): GaxiosPromise<Schema$GoogleChromeManagementV1AppDetails>;
3551
+ ): Promise<
3552
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1AppDetails>
3553
+ >;
3207
3554
  get(
3208
3555
  params: Params$Resource$Customers$Apps$Chrome$Get,
3209
3556
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3238,8 +3585,10 @@ export namespace chromemanagement_v1 {
3238
3585
  | BodyResponseCallback<Readable>
3239
3586
  ):
3240
3587
  | void
3241
- | GaxiosPromise<Schema$GoogleChromeManagementV1AppDetails>
3242
- | GaxiosPromise<Readable> {
3588
+ | Promise<
3589
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1AppDetails>
3590
+ >
3591
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3243
3592
  let params = (paramsOrCallback ||
3244
3593
  {}) as Params$Resource$Customers$Apps$Chrome$Get;
3245
3594
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -3300,6 +3649,72 @@ export namespace chromemanagement_v1 {
3300
3649
 
3301
3650
  /**
3302
3651
  * Get a specific app for a customer by its resource name.
3652
+ * @example
3653
+ * ```js
3654
+ * // Before running the sample:
3655
+ * // - Enable the API at:
3656
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
3657
+ * // - Login into gcloud by running:
3658
+ * // ```sh
3659
+ * // $ gcloud auth application-default login
3660
+ * // ```
3661
+ * // - Install the npm module by running:
3662
+ * // ```sh
3663
+ * // $ npm install googleapis
3664
+ * // ```
3665
+ *
3666
+ * const {google} = require('googleapis');
3667
+ * const chromemanagement = google.chromemanagement('v1');
3668
+ *
3669
+ * async function main() {
3670
+ * const auth = new google.auth.GoogleAuth({
3671
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3672
+ * scopes: [
3673
+ * 'https://www.googleapis.com/auth/chrome.management.appdetails.readonly',
3674
+ * ],
3675
+ * });
3676
+ *
3677
+ * // Acquire an auth client, and bind it to all future calls
3678
+ * const authClient = await auth.getClient();
3679
+ * google.options({auth: authClient});
3680
+ *
3681
+ * // Do the magic
3682
+ * const res = await chromemanagement.customers.apps.web.get({
3683
+ * // 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.
3684
+ * name: 'customers/my-customer/apps/web/[^/]+',
3685
+ * });
3686
+ * console.log(res.data);
3687
+ *
3688
+ * // Example response
3689
+ * // {
3690
+ * // "androidAppInfo": {},
3691
+ * // "appId": "my_appId",
3692
+ * // "chromeAppInfo": {},
3693
+ * // "description": "my_description",
3694
+ * // "detailUri": "my_detailUri",
3695
+ * // "displayName": "my_displayName",
3696
+ * // "firstPublishTime": "my_firstPublishTime",
3697
+ * // "homepageUri": "my_homepageUri",
3698
+ * // "iconUri": "my_iconUri",
3699
+ * // "isPaidApp": false,
3700
+ * // "latestPublishTime": "my_latestPublishTime",
3701
+ * // "name": "my_name",
3702
+ * // "privacyPolicyUri": "my_privacyPolicyUri",
3703
+ * // "publisher": "my_publisher",
3704
+ * // "reviewNumber": "my_reviewNumber",
3705
+ * // "reviewRating": {},
3706
+ * // "revisionId": "my_revisionId",
3707
+ * // "serviceError": {},
3708
+ * // "type": "my_type"
3709
+ * // }
3710
+ * }
3711
+ *
3712
+ * main().catch(e => {
3713
+ * console.error(e);
3714
+ * throw e;
3715
+ * });
3716
+ *
3717
+ * ```
3303
3718
  *
3304
3719
  * @param params - Parameters for request
3305
3720
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3309,11 +3724,13 @@ export namespace chromemanagement_v1 {
3309
3724
  get(
3310
3725
  params: Params$Resource$Customers$Apps$Web$Get,
3311
3726
  options: StreamMethodOptions
3312
- ): GaxiosPromise<Readable>;
3727
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3313
3728
  get(
3314
3729
  params?: Params$Resource$Customers$Apps$Web$Get,
3315
3730
  options?: MethodOptions
3316
- ): GaxiosPromise<Schema$GoogleChromeManagementV1AppDetails>;
3731
+ ): Promise<
3732
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1AppDetails>
3733
+ >;
3317
3734
  get(
3318
3735
  params: Params$Resource$Customers$Apps$Web$Get,
3319
3736
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3348,8 +3765,10 @@ export namespace chromemanagement_v1 {
3348
3765
  | BodyResponseCallback<Readable>
3349
3766
  ):
3350
3767
  | void
3351
- | GaxiosPromise<Schema$GoogleChromeManagementV1AppDetails>
3352
- | GaxiosPromise<Readable> {
3768
+ | Promise<
3769
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1AppDetails>
3770
+ >
3771
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3353
3772
  let params = (paramsOrCallback ||
3354
3773
  {}) as Params$Resource$Customers$Apps$Web$Get;
3355
3774
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -3410,6 +3829,50 @@ export namespace chromemanagement_v1 {
3410
3829
 
3411
3830
  /**
3412
3831
  * Deletes the data collected from a Chrome browser profile.
3832
+ * @example
3833
+ * ```js
3834
+ * // Before running the sample:
3835
+ * // - Enable the API at:
3836
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
3837
+ * // - Login into gcloud by running:
3838
+ * // ```sh
3839
+ * // $ gcloud auth application-default login
3840
+ * // ```
3841
+ * // - Install the npm module by running:
3842
+ * // ```sh
3843
+ * // $ npm install googleapis
3844
+ * // ```
3845
+ *
3846
+ * const {google} = require('googleapis');
3847
+ * const chromemanagement = google.chromemanagement('v1');
3848
+ *
3849
+ * async function main() {
3850
+ * const auth = new google.auth.GoogleAuth({
3851
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3852
+ * scopes: ['https://www.googleapis.com/auth/chrome.management.profiles'],
3853
+ * });
3854
+ *
3855
+ * // Acquire an auth client, and bind it to all future calls
3856
+ * const authClient = await auth.getClient();
3857
+ * google.options({auth: authClient});
3858
+ *
3859
+ * // Do the magic
3860
+ * const res = await chromemanagement.customers.profiles.delete({
3861
+ * // Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}
3862
+ * name: 'customers/my-customer/profiles/my-profile',
3863
+ * });
3864
+ * console.log(res.data);
3865
+ *
3866
+ * // Example response
3867
+ * // {}
3868
+ * }
3869
+ *
3870
+ * main().catch(e => {
3871
+ * console.error(e);
3872
+ * throw e;
3873
+ * });
3874
+ *
3875
+ * ```
3413
3876
  *
3414
3877
  * @param params - Parameters for request
3415
3878
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3419,11 +3882,11 @@ export namespace chromemanagement_v1 {
3419
3882
  delete(
3420
3883
  params: Params$Resource$Customers$Profiles$Delete,
3421
3884
  options: StreamMethodOptions
3422
- ): GaxiosPromise<Readable>;
3885
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3423
3886
  delete(
3424
3887
  params?: Params$Resource$Customers$Profiles$Delete,
3425
3888
  options?: MethodOptions
3426
- ): GaxiosPromise<Schema$GoogleProtobufEmpty>;
3889
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
3427
3890
  delete(
3428
3891
  params: Params$Resource$Customers$Profiles$Delete,
3429
3892
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3454,8 +3917,8 @@ export namespace chromemanagement_v1 {
3454
3917
  | BodyResponseCallback<Readable>
3455
3918
  ):
3456
3919
  | void
3457
- | GaxiosPromise<Schema$GoogleProtobufEmpty>
3458
- | GaxiosPromise<Readable> {
3920
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>
3921
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3459
3922
  let params = (paramsOrCallback ||
3460
3923
  {}) as Params$Resource$Customers$Profiles$Delete;
3461
3924
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -3499,6 +3962,80 @@ export namespace chromemanagement_v1 {
3499
3962
 
3500
3963
  /**
3501
3964
  * Gets a Chrome browser profile with customer ID and profile permanent ID.
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.profiles',
3987
+ * 'https://www.googleapis.com/auth/chrome.management.profiles.readonly',
3988
+ * ],
3989
+ * });
3990
+ *
3991
+ * // Acquire an auth client, and bind it to all future calls
3992
+ * const authClient = await auth.getClient();
3993
+ * google.options({auth: authClient});
3994
+ *
3995
+ * // Do the magic
3996
+ * const res = await chromemanagement.customers.profiles.get({
3997
+ * // Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}
3998
+ * name: 'customers/my-customer/profiles/my-profile',
3999
+ * });
4000
+ * console.log(res.data);
4001
+ *
4002
+ * // Example response
4003
+ * // {
4004
+ * // "affiliationState": "my_affiliationState",
4005
+ * // "annotatedLocation": "my_annotatedLocation",
4006
+ * // "annotatedUser": "my_annotatedUser",
4007
+ * // "attestationCredential": {},
4008
+ * // "browserChannel": "my_browserChannel",
4009
+ * // "browserVersion": "my_browserVersion",
4010
+ * // "deviceInfo": {},
4011
+ * // "displayName": "my_displayName",
4012
+ * // "etag": "my_etag",
4013
+ * // "extensionCount": "my_extensionCount",
4014
+ * // "firstEnrollmentTime": "my_firstEnrollmentTime",
4015
+ * // "identityProvider": "my_identityProvider",
4016
+ * // "lastActivityTime": "my_lastActivityTime",
4017
+ * // "lastPolicyFetchTime": "my_lastPolicyFetchTime",
4018
+ * // "lastPolicySyncTime": "my_lastPolicySyncTime",
4019
+ * // "lastStatusReportTime": "my_lastStatusReportTime",
4020
+ * // "name": "my_name",
4021
+ * // "osPlatformType": "my_osPlatformType",
4022
+ * // "osPlatformVersion": "my_osPlatformVersion",
4023
+ * // "osVersion": "my_osVersion",
4024
+ * // "policyCount": "my_policyCount",
4025
+ * // "profileId": "my_profileId",
4026
+ * // "profilePermanentId": "my_profilePermanentId",
4027
+ * // "reportingData": {},
4028
+ * // "userEmail": "my_userEmail",
4029
+ * // "userId": "my_userId"
4030
+ * // }
4031
+ * }
4032
+ *
4033
+ * main().catch(e => {
4034
+ * console.error(e);
4035
+ * throw e;
4036
+ * });
4037
+ *
4038
+ * ```
3502
4039
  *
3503
4040
  * @param params - Parameters for request
3504
4041
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3508,11 +4045,13 @@ export namespace chromemanagement_v1 {
3508
4045
  get(
3509
4046
  params: Params$Resource$Customers$Profiles$Get,
3510
4047
  options: StreamMethodOptions
3511
- ): GaxiosPromise<Readable>;
4048
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3512
4049
  get(
3513
4050
  params?: Params$Resource$Customers$Profiles$Get,
3514
4051
  options?: MethodOptions
3515
- ): GaxiosPromise<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>;
4052
+ ): Promise<
4053
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>
4054
+ >;
3516
4055
  get(
3517
4056
  params: Params$Resource$Customers$Profiles$Get,
3518
4057
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3547,8 +4086,10 @@ export namespace chromemanagement_v1 {
3547
4086
  | BodyResponseCallback<Readable>
3548
4087
  ):
3549
4088
  | void
3550
- | GaxiosPromise<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>
3551
- | GaxiosPromise<Readable> {
4089
+ | Promise<
4090
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>
4091
+ >
4092
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3552
4093
  let params = (paramsOrCallback ||
3553
4094
  {}) as Params$Resource$Customers$Profiles$Get;
3554
4095
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -3594,6 +4135,65 @@ export namespace chromemanagement_v1 {
3594
4135
 
3595
4136
  /**
3596
4137
  * Lists Chrome browser profiles of a customer based on the given search and sorting criteria.
4138
+ * @example
4139
+ * ```js
4140
+ * // Before running the sample:
4141
+ * // - Enable the API at:
4142
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
4143
+ * // - Login into gcloud by running:
4144
+ * // ```sh
4145
+ * // $ gcloud auth application-default login
4146
+ * // ```
4147
+ * // - Install the npm module by running:
4148
+ * // ```sh
4149
+ * // $ npm install googleapis
4150
+ * // ```
4151
+ *
4152
+ * const {google} = require('googleapis');
4153
+ * const chromemanagement = google.chromemanagement('v1');
4154
+ *
4155
+ * async function main() {
4156
+ * const auth = new google.auth.GoogleAuth({
4157
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4158
+ * scopes: [
4159
+ * 'https://www.googleapis.com/auth/chrome.management.profiles',
4160
+ * 'https://www.googleapis.com/auth/chrome.management.profiles.readonly',
4161
+ * ],
4162
+ * });
4163
+ *
4164
+ * // Acquire an auth client, and bind it to all future calls
4165
+ * const authClient = await auth.getClient();
4166
+ * google.options({auth: authClient});
4167
+ *
4168
+ * // Do the magic
4169
+ * const res = await chromemanagement.customers.profiles.list({
4170
+ * // 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.
4171
+ * filter: 'placeholder-value',
4172
+ * // 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.
4173
+ * orderBy: 'placeholder-value',
4174
+ * // 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.
4175
+ * pageSize: 'placeholder-value',
4176
+ * // Optional. The page token used to retrieve a specific page of the listing request.
4177
+ * pageToken: 'placeholder-value',
4178
+ * // Required. Format: customers/{customer_id\}
4179
+ * parent: 'customers/my-customer',
4180
+ * });
4181
+ * console.log(res.data);
4182
+ *
4183
+ * // Example response
4184
+ * // {
4185
+ * // "chromeBrowserProfiles": [],
4186
+ * // "nextPageToken": "my_nextPageToken",
4187
+ * // "totalSize": "my_totalSize"
4188
+ * // }
4189
+ * }
4190
+ *
4191
+ * main().catch(e => {
4192
+ * console.error(e);
4193
+ * throw e;
4194
+ * });
4195
+ *
4196
+ * ```
3597
4197
  *
3598
4198
  * @param params - Parameters for request
3599
4199
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3603,11 +4203,13 @@ export namespace chromemanagement_v1 {
3603
4203
  list(
3604
4204
  params: Params$Resource$Customers$Profiles$List,
3605
4205
  options: StreamMethodOptions
3606
- ): GaxiosPromise<Readable>;
4206
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3607
4207
  list(
3608
4208
  params?: Params$Resource$Customers$Profiles$List,
3609
4209
  options?: MethodOptions
3610
- ): GaxiosPromise<Schema$GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse>;
4210
+ ): Promise<
4211
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse>
4212
+ >;
3611
4213
  list(
3612
4214
  params: Params$Resource$Customers$Profiles$List,
3613
4215
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3642,8 +4244,10 @@ export namespace chromemanagement_v1 {
3642
4244
  | BodyResponseCallback<Readable>
3643
4245
  ):
3644
4246
  | void
3645
- | GaxiosPromise<Schema$GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse>
3646
- | GaxiosPromise<Readable> {
4247
+ | Promise<
4248
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse>
4249
+ >
4250
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3647
4251
  let params = (paramsOrCallback ||
3648
4252
  {}) as Params$Resource$Customers$Profiles$List;
3649
4253
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -3737,6 +4341,61 @@ export namespace chromemanagement_v1 {
3737
4341
 
3738
4342
  /**
3739
4343
  * Count of Chrome Browsers that have been recently enrolled, have new policy to be synced, or have no recent activity.
4344
+ * @example
4345
+ * ```js
4346
+ * // Before running the sample:
4347
+ * // - Enable the API at:
4348
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
4349
+ * // - Login into gcloud by running:
4350
+ * // ```sh
4351
+ * // $ gcloud auth application-default login
4352
+ * // ```
4353
+ * // - Install the npm module by running:
4354
+ * // ```sh
4355
+ * // $ npm install googleapis
4356
+ * // ```
4357
+ *
4358
+ * const {google} = require('googleapis');
4359
+ * const chromemanagement = google.chromemanagement('v1');
4360
+ *
4361
+ * async function main() {
4362
+ * const auth = new google.auth.GoogleAuth({
4363
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4364
+ * scopes: [
4365
+ * 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
4366
+ * ],
4367
+ * });
4368
+ *
4369
+ * // Acquire an auth client, and bind it to all future calls
4370
+ * const authClient = await auth.getClient();
4371
+ * google.options({auth: authClient});
4372
+ *
4373
+ * // Do the magic
4374
+ * const res =
4375
+ * await chromemanagement.customers.reports.countChromeBrowsersNeedingAttention(
4376
+ * {
4377
+ * // Required. The customer ID or "my_customer" prefixed with "customers/".
4378
+ * customer: 'customers/my-customer',
4379
+ * // Optional. The ID of the organizational unit. If omitted, all data will be returned.
4380
+ * orgUnitId: 'placeholder-value',
4381
+ * },
4382
+ * );
4383
+ * console.log(res.data);
4384
+ *
4385
+ * // Example response
4386
+ * // {
4387
+ * // "noRecentActivityCount": "my_noRecentActivityCount",
4388
+ * // "pendingBrowserUpdateCount": "my_pendingBrowserUpdateCount",
4389
+ * // "recentlyEnrolledCount": "my_recentlyEnrolledCount"
4390
+ * // }
4391
+ * }
4392
+ *
4393
+ * main().catch(e => {
4394
+ * console.error(e);
4395
+ * throw e;
4396
+ * });
4397
+ *
4398
+ * ```
3740
4399
  *
3741
4400
  * @param params - Parameters for request
3742
4401
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3746,11 +4405,13 @@ export namespace chromemanagement_v1 {
3746
4405
  countChromeBrowsersNeedingAttention(
3747
4406
  params: Params$Resource$Customers$Reports$Countchromebrowsersneedingattention,
3748
4407
  options: StreamMethodOptions
3749
- ): GaxiosPromise<Readable>;
4408
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3750
4409
  countChromeBrowsersNeedingAttention(
3751
4410
  params?: Params$Resource$Customers$Reports$Countchromebrowsersneedingattention,
3752
4411
  options?: MethodOptions
3753
- ): GaxiosPromise<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>;
4412
+ ): Promise<
4413
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>
4414
+ >;
3754
4415
  countChromeBrowsersNeedingAttention(
3755
4416
  params: Params$Resource$Customers$Reports$Countchromebrowsersneedingattention,
3756
4417
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3785,8 +4446,10 @@ export namespace chromemanagement_v1 {
3785
4446
  | BodyResponseCallback<Readable>
3786
4447
  ):
3787
4448
  | void
3788
- | GaxiosPromise<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>
3789
- | GaxiosPromise<Readable> {
4449
+ | Promise<
4450
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>
4451
+ >
4452
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3790
4453
  let params = (paramsOrCallback ||
3791
4454
  {}) as Params$Resource$Customers$Reports$Countchromebrowsersneedingattention;
3792
4455
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -3836,6 +4499,60 @@ export namespace chromemanagement_v1 {
3836
4499
 
3837
4500
  /**
3838
4501
  * Get a count of Chrome crash events.
4502
+ * @example
4503
+ * ```js
4504
+ * // Before running the sample:
4505
+ * // - Enable the API at:
4506
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
4507
+ * // - Login into gcloud by running:
4508
+ * // ```sh
4509
+ * // $ gcloud auth application-default login
4510
+ * // ```
4511
+ * // - Install the npm module by running:
4512
+ * // ```sh
4513
+ * // $ npm install googleapis
4514
+ * // ```
4515
+ *
4516
+ * const {google} = require('googleapis');
4517
+ * const chromemanagement = google.chromemanagement('v1');
4518
+ *
4519
+ * async function main() {
4520
+ * const auth = new google.auth.GoogleAuth({
4521
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4522
+ * scopes: [
4523
+ * 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
4524
+ * ],
4525
+ * });
4526
+ *
4527
+ * // Acquire an auth client, and bind it to all future calls
4528
+ * const authClient = await auth.getClient();
4529
+ * google.options({auth: authClient});
4530
+ *
4531
+ * // Do the magic
4532
+ * const res = await chromemanagement.customers.reports.countChromeCrashEvents({
4533
+ * // Customer ID.
4534
+ * customer: 'customers/my-customer',
4535
+ * // 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'`.
4536
+ * filter: 'placeholder-value',
4537
+ * // Field used to order results. Supported order by fields: * browser_version * count * date
4538
+ * orderBy: 'placeholder-value',
4539
+ * // If specified, only count the number of crash events of the devices in this organizational unit.
4540
+ * orgUnitId: 'placeholder-value',
4541
+ * });
4542
+ * console.log(res.data);
4543
+ *
4544
+ * // Example response
4545
+ * // {
4546
+ * // "crashEventCounts": []
4547
+ * // }
4548
+ * }
4549
+ *
4550
+ * main().catch(e => {
4551
+ * console.error(e);
4552
+ * throw e;
4553
+ * });
4554
+ *
4555
+ * ```
3839
4556
  *
3840
4557
  * @param params - Parameters for request
3841
4558
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3845,11 +4562,13 @@ export namespace chromemanagement_v1 {
3845
4562
  countChromeCrashEvents(
3846
4563
  params: Params$Resource$Customers$Reports$Countchromecrashevents,
3847
4564
  options: StreamMethodOptions
3848
- ): GaxiosPromise<Readable>;
4565
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3849
4566
  countChromeCrashEvents(
3850
4567
  params?: Params$Resource$Customers$Reports$Countchromecrashevents,
3851
4568
  options?: MethodOptions
3852
- ): GaxiosPromise<Schema$GoogleChromeManagementV1CountChromeCrashEventsResponse>;
4569
+ ): Promise<
4570
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1CountChromeCrashEventsResponse>
4571
+ >;
3853
4572
  countChromeCrashEvents(
3854
4573
  params: Params$Resource$Customers$Reports$Countchromecrashevents,
3855
4574
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3884,8 +4603,10 @@ export namespace chromemanagement_v1 {
3884
4603
  | BodyResponseCallback<Readable>
3885
4604
  ):
3886
4605
  | void
3887
- | GaxiosPromise<Schema$GoogleChromeManagementV1CountChromeCrashEventsResponse>
3888
- | GaxiosPromise<Readable> {
4606
+ | Promise<
4607
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1CountChromeCrashEventsResponse>
4608
+ >
4609
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3889
4610
  let params = (paramsOrCallback ||
3890
4611
  {}) as Params$Resource$Customers$Reports$Countchromecrashevents;
3891
4612
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -3933,6 +4654,63 @@ export namespace chromemanagement_v1 {
3933
4654
 
3934
4655
  /**
3935
4656
  * 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).
4657
+ * @example
4658
+ * ```js
4659
+ * // Before running the sample:
4660
+ * // - Enable the API at:
4661
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
4662
+ * // - Login into gcloud by running:
4663
+ * // ```sh
4664
+ * // $ gcloud auth application-default login
4665
+ * // ```
4666
+ * // - Install the npm module by running:
4667
+ * // ```sh
4668
+ * // $ npm install googleapis
4669
+ * // ```
4670
+ *
4671
+ * const {google} = require('googleapis');
4672
+ * const chromemanagement = google.chromemanagement('v1');
4673
+ *
4674
+ * async function main() {
4675
+ * const auth = new google.auth.GoogleAuth({
4676
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4677
+ * scopes: [
4678
+ * 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
4679
+ * ],
4680
+ * });
4681
+ *
4682
+ * // Acquire an auth client, and bind it to all future calls
4683
+ * const authClient = await auth.getClient();
4684
+ * google.options({auth: authClient});
4685
+ *
4686
+ * // Do the magic
4687
+ * const res =
4688
+ * await chromemanagement.customers.reports.countChromeDevicesReachingAutoExpirationDate(
4689
+ * {
4690
+ * // Required. The customer ID or "my_customer" prefixed with "customers/".
4691
+ * customer: 'customers/my-customer',
4692
+ * // 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.
4693
+ * maxAueDate: 'placeholder-value',
4694
+ * // 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.
4695
+ * minAueDate: 'placeholder-value',
4696
+ * // Optional. The organizational unit ID, if omitted, will return data for all organizational units.
4697
+ * orgUnitId: 'placeholder-value',
4698
+ * },
4699
+ * );
4700
+ * console.log(res.data);
4701
+ *
4702
+ * // Example response
4703
+ * // {
4704
+ * // "deviceAueCountReports": []
4705
+ * // }
4706
+ * }
4707
+ *
4708
+ * main().catch(e => {
4709
+ * console.error(e);
4710
+ * throw e;
4711
+ * });
4712
+ *
4713
+ * ```
3936
4714
  *
3937
4715
  * @param params - Parameters for request
3938
4716
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3942,11 +4720,13 @@ export namespace chromemanagement_v1 {
3942
4720
  countChromeDevicesReachingAutoExpirationDate(
3943
4721
  params: Params$Resource$Customers$Reports$Countchromedevicesreachingautoexpirationdate,
3944
4722
  options: StreamMethodOptions
3945
- ): GaxiosPromise<Readable>;
4723
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3946
4724
  countChromeDevicesReachingAutoExpirationDate(
3947
4725
  params?: Params$Resource$Customers$Reports$Countchromedevicesreachingautoexpirationdate,
3948
4726
  options?: MethodOptions
3949
- ): GaxiosPromise<Schema$GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse>;
4727
+ ): Promise<
4728
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse>
4729
+ >;
3950
4730
  countChromeDevicesReachingAutoExpirationDate(
3951
4731
  params: Params$Resource$Customers$Reports$Countchromedevicesreachingautoexpirationdate,
3952
4732
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3981,8 +4761,10 @@ export namespace chromemanagement_v1 {
3981
4761
  | BodyResponseCallback<Readable>
3982
4762
  ):
3983
4763
  | void
3984
- | GaxiosPromise<Schema$GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse>
3985
- | GaxiosPromise<Readable> {
4764
+ | Promise<
4765
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse>
4766
+ >
4767
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3986
4768
  let params = (paramsOrCallback ||
3987
4769
  {}) as Params$Resource$Customers$Reports$Countchromedevicesreachingautoexpirationdate;
3988
4770
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4032,6 +4814,65 @@ export namespace chromemanagement_v1 {
4032
4814
 
4033
4815
  /**
4034
4816
  * 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
4817
+ * @example
4818
+ * ```js
4819
+ * // Before running the sample:
4820
+ * // - Enable the API at:
4821
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
4822
+ * // - Login into gcloud by running:
4823
+ * // ```sh
4824
+ * // $ gcloud auth application-default login
4825
+ * // ```
4826
+ * // - Install the npm module by running:
4827
+ * // ```sh
4828
+ * // $ npm install googleapis
4829
+ * // ```
4830
+ *
4831
+ * const {google} = require('googleapis');
4832
+ * const chromemanagement = google.chromemanagement('v1');
4833
+ *
4834
+ * async function main() {
4835
+ * const auth = new google.auth.GoogleAuth({
4836
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4837
+ * scopes: [
4838
+ * 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
4839
+ * ],
4840
+ * });
4841
+ *
4842
+ * // Acquire an auth client, and bind it to all future calls
4843
+ * const authClient = await auth.getClient();
4844
+ * google.options({auth: authClient});
4845
+ *
4846
+ * // Do the magic
4847
+ * const res =
4848
+ * await chromemanagement.customers.reports.countChromeDevicesThatNeedAttention(
4849
+ * {
4850
+ * // Required. The customer ID or "my_customer" prefixed with "customers/".
4851
+ * customer: 'customers/my-customer',
4852
+ * // Optional. The ID of the organizational unit. If omitted, all data will be returned.
4853
+ * orgUnitId: 'placeholder-value',
4854
+ * // Required. Mask of the fields that should be populated in the returned report.
4855
+ * readMask: 'placeholder-value',
4856
+ * },
4857
+ * );
4858
+ * console.log(res.data);
4859
+ *
4860
+ * // Example response
4861
+ * // {
4862
+ * // "noRecentPolicySyncCount": "my_noRecentPolicySyncCount",
4863
+ * // "noRecentUserActivityCount": "my_noRecentUserActivityCount",
4864
+ * // "osVersionNotCompliantCount": "my_osVersionNotCompliantCount",
4865
+ * // "pendingUpdate": "my_pendingUpdate",
4866
+ * // "unsupportedPolicyCount": "my_unsupportedPolicyCount"
4867
+ * // }
4868
+ * }
4869
+ *
4870
+ * main().catch(e => {
4871
+ * console.error(e);
4872
+ * throw e;
4873
+ * });
4874
+ *
4875
+ * ```
4035
4876
  *
4036
4877
  * @param params - Parameters for request
4037
4878
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4041,11 +4882,13 @@ export namespace chromemanagement_v1 {
4041
4882
  countChromeDevicesThatNeedAttention(
4042
4883
  params: Params$Resource$Customers$Reports$Countchromedevicesthatneedattention,
4043
4884
  options: StreamMethodOptions
4044
- ): GaxiosPromise<Readable>;
4885
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4045
4886
  countChromeDevicesThatNeedAttention(
4046
4887
  params?: Params$Resource$Customers$Reports$Countchromedevicesthatneedattention,
4047
4888
  options?: MethodOptions
4048
- ): GaxiosPromise<Schema$GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse>;
4889
+ ): Promise<
4890
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse>
4891
+ >;
4049
4892
  countChromeDevicesThatNeedAttention(
4050
4893
  params: Params$Resource$Customers$Reports$Countchromedevicesthatneedattention,
4051
4894
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4080,8 +4923,10 @@ export namespace chromemanagement_v1 {
4080
4923
  | BodyResponseCallback<Readable>
4081
4924
  ):
4082
4925
  | void
4083
- | GaxiosPromise<Schema$GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse>
4084
- | GaxiosPromise<Readable> {
4926
+ | Promise<
4927
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse>
4928
+ >
4929
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4085
4930
  let params = (paramsOrCallback ||
4086
4931
  {}) as Params$Resource$Customers$Reports$Countchromedevicesthatneedattention;
4087
4932
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4131,6 +4976,62 @@ export namespace chromemanagement_v1 {
4131
4976
 
4132
4977
  /**
4133
4978
  * 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
4979
+ * @example
4980
+ * ```js
4981
+ * // Before running the sample:
4982
+ * // - Enable the API at:
4983
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
4984
+ * // - Login into gcloud by running:
4985
+ * // ```sh
4986
+ * // $ gcloud auth application-default login
4987
+ * // ```
4988
+ * // - Install the npm module by running:
4989
+ * // ```sh
4990
+ * // $ npm install googleapis
4991
+ * // ```
4992
+ *
4993
+ * const {google} = require('googleapis');
4994
+ * const chromemanagement = google.chromemanagement('v1');
4995
+ *
4996
+ * async function main() {
4997
+ * const auth = new google.auth.GoogleAuth({
4998
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4999
+ * scopes: [
5000
+ * 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
5001
+ * ],
5002
+ * });
5003
+ *
5004
+ * // Acquire an auth client, and bind it to all future calls
5005
+ * const authClient = await auth.getClient();
5006
+ * google.options({auth: authClient});
5007
+ *
5008
+ * // Do the magic
5009
+ * const res =
5010
+ * await chromemanagement.customers.reports.countChromeHardwareFleetDevices({
5011
+ * // Required. The customer ID or "my_customer".
5012
+ * customer: 'customers/my-customer',
5013
+ * // Optional. The ID of the organizational unit. If omitted, all data will be returned.
5014
+ * orgUnitId: 'placeholder-value',
5015
+ * // Required. Mask of the fields that should be populated in the returned report.
5016
+ * readMask: 'placeholder-value',
5017
+ * });
5018
+ * console.log(res.data);
5019
+ *
5020
+ * // Example response
5021
+ * // {
5022
+ * // "cpuReports": [],
5023
+ * // "memoryReports": [],
5024
+ * // "modelReports": [],
5025
+ * // "storageReports": []
5026
+ * // }
5027
+ * }
5028
+ *
5029
+ * main().catch(e => {
5030
+ * console.error(e);
5031
+ * throw e;
5032
+ * });
5033
+ *
5034
+ * ```
4134
5035
  *
4135
5036
  * @param params - Parameters for request
4136
5037
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4140,11 +5041,13 @@ export namespace chromemanagement_v1 {
4140
5041
  countChromeHardwareFleetDevices(
4141
5042
  params: Params$Resource$Customers$Reports$Countchromehardwarefleetdevices,
4142
5043
  options: StreamMethodOptions
4143
- ): GaxiosPromise<Readable>;
5044
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4144
5045
  countChromeHardwareFleetDevices(
4145
5046
  params?: Params$Resource$Customers$Reports$Countchromehardwarefleetdevices,
4146
5047
  options?: MethodOptions
4147
- ): GaxiosPromise<Schema$GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse>;
5048
+ ): Promise<
5049
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse>
5050
+ >;
4148
5051
  countChromeHardwareFleetDevices(
4149
5052
  params: Params$Resource$Customers$Reports$Countchromehardwarefleetdevices,
4150
5053
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4179,8 +5082,10 @@ export namespace chromemanagement_v1 {
4179
5082
  | BodyResponseCallback<Readable>
4180
5083
  ):
4181
5084
  | void
4182
- | GaxiosPromise<Schema$GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse>
4183
- | GaxiosPromise<Readable> {
5085
+ | Promise<
5086
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse>
5087
+ >
5088
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4184
5089
  let params = (paramsOrCallback ||
4185
5090
  {}) as Params$Resource$Customers$Reports$Countchromehardwarefleetdevices;
4186
5091
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4230,6 +5135,64 @@ export namespace chromemanagement_v1 {
4230
5135
 
4231
5136
  /**
4232
5137
  * Generate report of installed Chrome versions.
5138
+ * @example
5139
+ * ```js
5140
+ * // Before running the sample:
5141
+ * // - Enable the API at:
5142
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
5143
+ * // - Login into gcloud by running:
5144
+ * // ```sh
5145
+ * // $ gcloud auth application-default login
5146
+ * // ```
5147
+ * // - Install the npm module by running:
5148
+ * // ```sh
5149
+ * // $ npm install googleapis
5150
+ * // ```
5151
+ *
5152
+ * const {google} = require('googleapis');
5153
+ * const chromemanagement = google.chromemanagement('v1');
5154
+ *
5155
+ * async function main() {
5156
+ * const auth = new google.auth.GoogleAuth({
5157
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5158
+ * scopes: [
5159
+ * 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
5160
+ * ],
5161
+ * });
5162
+ *
5163
+ * // Acquire an auth client, and bind it to all future calls
5164
+ * const authClient = await auth.getClient();
5165
+ * google.options({auth: authClient});
5166
+ *
5167
+ * // Do the magic
5168
+ * const res = await chromemanagement.customers.reports.countChromeVersions({
5169
+ * // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
5170
+ * customer: 'customers/my-customer',
5171
+ * // 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
5172
+ * filter: 'placeholder-value',
5173
+ * // The ID of the organizational unit.
5174
+ * orgUnitId: 'placeholder-value',
5175
+ * // Maximum number of results to return. Maximum and default are 100.
5176
+ * pageSize: 'placeholder-value',
5177
+ * // Token to specify the page of the request to be returned.
5178
+ * pageToken: 'placeholder-value',
5179
+ * });
5180
+ * console.log(res.data);
5181
+ *
5182
+ * // Example response
5183
+ * // {
5184
+ * // "browserVersions": [],
5185
+ * // "nextPageToken": "my_nextPageToken",
5186
+ * // "totalSize": 0
5187
+ * // }
5188
+ * }
5189
+ *
5190
+ * main().catch(e => {
5191
+ * console.error(e);
5192
+ * throw e;
5193
+ * });
5194
+ *
5195
+ * ```
4233
5196
  *
4234
5197
  * @param params - Parameters for request
4235
5198
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4239,11 +5202,13 @@ export namespace chromemanagement_v1 {
4239
5202
  countChromeVersions(
4240
5203
  params: Params$Resource$Customers$Reports$Countchromeversions,
4241
5204
  options: StreamMethodOptions
4242
- ): GaxiosPromise<Readable>;
5205
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4243
5206
  countChromeVersions(
4244
5207
  params?: Params$Resource$Customers$Reports$Countchromeversions,
4245
5208
  options?: MethodOptions
4246
- ): GaxiosPromise<Schema$GoogleChromeManagementV1CountChromeVersionsResponse>;
5209
+ ): Promise<
5210
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1CountChromeVersionsResponse>
5211
+ >;
4247
5212
  countChromeVersions(
4248
5213
  params: Params$Resource$Customers$Reports$Countchromeversions,
4249
5214
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4278,8 +5243,10 @@ export namespace chromemanagement_v1 {
4278
5243
  | BodyResponseCallback<Readable>
4279
5244
  ):
4280
5245
  | void
4281
- | GaxiosPromise<Schema$GoogleChromeManagementV1CountChromeVersionsResponse>
4282
- | GaxiosPromise<Readable> {
5246
+ | Promise<
5247
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1CountChromeVersionsResponse>
5248
+ >
5249
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4283
5250
  let params = (paramsOrCallback ||
4284
5251
  {}) as Params$Resource$Customers$Reports$Countchromeversions;
4285
5252
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4327,6 +5294,66 @@ export namespace chromemanagement_v1 {
4327
5294
 
4328
5295
  /**
4329
5296
  * Generate report of app installations.
5297
+ * @example
5298
+ * ```js
5299
+ * // Before running the sample:
5300
+ * // - Enable the API at:
5301
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
5302
+ * // - Login into gcloud by running:
5303
+ * // ```sh
5304
+ * // $ gcloud auth application-default login
5305
+ * // ```
5306
+ * // - Install the npm module by running:
5307
+ * // ```sh
5308
+ * // $ npm install googleapis
5309
+ * // ```
5310
+ *
5311
+ * const {google} = require('googleapis');
5312
+ * const chromemanagement = google.chromemanagement('v1');
5313
+ *
5314
+ * async function main() {
5315
+ * const auth = new google.auth.GoogleAuth({
5316
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5317
+ * scopes: [
5318
+ * 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
5319
+ * ],
5320
+ * });
5321
+ *
5322
+ * // Acquire an auth client, and bind it to all future calls
5323
+ * const authClient = await auth.getClient();
5324
+ * google.options({auth: authClient});
5325
+ *
5326
+ * // Do the magic
5327
+ * const res = await chromemanagement.customers.reports.countInstalledApps({
5328
+ * // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
5329
+ * customer: 'customers/my-customer',
5330
+ * // 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
5331
+ * filter: 'placeholder-value',
5332
+ * // 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
5333
+ * orderBy: 'placeholder-value',
5334
+ * // The ID of the organizational unit.
5335
+ * orgUnitId: 'placeholder-value',
5336
+ * // Maximum number of results to return. Maximum and default are 100.
5337
+ * pageSize: 'placeholder-value',
5338
+ * // Token to specify the page of the request to be returned.
5339
+ * pageToken: 'placeholder-value',
5340
+ * });
5341
+ * console.log(res.data);
5342
+ *
5343
+ * // Example response
5344
+ * // {
5345
+ * // "installedApps": [],
5346
+ * // "nextPageToken": "my_nextPageToken",
5347
+ * // "totalSize": 0
5348
+ * // }
5349
+ * }
5350
+ *
5351
+ * main().catch(e => {
5352
+ * console.error(e);
5353
+ * throw e;
5354
+ * });
5355
+ *
5356
+ * ```
4330
5357
  *
4331
5358
  * @param params - Parameters for request
4332
5359
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4336,11 +5363,13 @@ export namespace chromemanagement_v1 {
4336
5363
  countInstalledApps(
4337
5364
  params: Params$Resource$Customers$Reports$Countinstalledapps,
4338
5365
  options: StreamMethodOptions
4339
- ): GaxiosPromise<Readable>;
5366
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4340
5367
  countInstalledApps(
4341
5368
  params?: Params$Resource$Customers$Reports$Countinstalledapps,
4342
5369
  options?: MethodOptions
4343
- ): GaxiosPromise<Schema$GoogleChromeManagementV1CountInstalledAppsResponse>;
5370
+ ): Promise<
5371
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1CountInstalledAppsResponse>
5372
+ >;
4344
5373
  countInstalledApps(
4345
5374
  params: Params$Resource$Customers$Reports$Countinstalledapps,
4346
5375
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4375,8 +5404,10 @@ export namespace chromemanagement_v1 {
4375
5404
  | BodyResponseCallback<Readable>
4376
5405
  ):
4377
5406
  | void
4378
- | GaxiosPromise<Schema$GoogleChromeManagementV1CountInstalledAppsResponse>
4379
- | GaxiosPromise<Readable> {
5407
+ | Promise<
5408
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1CountInstalledAppsResponse>
5409
+ >
5410
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4380
5411
  let params = (paramsOrCallback ||
4381
5412
  {}) as Params$Resource$Customers$Reports$Countinstalledapps;
4382
5413
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4424,6 +5455,66 @@ export namespace chromemanagement_v1 {
4424
5455
 
4425
5456
  /**
4426
5457
  * Get a summary of printing done by each printer.
5458
+ * @example
5459
+ * ```js
5460
+ * // Before running the sample:
5461
+ * // - Enable the API at:
5462
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
5463
+ * // - Login into gcloud by running:
5464
+ * // ```sh
5465
+ * // $ gcloud auth application-default login
5466
+ * // ```
5467
+ * // - Install the npm module by running:
5468
+ * // ```sh
5469
+ * // $ npm install googleapis
5470
+ * // ```
5471
+ *
5472
+ * const {google} = require('googleapis');
5473
+ * const chromemanagement = google.chromemanagement('v1');
5474
+ *
5475
+ * async function main() {
5476
+ * const auth = new google.auth.GoogleAuth({
5477
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5478
+ * scopes: [
5479
+ * 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
5480
+ * ],
5481
+ * });
5482
+ *
5483
+ * // Acquire an auth client, and bind it to all future calls
5484
+ * const authClient = await auth.getClient();
5485
+ * google.options({auth: authClient});
5486
+ *
5487
+ * // Do the magic
5488
+ * const res = await chromemanagement.customers.reports.countPrintJobsByPrinter({
5489
+ * // Required. Customer ID prefixed with "customers/" or "customers/my_customer" to use the customer associated to the account making the request.
5490
+ * customer: 'customers/my-customer',
5491
+ * // 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
5492
+ * filter: 'placeholder-value',
5493
+ * // 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
5494
+ * orderBy: 'placeholder-value',
5495
+ * // Maximum number of results to return. Maximum and default are 100.
5496
+ * pageSize: 'placeholder-value',
5497
+ * // Token to specify the page of the response to be returned.
5498
+ * pageToken: 'placeholder-value',
5499
+ * // 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.
5500
+ * printerOrgUnitId: 'placeholder-value',
5501
+ * });
5502
+ * console.log(res.data);
5503
+ *
5504
+ * // Example response
5505
+ * // {
5506
+ * // "nextPageToken": "my_nextPageToken",
5507
+ * // "printerReports": [],
5508
+ * // "totalSize": "my_totalSize"
5509
+ * // }
5510
+ * }
5511
+ *
5512
+ * main().catch(e => {
5513
+ * console.error(e);
5514
+ * throw e;
5515
+ * });
5516
+ *
5517
+ * ```
4427
5518
  *
4428
5519
  * @param params - Parameters for request
4429
5520
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4433,11 +5524,13 @@ export namespace chromemanagement_v1 {
4433
5524
  countPrintJobsByPrinter(
4434
5525
  params: Params$Resource$Customers$Reports$Countprintjobsbyprinter,
4435
5526
  options: StreamMethodOptions
4436
- ): GaxiosPromise<Readable>;
5527
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4437
5528
  countPrintJobsByPrinter(
4438
5529
  params?: Params$Resource$Customers$Reports$Countprintjobsbyprinter,
4439
5530
  options?: MethodOptions
4440
- ): GaxiosPromise<Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse>;
5531
+ ): Promise<
5532
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse>
5533
+ >;
4441
5534
  countPrintJobsByPrinter(
4442
5535
  params: Params$Resource$Customers$Reports$Countprintjobsbyprinter,
4443
5536
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4472,8 +5565,10 @@ export namespace chromemanagement_v1 {
4472
5565
  | BodyResponseCallback<Readable>
4473
5566
  ):
4474
5567
  | void
4475
- | GaxiosPromise<Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse>
4476
- | GaxiosPromise<Readable> {
5568
+ | Promise<
5569
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse>
5570
+ >
5571
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4477
5572
  let params = (paramsOrCallback ||
4478
5573
  {}) as Params$Resource$Customers$Reports$Countprintjobsbyprinter;
4479
5574
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4522,6 +5617,66 @@ export namespace chromemanagement_v1 {
4522
5617
 
4523
5618
  /**
4524
5619
  * Get a summary of printing done by each user.
5620
+ * @example
5621
+ * ```js
5622
+ * // Before running the sample:
5623
+ * // - Enable the API at:
5624
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
5625
+ * // - Login into gcloud by running:
5626
+ * // ```sh
5627
+ * // $ gcloud auth application-default login
5628
+ * // ```
5629
+ * // - Install the npm module by running:
5630
+ * // ```sh
5631
+ * // $ npm install googleapis
5632
+ * // ```
5633
+ *
5634
+ * const {google} = require('googleapis');
5635
+ * const chromemanagement = google.chromemanagement('v1');
5636
+ *
5637
+ * async function main() {
5638
+ * const auth = new google.auth.GoogleAuth({
5639
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5640
+ * scopes: [
5641
+ * 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
5642
+ * ],
5643
+ * });
5644
+ *
5645
+ * // Acquire an auth client, and bind it to all future calls
5646
+ * const authClient = await auth.getClient();
5647
+ * google.options({auth: authClient});
5648
+ *
5649
+ * // Do the magic
5650
+ * const res = await chromemanagement.customers.reports.countPrintJobsByUser({
5651
+ * // Required. Customer ID prefixed with "customers/" or "customers/my_customer" to use the customer associated to the account making the request.
5652
+ * customer: 'customers/my-customer',
5653
+ * // 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
5654
+ * filter: 'placeholder-value',
5655
+ * // 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
5656
+ * orderBy: 'placeholder-value',
5657
+ * // Maximum number of results to return. Maximum and default are 100.
5658
+ * pageSize: 'placeholder-value',
5659
+ * // Token to specify the page of the response to be returned.
5660
+ * pageToken: 'placeholder-value',
5661
+ * // 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.
5662
+ * printerOrgUnitId: 'placeholder-value',
5663
+ * });
5664
+ * console.log(res.data);
5665
+ *
5666
+ * // Example response
5667
+ * // {
5668
+ * // "nextPageToken": "my_nextPageToken",
5669
+ * // "totalSize": "my_totalSize",
5670
+ * // "userPrintReports": []
5671
+ * // }
5672
+ * }
5673
+ *
5674
+ * main().catch(e => {
5675
+ * console.error(e);
5676
+ * throw e;
5677
+ * });
5678
+ *
5679
+ * ```
4525
5680
  *
4526
5681
  * @param params - Parameters for request
4527
5682
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4531,11 +5686,13 @@ export namespace chromemanagement_v1 {
4531
5686
  countPrintJobsByUser(
4532
5687
  params: Params$Resource$Customers$Reports$Countprintjobsbyuser,
4533
5688
  options: StreamMethodOptions
4534
- ): GaxiosPromise<Readable>;
5689
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4535
5690
  countPrintJobsByUser(
4536
5691
  params?: Params$Resource$Customers$Reports$Countprintjobsbyuser,
4537
5692
  options?: MethodOptions
4538
- ): GaxiosPromise<Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse>;
5693
+ ): Promise<
5694
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse>
5695
+ >;
4539
5696
  countPrintJobsByUser(
4540
5697
  params: Params$Resource$Customers$Reports$Countprintjobsbyuser,
4541
5698
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4570,8 +5727,10 @@ export namespace chromemanagement_v1 {
4570
5727
  | BodyResponseCallback<Readable>
4571
5728
  ):
4572
5729
  | void
4573
- | GaxiosPromise<Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse>
4574
- | GaxiosPromise<Readable> {
5730
+ | Promise<
5731
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse>
5732
+ >
5733
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4575
5734
  let params = (paramsOrCallback ||
4576
5735
  {}) as Params$Resource$Customers$Reports$Countprintjobsbyuser;
4577
5736
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4619,6 +5778,66 @@ export namespace chromemanagement_v1 {
4619
5778
 
4620
5779
  /**
4621
5780
  * Get a list of print jobs.
5781
+ * @example
5782
+ * ```js
5783
+ * // Before running the sample:
5784
+ * // - Enable the API at:
5785
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
5786
+ * // - Login into gcloud by running:
5787
+ * // ```sh
5788
+ * // $ gcloud auth application-default login
5789
+ * // ```
5790
+ * // - Install the npm module by running:
5791
+ * // ```sh
5792
+ * // $ npm install googleapis
5793
+ * // ```
5794
+ *
5795
+ * const {google} = require('googleapis');
5796
+ * const chromemanagement = google.chromemanagement('v1');
5797
+ *
5798
+ * async function main() {
5799
+ * const auth = new google.auth.GoogleAuth({
5800
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5801
+ * scopes: [
5802
+ * 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
5803
+ * ],
5804
+ * });
5805
+ *
5806
+ * // Acquire an auth client, and bind it to all future calls
5807
+ * const authClient = await auth.getClient();
5808
+ * google.options({auth: authClient});
5809
+ *
5810
+ * // Do the magic
5811
+ * const res = await chromemanagement.customers.reports.enumeratePrintJobs({
5812
+ * // Required. Customer ID prefixed with "customers/" or "customers/my_customer" to use the customer associated to the account making the request.
5813
+ * customer: 'customers/my-customer',
5814
+ * // 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
5815
+ * filter: 'placeholder-value',
5816
+ * // 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
5817
+ * orderBy: 'placeholder-value',
5818
+ * // 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.
5819
+ * pageSize: 'placeholder-value',
5820
+ * // 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.
5821
+ * pageToken: 'placeholder-value',
5822
+ * // The ID of the organizational unit for printers. If specified, only print jobs submitted to printers from the specified organizational unit will be returned.
5823
+ * printerOrgUnitId: 'placeholder-value',
5824
+ * });
5825
+ * console.log(res.data);
5826
+ *
5827
+ * // Example response
5828
+ * // {
5829
+ * // "nextPageToken": "my_nextPageToken",
5830
+ * // "printJobs": [],
5831
+ * // "totalSize": "my_totalSize"
5832
+ * // }
5833
+ * }
5834
+ *
5835
+ * main().catch(e => {
5836
+ * console.error(e);
5837
+ * throw e;
5838
+ * });
5839
+ *
5840
+ * ```
4622
5841
  *
4623
5842
  * @param params - Parameters for request
4624
5843
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4628,11 +5847,13 @@ export namespace chromemanagement_v1 {
4628
5847
  enumeratePrintJobs(
4629
5848
  params: Params$Resource$Customers$Reports$Enumerateprintjobs,
4630
5849
  options: StreamMethodOptions
4631
- ): GaxiosPromise<Readable>;
5850
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4632
5851
  enumeratePrintJobs(
4633
5852
  params?: Params$Resource$Customers$Reports$Enumerateprintjobs,
4634
5853
  options?: MethodOptions
4635
- ): GaxiosPromise<Schema$GoogleChromeManagementV1EnumeratePrintJobsResponse>;
5854
+ ): Promise<
5855
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1EnumeratePrintJobsResponse>
5856
+ >;
4636
5857
  enumeratePrintJobs(
4637
5858
  params: Params$Resource$Customers$Reports$Enumerateprintjobs,
4638
5859
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4667,8 +5888,10 @@ export namespace chromemanagement_v1 {
4667
5888
  | BodyResponseCallback<Readable>
4668
5889
  ):
4669
5890
  | void
4670
- | GaxiosPromise<Schema$GoogleChromeManagementV1EnumeratePrintJobsResponse>
4671
- | GaxiosPromise<Readable> {
5891
+ | Promise<
5892
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1EnumeratePrintJobsResponse>
5893
+ >
5894
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4672
5895
  let params = (paramsOrCallback ||
4673
5896
  {}) as Params$Resource$Customers$Reports$Enumerateprintjobs;
4674
5897
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4716,6 +5939,70 @@ export namespace chromemanagement_v1 {
4716
5939
 
4717
5940
  /**
4718
5941
  * Generate report of managed Chrome browser devices that have a specified app installed.
5942
+ * @example
5943
+ * ```js
5944
+ * // Before running the sample:
5945
+ * // - Enable the API at:
5946
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
5947
+ * // - Login into gcloud by running:
5948
+ * // ```sh
5949
+ * // $ gcloud auth application-default login
5950
+ * // ```
5951
+ * // - Install the npm module by running:
5952
+ * // ```sh
5953
+ * // $ npm install googleapis
5954
+ * // ```
5955
+ *
5956
+ * const {google} = require('googleapis');
5957
+ * const chromemanagement = google.chromemanagement('v1');
5958
+ *
5959
+ * async function main() {
5960
+ * const auth = new google.auth.GoogleAuth({
5961
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5962
+ * scopes: [
5963
+ * 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
5964
+ * ],
5965
+ * });
5966
+ *
5967
+ * // Acquire an auth client, and bind it to all future calls
5968
+ * const authClient = await auth.getClient();
5969
+ * google.options({auth: authClient});
5970
+ *
5971
+ * // Do the magic
5972
+ * const res = await chromemanagement.customers.reports.findInstalledAppDevices({
5973
+ * // 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).
5974
+ * appId: 'placeholder-value',
5975
+ * // Type of the app. Optional. If not provided, an app type will be inferred from the format of the app ID.
5976
+ * appType: 'placeholder-value',
5977
+ * // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
5978
+ * customer: 'customers/my-customer',
5979
+ * // 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
5980
+ * filter: 'placeholder-value',
5981
+ * // Field used to order results. Supported order by fields: * machine * device_id
5982
+ * orderBy: 'placeholder-value',
5983
+ * // The ID of the organizational unit.
5984
+ * orgUnitId: 'placeholder-value',
5985
+ * // Maximum number of results to return. Maximum and default are 100.
5986
+ * pageSize: 'placeholder-value',
5987
+ * // Token to specify the page of the request to be returned.
5988
+ * pageToken: 'placeholder-value',
5989
+ * });
5990
+ * console.log(res.data);
5991
+ *
5992
+ * // Example response
5993
+ * // {
5994
+ * // "devices": [],
5995
+ * // "nextPageToken": "my_nextPageToken",
5996
+ * // "totalSize": 0
5997
+ * // }
5998
+ * }
5999
+ *
6000
+ * main().catch(e => {
6001
+ * console.error(e);
6002
+ * throw e;
6003
+ * });
6004
+ *
6005
+ * ```
4719
6006
  *
4720
6007
  * @param params - Parameters for request
4721
6008
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4725,11 +6012,13 @@ export namespace chromemanagement_v1 {
4725
6012
  findInstalledAppDevices(
4726
6013
  params: Params$Resource$Customers$Reports$Findinstalledappdevices,
4727
6014
  options: StreamMethodOptions
4728
- ): GaxiosPromise<Readable>;
6015
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4729
6016
  findInstalledAppDevices(
4730
6017
  params?: Params$Resource$Customers$Reports$Findinstalledappdevices,
4731
6018
  options?: MethodOptions
4732
- ): GaxiosPromise<Schema$GoogleChromeManagementV1FindInstalledAppDevicesResponse>;
6019
+ ): Promise<
6020
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1FindInstalledAppDevicesResponse>
6021
+ >;
4733
6022
  findInstalledAppDevices(
4734
6023
  params: Params$Resource$Customers$Reports$Findinstalledappdevices,
4735
6024
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4764,8 +6053,10 @@ export namespace chromemanagement_v1 {
4764
6053
  | BodyResponseCallback<Readable>
4765
6054
  ):
4766
6055
  | void
4767
- | GaxiosPromise<Schema$GoogleChromeManagementV1FindInstalledAppDevicesResponse>
4768
- | GaxiosPromise<Readable> {
6056
+ | Promise<
6057
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1FindInstalledAppDevicesResponse>
6058
+ >
6059
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4769
6060
  let params = (paramsOrCallback ||
4770
6061
  {}) as Params$Resource$Customers$Reports$Findinstalledappdevices;
4771
6062
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5083,6 +6374,83 @@ export namespace chromemanagement_v1 {
5083
6374
 
5084
6375
  /**
5085
6376
  * Get telemetry device.
6377
+ * @example
6378
+ * ```js
6379
+ * // Before running the sample:
6380
+ * // - Enable the API at:
6381
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
6382
+ * // - Login into gcloud by running:
6383
+ * // ```sh
6384
+ * // $ gcloud auth application-default login
6385
+ * // ```
6386
+ * // - Install the npm module by running:
6387
+ * // ```sh
6388
+ * // $ npm install googleapis
6389
+ * // ```
6390
+ *
6391
+ * const {google} = require('googleapis');
6392
+ * const chromemanagement = google.chromemanagement('v1');
6393
+ *
6394
+ * async function main() {
6395
+ * const auth = new google.auth.GoogleAuth({
6396
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6397
+ * scopes: [
6398
+ * 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
6399
+ * ],
6400
+ * });
6401
+ *
6402
+ * // Acquire an auth client, and bind it to all future calls
6403
+ * const authClient = await auth.getClient();
6404
+ * google.options({auth: authClient});
6405
+ *
6406
+ * // Do the magic
6407
+ * const res = await chromemanagement.customers.telemetry.devices.get({
6408
+ * // Required. Name of the `TelemetryDevice` to return.
6409
+ * name: 'customers/my-customer/telemetry/devices/my-device',
6410
+ * // 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
6411
+ * readMask: 'placeholder-value',
6412
+ * });
6413
+ * console.log(res.data);
6414
+ *
6415
+ * // Example response
6416
+ * // {
6417
+ * // "appReport": [],
6418
+ * // "audioStatusReport": [],
6419
+ * // "batteryInfo": [],
6420
+ * // "batteryStatusReport": [],
6421
+ * // "bootPerformanceReport": [],
6422
+ * // "cpuInfo": [],
6423
+ * // "cpuStatusReport": [],
6424
+ * // "customer": "my_customer",
6425
+ * // "deviceId": "my_deviceId",
6426
+ * // "graphicsInfo": {},
6427
+ * // "graphicsStatusReport": [],
6428
+ * // "heartbeatStatusReport": [],
6429
+ * // "kioskAppStatusReport": [],
6430
+ * // "memoryInfo": {},
6431
+ * // "memoryStatusReport": [],
6432
+ * // "name": "my_name",
6433
+ * // "networkBandwidthReport": [],
6434
+ * // "networkDiagnosticsReport": [],
6435
+ * // "networkInfo": {},
6436
+ * // "networkStatusReport": [],
6437
+ * // "orgUnitId": "my_orgUnitId",
6438
+ * // "osUpdateStatus": [],
6439
+ * // "peripheralsReport": [],
6440
+ * // "runtimeCountersReport": [],
6441
+ * // "serialNumber": "my_serialNumber",
6442
+ * // "storageInfo": {},
6443
+ * // "storageStatusReport": [],
6444
+ * // "thunderboltInfo": []
6445
+ * // }
6446
+ * }
6447
+ *
6448
+ * main().catch(e => {
6449
+ * console.error(e);
6450
+ * throw e;
6451
+ * });
6452
+ *
6453
+ * ```
5086
6454
  *
5087
6455
  * @param params - Parameters for request
5088
6456
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5092,11 +6460,13 @@ export namespace chromemanagement_v1 {
5092
6460
  get(
5093
6461
  params: Params$Resource$Customers$Telemetry$Devices$Get,
5094
6462
  options: StreamMethodOptions
5095
- ): GaxiosPromise<Readable>;
6463
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5096
6464
  get(
5097
6465
  params?: Params$Resource$Customers$Telemetry$Devices$Get,
5098
6466
  options?: MethodOptions
5099
- ): GaxiosPromise<Schema$GoogleChromeManagementV1TelemetryDevice>;
6467
+ ): Promise<
6468
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1TelemetryDevice>
6469
+ >;
5100
6470
  get(
5101
6471
  params: Params$Resource$Customers$Telemetry$Devices$Get,
5102
6472
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5131,8 +6501,10 @@ export namespace chromemanagement_v1 {
5131
6501
  | BodyResponseCallback<Readable>
5132
6502
  ):
5133
6503
  | void
5134
- | GaxiosPromise<Schema$GoogleChromeManagementV1TelemetryDevice>
5135
- | GaxiosPromise<Readable> {
6504
+ | Promise<
6505
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1TelemetryDevice>
6506
+ >
6507
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5136
6508
  let params = (paramsOrCallback ||
5137
6509
  {}) as Params$Resource$Customers$Telemetry$Devices$Get;
5138
6510
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5178,6 +6550,63 @@ export namespace chromemanagement_v1 {
5178
6550
 
5179
6551
  /**
5180
6552
  * List all telemetry devices.
6553
+ * @example
6554
+ * ```js
6555
+ * // Before running the sample:
6556
+ * // - Enable the API at:
6557
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
6558
+ * // - Login into gcloud by running:
6559
+ * // ```sh
6560
+ * // $ gcloud auth application-default login
6561
+ * // ```
6562
+ * // - Install the npm module by running:
6563
+ * // ```sh
6564
+ * // $ npm install googleapis
6565
+ * // ```
6566
+ *
6567
+ * const {google} = require('googleapis');
6568
+ * const chromemanagement = google.chromemanagement('v1');
6569
+ *
6570
+ * async function main() {
6571
+ * const auth = new google.auth.GoogleAuth({
6572
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6573
+ * scopes: [
6574
+ * 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
6575
+ * ],
6576
+ * });
6577
+ *
6578
+ * // Acquire an auth client, and bind it to all future calls
6579
+ * const authClient = await auth.getClient();
6580
+ * google.options({auth: authClient});
6581
+ *
6582
+ * // Do the magic
6583
+ * const res = await chromemanagement.customers.telemetry.devices.list({
6584
+ * // 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".
6585
+ * filter: 'placeholder-value',
6586
+ * // Maximum number of results to return. Default value is 100. Maximum value is 1000.
6587
+ * pageSize: 'placeholder-value',
6588
+ * // Token to specify next page in the list.
6589
+ * pageToken: 'placeholder-value',
6590
+ * // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
6591
+ * parent: 'customers/my-customer',
6592
+ * // 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
6593
+ * readMask: 'placeholder-value',
6594
+ * });
6595
+ * console.log(res.data);
6596
+ *
6597
+ * // Example response
6598
+ * // {
6599
+ * // "devices": [],
6600
+ * // "nextPageToken": "my_nextPageToken"
6601
+ * // }
6602
+ * }
6603
+ *
6604
+ * main().catch(e => {
6605
+ * console.error(e);
6606
+ * throw e;
6607
+ * });
6608
+ *
6609
+ * ```
5181
6610
  *
5182
6611
  * @param params - Parameters for request
5183
6612
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5187,11 +6616,13 @@ export namespace chromemanagement_v1 {
5187
6616
  list(
5188
6617
  params: Params$Resource$Customers$Telemetry$Devices$List,
5189
6618
  options: StreamMethodOptions
5190
- ): GaxiosPromise<Readable>;
6619
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5191
6620
  list(
5192
6621
  params?: Params$Resource$Customers$Telemetry$Devices$List,
5193
6622
  options?: MethodOptions
5194
- ): GaxiosPromise<Schema$GoogleChromeManagementV1ListTelemetryDevicesResponse>;
6623
+ ): Promise<
6624
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1ListTelemetryDevicesResponse>
6625
+ >;
5195
6626
  list(
5196
6627
  params: Params$Resource$Customers$Telemetry$Devices$List,
5197
6628
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5226,8 +6657,10 @@ export namespace chromemanagement_v1 {
5226
6657
  | BodyResponseCallback<Readable>
5227
6658
  ):
5228
6659
  | void
5229
- | GaxiosPromise<Schema$GoogleChromeManagementV1ListTelemetryDevicesResponse>
5230
- | GaxiosPromise<Readable> {
6660
+ | Promise<
6661
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1ListTelemetryDevicesResponse>
6662
+ >
6663
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5231
6664
  let params = (paramsOrCallback ||
5232
6665
  {}) as Params$Resource$Customers$Telemetry$Devices$List;
5233
6666
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5318,6 +6751,63 @@ export namespace chromemanagement_v1 {
5318
6751
 
5319
6752
  /**
5320
6753
  * List telemetry events.
6754
+ * @example
6755
+ * ```js
6756
+ * // Before running the sample:
6757
+ * // - Enable the API at:
6758
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
6759
+ * // - Login into gcloud by running:
6760
+ * // ```sh
6761
+ * // $ gcloud auth application-default login
6762
+ * // ```
6763
+ * // - Install the npm module by running:
6764
+ * // ```sh
6765
+ * // $ npm install googleapis
6766
+ * // ```
6767
+ *
6768
+ * const {google} = require('googleapis');
6769
+ * const chromemanagement = google.chromemanagement('v1');
6770
+ *
6771
+ * async function main() {
6772
+ * const auth = new google.auth.GoogleAuth({
6773
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6774
+ * scopes: [
6775
+ * 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
6776
+ * ],
6777
+ * });
6778
+ *
6779
+ * // Acquire an auth client, and bind it to all future calls
6780
+ * const authClient = await auth.getClient();
6781
+ * google.options({auth: authClient});
6782
+ *
6783
+ * // Do the magic
6784
+ * const res = await chromemanagement.customers.telemetry.events.list({
6785
+ * // 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".
6786
+ * filter: 'placeholder-value',
6787
+ * // Optional. Maximum number of results to return. Default value is 100. Maximum value is 1000.
6788
+ * pageSize: 'placeholder-value',
6789
+ * // Optional. Token to specify next page in the list.
6790
+ * pageToken: 'placeholder-value',
6791
+ * // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
6792
+ * parent: 'customers/my-customer',
6793
+ * // 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
6794
+ * readMask: 'placeholder-value',
6795
+ * });
6796
+ * console.log(res.data);
6797
+ *
6798
+ * // Example response
6799
+ * // {
6800
+ * // "nextPageToken": "my_nextPageToken",
6801
+ * // "telemetryEvents": []
6802
+ * // }
6803
+ * }
6804
+ *
6805
+ * main().catch(e => {
6806
+ * console.error(e);
6807
+ * throw e;
6808
+ * });
6809
+ *
6810
+ * ```
5321
6811
  *
5322
6812
  * @param params - Parameters for request
5323
6813
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5327,11 +6817,13 @@ export namespace chromemanagement_v1 {
5327
6817
  list(
5328
6818
  params: Params$Resource$Customers$Telemetry$Events$List,
5329
6819
  options: StreamMethodOptions
5330
- ): GaxiosPromise<Readable>;
6820
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5331
6821
  list(
5332
6822
  params?: Params$Resource$Customers$Telemetry$Events$List,
5333
6823
  options?: MethodOptions
5334
- ): GaxiosPromise<Schema$GoogleChromeManagementV1ListTelemetryEventsResponse>;
6824
+ ): Promise<
6825
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1ListTelemetryEventsResponse>
6826
+ >;
5335
6827
  list(
5336
6828
  params: Params$Resource$Customers$Telemetry$Events$List,
5337
6829
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5366,8 +6858,10 @@ export namespace chromemanagement_v1 {
5366
6858
  | BodyResponseCallback<Readable>
5367
6859
  ):
5368
6860
  | void
5369
- | GaxiosPromise<Schema$GoogleChromeManagementV1ListTelemetryEventsResponse>
5370
- | GaxiosPromise<Readable> {
6861
+ | Promise<
6862
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1ListTelemetryEventsResponse>
6863
+ >
6864
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5371
6865
  let params = (paramsOrCallback ||
5372
6866
  {}) as Params$Resource$Customers$Telemetry$Events$List;
5373
6867
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5447,6 +6941,69 @@ export namespace chromemanagement_v1 {
5447
6941
 
5448
6942
  /**
5449
6943
  * Create a telemetry notification config.
6944
+ * @example
6945
+ * ```js
6946
+ * // Before running the sample:
6947
+ * // - Enable the API at:
6948
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
6949
+ * // - Login into gcloud by running:
6950
+ * // ```sh
6951
+ * // $ gcloud auth application-default login
6952
+ * // ```
6953
+ * // - Install the npm module by running:
6954
+ * // ```sh
6955
+ * // $ npm install googleapis
6956
+ * // ```
6957
+ *
6958
+ * const {google} = require('googleapis');
6959
+ * const chromemanagement = google.chromemanagement('v1');
6960
+ *
6961
+ * async function main() {
6962
+ * const auth = new google.auth.GoogleAuth({
6963
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6964
+ * scopes: [
6965
+ * 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
6966
+ * ],
6967
+ * });
6968
+ *
6969
+ * // Acquire an auth client, and bind it to all future calls
6970
+ * const authClient = await auth.getClient();
6971
+ * google.options({auth: authClient});
6972
+ *
6973
+ * // Do the magic
6974
+ * const res =
6975
+ * await chromemanagement.customers.telemetry.notificationConfigs.create({
6976
+ * // Required. The parent resource where this notification config will be created. Format: `customers/{customer\}`
6977
+ * parent: 'customers/my-customer',
6978
+ *
6979
+ * // Request body metadata
6980
+ * requestBody: {
6981
+ * // request body parameters
6982
+ * // {
6983
+ * // "customer": "my_customer",
6984
+ * // "filter": {},
6985
+ * // "googleCloudPubsubTopic": "my_googleCloudPubsubTopic",
6986
+ * // "name": "my_name"
6987
+ * // }
6988
+ * },
6989
+ * });
6990
+ * console.log(res.data);
6991
+ *
6992
+ * // Example response
6993
+ * // {
6994
+ * // "customer": "my_customer",
6995
+ * // "filter": {},
6996
+ * // "googleCloudPubsubTopic": "my_googleCloudPubsubTopic",
6997
+ * // "name": "my_name"
6998
+ * // }
6999
+ * }
7000
+ *
7001
+ * main().catch(e => {
7002
+ * console.error(e);
7003
+ * throw e;
7004
+ * });
7005
+ *
7006
+ * ```
5450
7007
  *
5451
7008
  * @param params - Parameters for request
5452
7009
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5456,11 +7013,13 @@ export namespace chromemanagement_v1 {
5456
7013
  create(
5457
7014
  params: Params$Resource$Customers$Telemetry$Notificationconfigs$Create,
5458
7015
  options: StreamMethodOptions
5459
- ): GaxiosPromise<Readable>;
7016
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5460
7017
  create(
5461
7018
  params?: Params$Resource$Customers$Telemetry$Notificationconfigs$Create,
5462
7019
  options?: MethodOptions
5463
- ): GaxiosPromise<Schema$GoogleChromeManagementV1TelemetryNotificationConfig>;
7020
+ ): Promise<
7021
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1TelemetryNotificationConfig>
7022
+ >;
5464
7023
  create(
5465
7024
  params: Params$Resource$Customers$Telemetry$Notificationconfigs$Create,
5466
7025
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5495,8 +7054,10 @@ export namespace chromemanagement_v1 {
5495
7054
  | BodyResponseCallback<Readable>
5496
7055
  ):
5497
7056
  | void
5498
- | GaxiosPromise<Schema$GoogleChromeManagementV1TelemetryNotificationConfig>
5499
- | GaxiosPromise<Readable> {
7057
+ | Promise<
7058
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1TelemetryNotificationConfig>
7059
+ >
7060
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5500
7061
  let params = (paramsOrCallback ||
5501
7062
  {}) as Params$Resource$Customers$Telemetry$Notificationconfigs$Create;
5502
7063
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5545,6 +7106,53 @@ export namespace chromemanagement_v1 {
5545
7106
 
5546
7107
  /**
5547
7108
  * Delete a telemetry notification config.
7109
+ * @example
7110
+ * ```js
7111
+ * // Before running the sample:
7112
+ * // - Enable the API at:
7113
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
7114
+ * // - Login into gcloud by running:
7115
+ * // ```sh
7116
+ * // $ gcloud auth application-default login
7117
+ * // ```
7118
+ * // - Install the npm module by running:
7119
+ * // ```sh
7120
+ * // $ npm install googleapis
7121
+ * // ```
7122
+ *
7123
+ * const {google} = require('googleapis');
7124
+ * const chromemanagement = google.chromemanagement('v1');
7125
+ *
7126
+ * async function main() {
7127
+ * const auth = new google.auth.GoogleAuth({
7128
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7129
+ * scopes: [
7130
+ * 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
7131
+ * ],
7132
+ * });
7133
+ *
7134
+ * // Acquire an auth client, and bind it to all future calls
7135
+ * const authClient = await auth.getClient();
7136
+ * google.options({auth: authClient});
7137
+ *
7138
+ * // Do the magic
7139
+ * const res =
7140
+ * await chromemanagement.customers.telemetry.notificationConfigs.delete({
7141
+ * // Required. The name of the notification config to delete. Format: `customers/{customer\}/telemetry/notificationConfigs/{notification_config\}`
7142
+ * name: 'customers/my-customer/telemetry/notificationConfigs/my-notificationConfig',
7143
+ * });
7144
+ * console.log(res.data);
7145
+ *
7146
+ * // Example response
7147
+ * // {}
7148
+ * }
7149
+ *
7150
+ * main().catch(e => {
7151
+ * console.error(e);
7152
+ * throw e;
7153
+ * });
7154
+ *
7155
+ * ```
5548
7156
  *
5549
7157
  * @param params - Parameters for request
5550
7158
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5554,11 +7162,11 @@ export namespace chromemanagement_v1 {
5554
7162
  delete(
5555
7163
  params: Params$Resource$Customers$Telemetry$Notificationconfigs$Delete,
5556
7164
  options: StreamMethodOptions
5557
- ): GaxiosPromise<Readable>;
7165
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5558
7166
  delete(
5559
7167
  params?: Params$Resource$Customers$Telemetry$Notificationconfigs$Delete,
5560
7168
  options?: MethodOptions
5561
- ): GaxiosPromise<Schema$GoogleProtobufEmpty>;
7169
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
5562
7170
  delete(
5563
7171
  params: Params$Resource$Customers$Telemetry$Notificationconfigs$Delete,
5564
7172
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5589,8 +7197,8 @@ export namespace chromemanagement_v1 {
5589
7197
  | BodyResponseCallback<Readable>
5590
7198
  ):
5591
7199
  | void
5592
- | GaxiosPromise<Schema$GoogleProtobufEmpty>
5593
- | GaxiosPromise<Readable> {
7200
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>
7201
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5594
7202
  let params = (paramsOrCallback ||
5595
7203
  {}) as Params$Resource$Customers$Telemetry$Notificationconfigs$Delete;
5596
7204
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5635,6 +7243,60 @@ export namespace chromemanagement_v1 {
5635
7243
 
5636
7244
  /**
5637
7245
  * List all telemetry notification configs.
7246
+ * @example
7247
+ * ```js
7248
+ * // Before running the sample:
7249
+ * // - Enable the API at:
7250
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
7251
+ * // - Login into gcloud by running:
7252
+ * // ```sh
7253
+ * // $ gcloud auth application-default login
7254
+ * // ```
7255
+ * // - Install the npm module by running:
7256
+ * // ```sh
7257
+ * // $ npm install googleapis
7258
+ * // ```
7259
+ *
7260
+ * const {google} = require('googleapis');
7261
+ * const chromemanagement = google.chromemanagement('v1');
7262
+ *
7263
+ * async function main() {
7264
+ * const auth = new google.auth.GoogleAuth({
7265
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7266
+ * scopes: [
7267
+ * 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
7268
+ * ],
7269
+ * });
7270
+ *
7271
+ * // Acquire an auth client, and bind it to all future calls
7272
+ * const authClient = await auth.getClient();
7273
+ * google.options({auth: authClient});
7274
+ *
7275
+ * // Do the magic
7276
+ * const res =
7277
+ * await chromemanagement.customers.telemetry.notificationConfigs.list({
7278
+ * // 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.
7279
+ * pageSize: 'placeholder-value',
7280
+ * // 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.
7281
+ * pageToken: 'placeholder-value',
7282
+ * // Required. The parent which owns the notification configs.
7283
+ * parent: 'customers/my-customer',
7284
+ * });
7285
+ * console.log(res.data);
7286
+ *
7287
+ * // Example response
7288
+ * // {
7289
+ * // "nextPageToken": "my_nextPageToken",
7290
+ * // "telemetryNotificationConfigs": []
7291
+ * // }
7292
+ * }
7293
+ *
7294
+ * main().catch(e => {
7295
+ * console.error(e);
7296
+ * throw e;
7297
+ * });
7298
+ *
7299
+ * ```
5638
7300
  *
5639
7301
  * @param params - Parameters for request
5640
7302
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5644,11 +7306,13 @@ export namespace chromemanagement_v1 {
5644
7306
  list(
5645
7307
  params: Params$Resource$Customers$Telemetry$Notificationconfigs$List,
5646
7308
  options: StreamMethodOptions
5647
- ): GaxiosPromise<Readable>;
7309
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5648
7310
  list(
5649
7311
  params?: Params$Resource$Customers$Telemetry$Notificationconfigs$List,
5650
7312
  options?: MethodOptions
5651
- ): GaxiosPromise<Schema$GoogleChromeManagementV1ListTelemetryNotificationConfigsResponse>;
7313
+ ): Promise<
7314
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1ListTelemetryNotificationConfigsResponse>
7315
+ >;
5652
7316
  list(
5653
7317
  params: Params$Resource$Customers$Telemetry$Notificationconfigs$List,
5654
7318
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5683,8 +7347,10 @@ export namespace chromemanagement_v1 {
5683
7347
  | BodyResponseCallback<Readable>
5684
7348
  ):
5685
7349
  | void
5686
- | GaxiosPromise<Schema$GoogleChromeManagementV1ListTelemetryNotificationConfigsResponse>
5687
- | GaxiosPromise<Readable> {
7350
+ | Promise<
7351
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1ListTelemetryNotificationConfigsResponse>
7352
+ >
7353
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5688
7354
  let params = (paramsOrCallback ||
5689
7355
  {}) as Params$Resource$Customers$Telemetry$Notificationconfigs$List;
5690
7356
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5775,6 +7441,61 @@ export namespace chromemanagement_v1 {
5775
7441
 
5776
7442
  /**
5777
7443
  * Get telemetry user.
7444
+ * @example
7445
+ * ```js
7446
+ * // Before running the sample:
7447
+ * // - Enable the API at:
7448
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
7449
+ * // - Login into gcloud by running:
7450
+ * // ```sh
7451
+ * // $ gcloud auth application-default login
7452
+ * // ```
7453
+ * // - Install the npm module by running:
7454
+ * // ```sh
7455
+ * // $ npm install googleapis
7456
+ * // ```
7457
+ *
7458
+ * const {google} = require('googleapis');
7459
+ * const chromemanagement = google.chromemanagement('v1');
7460
+ *
7461
+ * async function main() {
7462
+ * const auth = new google.auth.GoogleAuth({
7463
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7464
+ * scopes: [
7465
+ * 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
7466
+ * ],
7467
+ * });
7468
+ *
7469
+ * // Acquire an auth client, and bind it to all future calls
7470
+ * const authClient = await auth.getClient();
7471
+ * google.options({auth: authClient});
7472
+ *
7473
+ * // Do the magic
7474
+ * const res = await chromemanagement.customers.telemetry.users.get({
7475
+ * // Required. Name of the `TelemetryUser` to return.
7476
+ * name: 'customers/my-customer/telemetry/users/my-user',
7477
+ * // 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
7478
+ * readMask: 'placeholder-value',
7479
+ * });
7480
+ * console.log(res.data);
7481
+ *
7482
+ * // Example response
7483
+ * // {
7484
+ * // "customer": "my_customer",
7485
+ * // "name": "my_name",
7486
+ * // "orgUnitId": "my_orgUnitId",
7487
+ * // "userDevice": [],
7488
+ * // "userEmail": "my_userEmail",
7489
+ * // "userId": "my_userId"
7490
+ * // }
7491
+ * }
7492
+ *
7493
+ * main().catch(e => {
7494
+ * console.error(e);
7495
+ * throw e;
7496
+ * });
7497
+ *
7498
+ * ```
5778
7499
  *
5779
7500
  * @param params - Parameters for request
5780
7501
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5784,11 +7505,13 @@ export namespace chromemanagement_v1 {
5784
7505
  get(
5785
7506
  params: Params$Resource$Customers$Telemetry$Users$Get,
5786
7507
  options: StreamMethodOptions
5787
- ): GaxiosPromise<Readable>;
7508
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5788
7509
  get(
5789
7510
  params?: Params$Resource$Customers$Telemetry$Users$Get,
5790
7511
  options?: MethodOptions
5791
- ): GaxiosPromise<Schema$GoogleChromeManagementV1TelemetryUser>;
7512
+ ): Promise<
7513
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1TelemetryUser>
7514
+ >;
5792
7515
  get(
5793
7516
  params: Params$Resource$Customers$Telemetry$Users$Get,
5794
7517
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5823,8 +7546,10 @@ export namespace chromemanagement_v1 {
5823
7546
  | BodyResponseCallback<Readable>
5824
7547
  ):
5825
7548
  | void
5826
- | GaxiosPromise<Schema$GoogleChromeManagementV1TelemetryUser>
5827
- | GaxiosPromise<Readable> {
7549
+ | Promise<
7550
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1TelemetryUser>
7551
+ >
7552
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5828
7553
  let params = (paramsOrCallback ||
5829
7554
  {}) as Params$Resource$Customers$Telemetry$Users$Get;
5830
7555
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5870,6 +7595,63 @@ export namespace chromemanagement_v1 {
5870
7595
 
5871
7596
  /**
5872
7597
  * List all telemetry users.
7598
+ * @example
7599
+ * ```js
7600
+ * // Before running the sample:
7601
+ * // - Enable the API at:
7602
+ * // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
7603
+ * // - Login into gcloud by running:
7604
+ * // ```sh
7605
+ * // $ gcloud auth application-default login
7606
+ * // ```
7607
+ * // - Install the npm module by running:
7608
+ * // ```sh
7609
+ * // $ npm install googleapis
7610
+ * // ```
7611
+ *
7612
+ * const {google} = require('googleapis');
7613
+ * const chromemanagement = google.chromemanagement('v1');
7614
+ *
7615
+ * async function main() {
7616
+ * const auth = new google.auth.GoogleAuth({
7617
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7618
+ * scopes: [
7619
+ * 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
7620
+ * ],
7621
+ * });
7622
+ *
7623
+ * // Acquire an auth client, and bind it to all future calls
7624
+ * const authClient = await auth.getClient();
7625
+ * google.options({auth: authClient});
7626
+ *
7627
+ * // Do the magic
7628
+ * const res = await chromemanagement.customers.telemetry.users.list({
7629
+ * // Only include resources that match the filter. Supported filter fields: - user_id - user_org_unit_id
7630
+ * filter: 'placeholder-value',
7631
+ * // Maximum number of results to return. Default value is 100. Maximum value is 1000.
7632
+ * pageSize: 'placeholder-value',
7633
+ * // Token to specify next page in the list.
7634
+ * pageToken: 'placeholder-value',
7635
+ * // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
7636
+ * parent: 'customers/my-customer',
7637
+ * // 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
7638
+ * readMask: 'placeholder-value',
7639
+ * });
7640
+ * console.log(res.data);
7641
+ *
7642
+ * // Example response
7643
+ * // {
7644
+ * // "nextPageToken": "my_nextPageToken",
7645
+ * // "telemetryUsers": []
7646
+ * // }
7647
+ * }
7648
+ *
7649
+ * main().catch(e => {
7650
+ * console.error(e);
7651
+ * throw e;
7652
+ * });
7653
+ *
7654
+ * ```
5873
7655
  *
5874
7656
  * @param params - Parameters for request
5875
7657
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5879,11 +7661,13 @@ export namespace chromemanagement_v1 {
5879
7661
  list(
5880
7662
  params: Params$Resource$Customers$Telemetry$Users$List,
5881
7663
  options: StreamMethodOptions
5882
- ): GaxiosPromise<Readable>;
7664
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5883
7665
  list(
5884
7666
  params?: Params$Resource$Customers$Telemetry$Users$List,
5885
7667
  options?: MethodOptions
5886
- ): GaxiosPromise<Schema$GoogleChromeManagementV1ListTelemetryUsersResponse>;
7668
+ ): Promise<
7669
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1ListTelemetryUsersResponse>
7670
+ >;
5887
7671
  list(
5888
7672
  params: Params$Resource$Customers$Telemetry$Users$List,
5889
7673
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5918,8 +7702,10 @@ export namespace chromemanagement_v1 {
5918
7702
  | BodyResponseCallback<Readable>
5919
7703
  ):
5920
7704
  | void
5921
- | GaxiosPromise<Schema$GoogleChromeManagementV1ListTelemetryUsersResponse>
5922
- | GaxiosPromise<Readable> {
7705
+ | Promise<
7706
+ GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1ListTelemetryUsersResponse>
7707
+ >
7708
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5923
7709
  let params = (paramsOrCallback ||
5924
7710
  {}) as Params$Resource$Customers$Telemetry$Users$List;
5925
7711
  let options = (optionsOrCallback || {}) as MethodOptions;