@googleapis/chromemanagement 25.1.0 → 26.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1.d.ts +1161 -24
- package/build/v1.js +321 -0
- package/build/v1.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +1952 -21
package/v1.ts
CHANGED
|
@@ -156,6 +156,10 @@ export namespace chromemanagement_v1 {
|
|
|
156
156
|
* Output only. Unique store identifier for the item. Examples: "gmbmikajjgmnabiglmofipeabaddhgne" for the Save to Google Drive Chrome extension, "com.google.android.apps.docs" for the Google Drive Android app.
|
|
157
157
|
*/
|
|
158
158
|
appId?: string | null;
|
|
159
|
+
/**
|
|
160
|
+
* Output only. The category IDs of the app, which are the same as stored in the Web Store item. It's expected that there is only one category ID.
|
|
161
|
+
*/
|
|
162
|
+
categoryIds?: string[] | null;
|
|
159
163
|
/**
|
|
160
164
|
* Output only. Chrome Web Store app information.
|
|
161
165
|
*/
|
|
@@ -1142,6 +1146,23 @@ export namespace chromemanagement_v1 {
|
|
|
1142
1146
|
*/
|
|
1143
1147
|
totalSize?: number | null;
|
|
1144
1148
|
}
|
|
1149
|
+
/**
|
|
1150
|
+
* Response containing a list of profiles with queried app installed.
|
|
1151
|
+
*/
|
|
1152
|
+
export interface Schema$GoogleChromeManagementV1FindInstalledAppProfilesResponse {
|
|
1153
|
+
/**
|
|
1154
|
+
* Token to specify the next page of the request.
|
|
1155
|
+
*/
|
|
1156
|
+
nextPageToken?: string | null;
|
|
1157
|
+
/**
|
|
1158
|
+
* A list of profiles which have the app installed. Sorted in ascending alphabetical order on the profile.Email field.
|
|
1159
|
+
*/
|
|
1160
|
+
profiles?: Schema$GoogleChromeManagementV1ProfileAppInstallInstance[];
|
|
1161
|
+
/**
|
|
1162
|
+
* Total number of profiles matching request.
|
|
1163
|
+
*/
|
|
1164
|
+
totalSize?: number | null;
|
|
1165
|
+
}
|
|
1145
1166
|
/**
|
|
1146
1167
|
* Information of a graphics adapter (GPU).
|
|
1147
1168
|
*/
|
|
@@ -1645,6 +1666,27 @@ export namespace chromemanagement_v1 {
|
|
|
1645
1666
|
*/
|
|
1646
1667
|
userId?: string | null;
|
|
1647
1668
|
}
|
|
1669
|
+
/**
|
|
1670
|
+
* Describes a profile reporting Chrome Profile information.
|
|
1671
|
+
*/
|
|
1672
|
+
export interface Schema$GoogleChromeManagementV1ProfileAppInstallInstance {
|
|
1673
|
+
/**
|
|
1674
|
+
* Output only. The email of the profile.
|
|
1675
|
+
*/
|
|
1676
|
+
email?: string | null;
|
|
1677
|
+
/**
|
|
1678
|
+
* Output only. The Chrome client side profile ID.
|
|
1679
|
+
*/
|
|
1680
|
+
profileId?: string | null;
|
|
1681
|
+
/**
|
|
1682
|
+
* Output only. The organizational unit id of the profile.
|
|
1683
|
+
*/
|
|
1684
|
+
profileOrgUnitId?: string | null;
|
|
1685
|
+
/**
|
|
1686
|
+
* Output only. Profile permanent ID is the unique identifier of a profile within one customer.
|
|
1687
|
+
*/
|
|
1688
|
+
profilePermanentId?: string | null;
|
|
1689
|
+
}
|
|
1648
1690
|
/**
|
|
1649
1691
|
* Risk assessment for a Chrome extension.
|
|
1650
1692
|
*/
|
|
@@ -2476,6 +2518,15 @@ export namespace chromemanagement_v1 {
|
|
|
2476
2518
|
*/
|
|
2477
2519
|
subjectPublicKeyInfo?: string | null;
|
|
2478
2520
|
}
|
|
2521
|
+
/**
|
|
2522
|
+
* Response from checking the enablement status of insights for the customer.
|
|
2523
|
+
*/
|
|
2524
|
+
export interface Schema$GoogleChromeManagementVersionsV1CheckEnablementStatusResponse {
|
|
2525
|
+
/**
|
|
2526
|
+
* The state of the insights feature.
|
|
2527
|
+
*/
|
|
2528
|
+
insightsState?: string | null;
|
|
2529
|
+
}
|
|
2479
2530
|
/**
|
|
2480
2531
|
* A representation of a Chrome browser profile.
|
|
2481
2532
|
*/
|
|
@@ -2682,6 +2733,144 @@ export namespace chromemanagement_v1 {
|
|
|
2682
2733
|
* Response message for claiming a certificate provisioning process.
|
|
2683
2734
|
*/
|
|
2684
2735
|
export interface Schema$GoogleChromeManagementVersionsV1ClaimCertificateProvisioningProcessResponse {}
|
|
2736
|
+
/**
|
|
2737
|
+
* A representation of a connector config.
|
|
2738
|
+
*/
|
|
2739
|
+
export interface Schema$GoogleChromeManagementVersionsV1ConnectorConfig {
|
|
2740
|
+
/**
|
|
2741
|
+
* Required. The details of the connector config.
|
|
2742
|
+
*/
|
|
2743
|
+
details?: Schema$GoogleChromeManagementVersionsV1ConnectorConfigDetails;
|
|
2744
|
+
/**
|
|
2745
|
+
* Required. The display name of the config.
|
|
2746
|
+
*/
|
|
2747
|
+
displayName?: string | null;
|
|
2748
|
+
/**
|
|
2749
|
+
* Identifier. Format: customers/{customer\}/connectorConfigs/{connector_config\}
|
|
2750
|
+
*/
|
|
2751
|
+
name?: string | null;
|
|
2752
|
+
/**
|
|
2753
|
+
* Output only. The status of the connector config.
|
|
2754
|
+
*/
|
|
2755
|
+
status?: Schema$GoogleChromeManagementVersionsV1ConnectorConfigStatus;
|
|
2756
|
+
/**
|
|
2757
|
+
* Required. The type of the connector.
|
|
2758
|
+
*/
|
|
2759
|
+
type?: string | null;
|
|
2760
|
+
}
|
|
2761
|
+
/**
|
|
2762
|
+
* The details of the connector config.
|
|
2763
|
+
*/
|
|
2764
|
+
export interface Schema$GoogleChromeManagementVersionsV1ConnectorConfigDetails {
|
|
2765
|
+
/**
|
|
2766
|
+
* CrowdStrike connector config.
|
|
2767
|
+
*/
|
|
2768
|
+
crowdStrikeConfig?: Schema$GoogleChromeManagementVersionsV1CrowdStrikeConfig;
|
|
2769
|
+
/**
|
|
2770
|
+
* CrowdStrike Falcon Next Gen connector config.
|
|
2771
|
+
*/
|
|
2772
|
+
crowdStrikeFalconNextGenConfig?: Schema$GoogleChromeManagementVersionsV1CrowdStrikeFalconNextGenConfig;
|
|
2773
|
+
/**
|
|
2774
|
+
* CrowdStrike XDR connector config.
|
|
2775
|
+
*/
|
|
2776
|
+
crowdStrikeXdrConfig?: Schema$GoogleChromeManagementVersionsV1CrowdStrikeXdrConfig;
|
|
2777
|
+
/**
|
|
2778
|
+
* Device trust connector config.
|
|
2779
|
+
*/
|
|
2780
|
+
deviceTrustConfig?: Schema$GoogleChromeManagementVersionsV1DeviceTrustConfig;
|
|
2781
|
+
/**
|
|
2782
|
+
* Google SecOps connector config.
|
|
2783
|
+
*/
|
|
2784
|
+
googleSecOpsConfig?: Schema$GoogleChromeManagementVersionsV1GoogleSecOpsConfig;
|
|
2785
|
+
/**
|
|
2786
|
+
* MIP label connector config.
|
|
2787
|
+
*/
|
|
2788
|
+
mipLabelConfig?: Schema$GoogleChromeManagementVersionsV1MipLabelConfig;
|
|
2789
|
+
/**
|
|
2790
|
+
* Palo Alto Networks connector config.
|
|
2791
|
+
*/
|
|
2792
|
+
paloAltoNetworksConfig?: Schema$GoogleChromeManagementVersionsV1PaloAltoNetworksConfig;
|
|
2793
|
+
/**
|
|
2794
|
+
* Pub/Sub connector config.
|
|
2795
|
+
*/
|
|
2796
|
+
pubSubConfig?: Schema$GoogleChromeManagementVersionsV1PubSubConfig;
|
|
2797
|
+
/**
|
|
2798
|
+
* Pub/Sub XDR connector config.
|
|
2799
|
+
*/
|
|
2800
|
+
pubSubXdrConfig?: Schema$GoogleChromeManagementVersionsV1PubSubXdrConfig;
|
|
2801
|
+
/**
|
|
2802
|
+
* Splunk connector config.
|
|
2803
|
+
*/
|
|
2804
|
+
splunkConfig?: Schema$GoogleChromeManagementVersionsV1SplunkConfig;
|
|
2805
|
+
}
|
|
2806
|
+
/**
|
|
2807
|
+
* The status of the connector config.
|
|
2808
|
+
*/
|
|
2809
|
+
export interface Schema$GoogleChromeManagementVersionsV1ConnectorConfigStatus {
|
|
2810
|
+
/**
|
|
2811
|
+
* Output only. Field recording time of the earliest failure since the last success event. This field is only set when the state is `DISABLED_BY_FAILURES`.
|
|
2812
|
+
*/
|
|
2813
|
+
failureStartTime?: string | null;
|
|
2814
|
+
/**
|
|
2815
|
+
* Output only. The state of the connector config. The connector state is disabled if the connector has not successfully sent an event in the last 24 hours.
|
|
2816
|
+
*/
|
|
2817
|
+
state?: string | null;
|
|
2818
|
+
/**
|
|
2819
|
+
* Output only. Field recording time of most recent modification of the status. For `ENABLED`, this is the time the status was changed to `ENABLED`. For `DISABLED_BY_FAILURES`, this is the time of the most recent failed attempt to send an event to this config.
|
|
2820
|
+
*/
|
|
2821
|
+
updateTime?: string | null;
|
|
2822
|
+
}
|
|
2823
|
+
/**
|
|
2824
|
+
* CrowdStrike connector config.
|
|
2825
|
+
*/
|
|
2826
|
+
export interface Schema$GoogleChromeManagementVersionsV1CrowdStrikeConfig {
|
|
2827
|
+
/**
|
|
2828
|
+
* Required. Input only. API key to use on the ingestion API.
|
|
2829
|
+
*/
|
|
2830
|
+
apiKey?: string | null;
|
|
2831
|
+
/**
|
|
2832
|
+
* Required. Host to identify the customer specific server to receive the events.
|
|
2833
|
+
*/
|
|
2834
|
+
host?: string | null;
|
|
2835
|
+
/**
|
|
2836
|
+
* Required. The reporting settings for the CrowdStrike config.
|
|
2837
|
+
*/
|
|
2838
|
+
reportingSettings?: Schema$GoogleChromeManagementVersionsV1ReportingSettings;
|
|
2839
|
+
}
|
|
2840
|
+
/**
|
|
2841
|
+
* CrowdStrike Falcon Next Gen connector config.
|
|
2842
|
+
*/
|
|
2843
|
+
export interface Schema$GoogleChromeManagementVersionsV1CrowdStrikeFalconNextGenConfig {
|
|
2844
|
+
/**
|
|
2845
|
+
* Required. Input only. API key to use on the ingestion API.
|
|
2846
|
+
*/
|
|
2847
|
+
apiKey?: string | null;
|
|
2848
|
+
/**
|
|
2849
|
+
* Required. Host to identify the customer specific server to receive the events.
|
|
2850
|
+
*/
|
|
2851
|
+
host?: string | null;
|
|
2852
|
+
/**
|
|
2853
|
+
* Required. The reporting settings for the CrowdStrike Falcon Next Gen config.
|
|
2854
|
+
*/
|
|
2855
|
+
reportingSettings?: Schema$GoogleChromeManagementVersionsV1ReportingSettings;
|
|
2856
|
+
}
|
|
2857
|
+
/**
|
|
2858
|
+
* CrowdStrike XDR connector config.
|
|
2859
|
+
*/
|
|
2860
|
+
export interface Schema$GoogleChromeManagementVersionsV1CrowdStrikeXdrConfig {
|
|
2861
|
+
/**
|
|
2862
|
+
* Required. Input only. API key to use on the ingestion API.
|
|
2863
|
+
*/
|
|
2864
|
+
apiKey?: string | null;
|
|
2865
|
+
/**
|
|
2866
|
+
* Required. Host to identify the customer specific server to receive the events.
|
|
2867
|
+
*/
|
|
2868
|
+
host?: string | null;
|
|
2869
|
+
/**
|
|
2870
|
+
* Required. The XDR settings for the CrowdStrike XDR config.
|
|
2871
|
+
*/
|
|
2872
|
+
xdrSettings?: Schema$GoogleChromeManagementVersionsV1XdrSettings;
|
|
2873
|
+
}
|
|
2685
2874
|
/**
|
|
2686
2875
|
* Information of a device that runs a Chrome browser profile.
|
|
2687
2876
|
*/
|
|
@@ -2703,6 +2892,58 @@ export namespace chromemanagement_v1 {
|
|
|
2703
2892
|
*/
|
|
2704
2893
|
machine?: string | null;
|
|
2705
2894
|
}
|
|
2895
|
+
/**
|
|
2896
|
+
* Device trust config for device trust connectors.
|
|
2897
|
+
*/
|
|
2898
|
+
export interface Schema$GoogleChromeManagementVersionsV1DeviceTrustConfig {
|
|
2899
|
+
/**
|
|
2900
|
+
* Required. The scope at which this configuration will be applied. Note that this only applies to Chrome browser, as in ChromeOS it's always applied.
|
|
2901
|
+
*/
|
|
2902
|
+
scope?: string | null;
|
|
2903
|
+
/**
|
|
2904
|
+
* Required. A list of email addresses of the service accounts which are allowed to call the Verified Access API with full access.
|
|
2905
|
+
*/
|
|
2906
|
+
serviceAccounts?: string[] | null;
|
|
2907
|
+
/**
|
|
2908
|
+
* Optional. The service provider for the device trust connector.
|
|
2909
|
+
*/
|
|
2910
|
+
serviceProvider?: string | null;
|
|
2911
|
+
/**
|
|
2912
|
+
* Required. List of URLs allowed to be part of the attestation flow to get the set of signals from the machine. URLs must have HTTPS scheme, e.g. "https://example.com". Wildcards, *, are allowed. For detailed information on valid URL patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns.
|
|
2913
|
+
*/
|
|
2914
|
+
urlMatchers?: string[] | null;
|
|
2915
|
+
}
|
|
2916
|
+
/**
|
|
2917
|
+
* Request to disable insights for the customer.
|
|
2918
|
+
*/
|
|
2919
|
+
export interface Schema$GoogleChromeManagementVersionsV1DisableInsightsRequest {}
|
|
2920
|
+
/**
|
|
2921
|
+
* Response from disabling insights for the customer.
|
|
2922
|
+
*/
|
|
2923
|
+
export interface Schema$GoogleChromeManagementVersionsV1DisableInsightsResponse {
|
|
2924
|
+
/**
|
|
2925
|
+
* The state of the insights feature.
|
|
2926
|
+
*/
|
|
2927
|
+
insightsState?: string | null;
|
|
2928
|
+
}
|
|
2929
|
+
/**
|
|
2930
|
+
* Request to enable insights for the customer.
|
|
2931
|
+
*/
|
|
2932
|
+
export interface Schema$GoogleChromeManagementVersionsV1EnableInsightsRequest {
|
|
2933
|
+
/**
|
|
2934
|
+
* Optional. The Organizational Units to set up required connectors for. Organizational Units are provided as paths relative to root. If this field is not set, connectors will be set up at root OU (as if it were set to ["/"]). Example: ["/corp/sales", "/eng"]
|
|
2935
|
+
*/
|
|
2936
|
+
targetOus?: string[] | null;
|
|
2937
|
+
}
|
|
2938
|
+
/**
|
|
2939
|
+
* Response from enabling insights for the customer.
|
|
2940
|
+
*/
|
|
2941
|
+
export interface Schema$GoogleChromeManagementVersionsV1EnableInsightsResponse {
|
|
2942
|
+
/**
|
|
2943
|
+
* The state of the insights feature.
|
|
2944
|
+
*/
|
|
2945
|
+
insightsState?: string | null;
|
|
2946
|
+
}
|
|
2706
2947
|
/**
|
|
2707
2948
|
* Describes a generic Certificate Authority Connection.
|
|
2708
2949
|
*/
|
|
@@ -2721,6 +2962,23 @@ export namespace chromemanagement_v1 {
|
|
|
2721
2962
|
*/
|
|
2722
2963
|
profileAdapterConfigReference?: string | null;
|
|
2723
2964
|
}
|
|
2965
|
+
/**
|
|
2966
|
+
* Google SecOps connector config.
|
|
2967
|
+
*/
|
|
2968
|
+
export interface Schema$GoogleChromeManagementVersionsV1GoogleSecOpsConfig {
|
|
2969
|
+
/**
|
|
2970
|
+
* Required. Input only. API key to use on the ingestion API.
|
|
2971
|
+
*/
|
|
2972
|
+
apiKey?: string | null;
|
|
2973
|
+
/**
|
|
2974
|
+
* Required. Host of ingestion API endpoint. Allows customer to upload events to servers in specific geographical regions. Existing configs that don't have this setting default to US.
|
|
2975
|
+
*/
|
|
2976
|
+
host?: string | null;
|
|
2977
|
+
/**
|
|
2978
|
+
* Required. The reporting settings for the Google SecOps config.
|
|
2979
|
+
*/
|
|
2980
|
+
reportingSettings?: Schema$GoogleChromeManagementVersionsV1ReportingSettings;
|
|
2981
|
+
}
|
|
2724
2982
|
/**
|
|
2725
2983
|
* Response to ListChromeBrowserProfileCommands method.
|
|
2726
2984
|
*/
|
|
@@ -2755,6 +3013,32 @@ export namespace chromemanagement_v1 {
|
|
|
2755
3013
|
*/
|
|
2756
3014
|
totalSize?: string | null;
|
|
2757
3015
|
}
|
|
3016
|
+
/**
|
|
3017
|
+
* Response to ListConnectorConfigs method.
|
|
3018
|
+
*/
|
|
3019
|
+
export interface Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse {
|
|
3020
|
+
/**
|
|
3021
|
+
* The list of connector configs returned.
|
|
3022
|
+
*/
|
|
3023
|
+
connectorConfigs?: Schema$GoogleChromeManagementVersionsV1ConnectorConfig[];
|
|
3024
|
+
/**
|
|
3025
|
+
* The page token used to retrieve the next page of the listing request. If the token is empty, there are no more pages to retrieve.
|
|
3026
|
+
*/
|
|
3027
|
+
nextPageToken?: string | null;
|
|
3028
|
+
}
|
|
3029
|
+
/**
|
|
3030
|
+
* MIP label connector config.
|
|
3031
|
+
*/
|
|
3032
|
+
export interface Schema$GoogleChromeManagementVersionsV1MipLabelConfig {
|
|
3033
|
+
/**
|
|
3034
|
+
* Optional. Domain can be used optionally for the corner case where one Dasher customer ID maps to multiple Microsoft tenant ID. Each domain can be verified with at most one Microsoft tenant.
|
|
3035
|
+
*/
|
|
3036
|
+
domains?: string[] | null;
|
|
3037
|
+
/**
|
|
3038
|
+
* Required. Microsoft tenant ID.
|
|
3039
|
+
*/
|
|
3040
|
+
microsoftTenantId?: string | null;
|
|
3041
|
+
}
|
|
2758
3042
|
/**
|
|
2759
3043
|
* Request to MoveThirdPartyProfileUser method.
|
|
2760
3044
|
*/
|
|
@@ -2773,6 +3057,49 @@ export namespace chromemanagement_v1 {
|
|
|
2773
3057
|
*/
|
|
2774
3058
|
thirdPartyProfileUser?: Schema$GoogleChromeManagementVersionsV1ThirdPartyProfileUser;
|
|
2775
3059
|
}
|
|
3060
|
+
/**
|
|
3061
|
+
* Palo Alto Networks connector config.
|
|
3062
|
+
*/
|
|
3063
|
+
export interface Schema$GoogleChromeManagementVersionsV1PaloAltoNetworksConfig {
|
|
3064
|
+
/**
|
|
3065
|
+
* Required. Input only. API key to use on the ingestion API.
|
|
3066
|
+
*/
|
|
3067
|
+
apiKey?: string | null;
|
|
3068
|
+
/**
|
|
3069
|
+
* Required. Host to identify the customer specific server to receive the events.
|
|
3070
|
+
*/
|
|
3071
|
+
host?: string | null;
|
|
3072
|
+
/**
|
|
3073
|
+
* Required. The reporting settings for the Palo Alto Networks config.
|
|
3074
|
+
*/
|
|
3075
|
+
reportingSettings?: Schema$GoogleChromeManagementVersionsV1ReportingSettings;
|
|
3076
|
+
}
|
|
3077
|
+
/**
|
|
3078
|
+
* Pub/Sub connector config.
|
|
3079
|
+
*/
|
|
3080
|
+
export interface Schema$GoogleChromeManagementVersionsV1PubSubConfig {
|
|
3081
|
+
/**
|
|
3082
|
+
* Required. The reporting settings for the Pub/Sub config.
|
|
3083
|
+
*/
|
|
3084
|
+
reportingSettings?: Schema$GoogleChromeManagementVersionsV1ReportingSettings;
|
|
3085
|
+
/**
|
|
3086
|
+
* Required. The full path to the topic to send the event to.
|
|
3087
|
+
*/
|
|
3088
|
+
topicFullPath?: string | null;
|
|
3089
|
+
}
|
|
3090
|
+
/**
|
|
3091
|
+
* Pub/Sub XDR connector config.
|
|
3092
|
+
*/
|
|
3093
|
+
export interface Schema$GoogleChromeManagementVersionsV1PubSubXdrConfig {
|
|
3094
|
+
/**
|
|
3095
|
+
* Required. The full path to the topic to send the event to.
|
|
3096
|
+
*/
|
|
3097
|
+
topicFullPath?: string | null;
|
|
3098
|
+
/**
|
|
3099
|
+
* Required. The XDR settings for the Pub/Sub XDR config.
|
|
3100
|
+
*/
|
|
3101
|
+
xdrSettings?: Schema$GoogleChromeManagementVersionsV1XdrSettings;
|
|
3102
|
+
}
|
|
2776
3103
|
/**
|
|
2777
3104
|
* Reporting data of a Chrome browser profile.
|
|
2778
3105
|
*/
|
|
@@ -2902,6 +3229,23 @@ export namespace chromemanagement_v1 {
|
|
|
2902
3229
|
*/
|
|
2903
3230
|
value?: string | null;
|
|
2904
3231
|
}
|
|
3232
|
+
/**
|
|
3233
|
+
* Reporting settings for connector configs.
|
|
3234
|
+
*/
|
|
3235
|
+
export interface Schema$GoogleChromeManagementVersionsV1ReportingSettings {
|
|
3236
|
+
/**
|
|
3237
|
+
* Optional. The list of user and browser events that are enabled for this connector. An empty list disables all default events, and using `ALL_DEFAULT_EVENTS` will enable all default events.
|
|
3238
|
+
*/
|
|
3239
|
+
enabledDefaultEvents?: string[] | null;
|
|
3240
|
+
/**
|
|
3241
|
+
* Optional. The list of device events that are enabled for this config. An empty list disables all device events, and using `ALL_DEVICE_EVENTS` will enable all device events.
|
|
3242
|
+
*/
|
|
3243
|
+
enabledDeviceEvents?: string[] | null;
|
|
3244
|
+
/**
|
|
3245
|
+
* Optional. The list of opt-in events that are enabled for this config. An empty list disables all opt-in events, and using `ALL_OPT_IN_EVENTS` will enable all opt-in events.
|
|
3246
|
+
*/
|
|
3247
|
+
enabledOptInEvents?: string[] | null;
|
|
3248
|
+
}
|
|
2905
3249
|
/**
|
|
2906
3250
|
* Describes a SCEP Certificate Authority Connection.
|
|
2907
3251
|
*/
|
|
@@ -2996,6 +3340,35 @@ export namespace chromemanagement_v1 {
|
|
|
2996
3340
|
*/
|
|
2997
3341
|
certificateProvisioningProcess?: Schema$GoogleChromeManagementVersionsV1CertificateProvisioningProcess;
|
|
2998
3342
|
}
|
|
3343
|
+
/**
|
|
3344
|
+
* Splunk connector config.
|
|
3345
|
+
*/
|
|
3346
|
+
export interface Schema$GoogleChromeManagementVersionsV1SplunkConfig {
|
|
3347
|
+
/**
|
|
3348
|
+
* Required. Input only. The data input's HTTP Event Collector token to use as an Authorization header.
|
|
3349
|
+
*/
|
|
3350
|
+
hecToken?: string | null;
|
|
3351
|
+
/**
|
|
3352
|
+
* Required. Host to identify the customer specific server to receive the events.
|
|
3353
|
+
*/
|
|
3354
|
+
host?: string | null;
|
|
3355
|
+
/**
|
|
3356
|
+
* Optional. The port number to use. If not set, the default Splunk port is used.
|
|
3357
|
+
*/
|
|
3358
|
+
portNumber?: number | null;
|
|
3359
|
+
/**
|
|
3360
|
+
* Required. The reporting settings for the Splunk config.
|
|
3361
|
+
*/
|
|
3362
|
+
reportingSettings?: Schema$GoogleChromeManagementVersionsV1ReportingSettings;
|
|
3363
|
+
/**
|
|
3364
|
+
* Optional. Optional source name to override the default one set in the Splunk admin console.
|
|
3365
|
+
*/
|
|
3366
|
+
source?: string | null;
|
|
3367
|
+
/**
|
|
3368
|
+
* Optional. Whether to use an unsecure HTTP scheme. Defaults to false (HTTPS).
|
|
3369
|
+
*/
|
|
3370
|
+
unsecureScheme?: boolean | null;
|
|
3371
|
+
}
|
|
2999
3372
|
/**
|
|
3000
3373
|
* Describes a subject alternative name.
|
|
3001
3374
|
*/
|
|
@@ -3035,6 +3408,15 @@ export namespace chromemanagement_v1 {
|
|
|
3035
3408
|
* Response message for publishing an issued certificate for a certificate provisioning process.
|
|
3036
3409
|
*/
|
|
3037
3410
|
export interface Schema$GoogleChromeManagementVersionsV1UploadCertificateResponse {}
|
|
3411
|
+
/**
|
|
3412
|
+
* XDR settings for connector configs.
|
|
3413
|
+
*/
|
|
3414
|
+
export interface Schema$GoogleChromeManagementVersionsV1XdrSettings {
|
|
3415
|
+
/**
|
|
3416
|
+
* Required. Whether to enable all XDR events.
|
|
3417
|
+
*/
|
|
3418
|
+
enableAllXdrEvents?: boolean | null;
|
|
3419
|
+
}
|
|
3038
3420
|
/**
|
|
3039
3421
|
* The request message for Operations.CancelOperation.
|
|
3040
3422
|
*/
|
|
@@ -3124,6 +3506,8 @@ export namespace chromemanagement_v1 {
|
|
|
3124
3506
|
context: APIRequestContext;
|
|
3125
3507
|
apps: Resource$Customers$Apps;
|
|
3126
3508
|
certificateProvisioningProcesses: Resource$Customers$Certificateprovisioningprocesses;
|
|
3509
|
+
connectorConfigs: Resource$Customers$Connectorconfigs;
|
|
3510
|
+
enterprise: Resource$Customers$Enterprise;
|
|
3127
3511
|
profiles: Resource$Customers$Profiles;
|
|
3128
3512
|
reports: Resource$Customers$Reports;
|
|
3129
3513
|
telemetry: Resource$Customers$Telemetry;
|
|
@@ -3133,6 +3517,10 @@ export namespace chromemanagement_v1 {
|
|
|
3133
3517
|
this.apps = new Resource$Customers$Apps(this.context);
|
|
3134
3518
|
this.certificateProvisioningProcesses =
|
|
3135
3519
|
new Resource$Customers$Certificateprovisioningprocesses(this.context);
|
|
3520
|
+
this.connectorConfigs = new Resource$Customers$Connectorconfigs(
|
|
3521
|
+
this.context
|
|
3522
|
+
);
|
|
3523
|
+
this.enterprise = new Resource$Customers$Enterprise(this.context);
|
|
3136
3524
|
this.profiles = new Resource$Customers$Profiles(this.context);
|
|
3137
3525
|
this.reports = new Resource$Customers$Reports(this.context);
|
|
3138
3526
|
this.telemetry = new Resource$Customers$Telemetry(this.context);
|
|
@@ -3750,6 +4138,7 @@ export namespace chromemanagement_v1 {
|
|
|
3750
4138
|
* // {
|
|
3751
4139
|
* // "androidAppInfo": {},
|
|
3752
4140
|
* // "appId": "my_appId",
|
|
4141
|
+
* // "categoryIds": [],
|
|
3753
4142
|
* // "chromeAppInfo": {},
|
|
3754
4143
|
* // "description": "my_description",
|
|
3755
4144
|
* // "detailUri": "my_detailUri",
|
|
@@ -3929,6 +4318,7 @@ export namespace chromemanagement_v1 {
|
|
|
3929
4318
|
* // {
|
|
3930
4319
|
* // "androidAppInfo": {},
|
|
3931
4320
|
* // "appId": "my_appId",
|
|
4321
|
+
* // "categoryIds": [],
|
|
3932
4322
|
* // "chromeAppInfo": {},
|
|
3933
4323
|
* // "description": "my_description",
|
|
3934
4324
|
* // "detailUri": "my_detailUri",
|
|
@@ -4108,6 +4498,7 @@ export namespace chromemanagement_v1 {
|
|
|
4108
4498
|
* // {
|
|
4109
4499
|
* // "androidAppInfo": {},
|
|
4110
4500
|
* // "appId": "my_appId",
|
|
4501
|
+
* // "categoryIds": [],
|
|
4111
4502
|
* // "chromeAppInfo": {},
|
|
4112
4503
|
* // "description": "my_description",
|
|
4113
4504
|
* // "detailUri": "my_detailUri",
|
|
@@ -5250,16 +5641,14 @@ export namespace chromemanagement_v1 {
|
|
|
5250
5641
|
name?: string;
|
|
5251
5642
|
}
|
|
5252
5643
|
|
|
5253
|
-
export class Resource$Customers$
|
|
5644
|
+
export class Resource$Customers$Connectorconfigs {
|
|
5254
5645
|
context: APIRequestContext;
|
|
5255
|
-
commands: Resource$Customers$Profiles$Commands;
|
|
5256
5646
|
constructor(context: APIRequestContext) {
|
|
5257
5647
|
this.context = context;
|
|
5258
|
-
this.commands = new Resource$Customers$Profiles$Commands(this.context);
|
|
5259
5648
|
}
|
|
5260
5649
|
|
|
5261
5650
|
/**
|
|
5262
|
-
*
|
|
5651
|
+
* Creates a connector config.
|
|
5263
5652
|
* @example
|
|
5264
5653
|
* ```js
|
|
5265
5654
|
* // Before running the sample:
|
|
@@ -5280,7 +5669,7 @@ export namespace chromemanagement_v1 {
|
|
|
5280
5669
|
* async function main() {
|
|
5281
5670
|
* const auth = new google.auth.GoogleAuth({
|
|
5282
5671
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5283
|
-
* scopes: [
|
|
5672
|
+
* scopes: [],
|
|
5284
5673
|
* });
|
|
5285
5674
|
*
|
|
5286
5675
|
* // Acquire an auth client, and bind it to all future calls
|
|
@@ -5288,14 +5677,34 @@ export namespace chromemanagement_v1 {
|
|
|
5288
5677
|
* google.options({auth: authClient});
|
|
5289
5678
|
*
|
|
5290
5679
|
* // Do the magic
|
|
5291
|
-
* const res = await chromemanagement.customers.
|
|
5292
|
-
* //
|
|
5293
|
-
*
|
|
5680
|
+
* const res = await chromemanagement.customers.connectorConfigs.create({
|
|
5681
|
+
* // Optional. ID to use for the connector config, which becomes the final component of the connector config's resource name. If provided, the ID must be 1-63 characters long, and contain only lowercase letters, digits, and hyphens. It must start with a letter, and end with a letter or number. If not provided, the connector config will be assigned a random UUID.
|
|
5682
|
+
* connectorConfigId: 'placeholder-value',
|
|
5683
|
+
* // Required. Format: customers/{customer\}
|
|
5684
|
+
* parent: 'customers/my-customer',
|
|
5685
|
+
*
|
|
5686
|
+
* // Request body metadata
|
|
5687
|
+
* requestBody: {
|
|
5688
|
+
* // request body parameters
|
|
5689
|
+
* // {
|
|
5690
|
+
* // "details": {},
|
|
5691
|
+
* // "displayName": "my_displayName",
|
|
5692
|
+
* // "name": "my_name",
|
|
5693
|
+
* // "status": {},
|
|
5694
|
+
* // "type": "my_type"
|
|
5695
|
+
* // }
|
|
5696
|
+
* },
|
|
5294
5697
|
* });
|
|
5295
5698
|
* console.log(res.data);
|
|
5296
5699
|
*
|
|
5297
5700
|
* // Example response
|
|
5298
|
-
* // {
|
|
5701
|
+
* // {
|
|
5702
|
+
* // "details": {},
|
|
5703
|
+
* // "displayName": "my_displayName",
|
|
5704
|
+
* // "name": "my_name",
|
|
5705
|
+
* // "status": {},
|
|
5706
|
+
* // "type": "my_type"
|
|
5707
|
+
* // }
|
|
5299
5708
|
* }
|
|
5300
5709
|
*
|
|
5301
5710
|
* main().catch(e => {
|
|
@@ -5310,24 +5719,1344 @@ export namespace chromemanagement_v1 {
|
|
|
5310
5719
|
* @param callback - Optional callback that handles the response.
|
|
5311
5720
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5312
5721
|
*/
|
|
5313
|
-
|
|
5314
|
-
params: Params$Resource$Customers$
|
|
5722
|
+
create(
|
|
5723
|
+
params: Params$Resource$Customers$Connectorconfigs$Create,
|
|
5315
5724
|
options: StreamMethodOptions
|
|
5316
5725
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5317
|
-
|
|
5318
|
-
params?: Params$Resource$Customers$
|
|
5726
|
+
create(
|
|
5727
|
+
params?: Params$Resource$Customers$Connectorconfigs$Create,
|
|
5319
5728
|
options?: MethodOptions
|
|
5320
|
-
): Promise<
|
|
5321
|
-
|
|
5322
|
-
|
|
5729
|
+
): Promise<
|
|
5730
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
5731
|
+
>;
|
|
5732
|
+
create(
|
|
5733
|
+
params: Params$Resource$Customers$Connectorconfigs$Create,
|
|
5323
5734
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
5324
5735
|
callback: BodyResponseCallback<Readable>
|
|
5325
5736
|
): void;
|
|
5326
|
-
|
|
5327
|
-
params: Params$Resource$Customers$
|
|
5328
|
-
options:
|
|
5329
|
-
|
|
5330
|
-
|
|
5737
|
+
create(
|
|
5738
|
+
params: Params$Resource$Customers$Connectorconfigs$Create,
|
|
5739
|
+
options:
|
|
5740
|
+
| MethodOptions
|
|
5741
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>,
|
|
5742
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
5743
|
+
): void;
|
|
5744
|
+
create(
|
|
5745
|
+
params: Params$Resource$Customers$Connectorconfigs$Create,
|
|
5746
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
5747
|
+
): void;
|
|
5748
|
+
create(
|
|
5749
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
5750
|
+
): void;
|
|
5751
|
+
create(
|
|
5752
|
+
paramsOrCallback?:
|
|
5753
|
+
| Params$Resource$Customers$Connectorconfigs$Create
|
|
5754
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
5755
|
+
| BodyResponseCallback<Readable>,
|
|
5756
|
+
optionsOrCallback?:
|
|
5757
|
+
| MethodOptions
|
|
5758
|
+
| StreamMethodOptions
|
|
5759
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
5760
|
+
| BodyResponseCallback<Readable>,
|
|
5761
|
+
callback?:
|
|
5762
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
5763
|
+
| BodyResponseCallback<Readable>
|
|
5764
|
+
):
|
|
5765
|
+
| void
|
|
5766
|
+
| Promise<
|
|
5767
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
5768
|
+
>
|
|
5769
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
5770
|
+
let params = (paramsOrCallback ||
|
|
5771
|
+
{}) as Params$Resource$Customers$Connectorconfigs$Create;
|
|
5772
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
5773
|
+
|
|
5774
|
+
if (typeof paramsOrCallback === 'function') {
|
|
5775
|
+
callback = paramsOrCallback;
|
|
5776
|
+
params = {} as Params$Resource$Customers$Connectorconfigs$Create;
|
|
5777
|
+
options = {};
|
|
5778
|
+
}
|
|
5779
|
+
|
|
5780
|
+
if (typeof optionsOrCallback === 'function') {
|
|
5781
|
+
callback = optionsOrCallback;
|
|
5782
|
+
options = {};
|
|
5783
|
+
}
|
|
5784
|
+
|
|
5785
|
+
const rootUrl =
|
|
5786
|
+
options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
5787
|
+
const parameters = {
|
|
5788
|
+
options: Object.assign(
|
|
5789
|
+
{
|
|
5790
|
+
url: (rootUrl + '/v1/{+parent}/connectorConfigs').replace(
|
|
5791
|
+
/([^:]\/)\/+/g,
|
|
5792
|
+
'$1'
|
|
5793
|
+
),
|
|
5794
|
+
method: 'POST',
|
|
5795
|
+
apiVersion: '',
|
|
5796
|
+
},
|
|
5797
|
+
options
|
|
5798
|
+
),
|
|
5799
|
+
params,
|
|
5800
|
+
requiredParams: ['parent'],
|
|
5801
|
+
pathParams: ['parent'],
|
|
5802
|
+
context: this.context,
|
|
5803
|
+
};
|
|
5804
|
+
if (callback) {
|
|
5805
|
+
createAPIRequest<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>(
|
|
5806
|
+
parameters,
|
|
5807
|
+
callback as BodyResponseCallback<unknown>
|
|
5808
|
+
);
|
|
5809
|
+
} else {
|
|
5810
|
+
return createAPIRequest<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>(
|
|
5811
|
+
parameters
|
|
5812
|
+
);
|
|
5813
|
+
}
|
|
5814
|
+
}
|
|
5815
|
+
|
|
5816
|
+
/**
|
|
5817
|
+
* Deletes a connector config.
|
|
5818
|
+
* @example
|
|
5819
|
+
* ```js
|
|
5820
|
+
* // Before running the sample:
|
|
5821
|
+
* // - Enable the API at:
|
|
5822
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
5823
|
+
* // - Login into gcloud by running:
|
|
5824
|
+
* // ```sh
|
|
5825
|
+
* // $ gcloud auth application-default login
|
|
5826
|
+
* // ```
|
|
5827
|
+
* // - Install the npm module by running:
|
|
5828
|
+
* // ```sh
|
|
5829
|
+
* // $ npm install googleapis
|
|
5830
|
+
* // ```
|
|
5831
|
+
*
|
|
5832
|
+
* const {google} = require('googleapis');
|
|
5833
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
5834
|
+
*
|
|
5835
|
+
* async function main() {
|
|
5836
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5837
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5838
|
+
* scopes: [],
|
|
5839
|
+
* });
|
|
5840
|
+
*
|
|
5841
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5842
|
+
* const authClient = await auth.getClient();
|
|
5843
|
+
* google.options({auth: authClient});
|
|
5844
|
+
*
|
|
5845
|
+
* // Do the magic
|
|
5846
|
+
* const res = await chromemanagement.customers.connectorConfigs.delete({
|
|
5847
|
+
* // Required. Format: customers/{customer\}/connectorConfigs/{connector_config\}
|
|
5848
|
+
* name: 'customers/my-customer/connectorConfigs/my-connectorConfig',
|
|
5849
|
+
* });
|
|
5850
|
+
* console.log(res.data);
|
|
5851
|
+
*
|
|
5852
|
+
* // Example response
|
|
5853
|
+
* // {}
|
|
5854
|
+
* }
|
|
5855
|
+
*
|
|
5856
|
+
* main().catch(e => {
|
|
5857
|
+
* console.error(e);
|
|
5858
|
+
* throw e;
|
|
5859
|
+
* });
|
|
5860
|
+
*
|
|
5861
|
+
* ```
|
|
5862
|
+
*
|
|
5863
|
+
* @param params - Parameters for request
|
|
5864
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5865
|
+
* @param callback - Optional callback that handles the response.
|
|
5866
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5867
|
+
*/
|
|
5868
|
+
delete(
|
|
5869
|
+
params: Params$Resource$Customers$Connectorconfigs$Delete,
|
|
5870
|
+
options: StreamMethodOptions
|
|
5871
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5872
|
+
delete(
|
|
5873
|
+
params?: Params$Resource$Customers$Connectorconfigs$Delete,
|
|
5874
|
+
options?: MethodOptions
|
|
5875
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
|
|
5876
|
+
delete(
|
|
5877
|
+
params: Params$Resource$Customers$Connectorconfigs$Delete,
|
|
5878
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
5879
|
+
callback: BodyResponseCallback<Readable>
|
|
5880
|
+
): void;
|
|
5881
|
+
delete(
|
|
5882
|
+
params: Params$Resource$Customers$Connectorconfigs$Delete,
|
|
5883
|
+
options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>,
|
|
5884
|
+
callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
5885
|
+
): void;
|
|
5886
|
+
delete(
|
|
5887
|
+
params: Params$Resource$Customers$Connectorconfigs$Delete,
|
|
5888
|
+
callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
5889
|
+
): void;
|
|
5890
|
+
delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
|
|
5891
|
+
delete(
|
|
5892
|
+
paramsOrCallback?:
|
|
5893
|
+
| Params$Resource$Customers$Connectorconfigs$Delete
|
|
5894
|
+
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
5895
|
+
| BodyResponseCallback<Readable>,
|
|
5896
|
+
optionsOrCallback?:
|
|
5897
|
+
| MethodOptions
|
|
5898
|
+
| StreamMethodOptions
|
|
5899
|
+
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
5900
|
+
| BodyResponseCallback<Readable>,
|
|
5901
|
+
callback?:
|
|
5902
|
+
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
5903
|
+
| BodyResponseCallback<Readable>
|
|
5904
|
+
):
|
|
5905
|
+
| void
|
|
5906
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>
|
|
5907
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
5908
|
+
let params = (paramsOrCallback ||
|
|
5909
|
+
{}) as Params$Resource$Customers$Connectorconfigs$Delete;
|
|
5910
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
5911
|
+
|
|
5912
|
+
if (typeof paramsOrCallback === 'function') {
|
|
5913
|
+
callback = paramsOrCallback;
|
|
5914
|
+
params = {} as Params$Resource$Customers$Connectorconfigs$Delete;
|
|
5915
|
+
options = {};
|
|
5916
|
+
}
|
|
5917
|
+
|
|
5918
|
+
if (typeof optionsOrCallback === 'function') {
|
|
5919
|
+
callback = optionsOrCallback;
|
|
5920
|
+
options = {};
|
|
5921
|
+
}
|
|
5922
|
+
|
|
5923
|
+
const rootUrl =
|
|
5924
|
+
options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
5925
|
+
const parameters = {
|
|
5926
|
+
options: Object.assign(
|
|
5927
|
+
{
|
|
5928
|
+
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
5929
|
+
method: 'DELETE',
|
|
5930
|
+
apiVersion: '',
|
|
5931
|
+
},
|
|
5932
|
+
options
|
|
5933
|
+
),
|
|
5934
|
+
params,
|
|
5935
|
+
requiredParams: ['name'],
|
|
5936
|
+
pathParams: ['name'],
|
|
5937
|
+
context: this.context,
|
|
5938
|
+
};
|
|
5939
|
+
if (callback) {
|
|
5940
|
+
createAPIRequest<Schema$GoogleProtobufEmpty>(
|
|
5941
|
+
parameters,
|
|
5942
|
+
callback as BodyResponseCallback<unknown>
|
|
5943
|
+
);
|
|
5944
|
+
} else {
|
|
5945
|
+
return createAPIRequest<Schema$GoogleProtobufEmpty>(parameters);
|
|
5946
|
+
}
|
|
5947
|
+
}
|
|
5948
|
+
|
|
5949
|
+
/**
|
|
5950
|
+
* Gets a connector config with customer ID and config ID.
|
|
5951
|
+
* @example
|
|
5952
|
+
* ```js
|
|
5953
|
+
* // Before running the sample:
|
|
5954
|
+
* // - Enable the API at:
|
|
5955
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
5956
|
+
* // - Login into gcloud by running:
|
|
5957
|
+
* // ```sh
|
|
5958
|
+
* // $ gcloud auth application-default login
|
|
5959
|
+
* // ```
|
|
5960
|
+
* // - Install the npm module by running:
|
|
5961
|
+
* // ```sh
|
|
5962
|
+
* // $ npm install googleapis
|
|
5963
|
+
* // ```
|
|
5964
|
+
*
|
|
5965
|
+
* const {google} = require('googleapis');
|
|
5966
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
5967
|
+
*
|
|
5968
|
+
* async function main() {
|
|
5969
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5970
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5971
|
+
* scopes: [],
|
|
5972
|
+
* });
|
|
5973
|
+
*
|
|
5974
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5975
|
+
* const authClient = await auth.getClient();
|
|
5976
|
+
* google.options({auth: authClient});
|
|
5977
|
+
*
|
|
5978
|
+
* // Do the magic
|
|
5979
|
+
* const res = await chromemanagement.customers.connectorConfigs.get({
|
|
5980
|
+
* // Required. Format: customers/{customer\}/connectorConfigs/{connector_config\}
|
|
5981
|
+
* name: 'customers/my-customer/connectorConfigs/my-connectorConfig',
|
|
5982
|
+
* });
|
|
5983
|
+
* console.log(res.data);
|
|
5984
|
+
*
|
|
5985
|
+
* // Example response
|
|
5986
|
+
* // {
|
|
5987
|
+
* // "details": {},
|
|
5988
|
+
* // "displayName": "my_displayName",
|
|
5989
|
+
* // "name": "my_name",
|
|
5990
|
+
* // "status": {},
|
|
5991
|
+
* // "type": "my_type"
|
|
5992
|
+
* // }
|
|
5993
|
+
* }
|
|
5994
|
+
*
|
|
5995
|
+
* main().catch(e => {
|
|
5996
|
+
* console.error(e);
|
|
5997
|
+
* throw e;
|
|
5998
|
+
* });
|
|
5999
|
+
*
|
|
6000
|
+
* ```
|
|
6001
|
+
*
|
|
6002
|
+
* @param params - Parameters for request
|
|
6003
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6004
|
+
* @param callback - Optional callback that handles the response.
|
|
6005
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6006
|
+
*/
|
|
6007
|
+
get(
|
|
6008
|
+
params: Params$Resource$Customers$Connectorconfigs$Get,
|
|
6009
|
+
options: StreamMethodOptions
|
|
6010
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
6011
|
+
get(
|
|
6012
|
+
params?: Params$Resource$Customers$Connectorconfigs$Get,
|
|
6013
|
+
options?: MethodOptions
|
|
6014
|
+
): Promise<
|
|
6015
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
6016
|
+
>;
|
|
6017
|
+
get(
|
|
6018
|
+
params: Params$Resource$Customers$Connectorconfigs$Get,
|
|
6019
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
6020
|
+
callback: BodyResponseCallback<Readable>
|
|
6021
|
+
): void;
|
|
6022
|
+
get(
|
|
6023
|
+
params: Params$Resource$Customers$Connectorconfigs$Get,
|
|
6024
|
+
options:
|
|
6025
|
+
| MethodOptions
|
|
6026
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>,
|
|
6027
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
6028
|
+
): void;
|
|
6029
|
+
get(
|
|
6030
|
+
params: Params$Resource$Customers$Connectorconfigs$Get,
|
|
6031
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
6032
|
+
): void;
|
|
6033
|
+
get(
|
|
6034
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
6035
|
+
): void;
|
|
6036
|
+
get(
|
|
6037
|
+
paramsOrCallback?:
|
|
6038
|
+
| Params$Resource$Customers$Connectorconfigs$Get
|
|
6039
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
6040
|
+
| BodyResponseCallback<Readable>,
|
|
6041
|
+
optionsOrCallback?:
|
|
6042
|
+
| MethodOptions
|
|
6043
|
+
| StreamMethodOptions
|
|
6044
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
6045
|
+
| BodyResponseCallback<Readable>,
|
|
6046
|
+
callback?:
|
|
6047
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
6048
|
+
| BodyResponseCallback<Readable>
|
|
6049
|
+
):
|
|
6050
|
+
| void
|
|
6051
|
+
| Promise<
|
|
6052
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
6053
|
+
>
|
|
6054
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
6055
|
+
let params = (paramsOrCallback ||
|
|
6056
|
+
{}) as Params$Resource$Customers$Connectorconfigs$Get;
|
|
6057
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
6058
|
+
|
|
6059
|
+
if (typeof paramsOrCallback === 'function') {
|
|
6060
|
+
callback = paramsOrCallback;
|
|
6061
|
+
params = {} as Params$Resource$Customers$Connectorconfigs$Get;
|
|
6062
|
+
options = {};
|
|
6063
|
+
}
|
|
6064
|
+
|
|
6065
|
+
if (typeof optionsOrCallback === 'function') {
|
|
6066
|
+
callback = optionsOrCallback;
|
|
6067
|
+
options = {};
|
|
6068
|
+
}
|
|
6069
|
+
|
|
6070
|
+
const rootUrl =
|
|
6071
|
+
options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
6072
|
+
const parameters = {
|
|
6073
|
+
options: Object.assign(
|
|
6074
|
+
{
|
|
6075
|
+
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
6076
|
+
method: 'GET',
|
|
6077
|
+
apiVersion: '',
|
|
6078
|
+
},
|
|
6079
|
+
options
|
|
6080
|
+
),
|
|
6081
|
+
params,
|
|
6082
|
+
requiredParams: ['name'],
|
|
6083
|
+
pathParams: ['name'],
|
|
6084
|
+
context: this.context,
|
|
6085
|
+
};
|
|
6086
|
+
if (callback) {
|
|
6087
|
+
createAPIRequest<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>(
|
|
6088
|
+
parameters,
|
|
6089
|
+
callback as BodyResponseCallback<unknown>
|
|
6090
|
+
);
|
|
6091
|
+
} else {
|
|
6092
|
+
return createAPIRequest<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>(
|
|
6093
|
+
parameters
|
|
6094
|
+
);
|
|
6095
|
+
}
|
|
6096
|
+
}
|
|
6097
|
+
|
|
6098
|
+
/**
|
|
6099
|
+
* Lists connector configs of a customer.
|
|
6100
|
+
* @example
|
|
6101
|
+
* ```js
|
|
6102
|
+
* // Before running the sample:
|
|
6103
|
+
* // - Enable the API at:
|
|
6104
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
6105
|
+
* // - Login into gcloud by running:
|
|
6106
|
+
* // ```sh
|
|
6107
|
+
* // $ gcloud auth application-default login
|
|
6108
|
+
* // ```
|
|
6109
|
+
* // - Install the npm module by running:
|
|
6110
|
+
* // ```sh
|
|
6111
|
+
* // $ npm install googleapis
|
|
6112
|
+
* // ```
|
|
6113
|
+
*
|
|
6114
|
+
* const {google} = require('googleapis');
|
|
6115
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
6116
|
+
*
|
|
6117
|
+
* async function main() {
|
|
6118
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6119
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6120
|
+
* scopes: [],
|
|
6121
|
+
* });
|
|
6122
|
+
*
|
|
6123
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6124
|
+
* const authClient = await auth.getClient();
|
|
6125
|
+
* google.options({auth: authClient});
|
|
6126
|
+
*
|
|
6127
|
+
* // Do the magic
|
|
6128
|
+
* const res = await chromemanagement.customers.connectorConfigs.list({
|
|
6129
|
+
* // Optional. The maximum number of connector configs to return. The default page size is 50 if page_size is unspecified, and the maximum page size allowed is 100. Values above 100 will be capped at 100.
|
|
6130
|
+
* pageSize: 'placeholder-value',
|
|
6131
|
+
* // Optional. A page token, received from a previous `ListConnectorConfigs` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListConnectorConfigs` must match the call that provided the page token.
|
|
6132
|
+
* pageToken: 'placeholder-value',
|
|
6133
|
+
* // Required. Format: customers/{customer\}
|
|
6134
|
+
* parent: 'customers/my-customer',
|
|
6135
|
+
* });
|
|
6136
|
+
* console.log(res.data);
|
|
6137
|
+
*
|
|
6138
|
+
* // Example response
|
|
6139
|
+
* // {
|
|
6140
|
+
* // "connectorConfigs": [],
|
|
6141
|
+
* // "nextPageToken": "my_nextPageToken"
|
|
6142
|
+
* // }
|
|
6143
|
+
* }
|
|
6144
|
+
*
|
|
6145
|
+
* main().catch(e => {
|
|
6146
|
+
* console.error(e);
|
|
6147
|
+
* throw e;
|
|
6148
|
+
* });
|
|
6149
|
+
*
|
|
6150
|
+
* ```
|
|
6151
|
+
*
|
|
6152
|
+
* @param params - Parameters for request
|
|
6153
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6154
|
+
* @param callback - Optional callback that handles the response.
|
|
6155
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6156
|
+
*/
|
|
6157
|
+
list(
|
|
6158
|
+
params: Params$Resource$Customers$Connectorconfigs$List,
|
|
6159
|
+
options: StreamMethodOptions
|
|
6160
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
6161
|
+
list(
|
|
6162
|
+
params?: Params$Resource$Customers$Connectorconfigs$List,
|
|
6163
|
+
options?: MethodOptions
|
|
6164
|
+
): Promise<
|
|
6165
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>
|
|
6166
|
+
>;
|
|
6167
|
+
list(
|
|
6168
|
+
params: Params$Resource$Customers$Connectorconfigs$List,
|
|
6169
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
6170
|
+
callback: BodyResponseCallback<Readable>
|
|
6171
|
+
): void;
|
|
6172
|
+
list(
|
|
6173
|
+
params: Params$Resource$Customers$Connectorconfigs$List,
|
|
6174
|
+
options:
|
|
6175
|
+
| MethodOptions
|
|
6176
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>,
|
|
6177
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>
|
|
6178
|
+
): void;
|
|
6179
|
+
list(
|
|
6180
|
+
params: Params$Resource$Customers$Connectorconfigs$List,
|
|
6181
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>
|
|
6182
|
+
): void;
|
|
6183
|
+
list(
|
|
6184
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>
|
|
6185
|
+
): void;
|
|
6186
|
+
list(
|
|
6187
|
+
paramsOrCallback?:
|
|
6188
|
+
| Params$Resource$Customers$Connectorconfigs$List
|
|
6189
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>
|
|
6190
|
+
| BodyResponseCallback<Readable>,
|
|
6191
|
+
optionsOrCallback?:
|
|
6192
|
+
| MethodOptions
|
|
6193
|
+
| StreamMethodOptions
|
|
6194
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>
|
|
6195
|
+
| BodyResponseCallback<Readable>,
|
|
6196
|
+
callback?:
|
|
6197
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>
|
|
6198
|
+
| BodyResponseCallback<Readable>
|
|
6199
|
+
):
|
|
6200
|
+
| void
|
|
6201
|
+
| Promise<
|
|
6202
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>
|
|
6203
|
+
>
|
|
6204
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
6205
|
+
let params = (paramsOrCallback ||
|
|
6206
|
+
{}) as Params$Resource$Customers$Connectorconfigs$List;
|
|
6207
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
6208
|
+
|
|
6209
|
+
if (typeof paramsOrCallback === 'function') {
|
|
6210
|
+
callback = paramsOrCallback;
|
|
6211
|
+
params = {} as Params$Resource$Customers$Connectorconfigs$List;
|
|
6212
|
+
options = {};
|
|
6213
|
+
}
|
|
6214
|
+
|
|
6215
|
+
if (typeof optionsOrCallback === 'function') {
|
|
6216
|
+
callback = optionsOrCallback;
|
|
6217
|
+
options = {};
|
|
6218
|
+
}
|
|
6219
|
+
|
|
6220
|
+
const rootUrl =
|
|
6221
|
+
options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
6222
|
+
const parameters = {
|
|
6223
|
+
options: Object.assign(
|
|
6224
|
+
{
|
|
6225
|
+
url: (rootUrl + '/v1/{+parent}/connectorConfigs').replace(
|
|
6226
|
+
/([^:]\/)\/+/g,
|
|
6227
|
+
'$1'
|
|
6228
|
+
),
|
|
6229
|
+
method: 'GET',
|
|
6230
|
+
apiVersion: '',
|
|
6231
|
+
},
|
|
6232
|
+
options
|
|
6233
|
+
),
|
|
6234
|
+
params,
|
|
6235
|
+
requiredParams: ['parent'],
|
|
6236
|
+
pathParams: ['parent'],
|
|
6237
|
+
context: this.context,
|
|
6238
|
+
};
|
|
6239
|
+
if (callback) {
|
|
6240
|
+
createAPIRequest<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>(
|
|
6241
|
+
parameters,
|
|
6242
|
+
callback as BodyResponseCallback<unknown>
|
|
6243
|
+
);
|
|
6244
|
+
} else {
|
|
6245
|
+
return createAPIRequest<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>(
|
|
6246
|
+
parameters
|
|
6247
|
+
);
|
|
6248
|
+
}
|
|
6249
|
+
}
|
|
6250
|
+
|
|
6251
|
+
/**
|
|
6252
|
+
* Updates a connector config.
|
|
6253
|
+
* @example
|
|
6254
|
+
* ```js
|
|
6255
|
+
* // Before running the sample:
|
|
6256
|
+
* // - Enable the API at:
|
|
6257
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
6258
|
+
* // - Login into gcloud by running:
|
|
6259
|
+
* // ```sh
|
|
6260
|
+
* // $ gcloud auth application-default login
|
|
6261
|
+
* // ```
|
|
6262
|
+
* // - Install the npm module by running:
|
|
6263
|
+
* // ```sh
|
|
6264
|
+
* // $ npm install googleapis
|
|
6265
|
+
* // ```
|
|
6266
|
+
*
|
|
6267
|
+
* const {google} = require('googleapis');
|
|
6268
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
6269
|
+
*
|
|
6270
|
+
* async function main() {
|
|
6271
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6272
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6273
|
+
* scopes: [],
|
|
6274
|
+
* });
|
|
6275
|
+
*
|
|
6276
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6277
|
+
* const authClient = await auth.getClient();
|
|
6278
|
+
* google.options({auth: authClient});
|
|
6279
|
+
*
|
|
6280
|
+
* // Do the magic
|
|
6281
|
+
* const res = await chromemanagement.customers.connectorConfigs.patch({
|
|
6282
|
+
* // Identifier. Format: customers/{customer\}/connectorConfigs/{connector_config\}
|
|
6283
|
+
* name: 'customers/my-customer/connectorConfigs/my-connectorConfig',
|
|
6284
|
+
* // Optional. The update mask that can be used to specify which fields to update.
|
|
6285
|
+
* updateMask: 'placeholder-value',
|
|
6286
|
+
*
|
|
6287
|
+
* // Request body metadata
|
|
6288
|
+
* requestBody: {
|
|
6289
|
+
* // request body parameters
|
|
6290
|
+
* // {
|
|
6291
|
+
* // "details": {},
|
|
6292
|
+
* // "displayName": "my_displayName",
|
|
6293
|
+
* // "name": "my_name",
|
|
6294
|
+
* // "status": {},
|
|
6295
|
+
* // "type": "my_type"
|
|
6296
|
+
* // }
|
|
6297
|
+
* },
|
|
6298
|
+
* });
|
|
6299
|
+
* console.log(res.data);
|
|
6300
|
+
*
|
|
6301
|
+
* // Example response
|
|
6302
|
+
* // {
|
|
6303
|
+
* // "details": {},
|
|
6304
|
+
* // "displayName": "my_displayName",
|
|
6305
|
+
* // "name": "my_name",
|
|
6306
|
+
* // "status": {},
|
|
6307
|
+
* // "type": "my_type"
|
|
6308
|
+
* // }
|
|
6309
|
+
* }
|
|
6310
|
+
*
|
|
6311
|
+
* main().catch(e => {
|
|
6312
|
+
* console.error(e);
|
|
6313
|
+
* throw e;
|
|
6314
|
+
* });
|
|
6315
|
+
*
|
|
6316
|
+
* ```
|
|
6317
|
+
*
|
|
6318
|
+
* @param params - Parameters for request
|
|
6319
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6320
|
+
* @param callback - Optional callback that handles the response.
|
|
6321
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6322
|
+
*/
|
|
6323
|
+
patch(
|
|
6324
|
+
params: Params$Resource$Customers$Connectorconfigs$Patch,
|
|
6325
|
+
options: StreamMethodOptions
|
|
6326
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
6327
|
+
patch(
|
|
6328
|
+
params?: Params$Resource$Customers$Connectorconfigs$Patch,
|
|
6329
|
+
options?: MethodOptions
|
|
6330
|
+
): Promise<
|
|
6331
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
6332
|
+
>;
|
|
6333
|
+
patch(
|
|
6334
|
+
params: Params$Resource$Customers$Connectorconfigs$Patch,
|
|
6335
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
6336
|
+
callback: BodyResponseCallback<Readable>
|
|
6337
|
+
): void;
|
|
6338
|
+
patch(
|
|
6339
|
+
params: Params$Resource$Customers$Connectorconfigs$Patch,
|
|
6340
|
+
options:
|
|
6341
|
+
| MethodOptions
|
|
6342
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>,
|
|
6343
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
6344
|
+
): void;
|
|
6345
|
+
patch(
|
|
6346
|
+
params: Params$Resource$Customers$Connectorconfigs$Patch,
|
|
6347
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
6348
|
+
): void;
|
|
6349
|
+
patch(
|
|
6350
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
6351
|
+
): void;
|
|
6352
|
+
patch(
|
|
6353
|
+
paramsOrCallback?:
|
|
6354
|
+
| Params$Resource$Customers$Connectorconfigs$Patch
|
|
6355
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
6356
|
+
| BodyResponseCallback<Readable>,
|
|
6357
|
+
optionsOrCallback?:
|
|
6358
|
+
| MethodOptions
|
|
6359
|
+
| StreamMethodOptions
|
|
6360
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
6361
|
+
| BodyResponseCallback<Readable>,
|
|
6362
|
+
callback?:
|
|
6363
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
6364
|
+
| BodyResponseCallback<Readable>
|
|
6365
|
+
):
|
|
6366
|
+
| void
|
|
6367
|
+
| Promise<
|
|
6368
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
6369
|
+
>
|
|
6370
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
6371
|
+
let params = (paramsOrCallback ||
|
|
6372
|
+
{}) as Params$Resource$Customers$Connectorconfigs$Patch;
|
|
6373
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
6374
|
+
|
|
6375
|
+
if (typeof paramsOrCallback === 'function') {
|
|
6376
|
+
callback = paramsOrCallback;
|
|
6377
|
+
params = {} as Params$Resource$Customers$Connectorconfigs$Patch;
|
|
6378
|
+
options = {};
|
|
6379
|
+
}
|
|
6380
|
+
|
|
6381
|
+
if (typeof optionsOrCallback === 'function') {
|
|
6382
|
+
callback = optionsOrCallback;
|
|
6383
|
+
options = {};
|
|
6384
|
+
}
|
|
6385
|
+
|
|
6386
|
+
const rootUrl =
|
|
6387
|
+
options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
6388
|
+
const parameters = {
|
|
6389
|
+
options: Object.assign(
|
|
6390
|
+
{
|
|
6391
|
+
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
6392
|
+
method: 'PATCH',
|
|
6393
|
+
apiVersion: '',
|
|
6394
|
+
},
|
|
6395
|
+
options
|
|
6396
|
+
),
|
|
6397
|
+
params,
|
|
6398
|
+
requiredParams: ['name'],
|
|
6399
|
+
pathParams: ['name'],
|
|
6400
|
+
context: this.context,
|
|
6401
|
+
};
|
|
6402
|
+
if (callback) {
|
|
6403
|
+
createAPIRequest<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>(
|
|
6404
|
+
parameters,
|
|
6405
|
+
callback as BodyResponseCallback<unknown>
|
|
6406
|
+
);
|
|
6407
|
+
} else {
|
|
6408
|
+
return createAPIRequest<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>(
|
|
6409
|
+
parameters
|
|
6410
|
+
);
|
|
6411
|
+
}
|
|
6412
|
+
}
|
|
6413
|
+
}
|
|
6414
|
+
|
|
6415
|
+
export interface Params$Resource$Customers$Connectorconfigs$Create extends StandardParameters {
|
|
6416
|
+
/**
|
|
6417
|
+
* Optional. ID to use for the connector config, which becomes the final component of the connector config's resource name. If provided, the ID must be 1-63 characters long, and contain only lowercase letters, digits, and hyphens. It must start with a letter, and end with a letter or number. If not provided, the connector config will be assigned a random UUID.
|
|
6418
|
+
*/
|
|
6419
|
+
connectorConfigId?: string;
|
|
6420
|
+
/**
|
|
6421
|
+
* Required. Format: customers/{customer\}
|
|
6422
|
+
*/
|
|
6423
|
+
parent?: string;
|
|
6424
|
+
|
|
6425
|
+
/**
|
|
6426
|
+
* Request body metadata
|
|
6427
|
+
*/
|
|
6428
|
+
requestBody?: Schema$GoogleChromeManagementVersionsV1ConnectorConfig;
|
|
6429
|
+
}
|
|
6430
|
+
export interface Params$Resource$Customers$Connectorconfigs$Delete extends StandardParameters {
|
|
6431
|
+
/**
|
|
6432
|
+
* Required. Format: customers/{customer\}/connectorConfigs/{connector_config\}
|
|
6433
|
+
*/
|
|
6434
|
+
name?: string;
|
|
6435
|
+
}
|
|
6436
|
+
export interface Params$Resource$Customers$Connectorconfigs$Get extends StandardParameters {
|
|
6437
|
+
/**
|
|
6438
|
+
* Required. Format: customers/{customer\}/connectorConfigs/{connector_config\}
|
|
6439
|
+
*/
|
|
6440
|
+
name?: string;
|
|
6441
|
+
}
|
|
6442
|
+
export interface Params$Resource$Customers$Connectorconfigs$List extends StandardParameters {
|
|
6443
|
+
/**
|
|
6444
|
+
* Optional. The maximum number of connector configs to return. The default page size is 50 if page_size is unspecified, and the maximum page size allowed is 100. Values above 100 will be capped at 100.
|
|
6445
|
+
*/
|
|
6446
|
+
pageSize?: number;
|
|
6447
|
+
/**
|
|
6448
|
+
* Optional. A page token, received from a previous `ListConnectorConfigs` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListConnectorConfigs` must match the call that provided the page token.
|
|
6449
|
+
*/
|
|
6450
|
+
pageToken?: string;
|
|
6451
|
+
/**
|
|
6452
|
+
* Required. Format: customers/{customer\}
|
|
6453
|
+
*/
|
|
6454
|
+
parent?: string;
|
|
6455
|
+
}
|
|
6456
|
+
export interface Params$Resource$Customers$Connectorconfigs$Patch extends StandardParameters {
|
|
6457
|
+
/**
|
|
6458
|
+
* Identifier. Format: customers/{customer\}/connectorConfigs/{connector_config\}
|
|
6459
|
+
*/
|
|
6460
|
+
name?: string;
|
|
6461
|
+
/**
|
|
6462
|
+
* Optional. The update mask that can be used to specify which fields to update.
|
|
6463
|
+
*/
|
|
6464
|
+
updateMask?: string;
|
|
6465
|
+
|
|
6466
|
+
/**
|
|
6467
|
+
* Request body metadata
|
|
6468
|
+
*/
|
|
6469
|
+
requestBody?: Schema$GoogleChromeManagementVersionsV1ConnectorConfig;
|
|
6470
|
+
}
|
|
6471
|
+
|
|
6472
|
+
export class Resource$Customers$Enterprise {
|
|
6473
|
+
context: APIRequestContext;
|
|
6474
|
+
securityInsights: Resource$Customers$Enterprise$Securityinsights;
|
|
6475
|
+
constructor(context: APIRequestContext) {
|
|
6476
|
+
this.context = context;
|
|
6477
|
+
this.securityInsights =
|
|
6478
|
+
new Resource$Customers$Enterprise$Securityinsights(this.context);
|
|
6479
|
+
}
|
|
6480
|
+
}
|
|
6481
|
+
|
|
6482
|
+
export class Resource$Customers$Enterprise$Securityinsights {
|
|
6483
|
+
context: APIRequestContext;
|
|
6484
|
+
constructor(context: APIRequestContext) {
|
|
6485
|
+
this.context = context;
|
|
6486
|
+
}
|
|
6487
|
+
|
|
6488
|
+
/**
|
|
6489
|
+
* Gets the setting state of the insights feature for the customer.
|
|
6490
|
+
* @example
|
|
6491
|
+
* ```js
|
|
6492
|
+
* // Before running the sample:
|
|
6493
|
+
* // - Enable the API at:
|
|
6494
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
6495
|
+
* // - Login into gcloud by running:
|
|
6496
|
+
* // ```sh
|
|
6497
|
+
* // $ gcloud auth application-default login
|
|
6498
|
+
* // ```
|
|
6499
|
+
* // - Install the npm module by running:
|
|
6500
|
+
* // ```sh
|
|
6501
|
+
* // $ npm install googleapis
|
|
6502
|
+
* // ```
|
|
6503
|
+
*
|
|
6504
|
+
* const {google} = require('googleapis');
|
|
6505
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
6506
|
+
*
|
|
6507
|
+
* async function main() {
|
|
6508
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6509
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6510
|
+
* scopes: [],
|
|
6511
|
+
* });
|
|
6512
|
+
*
|
|
6513
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6514
|
+
* const authClient = await auth.getClient();
|
|
6515
|
+
* google.options({auth: authClient});
|
|
6516
|
+
*
|
|
6517
|
+
* // Do the magic
|
|
6518
|
+
* const res =
|
|
6519
|
+
* await chromemanagement.customers.enterprise.securityInsights.checkEnablementStatus(
|
|
6520
|
+
* {
|
|
6521
|
+
* // Required. The customer to check the enablement status for. Format: customers/{customer_id\}
|
|
6522
|
+
* customer: 'customers/my-customer',
|
|
6523
|
+
* },
|
|
6524
|
+
* );
|
|
6525
|
+
* console.log(res.data);
|
|
6526
|
+
*
|
|
6527
|
+
* // Example response
|
|
6528
|
+
* // {
|
|
6529
|
+
* // "insightsState": "my_insightsState"
|
|
6530
|
+
* // }
|
|
6531
|
+
* }
|
|
6532
|
+
*
|
|
6533
|
+
* main().catch(e => {
|
|
6534
|
+
* console.error(e);
|
|
6535
|
+
* throw e;
|
|
6536
|
+
* });
|
|
6537
|
+
*
|
|
6538
|
+
* ```
|
|
6539
|
+
*
|
|
6540
|
+
* @param params - Parameters for request
|
|
6541
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6542
|
+
* @param callback - Optional callback that handles the response.
|
|
6543
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6544
|
+
*/
|
|
6545
|
+
checkEnablementStatus(
|
|
6546
|
+
params: Params$Resource$Customers$Enterprise$Securityinsights$Checkenablementstatus,
|
|
6547
|
+
options: StreamMethodOptions
|
|
6548
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
6549
|
+
checkEnablementStatus(
|
|
6550
|
+
params?: Params$Resource$Customers$Enterprise$Securityinsights$Checkenablementstatus,
|
|
6551
|
+
options?: MethodOptions
|
|
6552
|
+
): Promise<
|
|
6553
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1CheckEnablementStatusResponse>
|
|
6554
|
+
>;
|
|
6555
|
+
checkEnablementStatus(
|
|
6556
|
+
params: Params$Resource$Customers$Enterprise$Securityinsights$Checkenablementstatus,
|
|
6557
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
6558
|
+
callback: BodyResponseCallback<Readable>
|
|
6559
|
+
): void;
|
|
6560
|
+
checkEnablementStatus(
|
|
6561
|
+
params: Params$Resource$Customers$Enterprise$Securityinsights$Checkenablementstatus,
|
|
6562
|
+
options:
|
|
6563
|
+
| MethodOptions
|
|
6564
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1CheckEnablementStatusResponse>,
|
|
6565
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1CheckEnablementStatusResponse>
|
|
6566
|
+
): void;
|
|
6567
|
+
checkEnablementStatus(
|
|
6568
|
+
params: Params$Resource$Customers$Enterprise$Securityinsights$Checkenablementstatus,
|
|
6569
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1CheckEnablementStatusResponse>
|
|
6570
|
+
): void;
|
|
6571
|
+
checkEnablementStatus(
|
|
6572
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1CheckEnablementStatusResponse>
|
|
6573
|
+
): void;
|
|
6574
|
+
checkEnablementStatus(
|
|
6575
|
+
paramsOrCallback?:
|
|
6576
|
+
| Params$Resource$Customers$Enterprise$Securityinsights$Checkenablementstatus
|
|
6577
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1CheckEnablementStatusResponse>
|
|
6578
|
+
| BodyResponseCallback<Readable>,
|
|
6579
|
+
optionsOrCallback?:
|
|
6580
|
+
| MethodOptions
|
|
6581
|
+
| StreamMethodOptions
|
|
6582
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1CheckEnablementStatusResponse>
|
|
6583
|
+
| BodyResponseCallback<Readable>,
|
|
6584
|
+
callback?:
|
|
6585
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1CheckEnablementStatusResponse>
|
|
6586
|
+
| BodyResponseCallback<Readable>
|
|
6587
|
+
):
|
|
6588
|
+
| void
|
|
6589
|
+
| Promise<
|
|
6590
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1CheckEnablementStatusResponse>
|
|
6591
|
+
>
|
|
6592
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
6593
|
+
let params = (paramsOrCallback ||
|
|
6594
|
+
{}) as Params$Resource$Customers$Enterprise$Securityinsights$Checkenablementstatus;
|
|
6595
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
6596
|
+
|
|
6597
|
+
if (typeof paramsOrCallback === 'function') {
|
|
6598
|
+
callback = paramsOrCallback;
|
|
6599
|
+
params =
|
|
6600
|
+
{} as Params$Resource$Customers$Enterprise$Securityinsights$Checkenablementstatus;
|
|
6601
|
+
options = {};
|
|
6602
|
+
}
|
|
6603
|
+
|
|
6604
|
+
if (typeof optionsOrCallback === 'function') {
|
|
6605
|
+
callback = optionsOrCallback;
|
|
6606
|
+
options = {};
|
|
6607
|
+
}
|
|
6608
|
+
|
|
6609
|
+
const rootUrl =
|
|
6610
|
+
options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
6611
|
+
const parameters = {
|
|
6612
|
+
options: Object.assign(
|
|
6613
|
+
{
|
|
6614
|
+
url: (
|
|
6615
|
+
rootUrl +
|
|
6616
|
+
'/v1/{+customer}/enterprise/securityInsights:checkEnablementStatus'
|
|
6617
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
6618
|
+
method: 'GET',
|
|
6619
|
+
apiVersion: '',
|
|
6620
|
+
},
|
|
6621
|
+
options
|
|
6622
|
+
),
|
|
6623
|
+
params,
|
|
6624
|
+
requiredParams: ['customer'],
|
|
6625
|
+
pathParams: ['customer'],
|
|
6626
|
+
context: this.context,
|
|
6627
|
+
};
|
|
6628
|
+
if (callback) {
|
|
6629
|
+
createAPIRequest<Schema$GoogleChromeManagementVersionsV1CheckEnablementStatusResponse>(
|
|
6630
|
+
parameters,
|
|
6631
|
+
callback as BodyResponseCallback<unknown>
|
|
6632
|
+
);
|
|
6633
|
+
} else {
|
|
6634
|
+
return createAPIRequest<Schema$GoogleChromeManagementVersionsV1CheckEnablementStatusResponse>(
|
|
6635
|
+
parameters
|
|
6636
|
+
);
|
|
6637
|
+
}
|
|
6638
|
+
}
|
|
6639
|
+
|
|
6640
|
+
/**
|
|
6641
|
+
* Disables insights for the customer.
|
|
6642
|
+
* @example
|
|
6643
|
+
* ```js
|
|
6644
|
+
* // Before running the sample:
|
|
6645
|
+
* // - Enable the API at:
|
|
6646
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
6647
|
+
* // - Login into gcloud by running:
|
|
6648
|
+
* // ```sh
|
|
6649
|
+
* // $ gcloud auth application-default login
|
|
6650
|
+
* // ```
|
|
6651
|
+
* // - Install the npm module by running:
|
|
6652
|
+
* // ```sh
|
|
6653
|
+
* // $ npm install googleapis
|
|
6654
|
+
* // ```
|
|
6655
|
+
*
|
|
6656
|
+
* const {google} = require('googleapis');
|
|
6657
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
6658
|
+
*
|
|
6659
|
+
* async function main() {
|
|
6660
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6661
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6662
|
+
* scopes: [],
|
|
6663
|
+
* });
|
|
6664
|
+
*
|
|
6665
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6666
|
+
* const authClient = await auth.getClient();
|
|
6667
|
+
* google.options({auth: authClient});
|
|
6668
|
+
*
|
|
6669
|
+
* // Do the magic
|
|
6670
|
+
* const res =
|
|
6671
|
+
* await chromemanagement.customers.enterprise.securityInsights.disable({
|
|
6672
|
+
* // Required. The customer to disable insights for. Format: customers/{customer\}
|
|
6673
|
+
* customer: 'customers/my-customer',
|
|
6674
|
+
*
|
|
6675
|
+
* // Request body metadata
|
|
6676
|
+
* requestBody: {
|
|
6677
|
+
* // request body parameters
|
|
6678
|
+
* // {}
|
|
6679
|
+
* },
|
|
6680
|
+
* });
|
|
6681
|
+
* console.log(res.data);
|
|
6682
|
+
*
|
|
6683
|
+
* // Example response
|
|
6684
|
+
* // {
|
|
6685
|
+
* // "insightsState": "my_insightsState"
|
|
6686
|
+
* // }
|
|
6687
|
+
* }
|
|
6688
|
+
*
|
|
6689
|
+
* main().catch(e => {
|
|
6690
|
+
* console.error(e);
|
|
6691
|
+
* throw e;
|
|
6692
|
+
* });
|
|
6693
|
+
*
|
|
6694
|
+
* ```
|
|
6695
|
+
*
|
|
6696
|
+
* @param params - Parameters for request
|
|
6697
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6698
|
+
* @param callback - Optional callback that handles the response.
|
|
6699
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6700
|
+
*/
|
|
6701
|
+
disable(
|
|
6702
|
+
params: Params$Resource$Customers$Enterprise$Securityinsights$Disable,
|
|
6703
|
+
options: StreamMethodOptions
|
|
6704
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
6705
|
+
disable(
|
|
6706
|
+
params?: Params$Resource$Customers$Enterprise$Securityinsights$Disable,
|
|
6707
|
+
options?: MethodOptions
|
|
6708
|
+
): Promise<
|
|
6709
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1DisableInsightsResponse>
|
|
6710
|
+
>;
|
|
6711
|
+
disable(
|
|
6712
|
+
params: Params$Resource$Customers$Enterprise$Securityinsights$Disable,
|
|
6713
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
6714
|
+
callback: BodyResponseCallback<Readable>
|
|
6715
|
+
): void;
|
|
6716
|
+
disable(
|
|
6717
|
+
params: Params$Resource$Customers$Enterprise$Securityinsights$Disable,
|
|
6718
|
+
options:
|
|
6719
|
+
| MethodOptions
|
|
6720
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1DisableInsightsResponse>,
|
|
6721
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1DisableInsightsResponse>
|
|
6722
|
+
): void;
|
|
6723
|
+
disable(
|
|
6724
|
+
params: Params$Resource$Customers$Enterprise$Securityinsights$Disable,
|
|
6725
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1DisableInsightsResponse>
|
|
6726
|
+
): void;
|
|
6727
|
+
disable(
|
|
6728
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1DisableInsightsResponse>
|
|
6729
|
+
): void;
|
|
6730
|
+
disable(
|
|
6731
|
+
paramsOrCallback?:
|
|
6732
|
+
| Params$Resource$Customers$Enterprise$Securityinsights$Disable
|
|
6733
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1DisableInsightsResponse>
|
|
6734
|
+
| BodyResponseCallback<Readable>,
|
|
6735
|
+
optionsOrCallback?:
|
|
6736
|
+
| MethodOptions
|
|
6737
|
+
| StreamMethodOptions
|
|
6738
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1DisableInsightsResponse>
|
|
6739
|
+
| BodyResponseCallback<Readable>,
|
|
6740
|
+
callback?:
|
|
6741
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1DisableInsightsResponse>
|
|
6742
|
+
| BodyResponseCallback<Readable>
|
|
6743
|
+
):
|
|
6744
|
+
| void
|
|
6745
|
+
| Promise<
|
|
6746
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1DisableInsightsResponse>
|
|
6747
|
+
>
|
|
6748
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
6749
|
+
let params = (paramsOrCallback ||
|
|
6750
|
+
{}) as Params$Resource$Customers$Enterprise$Securityinsights$Disable;
|
|
6751
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
6752
|
+
|
|
6753
|
+
if (typeof paramsOrCallback === 'function') {
|
|
6754
|
+
callback = paramsOrCallback;
|
|
6755
|
+
params =
|
|
6756
|
+
{} as Params$Resource$Customers$Enterprise$Securityinsights$Disable;
|
|
6757
|
+
options = {};
|
|
6758
|
+
}
|
|
6759
|
+
|
|
6760
|
+
if (typeof optionsOrCallback === 'function') {
|
|
6761
|
+
callback = optionsOrCallback;
|
|
6762
|
+
options = {};
|
|
6763
|
+
}
|
|
6764
|
+
|
|
6765
|
+
const rootUrl =
|
|
6766
|
+
options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
6767
|
+
const parameters = {
|
|
6768
|
+
options: Object.assign(
|
|
6769
|
+
{
|
|
6770
|
+
url: (
|
|
6771
|
+
rootUrl + '/v1/{+customer}/enterprise/securityInsights:disable'
|
|
6772
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
6773
|
+
method: 'POST',
|
|
6774
|
+
apiVersion: '',
|
|
6775
|
+
},
|
|
6776
|
+
options
|
|
6777
|
+
),
|
|
6778
|
+
params,
|
|
6779
|
+
requiredParams: ['customer'],
|
|
6780
|
+
pathParams: ['customer'],
|
|
6781
|
+
context: this.context,
|
|
6782
|
+
};
|
|
6783
|
+
if (callback) {
|
|
6784
|
+
createAPIRequest<Schema$GoogleChromeManagementVersionsV1DisableInsightsResponse>(
|
|
6785
|
+
parameters,
|
|
6786
|
+
callback as BodyResponseCallback<unknown>
|
|
6787
|
+
);
|
|
6788
|
+
} else {
|
|
6789
|
+
return createAPIRequest<Schema$GoogleChromeManagementVersionsV1DisableInsightsResponse>(
|
|
6790
|
+
parameters
|
|
6791
|
+
);
|
|
6792
|
+
}
|
|
6793
|
+
}
|
|
6794
|
+
|
|
6795
|
+
/**
|
|
6796
|
+
* Enables insights for the customer and sets up required chrome connectors.
|
|
6797
|
+
* @example
|
|
6798
|
+
* ```js
|
|
6799
|
+
* // Before running the sample:
|
|
6800
|
+
* // - Enable the API at:
|
|
6801
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
6802
|
+
* // - Login into gcloud by running:
|
|
6803
|
+
* // ```sh
|
|
6804
|
+
* // $ gcloud auth application-default login
|
|
6805
|
+
* // ```
|
|
6806
|
+
* // - Install the npm module by running:
|
|
6807
|
+
* // ```sh
|
|
6808
|
+
* // $ npm install googleapis
|
|
6809
|
+
* // ```
|
|
6810
|
+
*
|
|
6811
|
+
* const {google} = require('googleapis');
|
|
6812
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
6813
|
+
*
|
|
6814
|
+
* async function main() {
|
|
6815
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6816
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6817
|
+
* scopes: [],
|
|
6818
|
+
* });
|
|
6819
|
+
*
|
|
6820
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6821
|
+
* const authClient = await auth.getClient();
|
|
6822
|
+
* google.options({auth: authClient});
|
|
6823
|
+
*
|
|
6824
|
+
* // Do the magic
|
|
6825
|
+
* const res =
|
|
6826
|
+
* await chromemanagement.customers.enterprise.securityInsights.enable({
|
|
6827
|
+
* // Required. The customer to enable insights for. Format: customers/{customer\}
|
|
6828
|
+
* customer: 'customers/my-customer',
|
|
6829
|
+
*
|
|
6830
|
+
* // Request body metadata
|
|
6831
|
+
* requestBody: {
|
|
6832
|
+
* // request body parameters
|
|
6833
|
+
* // {
|
|
6834
|
+
* // "targetOus": []
|
|
6835
|
+
* // }
|
|
6836
|
+
* },
|
|
6837
|
+
* });
|
|
6838
|
+
* console.log(res.data);
|
|
6839
|
+
*
|
|
6840
|
+
* // Example response
|
|
6841
|
+
* // {
|
|
6842
|
+
* // "insightsState": "my_insightsState"
|
|
6843
|
+
* // }
|
|
6844
|
+
* }
|
|
6845
|
+
*
|
|
6846
|
+
* main().catch(e => {
|
|
6847
|
+
* console.error(e);
|
|
6848
|
+
* throw e;
|
|
6849
|
+
* });
|
|
6850
|
+
*
|
|
6851
|
+
* ```
|
|
6852
|
+
*
|
|
6853
|
+
* @param params - Parameters for request
|
|
6854
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6855
|
+
* @param callback - Optional callback that handles the response.
|
|
6856
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6857
|
+
*/
|
|
6858
|
+
enable(
|
|
6859
|
+
params: Params$Resource$Customers$Enterprise$Securityinsights$Enable,
|
|
6860
|
+
options: StreamMethodOptions
|
|
6861
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
6862
|
+
enable(
|
|
6863
|
+
params?: Params$Resource$Customers$Enterprise$Securityinsights$Enable,
|
|
6864
|
+
options?: MethodOptions
|
|
6865
|
+
): Promise<
|
|
6866
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1EnableInsightsResponse>
|
|
6867
|
+
>;
|
|
6868
|
+
enable(
|
|
6869
|
+
params: Params$Resource$Customers$Enterprise$Securityinsights$Enable,
|
|
6870
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
6871
|
+
callback: BodyResponseCallback<Readable>
|
|
6872
|
+
): void;
|
|
6873
|
+
enable(
|
|
6874
|
+
params: Params$Resource$Customers$Enterprise$Securityinsights$Enable,
|
|
6875
|
+
options:
|
|
6876
|
+
| MethodOptions
|
|
6877
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnableInsightsResponse>,
|
|
6878
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnableInsightsResponse>
|
|
6879
|
+
): void;
|
|
6880
|
+
enable(
|
|
6881
|
+
params: Params$Resource$Customers$Enterprise$Securityinsights$Enable,
|
|
6882
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnableInsightsResponse>
|
|
6883
|
+
): void;
|
|
6884
|
+
enable(
|
|
6885
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnableInsightsResponse>
|
|
6886
|
+
): void;
|
|
6887
|
+
enable(
|
|
6888
|
+
paramsOrCallback?:
|
|
6889
|
+
| Params$Resource$Customers$Enterprise$Securityinsights$Enable
|
|
6890
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnableInsightsResponse>
|
|
6891
|
+
| BodyResponseCallback<Readable>,
|
|
6892
|
+
optionsOrCallback?:
|
|
6893
|
+
| MethodOptions
|
|
6894
|
+
| StreamMethodOptions
|
|
6895
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnableInsightsResponse>
|
|
6896
|
+
| BodyResponseCallback<Readable>,
|
|
6897
|
+
callback?:
|
|
6898
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnableInsightsResponse>
|
|
6899
|
+
| BodyResponseCallback<Readable>
|
|
6900
|
+
):
|
|
6901
|
+
| void
|
|
6902
|
+
| Promise<
|
|
6903
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1EnableInsightsResponse>
|
|
6904
|
+
>
|
|
6905
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
6906
|
+
let params = (paramsOrCallback ||
|
|
6907
|
+
{}) as Params$Resource$Customers$Enterprise$Securityinsights$Enable;
|
|
6908
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
6909
|
+
|
|
6910
|
+
if (typeof paramsOrCallback === 'function') {
|
|
6911
|
+
callback = paramsOrCallback;
|
|
6912
|
+
params =
|
|
6913
|
+
{} as Params$Resource$Customers$Enterprise$Securityinsights$Enable;
|
|
6914
|
+
options = {};
|
|
6915
|
+
}
|
|
6916
|
+
|
|
6917
|
+
if (typeof optionsOrCallback === 'function') {
|
|
6918
|
+
callback = optionsOrCallback;
|
|
6919
|
+
options = {};
|
|
6920
|
+
}
|
|
6921
|
+
|
|
6922
|
+
const rootUrl =
|
|
6923
|
+
options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
6924
|
+
const parameters = {
|
|
6925
|
+
options: Object.assign(
|
|
6926
|
+
{
|
|
6927
|
+
url: (
|
|
6928
|
+
rootUrl + '/v1/{+customer}/enterprise/securityInsights:enable'
|
|
6929
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
6930
|
+
method: 'POST',
|
|
6931
|
+
apiVersion: '',
|
|
6932
|
+
},
|
|
6933
|
+
options
|
|
6934
|
+
),
|
|
6935
|
+
params,
|
|
6936
|
+
requiredParams: ['customer'],
|
|
6937
|
+
pathParams: ['customer'],
|
|
6938
|
+
context: this.context,
|
|
6939
|
+
};
|
|
6940
|
+
if (callback) {
|
|
6941
|
+
createAPIRequest<Schema$GoogleChromeManagementVersionsV1EnableInsightsResponse>(
|
|
6942
|
+
parameters,
|
|
6943
|
+
callback as BodyResponseCallback<unknown>
|
|
6944
|
+
);
|
|
6945
|
+
} else {
|
|
6946
|
+
return createAPIRequest<Schema$GoogleChromeManagementVersionsV1EnableInsightsResponse>(
|
|
6947
|
+
parameters
|
|
6948
|
+
);
|
|
6949
|
+
}
|
|
6950
|
+
}
|
|
6951
|
+
}
|
|
6952
|
+
|
|
6953
|
+
export interface Params$Resource$Customers$Enterprise$Securityinsights$Checkenablementstatus extends StandardParameters {
|
|
6954
|
+
/**
|
|
6955
|
+
* Required. The customer to check the enablement status for. Format: customers/{customer_id\}
|
|
6956
|
+
*/
|
|
6957
|
+
customer?: string;
|
|
6958
|
+
}
|
|
6959
|
+
export interface Params$Resource$Customers$Enterprise$Securityinsights$Disable extends StandardParameters {
|
|
6960
|
+
/**
|
|
6961
|
+
* Required. The customer to disable insights for. Format: customers/{customer\}
|
|
6962
|
+
*/
|
|
6963
|
+
customer?: string;
|
|
6964
|
+
|
|
6965
|
+
/**
|
|
6966
|
+
* Request body metadata
|
|
6967
|
+
*/
|
|
6968
|
+
requestBody?: Schema$GoogleChromeManagementVersionsV1DisableInsightsRequest;
|
|
6969
|
+
}
|
|
6970
|
+
export interface Params$Resource$Customers$Enterprise$Securityinsights$Enable extends StandardParameters {
|
|
6971
|
+
/**
|
|
6972
|
+
* Required. The customer to enable insights for. Format: customers/{customer\}
|
|
6973
|
+
*/
|
|
6974
|
+
customer?: string;
|
|
6975
|
+
|
|
6976
|
+
/**
|
|
6977
|
+
* Request body metadata
|
|
6978
|
+
*/
|
|
6979
|
+
requestBody?: Schema$GoogleChromeManagementVersionsV1EnableInsightsRequest;
|
|
6980
|
+
}
|
|
6981
|
+
|
|
6982
|
+
export class Resource$Customers$Profiles {
|
|
6983
|
+
context: APIRequestContext;
|
|
6984
|
+
commands: Resource$Customers$Profiles$Commands;
|
|
6985
|
+
constructor(context: APIRequestContext) {
|
|
6986
|
+
this.context = context;
|
|
6987
|
+
this.commands = new Resource$Customers$Profiles$Commands(this.context);
|
|
6988
|
+
}
|
|
6989
|
+
|
|
6990
|
+
/**
|
|
6991
|
+
* Deletes the data collected from a Chrome browser profile.
|
|
6992
|
+
* @example
|
|
6993
|
+
* ```js
|
|
6994
|
+
* // Before running the sample:
|
|
6995
|
+
* // - Enable the API at:
|
|
6996
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
6997
|
+
* // - Login into gcloud by running:
|
|
6998
|
+
* // ```sh
|
|
6999
|
+
* // $ gcloud auth application-default login
|
|
7000
|
+
* // ```
|
|
7001
|
+
* // - Install the npm module by running:
|
|
7002
|
+
* // ```sh
|
|
7003
|
+
* // $ npm install googleapis
|
|
7004
|
+
* // ```
|
|
7005
|
+
*
|
|
7006
|
+
* const {google} = require('googleapis');
|
|
7007
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
7008
|
+
*
|
|
7009
|
+
* async function main() {
|
|
7010
|
+
* const auth = new google.auth.GoogleAuth({
|
|
7011
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7012
|
+
* scopes: ['https://www.googleapis.com/auth/chrome.management.profiles'],
|
|
7013
|
+
* });
|
|
7014
|
+
*
|
|
7015
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
7016
|
+
* const authClient = await auth.getClient();
|
|
7017
|
+
* google.options({auth: authClient});
|
|
7018
|
+
*
|
|
7019
|
+
* // Do the magic
|
|
7020
|
+
* const res = await chromemanagement.customers.profiles.delete({
|
|
7021
|
+
* // Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}
|
|
7022
|
+
* name: 'customers/my-customer/profiles/my-profile',
|
|
7023
|
+
* });
|
|
7024
|
+
* console.log(res.data);
|
|
7025
|
+
*
|
|
7026
|
+
* // Example response
|
|
7027
|
+
* // {}
|
|
7028
|
+
* }
|
|
7029
|
+
*
|
|
7030
|
+
* main().catch(e => {
|
|
7031
|
+
* console.error(e);
|
|
7032
|
+
* throw e;
|
|
7033
|
+
* });
|
|
7034
|
+
*
|
|
7035
|
+
* ```
|
|
7036
|
+
*
|
|
7037
|
+
* @param params - Parameters for request
|
|
7038
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
7039
|
+
* @param callback - Optional callback that handles the response.
|
|
7040
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
7041
|
+
*/
|
|
7042
|
+
delete(
|
|
7043
|
+
params: Params$Resource$Customers$Profiles$Delete,
|
|
7044
|
+
options: StreamMethodOptions
|
|
7045
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
7046
|
+
delete(
|
|
7047
|
+
params?: Params$Resource$Customers$Profiles$Delete,
|
|
7048
|
+
options?: MethodOptions
|
|
7049
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
|
|
7050
|
+
delete(
|
|
7051
|
+
params: Params$Resource$Customers$Profiles$Delete,
|
|
7052
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
7053
|
+
callback: BodyResponseCallback<Readable>
|
|
7054
|
+
): void;
|
|
7055
|
+
delete(
|
|
7056
|
+
params: Params$Resource$Customers$Profiles$Delete,
|
|
7057
|
+
options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>,
|
|
7058
|
+
callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
7059
|
+
): void;
|
|
5331
7060
|
delete(
|
|
5332
7061
|
params: Params$Resource$Customers$Profiles$Delete,
|
|
5333
7062
|
callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
@@ -8527,6 +10256,174 @@ export namespace chromemanagement_v1 {
|
|
|
8527
10256
|
);
|
|
8528
10257
|
}
|
|
8529
10258
|
}
|
|
10259
|
+
|
|
10260
|
+
/**
|
|
10261
|
+
* Generate report of managed Chrome profiles that have a specified app installed.
|
|
10262
|
+
* @example
|
|
10263
|
+
* ```js
|
|
10264
|
+
* // Before running the sample:
|
|
10265
|
+
* // - Enable the API at:
|
|
10266
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
10267
|
+
* // - Login into gcloud by running:
|
|
10268
|
+
* // ```sh
|
|
10269
|
+
* // $ gcloud auth application-default login
|
|
10270
|
+
* // ```
|
|
10271
|
+
* // - Install the npm module by running:
|
|
10272
|
+
* // ```sh
|
|
10273
|
+
* // $ npm install googleapis
|
|
10274
|
+
* // ```
|
|
10275
|
+
*
|
|
10276
|
+
* const {google} = require('googleapis');
|
|
10277
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
10278
|
+
*
|
|
10279
|
+
* async function main() {
|
|
10280
|
+
* const auth = new google.auth.GoogleAuth({
|
|
10281
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
10282
|
+
* scopes: [
|
|
10283
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
10284
|
+
* ],
|
|
10285
|
+
* });
|
|
10286
|
+
*
|
|
10287
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
10288
|
+
* const authClient = await auth.getClient();
|
|
10289
|
+
* google.options({auth: authClient});
|
|
10290
|
+
*
|
|
10291
|
+
* // Do the magic
|
|
10292
|
+
* const res = await chromemanagement.customers.reports.findInstalledAppProfiles(
|
|
10293
|
+
* {
|
|
10294
|
+
* // Required. 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).
|
|
10295
|
+
* appId: 'placeholder-value',
|
|
10296
|
+
* // Type of the app. Optional. If not provided, an app type will be inferred from the format of the app ID.
|
|
10297
|
+
* appType: 'placeholder-value',
|
|
10298
|
+
* // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
10299
|
+
* customer: 'customers/my-customer',
|
|
10300
|
+
* // Optional. 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
|
|
10301
|
+
* filter: 'placeholder-value',
|
|
10302
|
+
* // Optional. Field used to order results. Supported order by fields: * email * profile_id * profile_permanent_id
|
|
10303
|
+
* orderBy: 'placeholder-value',
|
|
10304
|
+
* // Optional. The ID of the organizational unit.
|
|
10305
|
+
* orgUnitId: 'placeholder-value',
|
|
10306
|
+
* // Optional. Maximum number of results to return. Maximum and default are 100.
|
|
10307
|
+
* pageSize: 'placeholder-value',
|
|
10308
|
+
* // Optional. Token to specify the page of the request to be returned.
|
|
10309
|
+
* pageToken: 'placeholder-value',
|
|
10310
|
+
* },
|
|
10311
|
+
* );
|
|
10312
|
+
* console.log(res.data);
|
|
10313
|
+
*
|
|
10314
|
+
* // Example response
|
|
10315
|
+
* // {
|
|
10316
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
10317
|
+
* // "profiles": [],
|
|
10318
|
+
* // "totalSize": 0
|
|
10319
|
+
* // }
|
|
10320
|
+
* }
|
|
10321
|
+
*
|
|
10322
|
+
* main().catch(e => {
|
|
10323
|
+
* console.error(e);
|
|
10324
|
+
* throw e;
|
|
10325
|
+
* });
|
|
10326
|
+
*
|
|
10327
|
+
* ```
|
|
10328
|
+
*
|
|
10329
|
+
* @param params - Parameters for request
|
|
10330
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
10331
|
+
* @param callback - Optional callback that handles the response.
|
|
10332
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
10333
|
+
*/
|
|
10334
|
+
findInstalledAppProfiles(
|
|
10335
|
+
params: Params$Resource$Customers$Reports$Findinstalledappprofiles,
|
|
10336
|
+
options: StreamMethodOptions
|
|
10337
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
10338
|
+
findInstalledAppProfiles(
|
|
10339
|
+
params?: Params$Resource$Customers$Reports$Findinstalledappprofiles,
|
|
10340
|
+
options?: MethodOptions
|
|
10341
|
+
): Promise<
|
|
10342
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1FindInstalledAppProfilesResponse>
|
|
10343
|
+
>;
|
|
10344
|
+
findInstalledAppProfiles(
|
|
10345
|
+
params: Params$Resource$Customers$Reports$Findinstalledappprofiles,
|
|
10346
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
10347
|
+
callback: BodyResponseCallback<Readable>
|
|
10348
|
+
): void;
|
|
10349
|
+
findInstalledAppProfiles(
|
|
10350
|
+
params: Params$Resource$Customers$Reports$Findinstalledappprofiles,
|
|
10351
|
+
options:
|
|
10352
|
+
| MethodOptions
|
|
10353
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1FindInstalledAppProfilesResponse>,
|
|
10354
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1FindInstalledAppProfilesResponse>
|
|
10355
|
+
): void;
|
|
10356
|
+
findInstalledAppProfiles(
|
|
10357
|
+
params: Params$Resource$Customers$Reports$Findinstalledappprofiles,
|
|
10358
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1FindInstalledAppProfilesResponse>
|
|
10359
|
+
): void;
|
|
10360
|
+
findInstalledAppProfiles(
|
|
10361
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1FindInstalledAppProfilesResponse>
|
|
10362
|
+
): void;
|
|
10363
|
+
findInstalledAppProfiles(
|
|
10364
|
+
paramsOrCallback?:
|
|
10365
|
+
| Params$Resource$Customers$Reports$Findinstalledappprofiles
|
|
10366
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1FindInstalledAppProfilesResponse>
|
|
10367
|
+
| BodyResponseCallback<Readable>,
|
|
10368
|
+
optionsOrCallback?:
|
|
10369
|
+
| MethodOptions
|
|
10370
|
+
| StreamMethodOptions
|
|
10371
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1FindInstalledAppProfilesResponse>
|
|
10372
|
+
| BodyResponseCallback<Readable>,
|
|
10373
|
+
callback?:
|
|
10374
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1FindInstalledAppProfilesResponse>
|
|
10375
|
+
| BodyResponseCallback<Readable>
|
|
10376
|
+
):
|
|
10377
|
+
| void
|
|
10378
|
+
| Promise<
|
|
10379
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1FindInstalledAppProfilesResponse>
|
|
10380
|
+
>
|
|
10381
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
10382
|
+
let params = (paramsOrCallback ||
|
|
10383
|
+
{}) as Params$Resource$Customers$Reports$Findinstalledappprofiles;
|
|
10384
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
10385
|
+
|
|
10386
|
+
if (typeof paramsOrCallback === 'function') {
|
|
10387
|
+
callback = paramsOrCallback;
|
|
10388
|
+
params =
|
|
10389
|
+
{} as Params$Resource$Customers$Reports$Findinstalledappprofiles;
|
|
10390
|
+
options = {};
|
|
10391
|
+
}
|
|
10392
|
+
|
|
10393
|
+
if (typeof optionsOrCallback === 'function') {
|
|
10394
|
+
callback = optionsOrCallback;
|
|
10395
|
+
options = {};
|
|
10396
|
+
}
|
|
10397
|
+
|
|
10398
|
+
const rootUrl =
|
|
10399
|
+
options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
10400
|
+
const parameters = {
|
|
10401
|
+
options: Object.assign(
|
|
10402
|
+
{
|
|
10403
|
+
url: (
|
|
10404
|
+
rootUrl + '/v1/{+customer}/reports:findInstalledAppProfiles'
|
|
10405
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
10406
|
+
method: 'GET',
|
|
10407
|
+
apiVersion: '',
|
|
10408
|
+
},
|
|
10409
|
+
options
|
|
10410
|
+
),
|
|
10411
|
+
params,
|
|
10412
|
+
requiredParams: ['customer'],
|
|
10413
|
+
pathParams: ['customer'],
|
|
10414
|
+
context: this.context,
|
|
10415
|
+
};
|
|
10416
|
+
if (callback) {
|
|
10417
|
+
createAPIRequest<Schema$GoogleChromeManagementV1FindInstalledAppProfilesResponse>(
|
|
10418
|
+
parameters,
|
|
10419
|
+
callback as BodyResponseCallback<unknown>
|
|
10420
|
+
);
|
|
10421
|
+
} else {
|
|
10422
|
+
return createAPIRequest<Schema$GoogleChromeManagementV1FindInstalledAppProfilesResponse>(
|
|
10423
|
+
parameters
|
|
10424
|
+
);
|
|
10425
|
+
}
|
|
10426
|
+
}
|
|
8530
10427
|
}
|
|
8531
10428
|
|
|
8532
10429
|
export interface Params$Resource$Customers$Reports$Countactivedevices extends StandardParameters {
|
|
@@ -8817,6 +10714,40 @@ export namespace chromemanagement_v1 {
|
|
|
8817
10714
|
*/
|
|
8818
10715
|
pageToken?: string;
|
|
8819
10716
|
}
|
|
10717
|
+
export interface Params$Resource$Customers$Reports$Findinstalledappprofiles extends StandardParameters {
|
|
10718
|
+
/**
|
|
10719
|
+
* Required. 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).
|
|
10720
|
+
*/
|
|
10721
|
+
appId?: string;
|
|
10722
|
+
/**
|
|
10723
|
+
* Type of the app. Optional. If not provided, an app type will be inferred from the format of the app ID.
|
|
10724
|
+
*/
|
|
10725
|
+
appType?: string;
|
|
10726
|
+
/**
|
|
10727
|
+
* Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
10728
|
+
*/
|
|
10729
|
+
customer?: string;
|
|
10730
|
+
/**
|
|
10731
|
+
* Optional. 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
|
|
10732
|
+
*/
|
|
10733
|
+
filter?: string;
|
|
10734
|
+
/**
|
|
10735
|
+
* Optional. Field used to order results. Supported order by fields: * email * profile_id * profile_permanent_id
|
|
10736
|
+
*/
|
|
10737
|
+
orderBy?: string;
|
|
10738
|
+
/**
|
|
10739
|
+
* Optional. The ID of the organizational unit.
|
|
10740
|
+
*/
|
|
10741
|
+
orgUnitId?: string;
|
|
10742
|
+
/**
|
|
10743
|
+
* Optional. Maximum number of results to return. Maximum and default are 100.
|
|
10744
|
+
*/
|
|
10745
|
+
pageSize?: number;
|
|
10746
|
+
/**
|
|
10747
|
+
* Optional. Token to specify the page of the request to be returned.
|
|
10748
|
+
*/
|
|
10749
|
+
pageToken?: string;
|
|
10750
|
+
}
|
|
8820
10751
|
|
|
8821
10752
|
export class Resource$Customers$Telemetry {
|
|
8822
10753
|
context: APIRequestContext;
|