@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/CHANGELOG.md +25 -0
- package/build/v1.d.ts +1682 -0
- package/build/v1.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +1682 -0
package/build/v1.d.ts
CHANGED
|
@@ -1840,6 +1840,10 @@ export declare namespace chromemanagement_v1 {
|
|
|
1840
1840
|
* Output only. Payload for network connection state change event. Present only when `event_type` is `NETWORK_STATE_CHANGE`.
|
|
1841
1841
|
*/
|
|
1842
1842
|
networkStateChangeEvent?: Schema$GoogleChromeManagementV1TelemetryNetworkConnectionStateChangeEvent;
|
|
1843
|
+
/**
|
|
1844
|
+
* Output only. Payload for OS crash event. Present only when `event_type` is `OS_CRASH`.
|
|
1845
|
+
*/
|
|
1846
|
+
osCrashEvent?: Schema$GoogleChromeManagementV1TelemetryOsCrashEvent;
|
|
1843
1847
|
/**
|
|
1844
1848
|
* Timestamp that represents when the event was reported.
|
|
1845
1849
|
*/
|
|
@@ -1955,6 +1959,23 @@ export declare namespace chromemanagement_v1 {
|
|
|
1955
1959
|
*/
|
|
1956
1960
|
userOrgUnitId?: string | null;
|
|
1957
1961
|
}
|
|
1962
|
+
/**
|
|
1963
|
+
* OS crash data.
|
|
1964
|
+
*/
|
|
1965
|
+
export interface Schema$GoogleChromeManagementV1TelemetryOsCrashEvent {
|
|
1966
|
+
/**
|
|
1967
|
+
* Crash id.
|
|
1968
|
+
*/
|
|
1969
|
+
crashId?: string | null;
|
|
1970
|
+
/**
|
|
1971
|
+
* Crash type.
|
|
1972
|
+
*/
|
|
1973
|
+
crashType?: string | null;
|
|
1974
|
+
/**
|
|
1975
|
+
* Session type.
|
|
1976
|
+
*/
|
|
1977
|
+
sessionType?: string | null;
|
|
1978
|
+
}
|
|
1958
1979
|
/**
|
|
1959
1980
|
* `TelemetryUsbPeripheralsEvent` is triggered USB devices are either added or removed. * Granular permission needed: TELEMETRY_API_PERIPHERALS_REPORT
|
|
1960
1981
|
*/
|
|
@@ -2647,6 +2668,64 @@ export declare namespace chromemanagement_v1 {
|
|
|
2647
2668
|
constructor(context: APIRequestContext);
|
|
2648
2669
|
/**
|
|
2649
2670
|
* Generate summary of app installation requests.
|
|
2671
|
+
* @example
|
|
2672
|
+
* ```js
|
|
2673
|
+
* // Before running the sample:
|
|
2674
|
+
* // - Enable the API at:
|
|
2675
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
2676
|
+
* // - Login into gcloud by running:
|
|
2677
|
+
* // ```sh
|
|
2678
|
+
* // $ gcloud auth application-default login
|
|
2679
|
+
* // ```
|
|
2680
|
+
* // - Install the npm module by running:
|
|
2681
|
+
* // ```sh
|
|
2682
|
+
* // $ npm install googleapis
|
|
2683
|
+
* // ```
|
|
2684
|
+
*
|
|
2685
|
+
* const {google} = require('googleapis');
|
|
2686
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
2687
|
+
*
|
|
2688
|
+
* async function main() {
|
|
2689
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2690
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2691
|
+
* scopes: [
|
|
2692
|
+
* 'https://www.googleapis.com/auth/chrome.management.appdetails.readonly',
|
|
2693
|
+
* ],
|
|
2694
|
+
* });
|
|
2695
|
+
*
|
|
2696
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2697
|
+
* const authClient = await auth.getClient();
|
|
2698
|
+
* google.options({auth: authClient});
|
|
2699
|
+
*
|
|
2700
|
+
* // Do the magic
|
|
2701
|
+
* const res = await chromemanagement.customers.apps.countChromeAppRequests({
|
|
2702
|
+
* // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
2703
|
+
* customer: 'customers/my-customer',
|
|
2704
|
+
* // Field used to order results. Supported fields: * request_count * latest_request_time
|
|
2705
|
+
* orderBy: 'placeholder-value',
|
|
2706
|
+
* // The ID of the organizational unit.
|
|
2707
|
+
* orgUnitId: 'placeholder-value',
|
|
2708
|
+
* // Maximum number of results to return. Maximum and default are 50, anything above will be coerced to 50.
|
|
2709
|
+
* pageSize: 'placeholder-value',
|
|
2710
|
+
* // Token to specify the page of the request to be returned.
|
|
2711
|
+
* pageToken: 'placeholder-value',
|
|
2712
|
+
* });
|
|
2713
|
+
* console.log(res.data);
|
|
2714
|
+
*
|
|
2715
|
+
* // Example response
|
|
2716
|
+
* // {
|
|
2717
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
2718
|
+
* // "requestedApps": [],
|
|
2719
|
+
* // "totalSize": 0
|
|
2720
|
+
* // }
|
|
2721
|
+
* }
|
|
2722
|
+
*
|
|
2723
|
+
* main().catch(e => {
|
|
2724
|
+
* console.error(e);
|
|
2725
|
+
* throw e;
|
|
2726
|
+
* });
|
|
2727
|
+
*
|
|
2728
|
+
* ```
|
|
2650
2729
|
*
|
|
2651
2730
|
* @param params - Parameters for request
|
|
2652
2731
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2661,6 +2740,65 @@ export declare namespace chromemanagement_v1 {
|
|
|
2661
2740
|
countChromeAppRequests(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeAppRequestsResponse>): void;
|
|
2662
2741
|
/**
|
|
2663
2742
|
* Get a list of devices that have requested to install an extension.
|
|
2743
|
+
* @example
|
|
2744
|
+
* ```js
|
|
2745
|
+
* // Before running the sample:
|
|
2746
|
+
* // - Enable the API at:
|
|
2747
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
2748
|
+
* // - Login into gcloud by running:
|
|
2749
|
+
* // ```sh
|
|
2750
|
+
* // $ gcloud auth application-default login
|
|
2751
|
+
* // ```
|
|
2752
|
+
* // - Install the npm module by running:
|
|
2753
|
+
* // ```sh
|
|
2754
|
+
* // $ npm install googleapis
|
|
2755
|
+
* // ```
|
|
2756
|
+
*
|
|
2757
|
+
* const {google} = require('googleapis');
|
|
2758
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
2759
|
+
*
|
|
2760
|
+
* async function main() {
|
|
2761
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2762
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2763
|
+
* scopes: [
|
|
2764
|
+
* 'https://www.googleapis.com/auth/chrome.management.appdetails.readonly',
|
|
2765
|
+
* ],
|
|
2766
|
+
* });
|
|
2767
|
+
*
|
|
2768
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2769
|
+
* const authClient = await auth.getClient();
|
|
2770
|
+
* google.options({auth: authClient});
|
|
2771
|
+
*
|
|
2772
|
+
* // Do the magic
|
|
2773
|
+
* const res =
|
|
2774
|
+
* await chromemanagement.customers.apps.fetchDevicesRequestingExtension({
|
|
2775
|
+
* // Required. The customer ID or "my_customer" prefixed with "customers/".
|
|
2776
|
+
* customer: 'customers/my-customer',
|
|
2777
|
+
* // Required. The extension for which we want to find requesting devices.
|
|
2778
|
+
* extensionId: 'placeholder-value',
|
|
2779
|
+
* // 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.
|
|
2780
|
+
* orgUnitId: 'placeholder-value',
|
|
2781
|
+
* // Optional. Maximum number of results to return. Maximum and default are 50. Any page size larger than 50 will be coerced to 50.
|
|
2782
|
+
* pageSize: 'placeholder-value',
|
|
2783
|
+
* // Optional. Token to specify the page of the request to be returned. Token expires after 1 day.
|
|
2784
|
+
* pageToken: 'placeholder-value',
|
|
2785
|
+
* });
|
|
2786
|
+
* console.log(res.data);
|
|
2787
|
+
*
|
|
2788
|
+
* // Example response
|
|
2789
|
+
* // {
|
|
2790
|
+
* // "deviceDetails": [],
|
|
2791
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
2792
|
+
* // "totalSize": 0
|
|
2793
|
+
* // }
|
|
2794
|
+
* }
|
|
2795
|
+
*
|
|
2796
|
+
* main().catch(e => {
|
|
2797
|
+
* console.error(e);
|
|
2798
|
+
* throw e;
|
|
2799
|
+
* });
|
|
2800
|
+
*
|
|
2801
|
+
* ```
|
|
2664
2802
|
*
|
|
2665
2803
|
* @param params - Parameters for request
|
|
2666
2804
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2675,6 +2813,65 @@ export declare namespace chromemanagement_v1 {
|
|
|
2675
2813
|
fetchDevicesRequestingExtension(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1FetchDevicesRequestingExtensionResponse>): void;
|
|
2676
2814
|
/**
|
|
2677
2815
|
* Get a list of users that have requested to install an extension.
|
|
2816
|
+
* @example
|
|
2817
|
+
* ```js
|
|
2818
|
+
* // Before running the sample:
|
|
2819
|
+
* // - Enable the API at:
|
|
2820
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
2821
|
+
* // - Login into gcloud by running:
|
|
2822
|
+
* // ```sh
|
|
2823
|
+
* // $ gcloud auth application-default login
|
|
2824
|
+
* // ```
|
|
2825
|
+
* // - Install the npm module by running:
|
|
2826
|
+
* // ```sh
|
|
2827
|
+
* // $ npm install googleapis
|
|
2828
|
+
* // ```
|
|
2829
|
+
*
|
|
2830
|
+
* const {google} = require('googleapis');
|
|
2831
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
2832
|
+
*
|
|
2833
|
+
* async function main() {
|
|
2834
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2835
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2836
|
+
* scopes: [
|
|
2837
|
+
* 'https://www.googleapis.com/auth/chrome.management.appdetails.readonly',
|
|
2838
|
+
* ],
|
|
2839
|
+
* });
|
|
2840
|
+
*
|
|
2841
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2842
|
+
* const authClient = await auth.getClient();
|
|
2843
|
+
* google.options({auth: authClient});
|
|
2844
|
+
*
|
|
2845
|
+
* // Do the magic
|
|
2846
|
+
* const res =
|
|
2847
|
+
* await chromemanagement.customers.apps.fetchUsersRequestingExtension({
|
|
2848
|
+
* // Required. The customer ID or "my_customer" prefixed with "customers/".
|
|
2849
|
+
* customer: 'customers/my-customer',
|
|
2850
|
+
* // Required. The extension for which we want to find the requesting users.
|
|
2851
|
+
* extensionId: 'placeholder-value',
|
|
2852
|
+
* // 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.
|
|
2853
|
+
* orgUnitId: 'placeholder-value',
|
|
2854
|
+
* // Optional. Maximum number of results to return. Maximum and default are 50. Any page size larger than 50 will be coerced to 50.
|
|
2855
|
+
* pageSize: 'placeholder-value',
|
|
2856
|
+
* // Optional. Token to specify the page of the request to be returned. Token expires after 1 day.
|
|
2857
|
+
* pageToken: 'placeholder-value',
|
|
2858
|
+
* });
|
|
2859
|
+
* console.log(res.data);
|
|
2860
|
+
*
|
|
2861
|
+
* // Example response
|
|
2862
|
+
* // {
|
|
2863
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
2864
|
+
* // "totalSize": 0,
|
|
2865
|
+
* // "userDetails": []
|
|
2866
|
+
* // }
|
|
2867
|
+
* }
|
|
2868
|
+
*
|
|
2869
|
+
* main().catch(e => {
|
|
2870
|
+
* console.error(e);
|
|
2871
|
+
* throw e;
|
|
2872
|
+
* });
|
|
2873
|
+
*
|
|
2874
|
+
* ```
|
|
2678
2875
|
*
|
|
2679
2876
|
* @param params - Parameters for request
|
|
2680
2877
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2759,6 +2956,72 @@ export declare namespace chromemanagement_v1 {
|
|
|
2759
2956
|
constructor(context: APIRequestContext);
|
|
2760
2957
|
/**
|
|
2761
2958
|
* Get a specific app for a customer by its resource name.
|
|
2959
|
+
* @example
|
|
2960
|
+
* ```js
|
|
2961
|
+
* // Before running the sample:
|
|
2962
|
+
* // - Enable the API at:
|
|
2963
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
2964
|
+
* // - Login into gcloud by running:
|
|
2965
|
+
* // ```sh
|
|
2966
|
+
* // $ gcloud auth application-default login
|
|
2967
|
+
* // ```
|
|
2968
|
+
* // - Install the npm module by running:
|
|
2969
|
+
* // ```sh
|
|
2970
|
+
* // $ npm install googleapis
|
|
2971
|
+
* // ```
|
|
2972
|
+
*
|
|
2973
|
+
* const {google} = require('googleapis');
|
|
2974
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
2975
|
+
*
|
|
2976
|
+
* async function main() {
|
|
2977
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2978
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2979
|
+
* scopes: [
|
|
2980
|
+
* 'https://www.googleapis.com/auth/chrome.management.appdetails.readonly',
|
|
2981
|
+
* ],
|
|
2982
|
+
* });
|
|
2983
|
+
*
|
|
2984
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2985
|
+
* const authClient = await auth.getClient();
|
|
2986
|
+
* google.options({auth: authClient});
|
|
2987
|
+
*
|
|
2988
|
+
* // Do the magic
|
|
2989
|
+
* const res = await chromemanagement.customers.apps.android.get({
|
|
2990
|
+
* // 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.
|
|
2991
|
+
* name: 'customers/my-customer/apps/android/[^/]+',
|
|
2992
|
+
* });
|
|
2993
|
+
* console.log(res.data);
|
|
2994
|
+
*
|
|
2995
|
+
* // Example response
|
|
2996
|
+
* // {
|
|
2997
|
+
* // "androidAppInfo": {},
|
|
2998
|
+
* // "appId": "my_appId",
|
|
2999
|
+
* // "chromeAppInfo": {},
|
|
3000
|
+
* // "description": "my_description",
|
|
3001
|
+
* // "detailUri": "my_detailUri",
|
|
3002
|
+
* // "displayName": "my_displayName",
|
|
3003
|
+
* // "firstPublishTime": "my_firstPublishTime",
|
|
3004
|
+
* // "homepageUri": "my_homepageUri",
|
|
3005
|
+
* // "iconUri": "my_iconUri",
|
|
3006
|
+
* // "isPaidApp": false,
|
|
3007
|
+
* // "latestPublishTime": "my_latestPublishTime",
|
|
3008
|
+
* // "name": "my_name",
|
|
3009
|
+
* // "privacyPolicyUri": "my_privacyPolicyUri",
|
|
3010
|
+
* // "publisher": "my_publisher",
|
|
3011
|
+
* // "reviewNumber": "my_reviewNumber",
|
|
3012
|
+
* // "reviewRating": {},
|
|
3013
|
+
* // "revisionId": "my_revisionId",
|
|
3014
|
+
* // "serviceError": {},
|
|
3015
|
+
* // "type": "my_type"
|
|
3016
|
+
* // }
|
|
3017
|
+
* }
|
|
3018
|
+
*
|
|
3019
|
+
* main().catch(e => {
|
|
3020
|
+
* console.error(e);
|
|
3021
|
+
* throw e;
|
|
3022
|
+
* });
|
|
3023
|
+
*
|
|
3024
|
+
* ```
|
|
2762
3025
|
*
|
|
2763
3026
|
* @param params - Parameters for request
|
|
2764
3027
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2783,6 +3046,72 @@ export declare namespace chromemanagement_v1 {
|
|
|
2783
3046
|
constructor(context: APIRequestContext);
|
|
2784
3047
|
/**
|
|
2785
3048
|
* Get a specific app for a customer by its resource name.
|
|
3049
|
+
* @example
|
|
3050
|
+
* ```js
|
|
3051
|
+
* // Before running the sample:
|
|
3052
|
+
* // - Enable the API at:
|
|
3053
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
3054
|
+
* // - Login into gcloud by running:
|
|
3055
|
+
* // ```sh
|
|
3056
|
+
* // $ gcloud auth application-default login
|
|
3057
|
+
* // ```
|
|
3058
|
+
* // - Install the npm module by running:
|
|
3059
|
+
* // ```sh
|
|
3060
|
+
* // $ npm install googleapis
|
|
3061
|
+
* // ```
|
|
3062
|
+
*
|
|
3063
|
+
* const {google} = require('googleapis');
|
|
3064
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
3065
|
+
*
|
|
3066
|
+
* async function main() {
|
|
3067
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3068
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3069
|
+
* scopes: [
|
|
3070
|
+
* 'https://www.googleapis.com/auth/chrome.management.appdetails.readonly',
|
|
3071
|
+
* ],
|
|
3072
|
+
* });
|
|
3073
|
+
*
|
|
3074
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3075
|
+
* const authClient = await auth.getClient();
|
|
3076
|
+
* google.options({auth: authClient});
|
|
3077
|
+
*
|
|
3078
|
+
* // Do the magic
|
|
3079
|
+
* const res = await chromemanagement.customers.apps.chrome.get({
|
|
3080
|
+
* // 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.
|
|
3081
|
+
* name: 'customers/my-customer/apps/chrome/[^/]+',
|
|
3082
|
+
* });
|
|
3083
|
+
* console.log(res.data);
|
|
3084
|
+
*
|
|
3085
|
+
* // Example response
|
|
3086
|
+
* // {
|
|
3087
|
+
* // "androidAppInfo": {},
|
|
3088
|
+
* // "appId": "my_appId",
|
|
3089
|
+
* // "chromeAppInfo": {},
|
|
3090
|
+
* // "description": "my_description",
|
|
3091
|
+
* // "detailUri": "my_detailUri",
|
|
3092
|
+
* // "displayName": "my_displayName",
|
|
3093
|
+
* // "firstPublishTime": "my_firstPublishTime",
|
|
3094
|
+
* // "homepageUri": "my_homepageUri",
|
|
3095
|
+
* // "iconUri": "my_iconUri",
|
|
3096
|
+
* // "isPaidApp": false,
|
|
3097
|
+
* // "latestPublishTime": "my_latestPublishTime",
|
|
3098
|
+
* // "name": "my_name",
|
|
3099
|
+
* // "privacyPolicyUri": "my_privacyPolicyUri",
|
|
3100
|
+
* // "publisher": "my_publisher",
|
|
3101
|
+
* // "reviewNumber": "my_reviewNumber",
|
|
3102
|
+
* // "reviewRating": {},
|
|
3103
|
+
* // "revisionId": "my_revisionId",
|
|
3104
|
+
* // "serviceError": {},
|
|
3105
|
+
* // "type": "my_type"
|
|
3106
|
+
* // }
|
|
3107
|
+
* }
|
|
3108
|
+
*
|
|
3109
|
+
* main().catch(e => {
|
|
3110
|
+
* console.error(e);
|
|
3111
|
+
* throw e;
|
|
3112
|
+
* });
|
|
3113
|
+
*
|
|
3114
|
+
* ```
|
|
2786
3115
|
*
|
|
2787
3116
|
* @param params - Parameters for request
|
|
2788
3117
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2807,6 +3136,72 @@ export declare namespace chromemanagement_v1 {
|
|
|
2807
3136
|
constructor(context: APIRequestContext);
|
|
2808
3137
|
/**
|
|
2809
3138
|
* Get a specific app for a customer by its resource name.
|
|
3139
|
+
* @example
|
|
3140
|
+
* ```js
|
|
3141
|
+
* // Before running the sample:
|
|
3142
|
+
* // - Enable the API at:
|
|
3143
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
3144
|
+
* // - Login into gcloud by running:
|
|
3145
|
+
* // ```sh
|
|
3146
|
+
* // $ gcloud auth application-default login
|
|
3147
|
+
* // ```
|
|
3148
|
+
* // - Install the npm module by running:
|
|
3149
|
+
* // ```sh
|
|
3150
|
+
* // $ npm install googleapis
|
|
3151
|
+
* // ```
|
|
3152
|
+
*
|
|
3153
|
+
* const {google} = require('googleapis');
|
|
3154
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
3155
|
+
*
|
|
3156
|
+
* async function main() {
|
|
3157
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3158
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3159
|
+
* scopes: [
|
|
3160
|
+
* 'https://www.googleapis.com/auth/chrome.management.appdetails.readonly',
|
|
3161
|
+
* ],
|
|
3162
|
+
* });
|
|
3163
|
+
*
|
|
3164
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3165
|
+
* const authClient = await auth.getClient();
|
|
3166
|
+
* google.options({auth: authClient});
|
|
3167
|
+
*
|
|
3168
|
+
* // Do the magic
|
|
3169
|
+
* const res = await chromemanagement.customers.apps.web.get({
|
|
3170
|
+
* // 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.
|
|
3171
|
+
* name: 'customers/my-customer/apps/web/[^/]+',
|
|
3172
|
+
* });
|
|
3173
|
+
* console.log(res.data);
|
|
3174
|
+
*
|
|
3175
|
+
* // Example response
|
|
3176
|
+
* // {
|
|
3177
|
+
* // "androidAppInfo": {},
|
|
3178
|
+
* // "appId": "my_appId",
|
|
3179
|
+
* // "chromeAppInfo": {},
|
|
3180
|
+
* // "description": "my_description",
|
|
3181
|
+
* // "detailUri": "my_detailUri",
|
|
3182
|
+
* // "displayName": "my_displayName",
|
|
3183
|
+
* // "firstPublishTime": "my_firstPublishTime",
|
|
3184
|
+
* // "homepageUri": "my_homepageUri",
|
|
3185
|
+
* // "iconUri": "my_iconUri",
|
|
3186
|
+
* // "isPaidApp": false,
|
|
3187
|
+
* // "latestPublishTime": "my_latestPublishTime",
|
|
3188
|
+
* // "name": "my_name",
|
|
3189
|
+
* // "privacyPolicyUri": "my_privacyPolicyUri",
|
|
3190
|
+
* // "publisher": "my_publisher",
|
|
3191
|
+
* // "reviewNumber": "my_reviewNumber",
|
|
3192
|
+
* // "reviewRating": {},
|
|
3193
|
+
* // "revisionId": "my_revisionId",
|
|
3194
|
+
* // "serviceError": {},
|
|
3195
|
+
* // "type": "my_type"
|
|
3196
|
+
* // }
|
|
3197
|
+
* }
|
|
3198
|
+
*
|
|
3199
|
+
* main().catch(e => {
|
|
3200
|
+
* console.error(e);
|
|
3201
|
+
* throw e;
|
|
3202
|
+
* });
|
|
3203
|
+
*
|
|
3204
|
+
* ```
|
|
2810
3205
|
*
|
|
2811
3206
|
* @param params - Parameters for request
|
|
2812
3207
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2831,6 +3226,50 @@ export declare namespace chromemanagement_v1 {
|
|
|
2831
3226
|
constructor(context: APIRequestContext);
|
|
2832
3227
|
/**
|
|
2833
3228
|
* Deletes the data collected from a Chrome browser profile.
|
|
3229
|
+
* @example
|
|
3230
|
+
* ```js
|
|
3231
|
+
* // Before running the sample:
|
|
3232
|
+
* // - Enable the API at:
|
|
3233
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
3234
|
+
* // - Login into gcloud by running:
|
|
3235
|
+
* // ```sh
|
|
3236
|
+
* // $ gcloud auth application-default login
|
|
3237
|
+
* // ```
|
|
3238
|
+
* // - Install the npm module by running:
|
|
3239
|
+
* // ```sh
|
|
3240
|
+
* // $ npm install googleapis
|
|
3241
|
+
* // ```
|
|
3242
|
+
*
|
|
3243
|
+
* const {google} = require('googleapis');
|
|
3244
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
3245
|
+
*
|
|
3246
|
+
* async function main() {
|
|
3247
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3248
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3249
|
+
* scopes: ['https://www.googleapis.com/auth/chrome.management.profiles'],
|
|
3250
|
+
* });
|
|
3251
|
+
*
|
|
3252
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3253
|
+
* const authClient = await auth.getClient();
|
|
3254
|
+
* google.options({auth: authClient});
|
|
3255
|
+
*
|
|
3256
|
+
* // Do the magic
|
|
3257
|
+
* const res = await chromemanagement.customers.profiles.delete({
|
|
3258
|
+
* // Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}
|
|
3259
|
+
* name: 'customers/my-customer/profiles/my-profile',
|
|
3260
|
+
* });
|
|
3261
|
+
* console.log(res.data);
|
|
3262
|
+
*
|
|
3263
|
+
* // Example response
|
|
3264
|
+
* // {}
|
|
3265
|
+
* }
|
|
3266
|
+
*
|
|
3267
|
+
* main().catch(e => {
|
|
3268
|
+
* console.error(e);
|
|
3269
|
+
* throw e;
|
|
3270
|
+
* });
|
|
3271
|
+
*
|
|
3272
|
+
* ```
|
|
2834
3273
|
*
|
|
2835
3274
|
* @param params - Parameters for request
|
|
2836
3275
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2845,6 +3284,80 @@ export declare namespace chromemanagement_v1 {
|
|
|
2845
3284
|
delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
|
|
2846
3285
|
/**
|
|
2847
3286
|
* Gets a Chrome browser profile with customer ID and profile permanent ID.
|
|
3287
|
+
* @example
|
|
3288
|
+
* ```js
|
|
3289
|
+
* // Before running the sample:
|
|
3290
|
+
* // - Enable the API at:
|
|
3291
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
3292
|
+
* // - Login into gcloud by running:
|
|
3293
|
+
* // ```sh
|
|
3294
|
+
* // $ gcloud auth application-default login
|
|
3295
|
+
* // ```
|
|
3296
|
+
* // - Install the npm module by running:
|
|
3297
|
+
* // ```sh
|
|
3298
|
+
* // $ npm install googleapis
|
|
3299
|
+
* // ```
|
|
3300
|
+
*
|
|
3301
|
+
* const {google} = require('googleapis');
|
|
3302
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
3303
|
+
*
|
|
3304
|
+
* async function main() {
|
|
3305
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3306
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3307
|
+
* scopes: [
|
|
3308
|
+
* 'https://www.googleapis.com/auth/chrome.management.profiles',
|
|
3309
|
+
* 'https://www.googleapis.com/auth/chrome.management.profiles.readonly',
|
|
3310
|
+
* ],
|
|
3311
|
+
* });
|
|
3312
|
+
*
|
|
3313
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3314
|
+
* const authClient = await auth.getClient();
|
|
3315
|
+
* google.options({auth: authClient});
|
|
3316
|
+
*
|
|
3317
|
+
* // Do the magic
|
|
3318
|
+
* const res = await chromemanagement.customers.profiles.get({
|
|
3319
|
+
* // Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}
|
|
3320
|
+
* name: 'customers/my-customer/profiles/my-profile',
|
|
3321
|
+
* });
|
|
3322
|
+
* console.log(res.data);
|
|
3323
|
+
*
|
|
3324
|
+
* // Example response
|
|
3325
|
+
* // {
|
|
3326
|
+
* // "affiliationState": "my_affiliationState",
|
|
3327
|
+
* // "annotatedLocation": "my_annotatedLocation",
|
|
3328
|
+
* // "annotatedUser": "my_annotatedUser",
|
|
3329
|
+
* // "attestationCredential": {},
|
|
3330
|
+
* // "browserChannel": "my_browserChannel",
|
|
3331
|
+
* // "browserVersion": "my_browserVersion",
|
|
3332
|
+
* // "deviceInfo": {},
|
|
3333
|
+
* // "displayName": "my_displayName",
|
|
3334
|
+
* // "etag": "my_etag",
|
|
3335
|
+
* // "extensionCount": "my_extensionCount",
|
|
3336
|
+
* // "firstEnrollmentTime": "my_firstEnrollmentTime",
|
|
3337
|
+
* // "identityProvider": "my_identityProvider",
|
|
3338
|
+
* // "lastActivityTime": "my_lastActivityTime",
|
|
3339
|
+
* // "lastPolicyFetchTime": "my_lastPolicyFetchTime",
|
|
3340
|
+
* // "lastPolicySyncTime": "my_lastPolicySyncTime",
|
|
3341
|
+
* // "lastStatusReportTime": "my_lastStatusReportTime",
|
|
3342
|
+
* // "name": "my_name",
|
|
3343
|
+
* // "osPlatformType": "my_osPlatformType",
|
|
3344
|
+
* // "osPlatformVersion": "my_osPlatformVersion",
|
|
3345
|
+
* // "osVersion": "my_osVersion",
|
|
3346
|
+
* // "policyCount": "my_policyCount",
|
|
3347
|
+
* // "profileId": "my_profileId",
|
|
3348
|
+
* // "profilePermanentId": "my_profilePermanentId",
|
|
3349
|
+
* // "reportingData": {},
|
|
3350
|
+
* // "userEmail": "my_userEmail",
|
|
3351
|
+
* // "userId": "my_userId"
|
|
3352
|
+
* // }
|
|
3353
|
+
* }
|
|
3354
|
+
*
|
|
3355
|
+
* main().catch(e => {
|
|
3356
|
+
* console.error(e);
|
|
3357
|
+
* throw e;
|
|
3358
|
+
* });
|
|
3359
|
+
*
|
|
3360
|
+
* ```
|
|
2848
3361
|
*
|
|
2849
3362
|
* @param params - Parameters for request
|
|
2850
3363
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2859,6 +3372,65 @@ export declare namespace chromemanagement_v1 {
|
|
|
2859
3372
|
get(callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ChromeBrowserProfile>): void;
|
|
2860
3373
|
/**
|
|
2861
3374
|
* Lists Chrome browser profiles of a customer based on the given search and sorting criteria.
|
|
3375
|
+
* @example
|
|
3376
|
+
* ```js
|
|
3377
|
+
* // Before running the sample:
|
|
3378
|
+
* // - Enable the API at:
|
|
3379
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
3380
|
+
* // - Login into gcloud by running:
|
|
3381
|
+
* // ```sh
|
|
3382
|
+
* // $ gcloud auth application-default login
|
|
3383
|
+
* // ```
|
|
3384
|
+
* // - Install the npm module by running:
|
|
3385
|
+
* // ```sh
|
|
3386
|
+
* // $ npm install googleapis
|
|
3387
|
+
* // ```
|
|
3388
|
+
*
|
|
3389
|
+
* const {google} = require('googleapis');
|
|
3390
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
3391
|
+
*
|
|
3392
|
+
* async function main() {
|
|
3393
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3394
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3395
|
+
* scopes: [
|
|
3396
|
+
* 'https://www.googleapis.com/auth/chrome.management.profiles',
|
|
3397
|
+
* 'https://www.googleapis.com/auth/chrome.management.profiles.readonly',
|
|
3398
|
+
* ],
|
|
3399
|
+
* });
|
|
3400
|
+
*
|
|
3401
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3402
|
+
* const authClient = await auth.getClient();
|
|
3403
|
+
* google.options({auth: authClient});
|
|
3404
|
+
*
|
|
3405
|
+
* // Do the magic
|
|
3406
|
+
* const res = await chromemanagement.customers.profiles.list({
|
|
3407
|
+
* // 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.
|
|
3408
|
+
* filter: 'placeholder-value',
|
|
3409
|
+
* // 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.
|
|
3410
|
+
* orderBy: 'placeholder-value',
|
|
3411
|
+
* // 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.
|
|
3412
|
+
* pageSize: 'placeholder-value',
|
|
3413
|
+
* // Optional. The page token used to retrieve a specific page of the listing request.
|
|
3414
|
+
* pageToken: 'placeholder-value',
|
|
3415
|
+
* // Required. Format: customers/{customer_id\}
|
|
3416
|
+
* parent: 'customers/my-customer',
|
|
3417
|
+
* });
|
|
3418
|
+
* console.log(res.data);
|
|
3419
|
+
*
|
|
3420
|
+
* // Example response
|
|
3421
|
+
* // {
|
|
3422
|
+
* // "chromeBrowserProfiles": [],
|
|
3423
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
3424
|
+
* // "totalSize": "my_totalSize"
|
|
3425
|
+
* // }
|
|
3426
|
+
* }
|
|
3427
|
+
*
|
|
3428
|
+
* main().catch(e => {
|
|
3429
|
+
* console.error(e);
|
|
3430
|
+
* throw e;
|
|
3431
|
+
* });
|
|
3432
|
+
*
|
|
3433
|
+
* ```
|
|
2862
3434
|
*
|
|
2863
3435
|
* @param params - Parameters for request
|
|
2864
3436
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2911,6 +3483,61 @@ export declare namespace chromemanagement_v1 {
|
|
|
2911
3483
|
constructor(context: APIRequestContext);
|
|
2912
3484
|
/**
|
|
2913
3485
|
* Count of Chrome Browsers that have been recently enrolled, have new policy to be synced, or have no recent activity.
|
|
3486
|
+
* @example
|
|
3487
|
+
* ```js
|
|
3488
|
+
* // Before running the sample:
|
|
3489
|
+
* // - Enable the API at:
|
|
3490
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
3491
|
+
* // - Login into gcloud by running:
|
|
3492
|
+
* // ```sh
|
|
3493
|
+
* // $ gcloud auth application-default login
|
|
3494
|
+
* // ```
|
|
3495
|
+
* // - Install the npm module by running:
|
|
3496
|
+
* // ```sh
|
|
3497
|
+
* // $ npm install googleapis
|
|
3498
|
+
* // ```
|
|
3499
|
+
*
|
|
3500
|
+
* const {google} = require('googleapis');
|
|
3501
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
3502
|
+
*
|
|
3503
|
+
* async function main() {
|
|
3504
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3505
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3506
|
+
* scopes: [
|
|
3507
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
3508
|
+
* ],
|
|
3509
|
+
* });
|
|
3510
|
+
*
|
|
3511
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3512
|
+
* const authClient = await auth.getClient();
|
|
3513
|
+
* google.options({auth: authClient});
|
|
3514
|
+
*
|
|
3515
|
+
* // Do the magic
|
|
3516
|
+
* const res =
|
|
3517
|
+
* await chromemanagement.customers.reports.countChromeBrowsersNeedingAttention(
|
|
3518
|
+
* {
|
|
3519
|
+
* // Required. The customer ID or "my_customer" prefixed with "customers/".
|
|
3520
|
+
* customer: 'customers/my-customer',
|
|
3521
|
+
* // Optional. The ID of the organizational unit. If omitted, all data will be returned.
|
|
3522
|
+
* orgUnitId: 'placeholder-value',
|
|
3523
|
+
* },
|
|
3524
|
+
* );
|
|
3525
|
+
* console.log(res.data);
|
|
3526
|
+
*
|
|
3527
|
+
* // Example response
|
|
3528
|
+
* // {
|
|
3529
|
+
* // "noRecentActivityCount": "my_noRecentActivityCount",
|
|
3530
|
+
* // "pendingBrowserUpdateCount": "my_pendingBrowserUpdateCount",
|
|
3531
|
+
* // "recentlyEnrolledCount": "my_recentlyEnrolledCount"
|
|
3532
|
+
* // }
|
|
3533
|
+
* }
|
|
3534
|
+
*
|
|
3535
|
+
* main().catch(e => {
|
|
3536
|
+
* console.error(e);
|
|
3537
|
+
* throw e;
|
|
3538
|
+
* });
|
|
3539
|
+
*
|
|
3540
|
+
* ```
|
|
2914
3541
|
*
|
|
2915
3542
|
* @param params - Parameters for request
|
|
2916
3543
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2925,6 +3552,60 @@ export declare namespace chromemanagement_v1 {
|
|
|
2925
3552
|
countChromeBrowsersNeedingAttention(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>): void;
|
|
2926
3553
|
/**
|
|
2927
3554
|
* Get a count of Chrome crash events.
|
|
3555
|
+
* @example
|
|
3556
|
+
* ```js
|
|
3557
|
+
* // Before running the sample:
|
|
3558
|
+
* // - Enable the API at:
|
|
3559
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
3560
|
+
* // - Login into gcloud by running:
|
|
3561
|
+
* // ```sh
|
|
3562
|
+
* // $ gcloud auth application-default login
|
|
3563
|
+
* // ```
|
|
3564
|
+
* // - Install the npm module by running:
|
|
3565
|
+
* // ```sh
|
|
3566
|
+
* // $ npm install googleapis
|
|
3567
|
+
* // ```
|
|
3568
|
+
*
|
|
3569
|
+
* const {google} = require('googleapis');
|
|
3570
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
3571
|
+
*
|
|
3572
|
+
* async function main() {
|
|
3573
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3574
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3575
|
+
* scopes: [
|
|
3576
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
3577
|
+
* ],
|
|
3578
|
+
* });
|
|
3579
|
+
*
|
|
3580
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3581
|
+
* const authClient = await auth.getClient();
|
|
3582
|
+
* google.options({auth: authClient});
|
|
3583
|
+
*
|
|
3584
|
+
* // Do the magic
|
|
3585
|
+
* const res = await chromemanagement.customers.reports.countChromeCrashEvents({
|
|
3586
|
+
* // Customer ID.
|
|
3587
|
+
* customer: 'customers/my-customer',
|
|
3588
|
+
* // 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'`.
|
|
3589
|
+
* filter: 'placeholder-value',
|
|
3590
|
+
* // Field used to order results. Supported order by fields: * browser_version * count * date
|
|
3591
|
+
* orderBy: 'placeholder-value',
|
|
3592
|
+
* // If specified, only count the number of crash events of the devices in this organizational unit.
|
|
3593
|
+
* orgUnitId: 'placeholder-value',
|
|
3594
|
+
* });
|
|
3595
|
+
* console.log(res.data);
|
|
3596
|
+
*
|
|
3597
|
+
* // Example response
|
|
3598
|
+
* // {
|
|
3599
|
+
* // "crashEventCounts": []
|
|
3600
|
+
* // }
|
|
3601
|
+
* }
|
|
3602
|
+
*
|
|
3603
|
+
* main().catch(e => {
|
|
3604
|
+
* console.error(e);
|
|
3605
|
+
* throw e;
|
|
3606
|
+
* });
|
|
3607
|
+
*
|
|
3608
|
+
* ```
|
|
2928
3609
|
*
|
|
2929
3610
|
* @param params - Parameters for request
|
|
2930
3611
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2939,6 +3620,63 @@ export declare namespace chromemanagement_v1 {
|
|
|
2939
3620
|
countChromeCrashEvents(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeCrashEventsResponse>): void;
|
|
2940
3621
|
/**
|
|
2941
3622
|
* 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).
|
|
3623
|
+
* @example
|
|
3624
|
+
* ```js
|
|
3625
|
+
* // Before running the sample:
|
|
3626
|
+
* // - Enable the API at:
|
|
3627
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
3628
|
+
* // - Login into gcloud by running:
|
|
3629
|
+
* // ```sh
|
|
3630
|
+
* // $ gcloud auth application-default login
|
|
3631
|
+
* // ```
|
|
3632
|
+
* // - Install the npm module by running:
|
|
3633
|
+
* // ```sh
|
|
3634
|
+
* // $ npm install googleapis
|
|
3635
|
+
* // ```
|
|
3636
|
+
*
|
|
3637
|
+
* const {google} = require('googleapis');
|
|
3638
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
3639
|
+
*
|
|
3640
|
+
* async function main() {
|
|
3641
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3642
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3643
|
+
* scopes: [
|
|
3644
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
3645
|
+
* ],
|
|
3646
|
+
* });
|
|
3647
|
+
*
|
|
3648
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3649
|
+
* const authClient = await auth.getClient();
|
|
3650
|
+
* google.options({auth: authClient});
|
|
3651
|
+
*
|
|
3652
|
+
* // Do the magic
|
|
3653
|
+
* const res =
|
|
3654
|
+
* await chromemanagement.customers.reports.countChromeDevicesReachingAutoExpirationDate(
|
|
3655
|
+
* {
|
|
3656
|
+
* // Required. The customer ID or "my_customer" prefixed with "customers/".
|
|
3657
|
+
* customer: 'customers/my-customer',
|
|
3658
|
+
* // 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.
|
|
3659
|
+
* maxAueDate: 'placeholder-value',
|
|
3660
|
+
* // 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.
|
|
3661
|
+
* minAueDate: 'placeholder-value',
|
|
3662
|
+
* // Optional. The organizational unit ID, if omitted, will return data for all organizational units.
|
|
3663
|
+
* orgUnitId: 'placeholder-value',
|
|
3664
|
+
* },
|
|
3665
|
+
* );
|
|
3666
|
+
* console.log(res.data);
|
|
3667
|
+
*
|
|
3668
|
+
* // Example response
|
|
3669
|
+
* // {
|
|
3670
|
+
* // "deviceAueCountReports": []
|
|
3671
|
+
* // }
|
|
3672
|
+
* }
|
|
3673
|
+
*
|
|
3674
|
+
* main().catch(e => {
|
|
3675
|
+
* console.error(e);
|
|
3676
|
+
* throw e;
|
|
3677
|
+
* });
|
|
3678
|
+
*
|
|
3679
|
+
* ```
|
|
2942
3680
|
*
|
|
2943
3681
|
* @param params - Parameters for request
|
|
2944
3682
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2953,6 +3691,65 @@ export declare namespace chromemanagement_v1 {
|
|
|
2953
3691
|
countChromeDevicesReachingAutoExpirationDate(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse>): void;
|
|
2954
3692
|
/**
|
|
2955
3693
|
* 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
|
|
3694
|
+
* @example
|
|
3695
|
+
* ```js
|
|
3696
|
+
* // Before running the sample:
|
|
3697
|
+
* // - Enable the API at:
|
|
3698
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
3699
|
+
* // - Login into gcloud by running:
|
|
3700
|
+
* // ```sh
|
|
3701
|
+
* // $ gcloud auth application-default login
|
|
3702
|
+
* // ```
|
|
3703
|
+
* // - Install the npm module by running:
|
|
3704
|
+
* // ```sh
|
|
3705
|
+
* // $ npm install googleapis
|
|
3706
|
+
* // ```
|
|
3707
|
+
*
|
|
3708
|
+
* const {google} = require('googleapis');
|
|
3709
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
3710
|
+
*
|
|
3711
|
+
* async function main() {
|
|
3712
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3713
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3714
|
+
* scopes: [
|
|
3715
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
3716
|
+
* ],
|
|
3717
|
+
* });
|
|
3718
|
+
*
|
|
3719
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3720
|
+
* const authClient = await auth.getClient();
|
|
3721
|
+
* google.options({auth: authClient});
|
|
3722
|
+
*
|
|
3723
|
+
* // Do the magic
|
|
3724
|
+
* const res =
|
|
3725
|
+
* await chromemanagement.customers.reports.countChromeDevicesThatNeedAttention(
|
|
3726
|
+
* {
|
|
3727
|
+
* // Required. The customer ID or "my_customer" prefixed with "customers/".
|
|
3728
|
+
* customer: 'customers/my-customer',
|
|
3729
|
+
* // Optional. The ID of the organizational unit. If omitted, all data will be returned.
|
|
3730
|
+
* orgUnitId: 'placeholder-value',
|
|
3731
|
+
* // Required. Mask of the fields that should be populated in the returned report.
|
|
3732
|
+
* readMask: 'placeholder-value',
|
|
3733
|
+
* },
|
|
3734
|
+
* );
|
|
3735
|
+
* console.log(res.data);
|
|
3736
|
+
*
|
|
3737
|
+
* // Example response
|
|
3738
|
+
* // {
|
|
3739
|
+
* // "noRecentPolicySyncCount": "my_noRecentPolicySyncCount",
|
|
3740
|
+
* // "noRecentUserActivityCount": "my_noRecentUserActivityCount",
|
|
3741
|
+
* // "osVersionNotCompliantCount": "my_osVersionNotCompliantCount",
|
|
3742
|
+
* // "pendingUpdate": "my_pendingUpdate",
|
|
3743
|
+
* // "unsupportedPolicyCount": "my_unsupportedPolicyCount"
|
|
3744
|
+
* // }
|
|
3745
|
+
* }
|
|
3746
|
+
*
|
|
3747
|
+
* main().catch(e => {
|
|
3748
|
+
* console.error(e);
|
|
3749
|
+
* throw e;
|
|
3750
|
+
* });
|
|
3751
|
+
*
|
|
3752
|
+
* ```
|
|
2956
3753
|
*
|
|
2957
3754
|
* @param params - Parameters for request
|
|
2958
3755
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2967,6 +3764,62 @@ export declare namespace chromemanagement_v1 {
|
|
|
2967
3764
|
countChromeDevicesThatNeedAttention(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse>): void;
|
|
2968
3765
|
/**
|
|
2969
3766
|
* 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
|
|
3767
|
+
* @example
|
|
3768
|
+
* ```js
|
|
3769
|
+
* // Before running the sample:
|
|
3770
|
+
* // - Enable the API at:
|
|
3771
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
3772
|
+
* // - Login into gcloud by running:
|
|
3773
|
+
* // ```sh
|
|
3774
|
+
* // $ gcloud auth application-default login
|
|
3775
|
+
* // ```
|
|
3776
|
+
* // - Install the npm module by running:
|
|
3777
|
+
* // ```sh
|
|
3778
|
+
* // $ npm install googleapis
|
|
3779
|
+
* // ```
|
|
3780
|
+
*
|
|
3781
|
+
* const {google} = require('googleapis');
|
|
3782
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
3783
|
+
*
|
|
3784
|
+
* async function main() {
|
|
3785
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3786
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3787
|
+
* scopes: [
|
|
3788
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
3789
|
+
* ],
|
|
3790
|
+
* });
|
|
3791
|
+
*
|
|
3792
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3793
|
+
* const authClient = await auth.getClient();
|
|
3794
|
+
* google.options({auth: authClient});
|
|
3795
|
+
*
|
|
3796
|
+
* // Do the magic
|
|
3797
|
+
* const res =
|
|
3798
|
+
* await chromemanagement.customers.reports.countChromeHardwareFleetDevices({
|
|
3799
|
+
* // Required. The customer ID or "my_customer".
|
|
3800
|
+
* customer: 'customers/my-customer',
|
|
3801
|
+
* // Optional. The ID of the organizational unit. If omitted, all data will be returned.
|
|
3802
|
+
* orgUnitId: 'placeholder-value',
|
|
3803
|
+
* // Required. Mask of the fields that should be populated in the returned report.
|
|
3804
|
+
* readMask: 'placeholder-value',
|
|
3805
|
+
* });
|
|
3806
|
+
* console.log(res.data);
|
|
3807
|
+
*
|
|
3808
|
+
* // Example response
|
|
3809
|
+
* // {
|
|
3810
|
+
* // "cpuReports": [],
|
|
3811
|
+
* // "memoryReports": [],
|
|
3812
|
+
* // "modelReports": [],
|
|
3813
|
+
* // "storageReports": []
|
|
3814
|
+
* // }
|
|
3815
|
+
* }
|
|
3816
|
+
*
|
|
3817
|
+
* main().catch(e => {
|
|
3818
|
+
* console.error(e);
|
|
3819
|
+
* throw e;
|
|
3820
|
+
* });
|
|
3821
|
+
*
|
|
3822
|
+
* ```
|
|
2970
3823
|
*
|
|
2971
3824
|
* @param params - Parameters for request
|
|
2972
3825
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2981,6 +3834,64 @@ export declare namespace chromemanagement_v1 {
|
|
|
2981
3834
|
countChromeHardwareFleetDevices(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse>): void;
|
|
2982
3835
|
/**
|
|
2983
3836
|
* Generate report of installed Chrome versions.
|
|
3837
|
+
* @example
|
|
3838
|
+
* ```js
|
|
3839
|
+
* // Before running the sample:
|
|
3840
|
+
* // - Enable the API at:
|
|
3841
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
3842
|
+
* // - Login into gcloud by running:
|
|
3843
|
+
* // ```sh
|
|
3844
|
+
* // $ gcloud auth application-default login
|
|
3845
|
+
* // ```
|
|
3846
|
+
* // - Install the npm module by running:
|
|
3847
|
+
* // ```sh
|
|
3848
|
+
* // $ npm install googleapis
|
|
3849
|
+
* // ```
|
|
3850
|
+
*
|
|
3851
|
+
* const {google} = require('googleapis');
|
|
3852
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
3853
|
+
*
|
|
3854
|
+
* async function main() {
|
|
3855
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3856
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3857
|
+
* scopes: [
|
|
3858
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
3859
|
+
* ],
|
|
3860
|
+
* });
|
|
3861
|
+
*
|
|
3862
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3863
|
+
* const authClient = await auth.getClient();
|
|
3864
|
+
* google.options({auth: authClient});
|
|
3865
|
+
*
|
|
3866
|
+
* // Do the magic
|
|
3867
|
+
* const res = await chromemanagement.customers.reports.countChromeVersions({
|
|
3868
|
+
* // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
3869
|
+
* customer: 'customers/my-customer',
|
|
3870
|
+
* // 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
|
|
3871
|
+
* filter: 'placeholder-value',
|
|
3872
|
+
* // The ID of the organizational unit.
|
|
3873
|
+
* orgUnitId: 'placeholder-value',
|
|
3874
|
+
* // Maximum number of results to return. Maximum and default are 100.
|
|
3875
|
+
* pageSize: 'placeholder-value',
|
|
3876
|
+
* // Token to specify the page of the request to be returned.
|
|
3877
|
+
* pageToken: 'placeholder-value',
|
|
3878
|
+
* });
|
|
3879
|
+
* console.log(res.data);
|
|
3880
|
+
*
|
|
3881
|
+
* // Example response
|
|
3882
|
+
* // {
|
|
3883
|
+
* // "browserVersions": [],
|
|
3884
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
3885
|
+
* // "totalSize": 0
|
|
3886
|
+
* // }
|
|
3887
|
+
* }
|
|
3888
|
+
*
|
|
3889
|
+
* main().catch(e => {
|
|
3890
|
+
* console.error(e);
|
|
3891
|
+
* throw e;
|
|
3892
|
+
* });
|
|
3893
|
+
*
|
|
3894
|
+
* ```
|
|
2984
3895
|
*
|
|
2985
3896
|
* @param params - Parameters for request
|
|
2986
3897
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2995,6 +3906,66 @@ export declare namespace chromemanagement_v1 {
|
|
|
2995
3906
|
countChromeVersions(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeVersionsResponse>): void;
|
|
2996
3907
|
/**
|
|
2997
3908
|
* Generate report of app installations.
|
|
3909
|
+
* @example
|
|
3910
|
+
* ```js
|
|
3911
|
+
* // Before running the sample:
|
|
3912
|
+
* // - Enable the API at:
|
|
3913
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
3914
|
+
* // - Login into gcloud by running:
|
|
3915
|
+
* // ```sh
|
|
3916
|
+
* // $ gcloud auth application-default login
|
|
3917
|
+
* // ```
|
|
3918
|
+
* // - Install the npm module by running:
|
|
3919
|
+
* // ```sh
|
|
3920
|
+
* // $ npm install googleapis
|
|
3921
|
+
* // ```
|
|
3922
|
+
*
|
|
3923
|
+
* const {google} = require('googleapis');
|
|
3924
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
3925
|
+
*
|
|
3926
|
+
* async function main() {
|
|
3927
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3928
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3929
|
+
* scopes: [
|
|
3930
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
3931
|
+
* ],
|
|
3932
|
+
* });
|
|
3933
|
+
*
|
|
3934
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3935
|
+
* const authClient = await auth.getClient();
|
|
3936
|
+
* google.options({auth: authClient});
|
|
3937
|
+
*
|
|
3938
|
+
* // Do the magic
|
|
3939
|
+
* const res = await chromemanagement.customers.reports.countInstalledApps({
|
|
3940
|
+
* // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
3941
|
+
* customer: 'customers/my-customer',
|
|
3942
|
+
* // 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
|
|
3943
|
+
* filter: 'placeholder-value',
|
|
3944
|
+
* // 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
|
|
3945
|
+
* orderBy: 'placeholder-value',
|
|
3946
|
+
* // The ID of the organizational unit.
|
|
3947
|
+
* orgUnitId: 'placeholder-value',
|
|
3948
|
+
* // Maximum number of results to return. Maximum and default are 100.
|
|
3949
|
+
* pageSize: 'placeholder-value',
|
|
3950
|
+
* // Token to specify the page of the request to be returned.
|
|
3951
|
+
* pageToken: 'placeholder-value',
|
|
3952
|
+
* });
|
|
3953
|
+
* console.log(res.data);
|
|
3954
|
+
*
|
|
3955
|
+
* // Example response
|
|
3956
|
+
* // {
|
|
3957
|
+
* // "installedApps": [],
|
|
3958
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
3959
|
+
* // "totalSize": 0
|
|
3960
|
+
* // }
|
|
3961
|
+
* }
|
|
3962
|
+
*
|
|
3963
|
+
* main().catch(e => {
|
|
3964
|
+
* console.error(e);
|
|
3965
|
+
* throw e;
|
|
3966
|
+
* });
|
|
3967
|
+
*
|
|
3968
|
+
* ```
|
|
2998
3969
|
*
|
|
2999
3970
|
* @param params - Parameters for request
|
|
3000
3971
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3009,6 +3980,66 @@ export declare namespace chromemanagement_v1 {
|
|
|
3009
3980
|
countInstalledApps(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountInstalledAppsResponse>): void;
|
|
3010
3981
|
/**
|
|
3011
3982
|
* Get a summary of printing done by each printer.
|
|
3983
|
+
* @example
|
|
3984
|
+
* ```js
|
|
3985
|
+
* // Before running the sample:
|
|
3986
|
+
* // - Enable the API at:
|
|
3987
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
3988
|
+
* // - Login into gcloud by running:
|
|
3989
|
+
* // ```sh
|
|
3990
|
+
* // $ gcloud auth application-default login
|
|
3991
|
+
* // ```
|
|
3992
|
+
* // - Install the npm module by running:
|
|
3993
|
+
* // ```sh
|
|
3994
|
+
* // $ npm install googleapis
|
|
3995
|
+
* // ```
|
|
3996
|
+
*
|
|
3997
|
+
* const {google} = require('googleapis');
|
|
3998
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
3999
|
+
*
|
|
4000
|
+
* async function main() {
|
|
4001
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4002
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4003
|
+
* scopes: [
|
|
4004
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
4005
|
+
* ],
|
|
4006
|
+
* });
|
|
4007
|
+
*
|
|
4008
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4009
|
+
* const authClient = await auth.getClient();
|
|
4010
|
+
* google.options({auth: authClient});
|
|
4011
|
+
*
|
|
4012
|
+
* // Do the magic
|
|
4013
|
+
* const res = await chromemanagement.customers.reports.countPrintJobsByPrinter({
|
|
4014
|
+
* // Required. Customer ID prefixed with "customers/" or "customers/my_customer" to use the customer associated to the account making the request.
|
|
4015
|
+
* customer: 'customers/my-customer',
|
|
4016
|
+
* // 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
|
|
4017
|
+
* filter: 'placeholder-value',
|
|
4018
|
+
* // 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
|
|
4019
|
+
* orderBy: 'placeholder-value',
|
|
4020
|
+
* // Maximum number of results to return. Maximum and default are 100.
|
|
4021
|
+
* pageSize: 'placeholder-value',
|
|
4022
|
+
* // Token to specify the page of the response to be returned.
|
|
4023
|
+
* pageToken: 'placeholder-value',
|
|
4024
|
+
* // 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.
|
|
4025
|
+
* printerOrgUnitId: 'placeholder-value',
|
|
4026
|
+
* });
|
|
4027
|
+
* console.log(res.data);
|
|
4028
|
+
*
|
|
4029
|
+
* // Example response
|
|
4030
|
+
* // {
|
|
4031
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
4032
|
+
* // "printerReports": [],
|
|
4033
|
+
* // "totalSize": "my_totalSize"
|
|
4034
|
+
* // }
|
|
4035
|
+
* }
|
|
4036
|
+
*
|
|
4037
|
+
* main().catch(e => {
|
|
4038
|
+
* console.error(e);
|
|
4039
|
+
* throw e;
|
|
4040
|
+
* });
|
|
4041
|
+
*
|
|
4042
|
+
* ```
|
|
3012
4043
|
*
|
|
3013
4044
|
* @param params - Parameters for request
|
|
3014
4045
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3023,6 +4054,66 @@ export declare namespace chromemanagement_v1 {
|
|
|
3023
4054
|
countPrintJobsByPrinter(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByPrinterResponse>): void;
|
|
3024
4055
|
/**
|
|
3025
4056
|
* Get a summary of printing done by each user.
|
|
4057
|
+
* @example
|
|
4058
|
+
* ```js
|
|
4059
|
+
* // Before running the sample:
|
|
4060
|
+
* // - Enable the API at:
|
|
4061
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
4062
|
+
* // - Login into gcloud by running:
|
|
4063
|
+
* // ```sh
|
|
4064
|
+
* // $ gcloud auth application-default login
|
|
4065
|
+
* // ```
|
|
4066
|
+
* // - Install the npm module by running:
|
|
4067
|
+
* // ```sh
|
|
4068
|
+
* // $ npm install googleapis
|
|
4069
|
+
* // ```
|
|
4070
|
+
*
|
|
4071
|
+
* const {google} = require('googleapis');
|
|
4072
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
4073
|
+
*
|
|
4074
|
+
* async function main() {
|
|
4075
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4076
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4077
|
+
* scopes: [
|
|
4078
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
4079
|
+
* ],
|
|
4080
|
+
* });
|
|
4081
|
+
*
|
|
4082
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4083
|
+
* const authClient = await auth.getClient();
|
|
4084
|
+
* google.options({auth: authClient});
|
|
4085
|
+
*
|
|
4086
|
+
* // Do the magic
|
|
4087
|
+
* const res = await chromemanagement.customers.reports.countPrintJobsByUser({
|
|
4088
|
+
* // Required. Customer ID prefixed with "customers/" or "customers/my_customer" to use the customer associated to the account making the request.
|
|
4089
|
+
* customer: 'customers/my-customer',
|
|
4090
|
+
* // 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
|
|
4091
|
+
* filter: 'placeholder-value',
|
|
4092
|
+
* // 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
|
|
4093
|
+
* orderBy: 'placeholder-value',
|
|
4094
|
+
* // Maximum number of results to return. Maximum and default are 100.
|
|
4095
|
+
* pageSize: 'placeholder-value',
|
|
4096
|
+
* // Token to specify the page of the response to be returned.
|
|
4097
|
+
* pageToken: 'placeholder-value',
|
|
4098
|
+
* // 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.
|
|
4099
|
+
* printerOrgUnitId: 'placeholder-value',
|
|
4100
|
+
* });
|
|
4101
|
+
* console.log(res.data);
|
|
4102
|
+
*
|
|
4103
|
+
* // Example response
|
|
4104
|
+
* // {
|
|
4105
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
4106
|
+
* // "totalSize": "my_totalSize",
|
|
4107
|
+
* // "userPrintReports": []
|
|
4108
|
+
* // }
|
|
4109
|
+
* }
|
|
4110
|
+
*
|
|
4111
|
+
* main().catch(e => {
|
|
4112
|
+
* console.error(e);
|
|
4113
|
+
* throw e;
|
|
4114
|
+
* });
|
|
4115
|
+
*
|
|
4116
|
+
* ```
|
|
3026
4117
|
*
|
|
3027
4118
|
* @param params - Parameters for request
|
|
3028
4119
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3037,6 +4128,66 @@ export declare namespace chromemanagement_v1 {
|
|
|
3037
4128
|
countPrintJobsByUser(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountPrintJobsByUserResponse>): void;
|
|
3038
4129
|
/**
|
|
3039
4130
|
* Get a list of print jobs.
|
|
4131
|
+
* @example
|
|
4132
|
+
* ```js
|
|
4133
|
+
* // Before running the sample:
|
|
4134
|
+
* // - Enable the API at:
|
|
4135
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
4136
|
+
* // - Login into gcloud by running:
|
|
4137
|
+
* // ```sh
|
|
4138
|
+
* // $ gcloud auth application-default login
|
|
4139
|
+
* // ```
|
|
4140
|
+
* // - Install the npm module by running:
|
|
4141
|
+
* // ```sh
|
|
4142
|
+
* // $ npm install googleapis
|
|
4143
|
+
* // ```
|
|
4144
|
+
*
|
|
4145
|
+
* const {google} = require('googleapis');
|
|
4146
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
4147
|
+
*
|
|
4148
|
+
* async function main() {
|
|
4149
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4150
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4151
|
+
* scopes: [
|
|
4152
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
4153
|
+
* ],
|
|
4154
|
+
* });
|
|
4155
|
+
*
|
|
4156
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4157
|
+
* const authClient = await auth.getClient();
|
|
4158
|
+
* google.options({auth: authClient});
|
|
4159
|
+
*
|
|
4160
|
+
* // Do the magic
|
|
4161
|
+
* const res = await chromemanagement.customers.reports.enumeratePrintJobs({
|
|
4162
|
+
* // Required. Customer ID prefixed with "customers/" or "customers/my_customer" to use the customer associated to the account making the request.
|
|
4163
|
+
* customer: 'customers/my-customer',
|
|
4164
|
+
* // 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
|
|
4165
|
+
* filter: 'placeholder-value',
|
|
4166
|
+
* // 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
|
|
4167
|
+
* orderBy: 'placeholder-value',
|
|
4168
|
+
* // 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.
|
|
4169
|
+
* pageSize: 'placeholder-value',
|
|
4170
|
+
* // 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.
|
|
4171
|
+
* pageToken: 'placeholder-value',
|
|
4172
|
+
* // The ID of the organizational unit for printers. If specified, only print jobs submitted to printers from the specified organizational unit will be returned.
|
|
4173
|
+
* printerOrgUnitId: 'placeholder-value',
|
|
4174
|
+
* });
|
|
4175
|
+
* console.log(res.data);
|
|
4176
|
+
*
|
|
4177
|
+
* // Example response
|
|
4178
|
+
* // {
|
|
4179
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
4180
|
+
* // "printJobs": [],
|
|
4181
|
+
* // "totalSize": "my_totalSize"
|
|
4182
|
+
* // }
|
|
4183
|
+
* }
|
|
4184
|
+
*
|
|
4185
|
+
* main().catch(e => {
|
|
4186
|
+
* console.error(e);
|
|
4187
|
+
* throw e;
|
|
4188
|
+
* });
|
|
4189
|
+
*
|
|
4190
|
+
* ```
|
|
3040
4191
|
*
|
|
3041
4192
|
* @param params - Parameters for request
|
|
3042
4193
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3051,6 +4202,70 @@ export declare namespace chromemanagement_v1 {
|
|
|
3051
4202
|
enumeratePrintJobs(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1EnumeratePrintJobsResponse>): void;
|
|
3052
4203
|
/**
|
|
3053
4204
|
* Generate report of managed Chrome browser devices that have a specified app installed.
|
|
4205
|
+
* @example
|
|
4206
|
+
* ```js
|
|
4207
|
+
* // Before running the sample:
|
|
4208
|
+
* // - Enable the API at:
|
|
4209
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
4210
|
+
* // - Login into gcloud by running:
|
|
4211
|
+
* // ```sh
|
|
4212
|
+
* // $ gcloud auth application-default login
|
|
4213
|
+
* // ```
|
|
4214
|
+
* // - Install the npm module by running:
|
|
4215
|
+
* // ```sh
|
|
4216
|
+
* // $ npm install googleapis
|
|
4217
|
+
* // ```
|
|
4218
|
+
*
|
|
4219
|
+
* const {google} = require('googleapis');
|
|
4220
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
4221
|
+
*
|
|
4222
|
+
* async function main() {
|
|
4223
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4224
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4225
|
+
* scopes: [
|
|
4226
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
4227
|
+
* ],
|
|
4228
|
+
* });
|
|
4229
|
+
*
|
|
4230
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4231
|
+
* const authClient = await auth.getClient();
|
|
4232
|
+
* google.options({auth: authClient});
|
|
4233
|
+
*
|
|
4234
|
+
* // Do the magic
|
|
4235
|
+
* const res = await chromemanagement.customers.reports.findInstalledAppDevices({
|
|
4236
|
+
* // 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).
|
|
4237
|
+
* appId: 'placeholder-value',
|
|
4238
|
+
* // Type of the app. Optional. If not provided, an app type will be inferred from the format of the app ID.
|
|
4239
|
+
* appType: 'placeholder-value',
|
|
4240
|
+
* // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
4241
|
+
* customer: 'customers/my-customer',
|
|
4242
|
+
* // 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
|
|
4243
|
+
* filter: 'placeholder-value',
|
|
4244
|
+
* // Field used to order results. Supported order by fields: * machine * device_id
|
|
4245
|
+
* orderBy: 'placeholder-value',
|
|
4246
|
+
* // The ID of the organizational unit.
|
|
4247
|
+
* orgUnitId: 'placeholder-value',
|
|
4248
|
+
* // Maximum number of results to return. Maximum and default are 100.
|
|
4249
|
+
* pageSize: 'placeholder-value',
|
|
4250
|
+
* // Token to specify the page of the request to be returned.
|
|
4251
|
+
* pageToken: 'placeholder-value',
|
|
4252
|
+
* });
|
|
4253
|
+
* console.log(res.data);
|
|
4254
|
+
*
|
|
4255
|
+
* // Example response
|
|
4256
|
+
* // {
|
|
4257
|
+
* // "devices": [],
|
|
4258
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
4259
|
+
* // "totalSize": 0
|
|
4260
|
+
* // }
|
|
4261
|
+
* }
|
|
4262
|
+
*
|
|
4263
|
+
* main().catch(e => {
|
|
4264
|
+
* console.error(e);
|
|
4265
|
+
* throw e;
|
|
4266
|
+
* });
|
|
4267
|
+
*
|
|
4268
|
+
* ```
|
|
3054
4269
|
*
|
|
3055
4270
|
* @param params - Parameters for request
|
|
3056
4271
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3311,6 +4526,83 @@ export declare namespace chromemanagement_v1 {
|
|
|
3311
4526
|
constructor(context: APIRequestContext);
|
|
3312
4527
|
/**
|
|
3313
4528
|
* Get telemetry device.
|
|
4529
|
+
* @example
|
|
4530
|
+
* ```js
|
|
4531
|
+
* // Before running the sample:
|
|
4532
|
+
* // - Enable the API at:
|
|
4533
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
4534
|
+
* // - Login into gcloud by running:
|
|
4535
|
+
* // ```sh
|
|
4536
|
+
* // $ gcloud auth application-default login
|
|
4537
|
+
* // ```
|
|
4538
|
+
* // - Install the npm module by running:
|
|
4539
|
+
* // ```sh
|
|
4540
|
+
* // $ npm install googleapis
|
|
4541
|
+
* // ```
|
|
4542
|
+
*
|
|
4543
|
+
* const {google} = require('googleapis');
|
|
4544
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
4545
|
+
*
|
|
4546
|
+
* async function main() {
|
|
4547
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4548
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4549
|
+
* scopes: [
|
|
4550
|
+
* 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
|
|
4551
|
+
* ],
|
|
4552
|
+
* });
|
|
4553
|
+
*
|
|
4554
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4555
|
+
* const authClient = await auth.getClient();
|
|
4556
|
+
* google.options({auth: authClient});
|
|
4557
|
+
*
|
|
4558
|
+
* // Do the magic
|
|
4559
|
+
* const res = await chromemanagement.customers.telemetry.devices.get({
|
|
4560
|
+
* // Required. Name of the `TelemetryDevice` to return.
|
|
4561
|
+
* name: 'customers/my-customer/telemetry/devices/my-device',
|
|
4562
|
+
* // 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
|
|
4563
|
+
* readMask: 'placeholder-value',
|
|
4564
|
+
* });
|
|
4565
|
+
* console.log(res.data);
|
|
4566
|
+
*
|
|
4567
|
+
* // Example response
|
|
4568
|
+
* // {
|
|
4569
|
+
* // "appReport": [],
|
|
4570
|
+
* // "audioStatusReport": [],
|
|
4571
|
+
* // "batteryInfo": [],
|
|
4572
|
+
* // "batteryStatusReport": [],
|
|
4573
|
+
* // "bootPerformanceReport": [],
|
|
4574
|
+
* // "cpuInfo": [],
|
|
4575
|
+
* // "cpuStatusReport": [],
|
|
4576
|
+
* // "customer": "my_customer",
|
|
4577
|
+
* // "deviceId": "my_deviceId",
|
|
4578
|
+
* // "graphicsInfo": {},
|
|
4579
|
+
* // "graphicsStatusReport": [],
|
|
4580
|
+
* // "heartbeatStatusReport": [],
|
|
4581
|
+
* // "kioskAppStatusReport": [],
|
|
4582
|
+
* // "memoryInfo": {},
|
|
4583
|
+
* // "memoryStatusReport": [],
|
|
4584
|
+
* // "name": "my_name",
|
|
4585
|
+
* // "networkBandwidthReport": [],
|
|
4586
|
+
* // "networkDiagnosticsReport": [],
|
|
4587
|
+
* // "networkInfo": {},
|
|
4588
|
+
* // "networkStatusReport": [],
|
|
4589
|
+
* // "orgUnitId": "my_orgUnitId",
|
|
4590
|
+
* // "osUpdateStatus": [],
|
|
4591
|
+
* // "peripheralsReport": [],
|
|
4592
|
+
* // "runtimeCountersReport": [],
|
|
4593
|
+
* // "serialNumber": "my_serialNumber",
|
|
4594
|
+
* // "storageInfo": {},
|
|
4595
|
+
* // "storageStatusReport": [],
|
|
4596
|
+
* // "thunderboltInfo": []
|
|
4597
|
+
* // }
|
|
4598
|
+
* }
|
|
4599
|
+
*
|
|
4600
|
+
* main().catch(e => {
|
|
4601
|
+
* console.error(e);
|
|
4602
|
+
* throw e;
|
|
4603
|
+
* });
|
|
4604
|
+
*
|
|
4605
|
+
* ```
|
|
3314
4606
|
*
|
|
3315
4607
|
* @param params - Parameters for request
|
|
3316
4608
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3325,6 +4617,63 @@ export declare namespace chromemanagement_v1 {
|
|
|
3325
4617
|
get(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1TelemetryDevice>): void;
|
|
3326
4618
|
/**
|
|
3327
4619
|
* List all telemetry devices.
|
|
4620
|
+
* @example
|
|
4621
|
+
* ```js
|
|
4622
|
+
* // Before running the sample:
|
|
4623
|
+
* // - Enable the API at:
|
|
4624
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
4625
|
+
* // - Login into gcloud by running:
|
|
4626
|
+
* // ```sh
|
|
4627
|
+
* // $ gcloud auth application-default login
|
|
4628
|
+
* // ```
|
|
4629
|
+
* // - Install the npm module by running:
|
|
4630
|
+
* // ```sh
|
|
4631
|
+
* // $ npm install googleapis
|
|
4632
|
+
* // ```
|
|
4633
|
+
*
|
|
4634
|
+
* const {google} = require('googleapis');
|
|
4635
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
4636
|
+
*
|
|
4637
|
+
* async function main() {
|
|
4638
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4639
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4640
|
+
* scopes: [
|
|
4641
|
+
* 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
|
|
4642
|
+
* ],
|
|
4643
|
+
* });
|
|
4644
|
+
*
|
|
4645
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4646
|
+
* const authClient = await auth.getClient();
|
|
4647
|
+
* google.options({auth: authClient});
|
|
4648
|
+
*
|
|
4649
|
+
* // Do the magic
|
|
4650
|
+
* const res = await chromemanagement.customers.telemetry.devices.list({
|
|
4651
|
+
* // 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".
|
|
4652
|
+
* filter: 'placeholder-value',
|
|
4653
|
+
* // Maximum number of results to return. Default value is 100. Maximum value is 1000.
|
|
4654
|
+
* pageSize: 'placeholder-value',
|
|
4655
|
+
* // Token to specify next page in the list.
|
|
4656
|
+
* pageToken: 'placeholder-value',
|
|
4657
|
+
* // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
4658
|
+
* parent: 'customers/my-customer',
|
|
4659
|
+
* // 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
|
|
4660
|
+
* readMask: 'placeholder-value',
|
|
4661
|
+
* });
|
|
4662
|
+
* console.log(res.data);
|
|
4663
|
+
*
|
|
4664
|
+
* // Example response
|
|
4665
|
+
* // {
|
|
4666
|
+
* // "devices": [],
|
|
4667
|
+
* // "nextPageToken": "my_nextPageToken"
|
|
4668
|
+
* // }
|
|
4669
|
+
* }
|
|
4670
|
+
*
|
|
4671
|
+
* main().catch(e => {
|
|
4672
|
+
* console.error(e);
|
|
4673
|
+
* throw e;
|
|
4674
|
+
* });
|
|
4675
|
+
*
|
|
4676
|
+
* ```
|
|
3328
4677
|
*
|
|
3329
4678
|
* @param params - Parameters for request
|
|
3330
4679
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3375,6 +4724,63 @@ export declare namespace chromemanagement_v1 {
|
|
|
3375
4724
|
constructor(context: APIRequestContext);
|
|
3376
4725
|
/**
|
|
3377
4726
|
* List telemetry events.
|
|
4727
|
+
* @example
|
|
4728
|
+
* ```js
|
|
4729
|
+
* // Before running the sample:
|
|
4730
|
+
* // - Enable the API at:
|
|
4731
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
4732
|
+
* // - Login into gcloud by running:
|
|
4733
|
+
* // ```sh
|
|
4734
|
+
* // $ gcloud auth application-default login
|
|
4735
|
+
* // ```
|
|
4736
|
+
* // - Install the npm module by running:
|
|
4737
|
+
* // ```sh
|
|
4738
|
+
* // $ npm install googleapis
|
|
4739
|
+
* // ```
|
|
4740
|
+
*
|
|
4741
|
+
* const {google} = require('googleapis');
|
|
4742
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
4743
|
+
*
|
|
4744
|
+
* async function main() {
|
|
4745
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4746
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4747
|
+
* scopes: [
|
|
4748
|
+
* 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
|
|
4749
|
+
* ],
|
|
4750
|
+
* });
|
|
4751
|
+
*
|
|
4752
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4753
|
+
* const authClient = await auth.getClient();
|
|
4754
|
+
* google.options({auth: authClient});
|
|
4755
|
+
*
|
|
4756
|
+
* // Do the magic
|
|
4757
|
+
* const res = await chromemanagement.customers.telemetry.events.list({
|
|
4758
|
+
* // 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".
|
|
4759
|
+
* filter: 'placeholder-value',
|
|
4760
|
+
* // Optional. Maximum number of results to return. Default value is 100. Maximum value is 1000.
|
|
4761
|
+
* pageSize: 'placeholder-value',
|
|
4762
|
+
* // Optional. Token to specify next page in the list.
|
|
4763
|
+
* pageToken: 'placeholder-value',
|
|
4764
|
+
* // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
4765
|
+
* parent: 'customers/my-customer',
|
|
4766
|
+
* // 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
|
|
4767
|
+
* readMask: 'placeholder-value',
|
|
4768
|
+
* });
|
|
4769
|
+
* console.log(res.data);
|
|
4770
|
+
*
|
|
4771
|
+
* // Example response
|
|
4772
|
+
* // {
|
|
4773
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
4774
|
+
* // "telemetryEvents": []
|
|
4775
|
+
* // }
|
|
4776
|
+
* }
|
|
4777
|
+
*
|
|
4778
|
+
* main().catch(e => {
|
|
4779
|
+
* console.error(e);
|
|
4780
|
+
* throw e;
|
|
4781
|
+
* });
|
|
4782
|
+
*
|
|
4783
|
+
* ```
|
|
3378
4784
|
*
|
|
3379
4785
|
* @param params - Parameters for request
|
|
3380
4786
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3415,6 +4821,69 @@ export declare namespace chromemanagement_v1 {
|
|
|
3415
4821
|
constructor(context: APIRequestContext);
|
|
3416
4822
|
/**
|
|
3417
4823
|
* Create a telemetry notification config.
|
|
4824
|
+
* @example
|
|
4825
|
+
* ```js
|
|
4826
|
+
* // Before running the sample:
|
|
4827
|
+
* // - Enable the API at:
|
|
4828
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
4829
|
+
* // - Login into gcloud by running:
|
|
4830
|
+
* // ```sh
|
|
4831
|
+
* // $ gcloud auth application-default login
|
|
4832
|
+
* // ```
|
|
4833
|
+
* // - Install the npm module by running:
|
|
4834
|
+
* // ```sh
|
|
4835
|
+
* // $ npm install googleapis
|
|
4836
|
+
* // ```
|
|
4837
|
+
*
|
|
4838
|
+
* const {google} = require('googleapis');
|
|
4839
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
4840
|
+
*
|
|
4841
|
+
* async function main() {
|
|
4842
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4843
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4844
|
+
* scopes: [
|
|
4845
|
+
* 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
|
|
4846
|
+
* ],
|
|
4847
|
+
* });
|
|
4848
|
+
*
|
|
4849
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4850
|
+
* const authClient = await auth.getClient();
|
|
4851
|
+
* google.options({auth: authClient});
|
|
4852
|
+
*
|
|
4853
|
+
* // Do the magic
|
|
4854
|
+
* const res =
|
|
4855
|
+
* await chromemanagement.customers.telemetry.notificationConfigs.create({
|
|
4856
|
+
* // Required. The parent resource where this notification config will be created. Format: `customers/{customer\}`
|
|
4857
|
+
* parent: 'customers/my-customer',
|
|
4858
|
+
*
|
|
4859
|
+
* // Request body metadata
|
|
4860
|
+
* requestBody: {
|
|
4861
|
+
* // request body parameters
|
|
4862
|
+
* // {
|
|
4863
|
+
* // "customer": "my_customer",
|
|
4864
|
+
* // "filter": {},
|
|
4865
|
+
* // "googleCloudPubsubTopic": "my_googleCloudPubsubTopic",
|
|
4866
|
+
* // "name": "my_name"
|
|
4867
|
+
* // }
|
|
4868
|
+
* },
|
|
4869
|
+
* });
|
|
4870
|
+
* console.log(res.data);
|
|
4871
|
+
*
|
|
4872
|
+
* // Example response
|
|
4873
|
+
* // {
|
|
4874
|
+
* // "customer": "my_customer",
|
|
4875
|
+
* // "filter": {},
|
|
4876
|
+
* // "googleCloudPubsubTopic": "my_googleCloudPubsubTopic",
|
|
4877
|
+
* // "name": "my_name"
|
|
4878
|
+
* // }
|
|
4879
|
+
* }
|
|
4880
|
+
*
|
|
4881
|
+
* main().catch(e => {
|
|
4882
|
+
* console.error(e);
|
|
4883
|
+
* throw e;
|
|
4884
|
+
* });
|
|
4885
|
+
*
|
|
4886
|
+
* ```
|
|
3418
4887
|
*
|
|
3419
4888
|
* @param params - Parameters for request
|
|
3420
4889
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3429,6 +4898,53 @@ export declare namespace chromemanagement_v1 {
|
|
|
3429
4898
|
create(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1TelemetryNotificationConfig>): void;
|
|
3430
4899
|
/**
|
|
3431
4900
|
* Delete a telemetry notification config.
|
|
4901
|
+
* @example
|
|
4902
|
+
* ```js
|
|
4903
|
+
* // Before running the sample:
|
|
4904
|
+
* // - Enable the API at:
|
|
4905
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
4906
|
+
* // - Login into gcloud by running:
|
|
4907
|
+
* // ```sh
|
|
4908
|
+
* // $ gcloud auth application-default login
|
|
4909
|
+
* // ```
|
|
4910
|
+
* // - Install the npm module by running:
|
|
4911
|
+
* // ```sh
|
|
4912
|
+
* // $ npm install googleapis
|
|
4913
|
+
* // ```
|
|
4914
|
+
*
|
|
4915
|
+
* const {google} = require('googleapis');
|
|
4916
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
4917
|
+
*
|
|
4918
|
+
* async function main() {
|
|
4919
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4920
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4921
|
+
* scopes: [
|
|
4922
|
+
* 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
|
|
4923
|
+
* ],
|
|
4924
|
+
* });
|
|
4925
|
+
*
|
|
4926
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4927
|
+
* const authClient = await auth.getClient();
|
|
4928
|
+
* google.options({auth: authClient});
|
|
4929
|
+
*
|
|
4930
|
+
* // Do the magic
|
|
4931
|
+
* const res =
|
|
4932
|
+
* await chromemanagement.customers.telemetry.notificationConfigs.delete({
|
|
4933
|
+
* // Required. The name of the notification config to delete. Format: `customers/{customer\}/telemetry/notificationConfigs/{notification_config\}`
|
|
4934
|
+
* name: 'customers/my-customer/telemetry/notificationConfigs/my-notificationConfig',
|
|
4935
|
+
* });
|
|
4936
|
+
* console.log(res.data);
|
|
4937
|
+
*
|
|
4938
|
+
* // Example response
|
|
4939
|
+
* // {}
|
|
4940
|
+
* }
|
|
4941
|
+
*
|
|
4942
|
+
* main().catch(e => {
|
|
4943
|
+
* console.error(e);
|
|
4944
|
+
* throw e;
|
|
4945
|
+
* });
|
|
4946
|
+
*
|
|
4947
|
+
* ```
|
|
3432
4948
|
*
|
|
3433
4949
|
* @param params - Parameters for request
|
|
3434
4950
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3443,6 +4959,60 @@ export declare namespace chromemanagement_v1 {
|
|
|
3443
4959
|
delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
|
|
3444
4960
|
/**
|
|
3445
4961
|
* List all telemetry notification configs.
|
|
4962
|
+
* @example
|
|
4963
|
+
* ```js
|
|
4964
|
+
* // Before running the sample:
|
|
4965
|
+
* // - Enable the API at:
|
|
4966
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
4967
|
+
* // - Login into gcloud by running:
|
|
4968
|
+
* // ```sh
|
|
4969
|
+
* // $ gcloud auth application-default login
|
|
4970
|
+
* // ```
|
|
4971
|
+
* // - Install the npm module by running:
|
|
4972
|
+
* // ```sh
|
|
4973
|
+
* // $ npm install googleapis
|
|
4974
|
+
* // ```
|
|
4975
|
+
*
|
|
4976
|
+
* const {google} = require('googleapis');
|
|
4977
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
4978
|
+
*
|
|
4979
|
+
* async function main() {
|
|
4980
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4981
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4982
|
+
* scopes: [
|
|
4983
|
+
* 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
|
|
4984
|
+
* ],
|
|
4985
|
+
* });
|
|
4986
|
+
*
|
|
4987
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4988
|
+
* const authClient = await auth.getClient();
|
|
4989
|
+
* google.options({auth: authClient});
|
|
4990
|
+
*
|
|
4991
|
+
* // Do the magic
|
|
4992
|
+
* const res =
|
|
4993
|
+
* await chromemanagement.customers.telemetry.notificationConfigs.list({
|
|
4994
|
+
* // 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.
|
|
4995
|
+
* pageSize: 'placeholder-value',
|
|
4996
|
+
* // 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.
|
|
4997
|
+
* pageToken: 'placeholder-value',
|
|
4998
|
+
* // Required. The parent which owns the notification configs.
|
|
4999
|
+
* parent: 'customers/my-customer',
|
|
5000
|
+
* });
|
|
5001
|
+
* console.log(res.data);
|
|
5002
|
+
*
|
|
5003
|
+
* // Example response
|
|
5004
|
+
* // {
|
|
5005
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
5006
|
+
* // "telemetryNotificationConfigs": []
|
|
5007
|
+
* // }
|
|
5008
|
+
* }
|
|
5009
|
+
*
|
|
5010
|
+
* main().catch(e => {
|
|
5011
|
+
* console.error(e);
|
|
5012
|
+
* throw e;
|
|
5013
|
+
* });
|
|
5014
|
+
*
|
|
5015
|
+
* ```
|
|
3446
5016
|
*
|
|
3447
5017
|
* @param params - Parameters for request
|
|
3448
5018
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3491,6 +5061,61 @@ export declare namespace chromemanagement_v1 {
|
|
|
3491
5061
|
constructor(context: APIRequestContext);
|
|
3492
5062
|
/**
|
|
3493
5063
|
* Get telemetry user.
|
|
5064
|
+
* @example
|
|
5065
|
+
* ```js
|
|
5066
|
+
* // Before running the sample:
|
|
5067
|
+
* // - Enable the API at:
|
|
5068
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
5069
|
+
* // - Login into gcloud by running:
|
|
5070
|
+
* // ```sh
|
|
5071
|
+
* // $ gcloud auth application-default login
|
|
5072
|
+
* // ```
|
|
5073
|
+
* // - Install the npm module by running:
|
|
5074
|
+
* // ```sh
|
|
5075
|
+
* // $ npm install googleapis
|
|
5076
|
+
* // ```
|
|
5077
|
+
*
|
|
5078
|
+
* const {google} = require('googleapis');
|
|
5079
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
5080
|
+
*
|
|
5081
|
+
* async function main() {
|
|
5082
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5083
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5084
|
+
* scopes: [
|
|
5085
|
+
* 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
|
|
5086
|
+
* ],
|
|
5087
|
+
* });
|
|
5088
|
+
*
|
|
5089
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5090
|
+
* const authClient = await auth.getClient();
|
|
5091
|
+
* google.options({auth: authClient});
|
|
5092
|
+
*
|
|
5093
|
+
* // Do the magic
|
|
5094
|
+
* const res = await chromemanagement.customers.telemetry.users.get({
|
|
5095
|
+
* // Required. Name of the `TelemetryUser` to return.
|
|
5096
|
+
* name: 'customers/my-customer/telemetry/users/my-user',
|
|
5097
|
+
* // 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
|
|
5098
|
+
* readMask: 'placeholder-value',
|
|
5099
|
+
* });
|
|
5100
|
+
* console.log(res.data);
|
|
5101
|
+
*
|
|
5102
|
+
* // Example response
|
|
5103
|
+
* // {
|
|
5104
|
+
* // "customer": "my_customer",
|
|
5105
|
+
* // "name": "my_name",
|
|
5106
|
+
* // "orgUnitId": "my_orgUnitId",
|
|
5107
|
+
* // "userDevice": [],
|
|
5108
|
+
* // "userEmail": "my_userEmail",
|
|
5109
|
+
* // "userId": "my_userId"
|
|
5110
|
+
* // }
|
|
5111
|
+
* }
|
|
5112
|
+
*
|
|
5113
|
+
* main().catch(e => {
|
|
5114
|
+
* console.error(e);
|
|
5115
|
+
* throw e;
|
|
5116
|
+
* });
|
|
5117
|
+
*
|
|
5118
|
+
* ```
|
|
3494
5119
|
*
|
|
3495
5120
|
* @param params - Parameters for request
|
|
3496
5121
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3505,6 +5130,63 @@ export declare namespace chromemanagement_v1 {
|
|
|
3505
5130
|
get(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1TelemetryUser>): void;
|
|
3506
5131
|
/**
|
|
3507
5132
|
* List all telemetry users.
|
|
5133
|
+
* @example
|
|
5134
|
+
* ```js
|
|
5135
|
+
* // Before running the sample:
|
|
5136
|
+
* // - Enable the API at:
|
|
5137
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
5138
|
+
* // - Login into gcloud by running:
|
|
5139
|
+
* // ```sh
|
|
5140
|
+
* // $ gcloud auth application-default login
|
|
5141
|
+
* // ```
|
|
5142
|
+
* // - Install the npm module by running:
|
|
5143
|
+
* // ```sh
|
|
5144
|
+
* // $ npm install googleapis
|
|
5145
|
+
* // ```
|
|
5146
|
+
*
|
|
5147
|
+
* const {google} = require('googleapis');
|
|
5148
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
5149
|
+
*
|
|
5150
|
+
* async function main() {
|
|
5151
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5152
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5153
|
+
* scopes: [
|
|
5154
|
+
* 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
|
|
5155
|
+
* ],
|
|
5156
|
+
* });
|
|
5157
|
+
*
|
|
5158
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5159
|
+
* const authClient = await auth.getClient();
|
|
5160
|
+
* google.options({auth: authClient});
|
|
5161
|
+
*
|
|
5162
|
+
* // Do the magic
|
|
5163
|
+
* const res = await chromemanagement.customers.telemetry.users.list({
|
|
5164
|
+
* // Only include resources that match the filter. Supported filter fields: - user_id - user_org_unit_id
|
|
5165
|
+
* filter: 'placeholder-value',
|
|
5166
|
+
* // Maximum number of results to return. Default value is 100. Maximum value is 1000.
|
|
5167
|
+
* pageSize: 'placeholder-value',
|
|
5168
|
+
* // Token to specify next page in the list.
|
|
5169
|
+
* pageToken: 'placeholder-value',
|
|
5170
|
+
* // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
5171
|
+
* parent: 'customers/my-customer',
|
|
5172
|
+
* // 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
|
|
5173
|
+
* readMask: 'placeholder-value',
|
|
5174
|
+
* });
|
|
5175
|
+
* console.log(res.data);
|
|
5176
|
+
*
|
|
5177
|
+
* // Example response
|
|
5178
|
+
* // {
|
|
5179
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
5180
|
+
* // "telemetryUsers": []
|
|
5181
|
+
* // }
|
|
5182
|
+
* }
|
|
5183
|
+
*
|
|
5184
|
+
* main().catch(e => {
|
|
5185
|
+
* console.error(e);
|
|
5186
|
+
* throw e;
|
|
5187
|
+
* });
|
|
5188
|
+
*
|
|
5189
|
+
* ```
|
|
3508
5190
|
*
|
|
3509
5191
|
* @param params - Parameters for request
|
|
3510
5192
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|