@googleapis/chromemanagement 25.1.0 → 25.2.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 +8 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1.d.ts +908 -47
- package/build/v1.js +202 -0
- package/build/v1.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +1413 -34
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
|
*/
|
|
@@ -2682,6 +2724,144 @@ export namespace chromemanagement_v1 {
|
|
|
2682
2724
|
* Response message for claiming a certificate provisioning process.
|
|
2683
2725
|
*/
|
|
2684
2726
|
export interface Schema$GoogleChromeManagementVersionsV1ClaimCertificateProvisioningProcessResponse {}
|
|
2727
|
+
/**
|
|
2728
|
+
* A representation of a connector config.
|
|
2729
|
+
*/
|
|
2730
|
+
export interface Schema$GoogleChromeManagementVersionsV1ConnectorConfig {
|
|
2731
|
+
/**
|
|
2732
|
+
* Required. The details of the connector config.
|
|
2733
|
+
*/
|
|
2734
|
+
details?: Schema$GoogleChromeManagementVersionsV1ConnectorConfigDetails;
|
|
2735
|
+
/**
|
|
2736
|
+
* Required. The display name of the config.
|
|
2737
|
+
*/
|
|
2738
|
+
displayName?: string | null;
|
|
2739
|
+
/**
|
|
2740
|
+
* Identifier. Format: customers/{customer\}/connectorConfigs/{connector_config\}
|
|
2741
|
+
*/
|
|
2742
|
+
name?: string | null;
|
|
2743
|
+
/**
|
|
2744
|
+
* Output only. The status of the connector config.
|
|
2745
|
+
*/
|
|
2746
|
+
status?: Schema$GoogleChromeManagementVersionsV1ConnectorConfigStatus;
|
|
2747
|
+
/**
|
|
2748
|
+
* Required. The type of the connector.
|
|
2749
|
+
*/
|
|
2750
|
+
type?: string | null;
|
|
2751
|
+
}
|
|
2752
|
+
/**
|
|
2753
|
+
* The details of the connector config.
|
|
2754
|
+
*/
|
|
2755
|
+
export interface Schema$GoogleChromeManagementVersionsV1ConnectorConfigDetails {
|
|
2756
|
+
/**
|
|
2757
|
+
* CrowdStrike connector config.
|
|
2758
|
+
*/
|
|
2759
|
+
crowdStrikeConfig?: Schema$GoogleChromeManagementVersionsV1CrowdStrikeConfig;
|
|
2760
|
+
/**
|
|
2761
|
+
* CrowdStrike Falcon Next Gen connector config.
|
|
2762
|
+
*/
|
|
2763
|
+
crowdStrikeFalconNextGenConfig?: Schema$GoogleChromeManagementVersionsV1CrowdStrikeFalconNextGenConfig;
|
|
2764
|
+
/**
|
|
2765
|
+
* CrowdStrike XDR connector config.
|
|
2766
|
+
*/
|
|
2767
|
+
crowdStrikeXdrConfig?: Schema$GoogleChromeManagementVersionsV1CrowdStrikeXdrConfig;
|
|
2768
|
+
/**
|
|
2769
|
+
* Device trust connector config.
|
|
2770
|
+
*/
|
|
2771
|
+
deviceTrustConfig?: Schema$GoogleChromeManagementVersionsV1DeviceTrustConfig;
|
|
2772
|
+
/**
|
|
2773
|
+
* Google SecOps connector config.
|
|
2774
|
+
*/
|
|
2775
|
+
googleSecOpsConfig?: Schema$GoogleChromeManagementVersionsV1GoogleSecOpsConfig;
|
|
2776
|
+
/**
|
|
2777
|
+
* MIP label connector config.
|
|
2778
|
+
*/
|
|
2779
|
+
mipLabelConfig?: Schema$GoogleChromeManagementVersionsV1MipLabelConfig;
|
|
2780
|
+
/**
|
|
2781
|
+
* Palo Alto Networks connector config.
|
|
2782
|
+
*/
|
|
2783
|
+
paloAltoNetworksConfig?: Schema$GoogleChromeManagementVersionsV1PaloAltoNetworksConfig;
|
|
2784
|
+
/**
|
|
2785
|
+
* Pub/Sub connector config.
|
|
2786
|
+
*/
|
|
2787
|
+
pubSubConfig?: Schema$GoogleChromeManagementVersionsV1PubSubConfig;
|
|
2788
|
+
/**
|
|
2789
|
+
* Pub/Sub XDR connector config.
|
|
2790
|
+
*/
|
|
2791
|
+
pubSubXdrConfig?: Schema$GoogleChromeManagementVersionsV1PubSubXdrConfig;
|
|
2792
|
+
/**
|
|
2793
|
+
* Splunk connector config.
|
|
2794
|
+
*/
|
|
2795
|
+
splunkConfig?: Schema$GoogleChromeManagementVersionsV1SplunkConfig;
|
|
2796
|
+
}
|
|
2797
|
+
/**
|
|
2798
|
+
* The status of the connector config.
|
|
2799
|
+
*/
|
|
2800
|
+
export interface Schema$GoogleChromeManagementVersionsV1ConnectorConfigStatus {
|
|
2801
|
+
/**
|
|
2802
|
+
* 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`.
|
|
2803
|
+
*/
|
|
2804
|
+
failureStartTime?: string | null;
|
|
2805
|
+
/**
|
|
2806
|
+
* 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.
|
|
2807
|
+
*/
|
|
2808
|
+
state?: string | null;
|
|
2809
|
+
/**
|
|
2810
|
+
* 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.
|
|
2811
|
+
*/
|
|
2812
|
+
updateTime?: string | null;
|
|
2813
|
+
}
|
|
2814
|
+
/**
|
|
2815
|
+
* CrowdStrike connector config.
|
|
2816
|
+
*/
|
|
2817
|
+
export interface Schema$GoogleChromeManagementVersionsV1CrowdStrikeConfig {
|
|
2818
|
+
/**
|
|
2819
|
+
* Required. Input only. API key to use on the ingestion API.
|
|
2820
|
+
*/
|
|
2821
|
+
apiKey?: string | null;
|
|
2822
|
+
/**
|
|
2823
|
+
* Required. Host to identify the customer specific server to receive the events.
|
|
2824
|
+
*/
|
|
2825
|
+
host?: string | null;
|
|
2826
|
+
/**
|
|
2827
|
+
* Required. The reporting settings for the CrowdStrike config.
|
|
2828
|
+
*/
|
|
2829
|
+
reportingSettings?: Schema$GoogleChromeManagementVersionsV1ReportingSettings;
|
|
2830
|
+
}
|
|
2831
|
+
/**
|
|
2832
|
+
* CrowdStrike Falcon Next Gen connector config.
|
|
2833
|
+
*/
|
|
2834
|
+
export interface Schema$GoogleChromeManagementVersionsV1CrowdStrikeFalconNextGenConfig {
|
|
2835
|
+
/**
|
|
2836
|
+
* Required. Input only. API key to use on the ingestion API.
|
|
2837
|
+
*/
|
|
2838
|
+
apiKey?: string | null;
|
|
2839
|
+
/**
|
|
2840
|
+
* Required. Host to identify the customer specific server to receive the events.
|
|
2841
|
+
*/
|
|
2842
|
+
host?: string | null;
|
|
2843
|
+
/**
|
|
2844
|
+
* Required. The reporting settings for the CrowdStrike Falcon Next Gen config.
|
|
2845
|
+
*/
|
|
2846
|
+
reportingSettings?: Schema$GoogleChromeManagementVersionsV1ReportingSettings;
|
|
2847
|
+
}
|
|
2848
|
+
/**
|
|
2849
|
+
* CrowdStrike XDR connector config.
|
|
2850
|
+
*/
|
|
2851
|
+
export interface Schema$GoogleChromeManagementVersionsV1CrowdStrikeXdrConfig {
|
|
2852
|
+
/**
|
|
2853
|
+
* Required. Input only. API key to use on the ingestion API.
|
|
2854
|
+
*/
|
|
2855
|
+
apiKey?: string | null;
|
|
2856
|
+
/**
|
|
2857
|
+
* Required. Host to identify the customer specific server to receive the events.
|
|
2858
|
+
*/
|
|
2859
|
+
host?: string | null;
|
|
2860
|
+
/**
|
|
2861
|
+
* Required. The XDR settings for the CrowdStrike XDR config.
|
|
2862
|
+
*/
|
|
2863
|
+
xdrSettings?: Schema$GoogleChromeManagementVersionsV1XdrSettings;
|
|
2864
|
+
}
|
|
2685
2865
|
/**
|
|
2686
2866
|
* Information of a device that runs a Chrome browser profile.
|
|
2687
2867
|
*/
|
|
@@ -2703,6 +2883,27 @@ export namespace chromemanagement_v1 {
|
|
|
2703
2883
|
*/
|
|
2704
2884
|
machine?: string | null;
|
|
2705
2885
|
}
|
|
2886
|
+
/**
|
|
2887
|
+
* Device trust config for device trust connectors.
|
|
2888
|
+
*/
|
|
2889
|
+
export interface Schema$GoogleChromeManagementVersionsV1DeviceTrustConfig {
|
|
2890
|
+
/**
|
|
2891
|
+
* 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.
|
|
2892
|
+
*/
|
|
2893
|
+
scope?: string | null;
|
|
2894
|
+
/**
|
|
2895
|
+
* Required. A list of email addresses of the service accounts which are allowed to call the Verified Access API with full access.
|
|
2896
|
+
*/
|
|
2897
|
+
serviceAccounts?: string[] | null;
|
|
2898
|
+
/**
|
|
2899
|
+
* Optional. The service provider for the device trust connector.
|
|
2900
|
+
*/
|
|
2901
|
+
serviceProvider?: string | null;
|
|
2902
|
+
/**
|
|
2903
|
+
* 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.
|
|
2904
|
+
*/
|
|
2905
|
+
urlMatchers?: string[] | null;
|
|
2906
|
+
}
|
|
2706
2907
|
/**
|
|
2707
2908
|
* Describes a generic Certificate Authority Connection.
|
|
2708
2909
|
*/
|
|
@@ -2721,6 +2922,23 @@ export namespace chromemanagement_v1 {
|
|
|
2721
2922
|
*/
|
|
2722
2923
|
profileAdapterConfigReference?: string | null;
|
|
2723
2924
|
}
|
|
2925
|
+
/**
|
|
2926
|
+
* Google SecOps connector config.
|
|
2927
|
+
*/
|
|
2928
|
+
export interface Schema$GoogleChromeManagementVersionsV1GoogleSecOpsConfig {
|
|
2929
|
+
/**
|
|
2930
|
+
* Required. Input only. API key to use on the ingestion API.
|
|
2931
|
+
*/
|
|
2932
|
+
apiKey?: string | null;
|
|
2933
|
+
/**
|
|
2934
|
+
* 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.
|
|
2935
|
+
*/
|
|
2936
|
+
host?: string | null;
|
|
2937
|
+
/**
|
|
2938
|
+
* Required. The reporting settings for the Google SecOps config.
|
|
2939
|
+
*/
|
|
2940
|
+
reportingSettings?: Schema$GoogleChromeManagementVersionsV1ReportingSettings;
|
|
2941
|
+
}
|
|
2724
2942
|
/**
|
|
2725
2943
|
* Response to ListChromeBrowserProfileCommands method.
|
|
2726
2944
|
*/
|
|
@@ -2755,6 +2973,32 @@ export namespace chromemanagement_v1 {
|
|
|
2755
2973
|
*/
|
|
2756
2974
|
totalSize?: string | null;
|
|
2757
2975
|
}
|
|
2976
|
+
/**
|
|
2977
|
+
* Response to ListConnectorConfigs method.
|
|
2978
|
+
*/
|
|
2979
|
+
export interface Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse {
|
|
2980
|
+
/**
|
|
2981
|
+
* The list of connector configs returned.
|
|
2982
|
+
*/
|
|
2983
|
+
connectorConfigs?: Schema$GoogleChromeManagementVersionsV1ConnectorConfig[];
|
|
2984
|
+
/**
|
|
2985
|
+
* 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.
|
|
2986
|
+
*/
|
|
2987
|
+
nextPageToken?: string | null;
|
|
2988
|
+
}
|
|
2989
|
+
/**
|
|
2990
|
+
* MIP label connector config.
|
|
2991
|
+
*/
|
|
2992
|
+
export interface Schema$GoogleChromeManagementVersionsV1MipLabelConfig {
|
|
2993
|
+
/**
|
|
2994
|
+
* 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.
|
|
2995
|
+
*/
|
|
2996
|
+
domains?: string[] | null;
|
|
2997
|
+
/**
|
|
2998
|
+
* Required. Microsoft tenant ID.
|
|
2999
|
+
*/
|
|
3000
|
+
microsoftTenantId?: string | null;
|
|
3001
|
+
}
|
|
2758
3002
|
/**
|
|
2759
3003
|
* Request to MoveThirdPartyProfileUser method.
|
|
2760
3004
|
*/
|
|
@@ -2773,6 +3017,49 @@ export namespace chromemanagement_v1 {
|
|
|
2773
3017
|
*/
|
|
2774
3018
|
thirdPartyProfileUser?: Schema$GoogleChromeManagementVersionsV1ThirdPartyProfileUser;
|
|
2775
3019
|
}
|
|
3020
|
+
/**
|
|
3021
|
+
* Palo Alto Networks connector config.
|
|
3022
|
+
*/
|
|
3023
|
+
export interface Schema$GoogleChromeManagementVersionsV1PaloAltoNetworksConfig {
|
|
3024
|
+
/**
|
|
3025
|
+
* Required. Input only. API key to use on the ingestion API.
|
|
3026
|
+
*/
|
|
3027
|
+
apiKey?: string | null;
|
|
3028
|
+
/**
|
|
3029
|
+
* Required. Host to identify the customer specific server to receive the events.
|
|
3030
|
+
*/
|
|
3031
|
+
host?: string | null;
|
|
3032
|
+
/**
|
|
3033
|
+
* Required. The reporting settings for the Palo Alto Networks config.
|
|
3034
|
+
*/
|
|
3035
|
+
reportingSettings?: Schema$GoogleChromeManagementVersionsV1ReportingSettings;
|
|
3036
|
+
}
|
|
3037
|
+
/**
|
|
3038
|
+
* Pub/Sub connector config.
|
|
3039
|
+
*/
|
|
3040
|
+
export interface Schema$GoogleChromeManagementVersionsV1PubSubConfig {
|
|
3041
|
+
/**
|
|
3042
|
+
* Required. The reporting settings for the Pub/Sub config.
|
|
3043
|
+
*/
|
|
3044
|
+
reportingSettings?: Schema$GoogleChromeManagementVersionsV1ReportingSettings;
|
|
3045
|
+
/**
|
|
3046
|
+
* Required. The full path to the topic to send the event to.
|
|
3047
|
+
*/
|
|
3048
|
+
topicFullPath?: string | null;
|
|
3049
|
+
}
|
|
3050
|
+
/**
|
|
3051
|
+
* Pub/Sub XDR connector config.
|
|
3052
|
+
*/
|
|
3053
|
+
export interface Schema$GoogleChromeManagementVersionsV1PubSubXdrConfig {
|
|
3054
|
+
/**
|
|
3055
|
+
* Required. The full path to the topic to send the event to.
|
|
3056
|
+
*/
|
|
3057
|
+
topicFullPath?: string | null;
|
|
3058
|
+
/**
|
|
3059
|
+
* Required. The XDR settings for the Pub/Sub XDR config.
|
|
3060
|
+
*/
|
|
3061
|
+
xdrSettings?: Schema$GoogleChromeManagementVersionsV1XdrSettings;
|
|
3062
|
+
}
|
|
2776
3063
|
/**
|
|
2777
3064
|
* Reporting data of a Chrome browser profile.
|
|
2778
3065
|
*/
|
|
@@ -2902,6 +3189,23 @@ export namespace chromemanagement_v1 {
|
|
|
2902
3189
|
*/
|
|
2903
3190
|
value?: string | null;
|
|
2904
3191
|
}
|
|
3192
|
+
/**
|
|
3193
|
+
* Reporting settings for connector configs.
|
|
3194
|
+
*/
|
|
3195
|
+
export interface Schema$GoogleChromeManagementVersionsV1ReportingSettings {
|
|
3196
|
+
/**
|
|
3197
|
+
* 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.
|
|
3198
|
+
*/
|
|
3199
|
+
enabledDefaultEvents?: string[] | null;
|
|
3200
|
+
/**
|
|
3201
|
+
* 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.
|
|
3202
|
+
*/
|
|
3203
|
+
enabledDeviceEvents?: string[] | null;
|
|
3204
|
+
/**
|
|
3205
|
+
* 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.
|
|
3206
|
+
*/
|
|
3207
|
+
enabledOptInEvents?: string[] | null;
|
|
3208
|
+
}
|
|
2905
3209
|
/**
|
|
2906
3210
|
* Describes a SCEP Certificate Authority Connection.
|
|
2907
3211
|
*/
|
|
@@ -2996,6 +3300,35 @@ export namespace chromemanagement_v1 {
|
|
|
2996
3300
|
*/
|
|
2997
3301
|
certificateProvisioningProcess?: Schema$GoogleChromeManagementVersionsV1CertificateProvisioningProcess;
|
|
2998
3302
|
}
|
|
3303
|
+
/**
|
|
3304
|
+
* Splunk connector config.
|
|
3305
|
+
*/
|
|
3306
|
+
export interface Schema$GoogleChromeManagementVersionsV1SplunkConfig {
|
|
3307
|
+
/**
|
|
3308
|
+
* Required. Input only. The data input's HTTP Event Collector token to use as an Authorization header.
|
|
3309
|
+
*/
|
|
3310
|
+
hecToken?: string | null;
|
|
3311
|
+
/**
|
|
3312
|
+
* Required. Host to identify the customer specific server to receive the events.
|
|
3313
|
+
*/
|
|
3314
|
+
host?: string | null;
|
|
3315
|
+
/**
|
|
3316
|
+
* Optional. The port number to use. If not set, the default Splunk port is used.
|
|
3317
|
+
*/
|
|
3318
|
+
portNumber?: number | null;
|
|
3319
|
+
/**
|
|
3320
|
+
* Required. The reporting settings for the Splunk config.
|
|
3321
|
+
*/
|
|
3322
|
+
reportingSettings?: Schema$GoogleChromeManagementVersionsV1ReportingSettings;
|
|
3323
|
+
/**
|
|
3324
|
+
* Optional. Optional source name to override the default one set in the Splunk admin console.
|
|
3325
|
+
*/
|
|
3326
|
+
source?: string | null;
|
|
3327
|
+
/**
|
|
3328
|
+
* Optional. Whether to use an unsecure HTTP scheme. Defaults to false (HTTPS).
|
|
3329
|
+
*/
|
|
3330
|
+
unsecureScheme?: boolean | null;
|
|
3331
|
+
}
|
|
2999
3332
|
/**
|
|
3000
3333
|
* Describes a subject alternative name.
|
|
3001
3334
|
*/
|
|
@@ -3035,6 +3368,15 @@ export namespace chromemanagement_v1 {
|
|
|
3035
3368
|
* Response message for publishing an issued certificate for a certificate provisioning process.
|
|
3036
3369
|
*/
|
|
3037
3370
|
export interface Schema$GoogleChromeManagementVersionsV1UploadCertificateResponse {}
|
|
3371
|
+
/**
|
|
3372
|
+
* XDR settings for connector configs.
|
|
3373
|
+
*/
|
|
3374
|
+
export interface Schema$GoogleChromeManagementVersionsV1XdrSettings {
|
|
3375
|
+
/**
|
|
3376
|
+
* Required. Whether to enable all XDR events.
|
|
3377
|
+
*/
|
|
3378
|
+
enableAllXdrEvents?: boolean | null;
|
|
3379
|
+
}
|
|
3038
3380
|
/**
|
|
3039
3381
|
* The request message for Operations.CancelOperation.
|
|
3040
3382
|
*/
|
|
@@ -3124,6 +3466,7 @@ export namespace chromemanagement_v1 {
|
|
|
3124
3466
|
context: APIRequestContext;
|
|
3125
3467
|
apps: Resource$Customers$Apps;
|
|
3126
3468
|
certificateProvisioningProcesses: Resource$Customers$Certificateprovisioningprocesses;
|
|
3469
|
+
connectorConfigs: Resource$Customers$Connectorconfigs;
|
|
3127
3470
|
profiles: Resource$Customers$Profiles;
|
|
3128
3471
|
reports: Resource$Customers$Reports;
|
|
3129
3472
|
telemetry: Resource$Customers$Telemetry;
|
|
@@ -3133,6 +3476,9 @@ export namespace chromemanagement_v1 {
|
|
|
3133
3476
|
this.apps = new Resource$Customers$Apps(this.context);
|
|
3134
3477
|
this.certificateProvisioningProcesses =
|
|
3135
3478
|
new Resource$Customers$Certificateprovisioningprocesses(this.context);
|
|
3479
|
+
this.connectorConfigs = new Resource$Customers$Connectorconfigs(
|
|
3480
|
+
this.context
|
|
3481
|
+
);
|
|
3136
3482
|
this.profiles = new Resource$Customers$Profiles(this.context);
|
|
3137
3483
|
this.reports = new Resource$Customers$Reports(this.context);
|
|
3138
3484
|
this.telemetry = new Resource$Customers$Telemetry(this.context);
|
|
@@ -3750,6 +4096,7 @@ export namespace chromemanagement_v1 {
|
|
|
3750
4096
|
* // {
|
|
3751
4097
|
* // "androidAppInfo": {},
|
|
3752
4098
|
* // "appId": "my_appId",
|
|
4099
|
+
* // "categoryIds": [],
|
|
3753
4100
|
* // "chromeAppInfo": {},
|
|
3754
4101
|
* // "description": "my_description",
|
|
3755
4102
|
* // "detailUri": "my_detailUri",
|
|
@@ -3929,6 +4276,7 @@ export namespace chromemanagement_v1 {
|
|
|
3929
4276
|
* // {
|
|
3930
4277
|
* // "androidAppInfo": {},
|
|
3931
4278
|
* // "appId": "my_appId",
|
|
4279
|
+
* // "categoryIds": [],
|
|
3932
4280
|
* // "chromeAppInfo": {},
|
|
3933
4281
|
* // "description": "my_description",
|
|
3934
4282
|
* // "detailUri": "my_detailUri",
|
|
@@ -4108,6 +4456,7 @@ export namespace chromemanagement_v1 {
|
|
|
4108
4456
|
* // {
|
|
4109
4457
|
* // "androidAppInfo": {},
|
|
4110
4458
|
* // "appId": "my_appId",
|
|
4459
|
+
* // "categoryIds": [],
|
|
4111
4460
|
* // "chromeAppInfo": {},
|
|
4112
4461
|
* // "description": "my_description",
|
|
4113
4462
|
* // "detailUri": "my_detailUri",
|
|
@@ -5250,16 +5599,14 @@ export namespace chromemanagement_v1 {
|
|
|
5250
5599
|
name?: string;
|
|
5251
5600
|
}
|
|
5252
5601
|
|
|
5253
|
-
export class Resource$Customers$
|
|
5602
|
+
export class Resource$Customers$Connectorconfigs {
|
|
5254
5603
|
context: APIRequestContext;
|
|
5255
|
-
commands: Resource$Customers$Profiles$Commands;
|
|
5256
5604
|
constructor(context: APIRequestContext) {
|
|
5257
5605
|
this.context = context;
|
|
5258
|
-
this.commands = new Resource$Customers$Profiles$Commands(this.context);
|
|
5259
5606
|
}
|
|
5260
5607
|
|
|
5261
5608
|
/**
|
|
5262
|
-
*
|
|
5609
|
+
* Creates a connector config.
|
|
5263
5610
|
* @example
|
|
5264
5611
|
* ```js
|
|
5265
5612
|
* // Before running the sample:
|
|
@@ -5280,7 +5627,7 @@ export namespace chromemanagement_v1 {
|
|
|
5280
5627
|
* async function main() {
|
|
5281
5628
|
* const auth = new google.auth.GoogleAuth({
|
|
5282
5629
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5283
|
-
* scopes: [
|
|
5630
|
+
* scopes: [],
|
|
5284
5631
|
* });
|
|
5285
5632
|
*
|
|
5286
5633
|
* // Acquire an auth client, and bind it to all future calls
|
|
@@ -5288,14 +5635,34 @@ export namespace chromemanagement_v1 {
|
|
|
5288
5635
|
* google.options({auth: authClient});
|
|
5289
5636
|
*
|
|
5290
5637
|
* // Do the magic
|
|
5291
|
-
* const res = await chromemanagement.customers.
|
|
5292
|
-
* //
|
|
5293
|
-
*
|
|
5638
|
+
* const res = await chromemanagement.customers.connectorConfigs.create({
|
|
5639
|
+
* // 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.
|
|
5640
|
+
* connectorConfigId: 'placeholder-value',
|
|
5641
|
+
* // Required. Format: customers/{customer\}
|
|
5642
|
+
* parent: 'customers/my-customer',
|
|
5643
|
+
*
|
|
5644
|
+
* // Request body metadata
|
|
5645
|
+
* requestBody: {
|
|
5646
|
+
* // request body parameters
|
|
5647
|
+
* // {
|
|
5648
|
+
* // "details": {},
|
|
5649
|
+
* // "displayName": "my_displayName",
|
|
5650
|
+
* // "name": "my_name",
|
|
5651
|
+
* // "status": {},
|
|
5652
|
+
* // "type": "my_type"
|
|
5653
|
+
* // }
|
|
5654
|
+
* },
|
|
5294
5655
|
* });
|
|
5295
5656
|
* console.log(res.data);
|
|
5296
5657
|
*
|
|
5297
5658
|
* // Example response
|
|
5298
|
-
* // {
|
|
5659
|
+
* // {
|
|
5660
|
+
* // "details": {},
|
|
5661
|
+
* // "displayName": "my_displayName",
|
|
5662
|
+
* // "name": "my_name",
|
|
5663
|
+
* // "status": {},
|
|
5664
|
+
* // "type": "my_type"
|
|
5665
|
+
* // }
|
|
5299
5666
|
* }
|
|
5300
5667
|
*
|
|
5301
5668
|
* main().catch(e => {
|
|
@@ -5310,53 +5677,61 @@ export namespace chromemanagement_v1 {
|
|
|
5310
5677
|
* @param callback - Optional callback that handles the response.
|
|
5311
5678
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5312
5679
|
*/
|
|
5313
|
-
|
|
5314
|
-
params: Params$Resource$Customers$
|
|
5680
|
+
create(
|
|
5681
|
+
params: Params$Resource$Customers$Connectorconfigs$Create,
|
|
5315
5682
|
options: StreamMethodOptions
|
|
5316
5683
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5317
|
-
|
|
5318
|
-
params?: Params$Resource$Customers$
|
|
5684
|
+
create(
|
|
5685
|
+
params?: Params$Resource$Customers$Connectorconfigs$Create,
|
|
5319
5686
|
options?: MethodOptions
|
|
5320
|
-
): Promise<
|
|
5321
|
-
|
|
5322
|
-
|
|
5687
|
+
): Promise<
|
|
5688
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
5689
|
+
>;
|
|
5690
|
+
create(
|
|
5691
|
+
params: Params$Resource$Customers$Connectorconfigs$Create,
|
|
5323
5692
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
5324
5693
|
callback: BodyResponseCallback<Readable>
|
|
5325
5694
|
): void;
|
|
5326
|
-
|
|
5327
|
-
params: Params$Resource$Customers$
|
|
5328
|
-
options:
|
|
5329
|
-
|
|
5695
|
+
create(
|
|
5696
|
+
params: Params$Resource$Customers$Connectorconfigs$Create,
|
|
5697
|
+
options:
|
|
5698
|
+
| MethodOptions
|
|
5699
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>,
|
|
5700
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
5330
5701
|
): void;
|
|
5331
|
-
|
|
5332
|
-
params: Params$Resource$Customers$
|
|
5333
|
-
callback: BodyResponseCallback<Schema$
|
|
5702
|
+
create(
|
|
5703
|
+
params: Params$Resource$Customers$Connectorconfigs$Create,
|
|
5704
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
5334
5705
|
): void;
|
|
5335
|
-
|
|
5336
|
-
|
|
5706
|
+
create(
|
|
5707
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
5708
|
+
): void;
|
|
5709
|
+
create(
|
|
5337
5710
|
paramsOrCallback?:
|
|
5338
|
-
| Params$Resource$Customers$
|
|
5339
|
-
| BodyResponseCallback<Schema$
|
|
5711
|
+
| Params$Resource$Customers$Connectorconfigs$Create
|
|
5712
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
5340
5713
|
| BodyResponseCallback<Readable>,
|
|
5341
5714
|
optionsOrCallback?:
|
|
5342
5715
|
| MethodOptions
|
|
5343
5716
|
| StreamMethodOptions
|
|
5344
|
-
| BodyResponseCallback<Schema$
|
|
5717
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
5345
5718
|
| BodyResponseCallback<Readable>,
|
|
5346
5719
|
callback?:
|
|
5347
|
-
| BodyResponseCallback<Schema$
|
|
5720
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
5348
5721
|
| BodyResponseCallback<Readable>
|
|
5349
5722
|
):
|
|
5350
5723
|
| void
|
|
5351
|
-
| Promise<
|
|
5724
|
+
| Promise<
|
|
5725
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
5726
|
+
>
|
|
5352
5727
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
5353
5728
|
let params = (paramsOrCallback ||
|
|
5354
|
-
{}) as Params$Resource$Customers$
|
|
5729
|
+
{}) as Params$Resource$Customers$Connectorconfigs$Create;
|
|
5355
5730
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
5356
5731
|
|
|
5357
5732
|
if (typeof paramsOrCallback === 'function') {
|
|
5358
5733
|
callback = paramsOrCallback;
|
|
5359
|
-
params = {} as Params$Resource$Customers$
|
|
5734
|
+
params = {} as Params$Resource$Customers$Connectorconfigs$Create;
|
|
5360
5735
|
options = {};
|
|
5361
5736
|
}
|
|
5362
5737
|
|
|
@@ -5370,8 +5745,810 @@ export namespace chromemanagement_v1 {
|
|
|
5370
5745
|
const parameters = {
|
|
5371
5746
|
options: Object.assign(
|
|
5372
5747
|
{
|
|
5373
|
-
url: (rootUrl + '/v1/{+
|
|
5374
|
-
|
|
5748
|
+
url: (rootUrl + '/v1/{+parent}/connectorConfigs').replace(
|
|
5749
|
+
/([^:]\/)\/+/g,
|
|
5750
|
+
'$1'
|
|
5751
|
+
),
|
|
5752
|
+
method: 'POST',
|
|
5753
|
+
apiVersion: '',
|
|
5754
|
+
},
|
|
5755
|
+
options
|
|
5756
|
+
),
|
|
5757
|
+
params,
|
|
5758
|
+
requiredParams: ['parent'],
|
|
5759
|
+
pathParams: ['parent'],
|
|
5760
|
+
context: this.context,
|
|
5761
|
+
};
|
|
5762
|
+
if (callback) {
|
|
5763
|
+
createAPIRequest<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>(
|
|
5764
|
+
parameters,
|
|
5765
|
+
callback as BodyResponseCallback<unknown>
|
|
5766
|
+
);
|
|
5767
|
+
} else {
|
|
5768
|
+
return createAPIRequest<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>(
|
|
5769
|
+
parameters
|
|
5770
|
+
);
|
|
5771
|
+
}
|
|
5772
|
+
}
|
|
5773
|
+
|
|
5774
|
+
/**
|
|
5775
|
+
* Deletes a connector config.
|
|
5776
|
+
* @example
|
|
5777
|
+
* ```js
|
|
5778
|
+
* // Before running the sample:
|
|
5779
|
+
* // - Enable the API at:
|
|
5780
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
5781
|
+
* // - Login into gcloud by running:
|
|
5782
|
+
* // ```sh
|
|
5783
|
+
* // $ gcloud auth application-default login
|
|
5784
|
+
* // ```
|
|
5785
|
+
* // - Install the npm module by running:
|
|
5786
|
+
* // ```sh
|
|
5787
|
+
* // $ npm install googleapis
|
|
5788
|
+
* // ```
|
|
5789
|
+
*
|
|
5790
|
+
* const {google} = require('googleapis');
|
|
5791
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
5792
|
+
*
|
|
5793
|
+
* async function main() {
|
|
5794
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5795
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5796
|
+
* scopes: [],
|
|
5797
|
+
* });
|
|
5798
|
+
*
|
|
5799
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5800
|
+
* const authClient = await auth.getClient();
|
|
5801
|
+
* google.options({auth: authClient});
|
|
5802
|
+
*
|
|
5803
|
+
* // Do the magic
|
|
5804
|
+
* const res = await chromemanagement.customers.connectorConfigs.delete({
|
|
5805
|
+
* // Required. Format: customers/{customer\}/connectorConfigs/{connector_config\}
|
|
5806
|
+
* name: 'customers/my-customer/connectorConfigs/my-connectorConfig',
|
|
5807
|
+
* });
|
|
5808
|
+
* console.log(res.data);
|
|
5809
|
+
*
|
|
5810
|
+
* // Example response
|
|
5811
|
+
* // {}
|
|
5812
|
+
* }
|
|
5813
|
+
*
|
|
5814
|
+
* main().catch(e => {
|
|
5815
|
+
* console.error(e);
|
|
5816
|
+
* throw e;
|
|
5817
|
+
* });
|
|
5818
|
+
*
|
|
5819
|
+
* ```
|
|
5820
|
+
*
|
|
5821
|
+
* @param params - Parameters for request
|
|
5822
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5823
|
+
* @param callback - Optional callback that handles the response.
|
|
5824
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5825
|
+
*/
|
|
5826
|
+
delete(
|
|
5827
|
+
params: Params$Resource$Customers$Connectorconfigs$Delete,
|
|
5828
|
+
options: StreamMethodOptions
|
|
5829
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5830
|
+
delete(
|
|
5831
|
+
params?: Params$Resource$Customers$Connectorconfigs$Delete,
|
|
5832
|
+
options?: MethodOptions
|
|
5833
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
|
|
5834
|
+
delete(
|
|
5835
|
+
params: Params$Resource$Customers$Connectorconfigs$Delete,
|
|
5836
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
5837
|
+
callback: BodyResponseCallback<Readable>
|
|
5838
|
+
): void;
|
|
5839
|
+
delete(
|
|
5840
|
+
params: Params$Resource$Customers$Connectorconfigs$Delete,
|
|
5841
|
+
options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>,
|
|
5842
|
+
callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
5843
|
+
): void;
|
|
5844
|
+
delete(
|
|
5845
|
+
params: Params$Resource$Customers$Connectorconfigs$Delete,
|
|
5846
|
+
callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
5847
|
+
): void;
|
|
5848
|
+
delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
|
|
5849
|
+
delete(
|
|
5850
|
+
paramsOrCallback?:
|
|
5851
|
+
| Params$Resource$Customers$Connectorconfigs$Delete
|
|
5852
|
+
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
5853
|
+
| BodyResponseCallback<Readable>,
|
|
5854
|
+
optionsOrCallback?:
|
|
5855
|
+
| MethodOptions
|
|
5856
|
+
| StreamMethodOptions
|
|
5857
|
+
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
5858
|
+
| BodyResponseCallback<Readable>,
|
|
5859
|
+
callback?:
|
|
5860
|
+
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
5861
|
+
| BodyResponseCallback<Readable>
|
|
5862
|
+
):
|
|
5863
|
+
| void
|
|
5864
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>
|
|
5865
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
5866
|
+
let params = (paramsOrCallback ||
|
|
5867
|
+
{}) as Params$Resource$Customers$Connectorconfigs$Delete;
|
|
5868
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
5869
|
+
|
|
5870
|
+
if (typeof paramsOrCallback === 'function') {
|
|
5871
|
+
callback = paramsOrCallback;
|
|
5872
|
+
params = {} as Params$Resource$Customers$Connectorconfigs$Delete;
|
|
5873
|
+
options = {};
|
|
5874
|
+
}
|
|
5875
|
+
|
|
5876
|
+
if (typeof optionsOrCallback === 'function') {
|
|
5877
|
+
callback = optionsOrCallback;
|
|
5878
|
+
options = {};
|
|
5879
|
+
}
|
|
5880
|
+
|
|
5881
|
+
const rootUrl =
|
|
5882
|
+
options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
5883
|
+
const parameters = {
|
|
5884
|
+
options: Object.assign(
|
|
5885
|
+
{
|
|
5886
|
+
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
5887
|
+
method: 'DELETE',
|
|
5888
|
+
apiVersion: '',
|
|
5889
|
+
},
|
|
5890
|
+
options
|
|
5891
|
+
),
|
|
5892
|
+
params,
|
|
5893
|
+
requiredParams: ['name'],
|
|
5894
|
+
pathParams: ['name'],
|
|
5895
|
+
context: this.context,
|
|
5896
|
+
};
|
|
5897
|
+
if (callback) {
|
|
5898
|
+
createAPIRequest<Schema$GoogleProtobufEmpty>(
|
|
5899
|
+
parameters,
|
|
5900
|
+
callback as BodyResponseCallback<unknown>
|
|
5901
|
+
);
|
|
5902
|
+
} else {
|
|
5903
|
+
return createAPIRequest<Schema$GoogleProtobufEmpty>(parameters);
|
|
5904
|
+
}
|
|
5905
|
+
}
|
|
5906
|
+
|
|
5907
|
+
/**
|
|
5908
|
+
* Gets a connector config with customer ID and config ID.
|
|
5909
|
+
* @example
|
|
5910
|
+
* ```js
|
|
5911
|
+
* // Before running the sample:
|
|
5912
|
+
* // - Enable the API at:
|
|
5913
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
5914
|
+
* // - Login into gcloud by running:
|
|
5915
|
+
* // ```sh
|
|
5916
|
+
* // $ gcloud auth application-default login
|
|
5917
|
+
* // ```
|
|
5918
|
+
* // - Install the npm module by running:
|
|
5919
|
+
* // ```sh
|
|
5920
|
+
* // $ npm install googleapis
|
|
5921
|
+
* // ```
|
|
5922
|
+
*
|
|
5923
|
+
* const {google} = require('googleapis');
|
|
5924
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
5925
|
+
*
|
|
5926
|
+
* async function main() {
|
|
5927
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5928
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5929
|
+
* scopes: [],
|
|
5930
|
+
* });
|
|
5931
|
+
*
|
|
5932
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5933
|
+
* const authClient = await auth.getClient();
|
|
5934
|
+
* google.options({auth: authClient});
|
|
5935
|
+
*
|
|
5936
|
+
* // Do the magic
|
|
5937
|
+
* const res = await chromemanagement.customers.connectorConfigs.get({
|
|
5938
|
+
* // Required. Format: customers/{customer\}/connectorConfigs/{connector_config\}
|
|
5939
|
+
* name: 'customers/my-customer/connectorConfigs/my-connectorConfig',
|
|
5940
|
+
* });
|
|
5941
|
+
* console.log(res.data);
|
|
5942
|
+
*
|
|
5943
|
+
* // Example response
|
|
5944
|
+
* // {
|
|
5945
|
+
* // "details": {},
|
|
5946
|
+
* // "displayName": "my_displayName",
|
|
5947
|
+
* // "name": "my_name",
|
|
5948
|
+
* // "status": {},
|
|
5949
|
+
* // "type": "my_type"
|
|
5950
|
+
* // }
|
|
5951
|
+
* }
|
|
5952
|
+
*
|
|
5953
|
+
* main().catch(e => {
|
|
5954
|
+
* console.error(e);
|
|
5955
|
+
* throw e;
|
|
5956
|
+
* });
|
|
5957
|
+
*
|
|
5958
|
+
* ```
|
|
5959
|
+
*
|
|
5960
|
+
* @param params - Parameters for request
|
|
5961
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5962
|
+
* @param callback - Optional callback that handles the response.
|
|
5963
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5964
|
+
*/
|
|
5965
|
+
get(
|
|
5966
|
+
params: Params$Resource$Customers$Connectorconfigs$Get,
|
|
5967
|
+
options: StreamMethodOptions
|
|
5968
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5969
|
+
get(
|
|
5970
|
+
params?: Params$Resource$Customers$Connectorconfigs$Get,
|
|
5971
|
+
options?: MethodOptions
|
|
5972
|
+
): Promise<
|
|
5973
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
5974
|
+
>;
|
|
5975
|
+
get(
|
|
5976
|
+
params: Params$Resource$Customers$Connectorconfigs$Get,
|
|
5977
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
5978
|
+
callback: BodyResponseCallback<Readable>
|
|
5979
|
+
): void;
|
|
5980
|
+
get(
|
|
5981
|
+
params: Params$Resource$Customers$Connectorconfigs$Get,
|
|
5982
|
+
options:
|
|
5983
|
+
| MethodOptions
|
|
5984
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>,
|
|
5985
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
5986
|
+
): void;
|
|
5987
|
+
get(
|
|
5988
|
+
params: Params$Resource$Customers$Connectorconfigs$Get,
|
|
5989
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
5990
|
+
): void;
|
|
5991
|
+
get(
|
|
5992
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
5993
|
+
): void;
|
|
5994
|
+
get(
|
|
5995
|
+
paramsOrCallback?:
|
|
5996
|
+
| Params$Resource$Customers$Connectorconfigs$Get
|
|
5997
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
5998
|
+
| BodyResponseCallback<Readable>,
|
|
5999
|
+
optionsOrCallback?:
|
|
6000
|
+
| MethodOptions
|
|
6001
|
+
| StreamMethodOptions
|
|
6002
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
6003
|
+
| BodyResponseCallback<Readable>,
|
|
6004
|
+
callback?:
|
|
6005
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
6006
|
+
| BodyResponseCallback<Readable>
|
|
6007
|
+
):
|
|
6008
|
+
| void
|
|
6009
|
+
| Promise<
|
|
6010
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
6011
|
+
>
|
|
6012
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
6013
|
+
let params = (paramsOrCallback ||
|
|
6014
|
+
{}) as Params$Resource$Customers$Connectorconfigs$Get;
|
|
6015
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
6016
|
+
|
|
6017
|
+
if (typeof paramsOrCallback === 'function') {
|
|
6018
|
+
callback = paramsOrCallback;
|
|
6019
|
+
params = {} as Params$Resource$Customers$Connectorconfigs$Get;
|
|
6020
|
+
options = {};
|
|
6021
|
+
}
|
|
6022
|
+
|
|
6023
|
+
if (typeof optionsOrCallback === 'function') {
|
|
6024
|
+
callback = optionsOrCallback;
|
|
6025
|
+
options = {};
|
|
6026
|
+
}
|
|
6027
|
+
|
|
6028
|
+
const rootUrl =
|
|
6029
|
+
options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
6030
|
+
const parameters = {
|
|
6031
|
+
options: Object.assign(
|
|
6032
|
+
{
|
|
6033
|
+
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
6034
|
+
method: 'GET',
|
|
6035
|
+
apiVersion: '',
|
|
6036
|
+
},
|
|
6037
|
+
options
|
|
6038
|
+
),
|
|
6039
|
+
params,
|
|
6040
|
+
requiredParams: ['name'],
|
|
6041
|
+
pathParams: ['name'],
|
|
6042
|
+
context: this.context,
|
|
6043
|
+
};
|
|
6044
|
+
if (callback) {
|
|
6045
|
+
createAPIRequest<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>(
|
|
6046
|
+
parameters,
|
|
6047
|
+
callback as BodyResponseCallback<unknown>
|
|
6048
|
+
);
|
|
6049
|
+
} else {
|
|
6050
|
+
return createAPIRequest<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>(
|
|
6051
|
+
parameters
|
|
6052
|
+
);
|
|
6053
|
+
}
|
|
6054
|
+
}
|
|
6055
|
+
|
|
6056
|
+
/**
|
|
6057
|
+
* Lists connector configs of a customer.
|
|
6058
|
+
* @example
|
|
6059
|
+
* ```js
|
|
6060
|
+
* // Before running the sample:
|
|
6061
|
+
* // - Enable the API at:
|
|
6062
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
6063
|
+
* // - Login into gcloud by running:
|
|
6064
|
+
* // ```sh
|
|
6065
|
+
* // $ gcloud auth application-default login
|
|
6066
|
+
* // ```
|
|
6067
|
+
* // - Install the npm module by running:
|
|
6068
|
+
* // ```sh
|
|
6069
|
+
* // $ npm install googleapis
|
|
6070
|
+
* // ```
|
|
6071
|
+
*
|
|
6072
|
+
* const {google} = require('googleapis');
|
|
6073
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
6074
|
+
*
|
|
6075
|
+
* async function main() {
|
|
6076
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6077
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6078
|
+
* scopes: [],
|
|
6079
|
+
* });
|
|
6080
|
+
*
|
|
6081
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6082
|
+
* const authClient = await auth.getClient();
|
|
6083
|
+
* google.options({auth: authClient});
|
|
6084
|
+
*
|
|
6085
|
+
* // Do the magic
|
|
6086
|
+
* const res = await chromemanagement.customers.connectorConfigs.list({
|
|
6087
|
+
* // 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.
|
|
6088
|
+
* pageSize: 'placeholder-value',
|
|
6089
|
+
* // 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.
|
|
6090
|
+
* pageToken: 'placeholder-value',
|
|
6091
|
+
* // Required. Format: customers/{customer\}
|
|
6092
|
+
* parent: 'customers/my-customer',
|
|
6093
|
+
* });
|
|
6094
|
+
* console.log(res.data);
|
|
6095
|
+
*
|
|
6096
|
+
* // Example response
|
|
6097
|
+
* // {
|
|
6098
|
+
* // "connectorConfigs": [],
|
|
6099
|
+
* // "nextPageToken": "my_nextPageToken"
|
|
6100
|
+
* // }
|
|
6101
|
+
* }
|
|
6102
|
+
*
|
|
6103
|
+
* main().catch(e => {
|
|
6104
|
+
* console.error(e);
|
|
6105
|
+
* throw e;
|
|
6106
|
+
* });
|
|
6107
|
+
*
|
|
6108
|
+
* ```
|
|
6109
|
+
*
|
|
6110
|
+
* @param params - Parameters for request
|
|
6111
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6112
|
+
* @param callback - Optional callback that handles the response.
|
|
6113
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6114
|
+
*/
|
|
6115
|
+
list(
|
|
6116
|
+
params: Params$Resource$Customers$Connectorconfigs$List,
|
|
6117
|
+
options: StreamMethodOptions
|
|
6118
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
6119
|
+
list(
|
|
6120
|
+
params?: Params$Resource$Customers$Connectorconfigs$List,
|
|
6121
|
+
options?: MethodOptions
|
|
6122
|
+
): Promise<
|
|
6123
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>
|
|
6124
|
+
>;
|
|
6125
|
+
list(
|
|
6126
|
+
params: Params$Resource$Customers$Connectorconfigs$List,
|
|
6127
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
6128
|
+
callback: BodyResponseCallback<Readable>
|
|
6129
|
+
): void;
|
|
6130
|
+
list(
|
|
6131
|
+
params: Params$Resource$Customers$Connectorconfigs$List,
|
|
6132
|
+
options:
|
|
6133
|
+
| MethodOptions
|
|
6134
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>,
|
|
6135
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>
|
|
6136
|
+
): void;
|
|
6137
|
+
list(
|
|
6138
|
+
params: Params$Resource$Customers$Connectorconfigs$List,
|
|
6139
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>
|
|
6140
|
+
): void;
|
|
6141
|
+
list(
|
|
6142
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>
|
|
6143
|
+
): void;
|
|
6144
|
+
list(
|
|
6145
|
+
paramsOrCallback?:
|
|
6146
|
+
| Params$Resource$Customers$Connectorconfigs$List
|
|
6147
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>
|
|
6148
|
+
| BodyResponseCallback<Readable>,
|
|
6149
|
+
optionsOrCallback?:
|
|
6150
|
+
| MethodOptions
|
|
6151
|
+
| StreamMethodOptions
|
|
6152
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>
|
|
6153
|
+
| BodyResponseCallback<Readable>,
|
|
6154
|
+
callback?:
|
|
6155
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>
|
|
6156
|
+
| BodyResponseCallback<Readable>
|
|
6157
|
+
):
|
|
6158
|
+
| void
|
|
6159
|
+
| Promise<
|
|
6160
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>
|
|
6161
|
+
>
|
|
6162
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
6163
|
+
let params = (paramsOrCallback ||
|
|
6164
|
+
{}) as Params$Resource$Customers$Connectorconfigs$List;
|
|
6165
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
6166
|
+
|
|
6167
|
+
if (typeof paramsOrCallback === 'function') {
|
|
6168
|
+
callback = paramsOrCallback;
|
|
6169
|
+
params = {} as Params$Resource$Customers$Connectorconfigs$List;
|
|
6170
|
+
options = {};
|
|
6171
|
+
}
|
|
6172
|
+
|
|
6173
|
+
if (typeof optionsOrCallback === 'function') {
|
|
6174
|
+
callback = optionsOrCallback;
|
|
6175
|
+
options = {};
|
|
6176
|
+
}
|
|
6177
|
+
|
|
6178
|
+
const rootUrl =
|
|
6179
|
+
options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
6180
|
+
const parameters = {
|
|
6181
|
+
options: Object.assign(
|
|
6182
|
+
{
|
|
6183
|
+
url: (rootUrl + '/v1/{+parent}/connectorConfigs').replace(
|
|
6184
|
+
/([^:]\/)\/+/g,
|
|
6185
|
+
'$1'
|
|
6186
|
+
),
|
|
6187
|
+
method: 'GET',
|
|
6188
|
+
apiVersion: '',
|
|
6189
|
+
},
|
|
6190
|
+
options
|
|
6191
|
+
),
|
|
6192
|
+
params,
|
|
6193
|
+
requiredParams: ['parent'],
|
|
6194
|
+
pathParams: ['parent'],
|
|
6195
|
+
context: this.context,
|
|
6196
|
+
};
|
|
6197
|
+
if (callback) {
|
|
6198
|
+
createAPIRequest<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>(
|
|
6199
|
+
parameters,
|
|
6200
|
+
callback as BodyResponseCallback<unknown>
|
|
6201
|
+
);
|
|
6202
|
+
} else {
|
|
6203
|
+
return createAPIRequest<Schema$GoogleChromeManagementVersionsV1ListConnectorConfigsResponse>(
|
|
6204
|
+
parameters
|
|
6205
|
+
);
|
|
6206
|
+
}
|
|
6207
|
+
}
|
|
6208
|
+
|
|
6209
|
+
/**
|
|
6210
|
+
* Updates a connector config.
|
|
6211
|
+
* @example
|
|
6212
|
+
* ```js
|
|
6213
|
+
* // Before running the sample:
|
|
6214
|
+
* // - Enable the API at:
|
|
6215
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
6216
|
+
* // - Login into gcloud by running:
|
|
6217
|
+
* // ```sh
|
|
6218
|
+
* // $ gcloud auth application-default login
|
|
6219
|
+
* // ```
|
|
6220
|
+
* // - Install the npm module by running:
|
|
6221
|
+
* // ```sh
|
|
6222
|
+
* // $ npm install googleapis
|
|
6223
|
+
* // ```
|
|
6224
|
+
*
|
|
6225
|
+
* const {google} = require('googleapis');
|
|
6226
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
6227
|
+
*
|
|
6228
|
+
* async function main() {
|
|
6229
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6230
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6231
|
+
* scopes: [],
|
|
6232
|
+
* });
|
|
6233
|
+
*
|
|
6234
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6235
|
+
* const authClient = await auth.getClient();
|
|
6236
|
+
* google.options({auth: authClient});
|
|
6237
|
+
*
|
|
6238
|
+
* // Do the magic
|
|
6239
|
+
* const res = await chromemanagement.customers.connectorConfigs.patch({
|
|
6240
|
+
* // Identifier. Format: customers/{customer\}/connectorConfigs/{connector_config\}
|
|
6241
|
+
* name: 'customers/my-customer/connectorConfigs/my-connectorConfig',
|
|
6242
|
+
* // Optional. The update mask that can be used to specify which fields to update.
|
|
6243
|
+
* updateMask: 'placeholder-value',
|
|
6244
|
+
*
|
|
6245
|
+
* // Request body metadata
|
|
6246
|
+
* requestBody: {
|
|
6247
|
+
* // request body parameters
|
|
6248
|
+
* // {
|
|
6249
|
+
* // "details": {},
|
|
6250
|
+
* // "displayName": "my_displayName",
|
|
6251
|
+
* // "name": "my_name",
|
|
6252
|
+
* // "status": {},
|
|
6253
|
+
* // "type": "my_type"
|
|
6254
|
+
* // }
|
|
6255
|
+
* },
|
|
6256
|
+
* });
|
|
6257
|
+
* console.log(res.data);
|
|
6258
|
+
*
|
|
6259
|
+
* // Example response
|
|
6260
|
+
* // {
|
|
6261
|
+
* // "details": {},
|
|
6262
|
+
* // "displayName": "my_displayName",
|
|
6263
|
+
* // "name": "my_name",
|
|
6264
|
+
* // "status": {},
|
|
6265
|
+
* // "type": "my_type"
|
|
6266
|
+
* // }
|
|
6267
|
+
* }
|
|
6268
|
+
*
|
|
6269
|
+
* main().catch(e => {
|
|
6270
|
+
* console.error(e);
|
|
6271
|
+
* throw e;
|
|
6272
|
+
* });
|
|
6273
|
+
*
|
|
6274
|
+
* ```
|
|
6275
|
+
*
|
|
6276
|
+
* @param params - Parameters for request
|
|
6277
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6278
|
+
* @param callback - Optional callback that handles the response.
|
|
6279
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6280
|
+
*/
|
|
6281
|
+
patch(
|
|
6282
|
+
params: Params$Resource$Customers$Connectorconfigs$Patch,
|
|
6283
|
+
options: StreamMethodOptions
|
|
6284
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
6285
|
+
patch(
|
|
6286
|
+
params?: Params$Resource$Customers$Connectorconfigs$Patch,
|
|
6287
|
+
options?: MethodOptions
|
|
6288
|
+
): Promise<
|
|
6289
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
6290
|
+
>;
|
|
6291
|
+
patch(
|
|
6292
|
+
params: Params$Resource$Customers$Connectorconfigs$Patch,
|
|
6293
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
6294
|
+
callback: BodyResponseCallback<Readable>
|
|
6295
|
+
): void;
|
|
6296
|
+
patch(
|
|
6297
|
+
params: Params$Resource$Customers$Connectorconfigs$Patch,
|
|
6298
|
+
options:
|
|
6299
|
+
| MethodOptions
|
|
6300
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>,
|
|
6301
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
6302
|
+
): void;
|
|
6303
|
+
patch(
|
|
6304
|
+
params: Params$Resource$Customers$Connectorconfigs$Patch,
|
|
6305
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
6306
|
+
): void;
|
|
6307
|
+
patch(
|
|
6308
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
6309
|
+
): void;
|
|
6310
|
+
patch(
|
|
6311
|
+
paramsOrCallback?:
|
|
6312
|
+
| Params$Resource$Customers$Connectorconfigs$Patch
|
|
6313
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
6314
|
+
| BodyResponseCallback<Readable>,
|
|
6315
|
+
optionsOrCallback?:
|
|
6316
|
+
| MethodOptions
|
|
6317
|
+
| StreamMethodOptions
|
|
6318
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
6319
|
+
| BodyResponseCallback<Readable>,
|
|
6320
|
+
callback?:
|
|
6321
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
6322
|
+
| BodyResponseCallback<Readable>
|
|
6323
|
+
):
|
|
6324
|
+
| void
|
|
6325
|
+
| Promise<
|
|
6326
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>
|
|
6327
|
+
>
|
|
6328
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
6329
|
+
let params = (paramsOrCallback ||
|
|
6330
|
+
{}) as Params$Resource$Customers$Connectorconfigs$Patch;
|
|
6331
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
6332
|
+
|
|
6333
|
+
if (typeof paramsOrCallback === 'function') {
|
|
6334
|
+
callback = paramsOrCallback;
|
|
6335
|
+
params = {} as Params$Resource$Customers$Connectorconfigs$Patch;
|
|
6336
|
+
options = {};
|
|
6337
|
+
}
|
|
6338
|
+
|
|
6339
|
+
if (typeof optionsOrCallback === 'function') {
|
|
6340
|
+
callback = optionsOrCallback;
|
|
6341
|
+
options = {};
|
|
6342
|
+
}
|
|
6343
|
+
|
|
6344
|
+
const rootUrl =
|
|
6345
|
+
options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
6346
|
+
const parameters = {
|
|
6347
|
+
options: Object.assign(
|
|
6348
|
+
{
|
|
6349
|
+
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
6350
|
+
method: 'PATCH',
|
|
6351
|
+
apiVersion: '',
|
|
6352
|
+
},
|
|
6353
|
+
options
|
|
6354
|
+
),
|
|
6355
|
+
params,
|
|
6356
|
+
requiredParams: ['name'],
|
|
6357
|
+
pathParams: ['name'],
|
|
6358
|
+
context: this.context,
|
|
6359
|
+
};
|
|
6360
|
+
if (callback) {
|
|
6361
|
+
createAPIRequest<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>(
|
|
6362
|
+
parameters,
|
|
6363
|
+
callback as BodyResponseCallback<unknown>
|
|
6364
|
+
);
|
|
6365
|
+
} else {
|
|
6366
|
+
return createAPIRequest<Schema$GoogleChromeManagementVersionsV1ConnectorConfig>(
|
|
6367
|
+
parameters
|
|
6368
|
+
);
|
|
6369
|
+
}
|
|
6370
|
+
}
|
|
6371
|
+
}
|
|
6372
|
+
|
|
6373
|
+
export interface Params$Resource$Customers$Connectorconfigs$Create extends StandardParameters {
|
|
6374
|
+
/**
|
|
6375
|
+
* 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.
|
|
6376
|
+
*/
|
|
6377
|
+
connectorConfigId?: string;
|
|
6378
|
+
/**
|
|
6379
|
+
* Required. Format: customers/{customer\}
|
|
6380
|
+
*/
|
|
6381
|
+
parent?: string;
|
|
6382
|
+
|
|
6383
|
+
/**
|
|
6384
|
+
* Request body metadata
|
|
6385
|
+
*/
|
|
6386
|
+
requestBody?: Schema$GoogleChromeManagementVersionsV1ConnectorConfig;
|
|
6387
|
+
}
|
|
6388
|
+
export interface Params$Resource$Customers$Connectorconfigs$Delete extends StandardParameters {
|
|
6389
|
+
/**
|
|
6390
|
+
* Required. Format: customers/{customer\}/connectorConfigs/{connector_config\}
|
|
6391
|
+
*/
|
|
6392
|
+
name?: string;
|
|
6393
|
+
}
|
|
6394
|
+
export interface Params$Resource$Customers$Connectorconfigs$Get extends StandardParameters {
|
|
6395
|
+
/**
|
|
6396
|
+
* Required. Format: customers/{customer\}/connectorConfigs/{connector_config\}
|
|
6397
|
+
*/
|
|
6398
|
+
name?: string;
|
|
6399
|
+
}
|
|
6400
|
+
export interface Params$Resource$Customers$Connectorconfigs$List extends StandardParameters {
|
|
6401
|
+
/**
|
|
6402
|
+
* 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.
|
|
6403
|
+
*/
|
|
6404
|
+
pageSize?: number;
|
|
6405
|
+
/**
|
|
6406
|
+
* 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.
|
|
6407
|
+
*/
|
|
6408
|
+
pageToken?: string;
|
|
6409
|
+
/**
|
|
6410
|
+
* Required. Format: customers/{customer\}
|
|
6411
|
+
*/
|
|
6412
|
+
parent?: string;
|
|
6413
|
+
}
|
|
6414
|
+
export interface Params$Resource$Customers$Connectorconfigs$Patch extends StandardParameters {
|
|
6415
|
+
/**
|
|
6416
|
+
* Identifier. Format: customers/{customer\}/connectorConfigs/{connector_config\}
|
|
6417
|
+
*/
|
|
6418
|
+
name?: string;
|
|
6419
|
+
/**
|
|
6420
|
+
* Optional. The update mask that can be used to specify which fields to update.
|
|
6421
|
+
*/
|
|
6422
|
+
updateMask?: string;
|
|
6423
|
+
|
|
6424
|
+
/**
|
|
6425
|
+
* Request body metadata
|
|
6426
|
+
*/
|
|
6427
|
+
requestBody?: Schema$GoogleChromeManagementVersionsV1ConnectorConfig;
|
|
6428
|
+
}
|
|
6429
|
+
|
|
6430
|
+
export class Resource$Customers$Profiles {
|
|
6431
|
+
context: APIRequestContext;
|
|
6432
|
+
commands: Resource$Customers$Profiles$Commands;
|
|
6433
|
+
constructor(context: APIRequestContext) {
|
|
6434
|
+
this.context = context;
|
|
6435
|
+
this.commands = new Resource$Customers$Profiles$Commands(this.context);
|
|
6436
|
+
}
|
|
6437
|
+
|
|
6438
|
+
/**
|
|
6439
|
+
* Deletes the data collected from a Chrome browser profile.
|
|
6440
|
+
* @example
|
|
6441
|
+
* ```js
|
|
6442
|
+
* // Before running the sample:
|
|
6443
|
+
* // - Enable the API at:
|
|
6444
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
6445
|
+
* // - Login into gcloud by running:
|
|
6446
|
+
* // ```sh
|
|
6447
|
+
* // $ gcloud auth application-default login
|
|
6448
|
+
* // ```
|
|
6449
|
+
* // - Install the npm module by running:
|
|
6450
|
+
* // ```sh
|
|
6451
|
+
* // $ npm install googleapis
|
|
6452
|
+
* // ```
|
|
6453
|
+
*
|
|
6454
|
+
* const {google} = require('googleapis');
|
|
6455
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
6456
|
+
*
|
|
6457
|
+
* async function main() {
|
|
6458
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6459
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6460
|
+
* scopes: ['https://www.googleapis.com/auth/chrome.management.profiles'],
|
|
6461
|
+
* });
|
|
6462
|
+
*
|
|
6463
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6464
|
+
* const authClient = await auth.getClient();
|
|
6465
|
+
* google.options({auth: authClient});
|
|
6466
|
+
*
|
|
6467
|
+
* // Do the magic
|
|
6468
|
+
* const res = await chromemanagement.customers.profiles.delete({
|
|
6469
|
+
* // Required. Format: customers/{customer_id\}/profiles/{profile_permanent_id\}
|
|
6470
|
+
* name: 'customers/my-customer/profiles/my-profile',
|
|
6471
|
+
* });
|
|
6472
|
+
* console.log(res.data);
|
|
6473
|
+
*
|
|
6474
|
+
* // Example response
|
|
6475
|
+
* // {}
|
|
6476
|
+
* }
|
|
6477
|
+
*
|
|
6478
|
+
* main().catch(e => {
|
|
6479
|
+
* console.error(e);
|
|
6480
|
+
* throw e;
|
|
6481
|
+
* });
|
|
6482
|
+
*
|
|
6483
|
+
* ```
|
|
6484
|
+
*
|
|
6485
|
+
* @param params - Parameters for request
|
|
6486
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6487
|
+
* @param callback - Optional callback that handles the response.
|
|
6488
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6489
|
+
*/
|
|
6490
|
+
delete(
|
|
6491
|
+
params: Params$Resource$Customers$Profiles$Delete,
|
|
6492
|
+
options: StreamMethodOptions
|
|
6493
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
6494
|
+
delete(
|
|
6495
|
+
params?: Params$Resource$Customers$Profiles$Delete,
|
|
6496
|
+
options?: MethodOptions
|
|
6497
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
|
|
6498
|
+
delete(
|
|
6499
|
+
params: Params$Resource$Customers$Profiles$Delete,
|
|
6500
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
6501
|
+
callback: BodyResponseCallback<Readable>
|
|
6502
|
+
): void;
|
|
6503
|
+
delete(
|
|
6504
|
+
params: Params$Resource$Customers$Profiles$Delete,
|
|
6505
|
+
options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>,
|
|
6506
|
+
callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
6507
|
+
): void;
|
|
6508
|
+
delete(
|
|
6509
|
+
params: Params$Resource$Customers$Profiles$Delete,
|
|
6510
|
+
callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
6511
|
+
): void;
|
|
6512
|
+
delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
|
|
6513
|
+
delete(
|
|
6514
|
+
paramsOrCallback?:
|
|
6515
|
+
| Params$Resource$Customers$Profiles$Delete
|
|
6516
|
+
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
6517
|
+
| BodyResponseCallback<Readable>,
|
|
6518
|
+
optionsOrCallback?:
|
|
6519
|
+
| MethodOptions
|
|
6520
|
+
| StreamMethodOptions
|
|
6521
|
+
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
6522
|
+
| BodyResponseCallback<Readable>,
|
|
6523
|
+
callback?:
|
|
6524
|
+
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
6525
|
+
| BodyResponseCallback<Readable>
|
|
6526
|
+
):
|
|
6527
|
+
| void
|
|
6528
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>
|
|
6529
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
6530
|
+
let params = (paramsOrCallback ||
|
|
6531
|
+
{}) as Params$Resource$Customers$Profiles$Delete;
|
|
6532
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
6533
|
+
|
|
6534
|
+
if (typeof paramsOrCallback === 'function') {
|
|
6535
|
+
callback = paramsOrCallback;
|
|
6536
|
+
params = {} as Params$Resource$Customers$Profiles$Delete;
|
|
6537
|
+
options = {};
|
|
6538
|
+
}
|
|
6539
|
+
|
|
6540
|
+
if (typeof optionsOrCallback === 'function') {
|
|
6541
|
+
callback = optionsOrCallback;
|
|
6542
|
+
options = {};
|
|
6543
|
+
}
|
|
6544
|
+
|
|
6545
|
+
const rootUrl =
|
|
6546
|
+
options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
6547
|
+
const parameters = {
|
|
6548
|
+
options: Object.assign(
|
|
6549
|
+
{
|
|
6550
|
+
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
6551
|
+
method: 'DELETE',
|
|
5375
6552
|
apiVersion: '',
|
|
5376
6553
|
},
|
|
5377
6554
|
options
|
|
@@ -8527,6 +9704,174 @@ export namespace chromemanagement_v1 {
|
|
|
8527
9704
|
);
|
|
8528
9705
|
}
|
|
8529
9706
|
}
|
|
9707
|
+
|
|
9708
|
+
/**
|
|
9709
|
+
* Generate report of managed Chrome profiles that have a specified app installed.
|
|
9710
|
+
* @example
|
|
9711
|
+
* ```js
|
|
9712
|
+
* // Before running the sample:
|
|
9713
|
+
* // - Enable the API at:
|
|
9714
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
9715
|
+
* // - Login into gcloud by running:
|
|
9716
|
+
* // ```sh
|
|
9717
|
+
* // $ gcloud auth application-default login
|
|
9718
|
+
* // ```
|
|
9719
|
+
* // - Install the npm module by running:
|
|
9720
|
+
* // ```sh
|
|
9721
|
+
* // $ npm install googleapis
|
|
9722
|
+
* // ```
|
|
9723
|
+
*
|
|
9724
|
+
* const {google} = require('googleapis');
|
|
9725
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
9726
|
+
*
|
|
9727
|
+
* async function main() {
|
|
9728
|
+
* const auth = new google.auth.GoogleAuth({
|
|
9729
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
9730
|
+
* scopes: [
|
|
9731
|
+
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
9732
|
+
* ],
|
|
9733
|
+
* });
|
|
9734
|
+
*
|
|
9735
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
9736
|
+
* const authClient = await auth.getClient();
|
|
9737
|
+
* google.options({auth: authClient});
|
|
9738
|
+
*
|
|
9739
|
+
* // Do the magic
|
|
9740
|
+
* const res = await chromemanagement.customers.reports.findInstalledAppProfiles(
|
|
9741
|
+
* {
|
|
9742
|
+
* // 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).
|
|
9743
|
+
* appId: 'placeholder-value',
|
|
9744
|
+
* // Type of the app. Optional. If not provided, an app type will be inferred from the format of the app ID.
|
|
9745
|
+
* appType: 'placeholder-value',
|
|
9746
|
+
* // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
9747
|
+
* customer: 'customers/my-customer',
|
|
9748
|
+
* // 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
|
|
9749
|
+
* filter: 'placeholder-value',
|
|
9750
|
+
* // Optional. Field used to order results. Supported order by fields: * email * profile_id * profile_permanent_id
|
|
9751
|
+
* orderBy: 'placeholder-value',
|
|
9752
|
+
* // Optional. The ID of the organizational unit.
|
|
9753
|
+
* orgUnitId: 'placeholder-value',
|
|
9754
|
+
* // Optional. Maximum number of results to return. Maximum and default are 100.
|
|
9755
|
+
* pageSize: 'placeholder-value',
|
|
9756
|
+
* // Optional. Token to specify the page of the request to be returned.
|
|
9757
|
+
* pageToken: 'placeholder-value',
|
|
9758
|
+
* },
|
|
9759
|
+
* );
|
|
9760
|
+
* console.log(res.data);
|
|
9761
|
+
*
|
|
9762
|
+
* // Example response
|
|
9763
|
+
* // {
|
|
9764
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
9765
|
+
* // "profiles": [],
|
|
9766
|
+
* // "totalSize": 0
|
|
9767
|
+
* // }
|
|
9768
|
+
* }
|
|
9769
|
+
*
|
|
9770
|
+
* main().catch(e => {
|
|
9771
|
+
* console.error(e);
|
|
9772
|
+
* throw e;
|
|
9773
|
+
* });
|
|
9774
|
+
*
|
|
9775
|
+
* ```
|
|
9776
|
+
*
|
|
9777
|
+
* @param params - Parameters for request
|
|
9778
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
9779
|
+
* @param callback - Optional callback that handles the response.
|
|
9780
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
9781
|
+
*/
|
|
9782
|
+
findInstalledAppProfiles(
|
|
9783
|
+
params: Params$Resource$Customers$Reports$Findinstalledappprofiles,
|
|
9784
|
+
options: StreamMethodOptions
|
|
9785
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
9786
|
+
findInstalledAppProfiles(
|
|
9787
|
+
params?: Params$Resource$Customers$Reports$Findinstalledappprofiles,
|
|
9788
|
+
options?: MethodOptions
|
|
9789
|
+
): Promise<
|
|
9790
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1FindInstalledAppProfilesResponse>
|
|
9791
|
+
>;
|
|
9792
|
+
findInstalledAppProfiles(
|
|
9793
|
+
params: Params$Resource$Customers$Reports$Findinstalledappprofiles,
|
|
9794
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
9795
|
+
callback: BodyResponseCallback<Readable>
|
|
9796
|
+
): void;
|
|
9797
|
+
findInstalledAppProfiles(
|
|
9798
|
+
params: Params$Resource$Customers$Reports$Findinstalledappprofiles,
|
|
9799
|
+
options:
|
|
9800
|
+
| MethodOptions
|
|
9801
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1FindInstalledAppProfilesResponse>,
|
|
9802
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1FindInstalledAppProfilesResponse>
|
|
9803
|
+
): void;
|
|
9804
|
+
findInstalledAppProfiles(
|
|
9805
|
+
params: Params$Resource$Customers$Reports$Findinstalledappprofiles,
|
|
9806
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1FindInstalledAppProfilesResponse>
|
|
9807
|
+
): void;
|
|
9808
|
+
findInstalledAppProfiles(
|
|
9809
|
+
callback: BodyResponseCallback<Schema$GoogleChromeManagementV1FindInstalledAppProfilesResponse>
|
|
9810
|
+
): void;
|
|
9811
|
+
findInstalledAppProfiles(
|
|
9812
|
+
paramsOrCallback?:
|
|
9813
|
+
| Params$Resource$Customers$Reports$Findinstalledappprofiles
|
|
9814
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1FindInstalledAppProfilesResponse>
|
|
9815
|
+
| BodyResponseCallback<Readable>,
|
|
9816
|
+
optionsOrCallback?:
|
|
9817
|
+
| MethodOptions
|
|
9818
|
+
| StreamMethodOptions
|
|
9819
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1FindInstalledAppProfilesResponse>
|
|
9820
|
+
| BodyResponseCallback<Readable>,
|
|
9821
|
+
callback?:
|
|
9822
|
+
| BodyResponseCallback<Schema$GoogleChromeManagementV1FindInstalledAppProfilesResponse>
|
|
9823
|
+
| BodyResponseCallback<Readable>
|
|
9824
|
+
):
|
|
9825
|
+
| void
|
|
9826
|
+
| Promise<
|
|
9827
|
+
GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementV1FindInstalledAppProfilesResponse>
|
|
9828
|
+
>
|
|
9829
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
9830
|
+
let params = (paramsOrCallback ||
|
|
9831
|
+
{}) as Params$Resource$Customers$Reports$Findinstalledappprofiles;
|
|
9832
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
9833
|
+
|
|
9834
|
+
if (typeof paramsOrCallback === 'function') {
|
|
9835
|
+
callback = paramsOrCallback;
|
|
9836
|
+
params =
|
|
9837
|
+
{} as Params$Resource$Customers$Reports$Findinstalledappprofiles;
|
|
9838
|
+
options = {};
|
|
9839
|
+
}
|
|
9840
|
+
|
|
9841
|
+
if (typeof optionsOrCallback === 'function') {
|
|
9842
|
+
callback = optionsOrCallback;
|
|
9843
|
+
options = {};
|
|
9844
|
+
}
|
|
9845
|
+
|
|
9846
|
+
const rootUrl =
|
|
9847
|
+
options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
9848
|
+
const parameters = {
|
|
9849
|
+
options: Object.assign(
|
|
9850
|
+
{
|
|
9851
|
+
url: (
|
|
9852
|
+
rootUrl + '/v1/{+customer}/reports:findInstalledAppProfiles'
|
|
9853
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
9854
|
+
method: 'GET',
|
|
9855
|
+
apiVersion: '',
|
|
9856
|
+
},
|
|
9857
|
+
options
|
|
9858
|
+
),
|
|
9859
|
+
params,
|
|
9860
|
+
requiredParams: ['customer'],
|
|
9861
|
+
pathParams: ['customer'],
|
|
9862
|
+
context: this.context,
|
|
9863
|
+
};
|
|
9864
|
+
if (callback) {
|
|
9865
|
+
createAPIRequest<Schema$GoogleChromeManagementV1FindInstalledAppProfilesResponse>(
|
|
9866
|
+
parameters,
|
|
9867
|
+
callback as BodyResponseCallback<unknown>
|
|
9868
|
+
);
|
|
9869
|
+
} else {
|
|
9870
|
+
return createAPIRequest<Schema$GoogleChromeManagementV1FindInstalledAppProfilesResponse>(
|
|
9871
|
+
parameters
|
|
9872
|
+
);
|
|
9873
|
+
}
|
|
9874
|
+
}
|
|
8530
9875
|
}
|
|
8531
9876
|
|
|
8532
9877
|
export interface Params$Resource$Customers$Reports$Countactivedevices extends StandardParameters {
|
|
@@ -8817,6 +10162,40 @@ export namespace chromemanagement_v1 {
|
|
|
8817
10162
|
*/
|
|
8818
10163
|
pageToken?: string;
|
|
8819
10164
|
}
|
|
10165
|
+
export interface Params$Resource$Customers$Reports$Findinstalledappprofiles extends StandardParameters {
|
|
10166
|
+
/**
|
|
10167
|
+
* 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).
|
|
10168
|
+
*/
|
|
10169
|
+
appId?: string;
|
|
10170
|
+
/**
|
|
10171
|
+
* Type of the app. Optional. If not provided, an app type will be inferred from the format of the app ID.
|
|
10172
|
+
*/
|
|
10173
|
+
appType?: string;
|
|
10174
|
+
/**
|
|
10175
|
+
* Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
10176
|
+
*/
|
|
10177
|
+
customer?: string;
|
|
10178
|
+
/**
|
|
10179
|
+
* 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
|
|
10180
|
+
*/
|
|
10181
|
+
filter?: string;
|
|
10182
|
+
/**
|
|
10183
|
+
* Optional. Field used to order results. Supported order by fields: * email * profile_id * profile_permanent_id
|
|
10184
|
+
*/
|
|
10185
|
+
orderBy?: string;
|
|
10186
|
+
/**
|
|
10187
|
+
* Optional. The ID of the organizational unit.
|
|
10188
|
+
*/
|
|
10189
|
+
orgUnitId?: string;
|
|
10190
|
+
/**
|
|
10191
|
+
* Optional. Maximum number of results to return. Maximum and default are 100.
|
|
10192
|
+
*/
|
|
10193
|
+
pageSize?: number;
|
|
10194
|
+
/**
|
|
10195
|
+
* Optional. Token to specify the page of the request to be returned.
|
|
10196
|
+
*/
|
|
10197
|
+
pageToken?: string;
|
|
10198
|
+
}
|
|
8820
10199
|
|
|
8821
10200
|
export class Resource$Customers$Telemetry {
|
|
8822
10201
|
context: APIRequestContext;
|