@googleapis/chromemanagement 20.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
@@ -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`.
@@ -2811,6 +2890,65 @@ export namespace chromemanagement_v1 {
2811
2890
 
2812
2891
  /**
2813
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
+ * ```
2814
2952
  *
2815
2953
  * @param params - Parameters for request
2816
2954
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2913,6 +3051,65 @@ export namespace chromemanagement_v1 {
2913
3051
 
2914
3052
  /**
2915
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
+ * ```
2916
3113
  *
2917
3114
  * @param params - Parameters for request
2918
3115
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3092,6 +3289,72 @@ export namespace chromemanagement_v1 {
3092
3289
 
3093
3290
  /**
3094
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
+ * ```
3095
3358
  *
3096
3359
  * @param params - Parameters for request
3097
3360
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3206,6 +3469,72 @@ export namespace chromemanagement_v1 {
3206
3469
 
3207
3470
  /**
3208
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
+ * ```
3209
3538
  *
3210
3539
  * @param params - Parameters for request
3211
3540
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3320,6 +3649,72 @@ export namespace chromemanagement_v1 {
3320
3649
 
3321
3650
  /**
3322
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
+ * ```
3323
3718
  *
3324
3719
  * @param params - Parameters for request
3325
3720
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3434,6 +3829,50 @@ export namespace chromemanagement_v1 {
3434
3829
 
3435
3830
  /**
3436
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
+ * ```
3437
3876
  *
3438
3877
  * @param params - Parameters for request
3439
3878
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3523,6 +3962,80 @@ export namespace chromemanagement_v1 {
3523
3962
 
3524
3963
  /**
3525
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
+ * ```
3526
4039
  *
3527
4040
  * @param params - Parameters for request
3528
4041
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3622,6 +4135,65 @@ export namespace chromemanagement_v1 {
3622
4135
 
3623
4136
  /**
3624
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
+ * ```
3625
4197
  *
3626
4198
  * @param params - Parameters for request
3627
4199
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3769,6 +4341,61 @@ export namespace chromemanagement_v1 {
3769
4341
 
3770
4342
  /**
3771
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
+ * ```
3772
4399
  *
3773
4400
  * @param params - Parameters for request
3774
4401
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3872,6 +4499,60 @@ export namespace chromemanagement_v1 {
3872
4499
 
3873
4500
  /**
3874
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
+ * ```
3875
4556
  *
3876
4557
  * @param params - Parameters for request
3877
4558
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3973,6 +4654,63 @@ export namespace chromemanagement_v1 {
3973
4654
 
3974
4655
  /**
3975
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
+ * ```
3976
4714
  *
3977
4715
  * @param params - Parameters for request
3978
4716
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4076,6 +4814,65 @@ export namespace chromemanagement_v1 {
4076
4814
 
4077
4815
  /**
4078
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
+ * ```
4079
4876
  *
4080
4877
  * @param params - Parameters for request
4081
4878
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4179,6 +4976,62 @@ export namespace chromemanagement_v1 {
4179
4976
 
4180
4977
  /**
4181
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
+ * ```
4182
5035
  *
4183
5036
  * @param params - Parameters for request
4184
5037
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4282,6 +5135,64 @@ export namespace chromemanagement_v1 {
4282
5135
 
4283
5136
  /**
4284
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
+ * ```
4285
5196
  *
4286
5197
  * @param params - Parameters for request
4287
5198
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4383,6 +5294,66 @@ export namespace chromemanagement_v1 {
4383
5294
 
4384
5295
  /**
4385
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
+ * ```
4386
5357
  *
4387
5358
  * @param params - Parameters for request
4388
5359
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4484,6 +5455,66 @@ export namespace chromemanagement_v1 {
4484
5455
 
4485
5456
  /**
4486
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
+ * ```
4487
5518
  *
4488
5519
  * @param params - Parameters for request
4489
5520
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4586,6 +5617,66 @@ export namespace chromemanagement_v1 {
4586
5617
 
4587
5618
  /**
4588
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
+ * ```
4589
5680
  *
4590
5681
  * @param params - Parameters for request
4591
5682
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4687,6 +5778,66 @@ export namespace chromemanagement_v1 {
4687
5778
 
4688
5779
  /**
4689
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
+ * ```
4690
5841
  *
4691
5842
  * @param params - Parameters for request
4692
5843
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4788,6 +5939,70 @@ export namespace chromemanagement_v1 {
4788
5939
 
4789
5940
  /**
4790
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
+ * ```
4791
6006
  *
4792
6007
  * @param params - Parameters for request
4793
6008
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5159,6 +6374,83 @@ export namespace chromemanagement_v1 {
5159
6374
 
5160
6375
  /**
5161
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
+ * ```
5162
6454
  *
5163
6455
  * @param params - Parameters for request
5164
6456
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5258,6 +6550,63 @@ export namespace chromemanagement_v1 {
5258
6550
 
5259
6551
  /**
5260
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
+ * ```
5261
6610
  *
5262
6611
  * @param params - Parameters for request
5263
6612
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5402,6 +6751,63 @@ export namespace chromemanagement_v1 {
5402
6751
 
5403
6752
  /**
5404
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
+ * ```
5405
6811
  *
5406
6812
  * @param params - Parameters for request
5407
6813
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5535,6 +6941,69 @@ export namespace chromemanagement_v1 {
5535
6941
 
5536
6942
  /**
5537
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
+ * ```
5538
7007
  *
5539
7008
  * @param params - Parameters for request
5540
7009
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5637,6 +7106,53 @@ export namespace chromemanagement_v1 {
5637
7106
 
5638
7107
  /**
5639
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
+ * ```
5640
7156
  *
5641
7157
  * @param params - Parameters for request
5642
7158
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5727,6 +7243,60 @@ export namespace chromemanagement_v1 {
5727
7243
 
5728
7244
  /**
5729
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
+ * ```
5730
7300
  *
5731
7301
  * @param params - Parameters for request
5732
7302
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5871,6 +7441,61 @@ export namespace chromemanagement_v1 {
5871
7441
 
5872
7442
  /**
5873
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
+ * ```
5874
7499
  *
5875
7500
  * @param params - Parameters for request
5876
7501
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5970,6 +7595,63 @@ export namespace chromemanagement_v1 {
5970
7595
 
5971
7596
  /**
5972
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
+ * ```
5973
7655
  *
5974
7656
  * @param params - Parameters for request
5975
7657
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.