@googleapis/chromemanagement 25.2.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 +11 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1.d.ts +276 -0
- package/build/v1.js +119 -0
- package/build/v1.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +552 -0
package/build/v1.d.ts
CHANGED
|
@@ -2464,6 +2464,15 @@ export declare namespace chromemanagement_v1 {
|
|
|
2464
2464
|
*/
|
|
2465
2465
|
subjectPublicKeyInfo?: string | null;
|
|
2466
2466
|
}
|
|
2467
|
+
/**
|
|
2468
|
+
* Response from checking the enablement status of insights for the customer.
|
|
2469
|
+
*/
|
|
2470
|
+
export interface Schema$GoogleChromeManagementVersionsV1CheckEnablementStatusResponse {
|
|
2471
|
+
/**
|
|
2472
|
+
* The state of the insights feature.
|
|
2473
|
+
*/
|
|
2474
|
+
insightsState?: string | null;
|
|
2475
|
+
}
|
|
2467
2476
|
/**
|
|
2468
2477
|
* A representation of a Chrome browser profile.
|
|
2469
2478
|
*/
|
|
@@ -2853,6 +2862,38 @@ export declare namespace chromemanagement_v1 {
|
|
|
2853
2862
|
*/
|
|
2854
2863
|
urlMatchers?: string[] | null;
|
|
2855
2864
|
}
|
|
2865
|
+
/**
|
|
2866
|
+
* Request to disable insights for the customer.
|
|
2867
|
+
*/
|
|
2868
|
+
export interface Schema$GoogleChromeManagementVersionsV1DisableInsightsRequest {
|
|
2869
|
+
}
|
|
2870
|
+
/**
|
|
2871
|
+
* Response from disabling insights for the customer.
|
|
2872
|
+
*/
|
|
2873
|
+
export interface Schema$GoogleChromeManagementVersionsV1DisableInsightsResponse {
|
|
2874
|
+
/**
|
|
2875
|
+
* The state of the insights feature.
|
|
2876
|
+
*/
|
|
2877
|
+
insightsState?: string | null;
|
|
2878
|
+
}
|
|
2879
|
+
/**
|
|
2880
|
+
* Request to enable insights for the customer.
|
|
2881
|
+
*/
|
|
2882
|
+
export interface Schema$GoogleChromeManagementVersionsV1EnableInsightsRequest {
|
|
2883
|
+
/**
|
|
2884
|
+
* 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"]
|
|
2885
|
+
*/
|
|
2886
|
+
targetOus?: string[] | null;
|
|
2887
|
+
}
|
|
2888
|
+
/**
|
|
2889
|
+
* Response from enabling insights for the customer.
|
|
2890
|
+
*/
|
|
2891
|
+
export interface Schema$GoogleChromeManagementVersionsV1EnableInsightsResponse {
|
|
2892
|
+
/**
|
|
2893
|
+
* The state of the insights feature.
|
|
2894
|
+
*/
|
|
2895
|
+
insightsState?: string | null;
|
|
2896
|
+
}
|
|
2856
2897
|
/**
|
|
2857
2898
|
* Describes a generic Certificate Authority Connection.
|
|
2858
2899
|
*/
|
|
@@ -3425,6 +3466,7 @@ export declare namespace chromemanagement_v1 {
|
|
|
3425
3466
|
apps: Resource$Customers$Apps;
|
|
3426
3467
|
certificateProvisioningProcesses: Resource$Customers$Certificateprovisioningprocesses;
|
|
3427
3468
|
connectorConfigs: Resource$Customers$Connectorconfigs;
|
|
3469
|
+
enterprise: Resource$Customers$Enterprise;
|
|
3428
3470
|
profiles: Resource$Customers$Profiles;
|
|
3429
3471
|
reports: Resource$Customers$Reports;
|
|
3430
3472
|
telemetry: Resource$Customers$Telemetry;
|
|
@@ -4878,6 +4920,240 @@ export declare namespace chromemanagement_v1 {
|
|
|
4878
4920
|
*/
|
|
4879
4921
|
requestBody?: Schema$GoogleChromeManagementVersionsV1ConnectorConfig;
|
|
4880
4922
|
}
|
|
4923
|
+
export class Resource$Customers$Enterprise {
|
|
4924
|
+
context: APIRequestContext;
|
|
4925
|
+
securityInsights: Resource$Customers$Enterprise$Securityinsights;
|
|
4926
|
+
constructor(context: APIRequestContext);
|
|
4927
|
+
}
|
|
4928
|
+
export class Resource$Customers$Enterprise$Securityinsights {
|
|
4929
|
+
context: APIRequestContext;
|
|
4930
|
+
constructor(context: APIRequestContext);
|
|
4931
|
+
/**
|
|
4932
|
+
* Gets the setting state of the insights feature for the customer.
|
|
4933
|
+
* @example
|
|
4934
|
+
* ```js
|
|
4935
|
+
* // Before running the sample:
|
|
4936
|
+
* // - Enable the API at:
|
|
4937
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
4938
|
+
* // - Login into gcloud by running:
|
|
4939
|
+
* // ```sh
|
|
4940
|
+
* // $ gcloud auth application-default login
|
|
4941
|
+
* // ```
|
|
4942
|
+
* // - Install the npm module by running:
|
|
4943
|
+
* // ```sh
|
|
4944
|
+
* // $ npm install googleapis
|
|
4945
|
+
* // ```
|
|
4946
|
+
*
|
|
4947
|
+
* const {google} = require('googleapis');
|
|
4948
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
4949
|
+
*
|
|
4950
|
+
* async function main() {
|
|
4951
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4952
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4953
|
+
* scopes: [],
|
|
4954
|
+
* });
|
|
4955
|
+
*
|
|
4956
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4957
|
+
* const authClient = await auth.getClient();
|
|
4958
|
+
* google.options({auth: authClient});
|
|
4959
|
+
*
|
|
4960
|
+
* // Do the magic
|
|
4961
|
+
* const res =
|
|
4962
|
+
* await chromemanagement.customers.enterprise.securityInsights.checkEnablementStatus(
|
|
4963
|
+
* {
|
|
4964
|
+
* // Required. The customer to check the enablement status for. Format: customers/{customer_id\}
|
|
4965
|
+
* customer: 'customers/my-customer',
|
|
4966
|
+
* },
|
|
4967
|
+
* );
|
|
4968
|
+
* console.log(res.data);
|
|
4969
|
+
*
|
|
4970
|
+
* // Example response
|
|
4971
|
+
* // {
|
|
4972
|
+
* // "insightsState": "my_insightsState"
|
|
4973
|
+
* // }
|
|
4974
|
+
* }
|
|
4975
|
+
*
|
|
4976
|
+
* main().catch(e => {
|
|
4977
|
+
* console.error(e);
|
|
4978
|
+
* throw e;
|
|
4979
|
+
* });
|
|
4980
|
+
*
|
|
4981
|
+
* ```
|
|
4982
|
+
*
|
|
4983
|
+
* @param params - Parameters for request
|
|
4984
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4985
|
+
* @param callback - Optional callback that handles the response.
|
|
4986
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4987
|
+
*/
|
|
4988
|
+
checkEnablementStatus(params: Params$Resource$Customers$Enterprise$Securityinsights$Checkenablementstatus, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4989
|
+
checkEnablementStatus(params?: Params$Resource$Customers$Enterprise$Securityinsights$Checkenablementstatus, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1CheckEnablementStatusResponse>>;
|
|
4990
|
+
checkEnablementStatus(params: Params$Resource$Customers$Enterprise$Securityinsights$Checkenablementstatus, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
4991
|
+
checkEnablementStatus(params: Params$Resource$Customers$Enterprise$Securityinsights$Checkenablementstatus, options: MethodOptions | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1CheckEnablementStatusResponse>, callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1CheckEnablementStatusResponse>): void;
|
|
4992
|
+
checkEnablementStatus(params: Params$Resource$Customers$Enterprise$Securityinsights$Checkenablementstatus, callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1CheckEnablementStatusResponse>): void;
|
|
4993
|
+
checkEnablementStatus(callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1CheckEnablementStatusResponse>): void;
|
|
4994
|
+
/**
|
|
4995
|
+
* Disables insights for the customer.
|
|
4996
|
+
* @example
|
|
4997
|
+
* ```js
|
|
4998
|
+
* // Before running the sample:
|
|
4999
|
+
* // - Enable the API at:
|
|
5000
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
5001
|
+
* // - Login into gcloud by running:
|
|
5002
|
+
* // ```sh
|
|
5003
|
+
* // $ gcloud auth application-default login
|
|
5004
|
+
* // ```
|
|
5005
|
+
* // - Install the npm module by running:
|
|
5006
|
+
* // ```sh
|
|
5007
|
+
* // $ npm install googleapis
|
|
5008
|
+
* // ```
|
|
5009
|
+
*
|
|
5010
|
+
* const {google} = require('googleapis');
|
|
5011
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
5012
|
+
*
|
|
5013
|
+
* async function main() {
|
|
5014
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5015
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5016
|
+
* scopes: [],
|
|
5017
|
+
* });
|
|
5018
|
+
*
|
|
5019
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5020
|
+
* const authClient = await auth.getClient();
|
|
5021
|
+
* google.options({auth: authClient});
|
|
5022
|
+
*
|
|
5023
|
+
* // Do the magic
|
|
5024
|
+
* const res =
|
|
5025
|
+
* await chromemanagement.customers.enterprise.securityInsights.disable({
|
|
5026
|
+
* // Required. The customer to disable insights for. Format: customers/{customer\}
|
|
5027
|
+
* customer: 'customers/my-customer',
|
|
5028
|
+
*
|
|
5029
|
+
* // Request body metadata
|
|
5030
|
+
* requestBody: {
|
|
5031
|
+
* // request body parameters
|
|
5032
|
+
* // {}
|
|
5033
|
+
* },
|
|
5034
|
+
* });
|
|
5035
|
+
* console.log(res.data);
|
|
5036
|
+
*
|
|
5037
|
+
* // Example response
|
|
5038
|
+
* // {
|
|
5039
|
+
* // "insightsState": "my_insightsState"
|
|
5040
|
+
* // }
|
|
5041
|
+
* }
|
|
5042
|
+
*
|
|
5043
|
+
* main().catch(e => {
|
|
5044
|
+
* console.error(e);
|
|
5045
|
+
* throw e;
|
|
5046
|
+
* });
|
|
5047
|
+
*
|
|
5048
|
+
* ```
|
|
5049
|
+
*
|
|
5050
|
+
* @param params - Parameters for request
|
|
5051
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5052
|
+
* @param callback - Optional callback that handles the response.
|
|
5053
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5054
|
+
*/
|
|
5055
|
+
disable(params: Params$Resource$Customers$Enterprise$Securityinsights$Disable, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5056
|
+
disable(params?: Params$Resource$Customers$Enterprise$Securityinsights$Disable, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1DisableInsightsResponse>>;
|
|
5057
|
+
disable(params: Params$Resource$Customers$Enterprise$Securityinsights$Disable, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
5058
|
+
disable(params: Params$Resource$Customers$Enterprise$Securityinsights$Disable, options: MethodOptions | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1DisableInsightsResponse>, callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1DisableInsightsResponse>): void;
|
|
5059
|
+
disable(params: Params$Resource$Customers$Enterprise$Securityinsights$Disable, callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1DisableInsightsResponse>): void;
|
|
5060
|
+
disable(callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1DisableInsightsResponse>): void;
|
|
5061
|
+
/**
|
|
5062
|
+
* Enables insights for the customer and sets up required chrome connectors.
|
|
5063
|
+
* @example
|
|
5064
|
+
* ```js
|
|
5065
|
+
* // Before running the sample:
|
|
5066
|
+
* // - Enable the API at:
|
|
5067
|
+
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
5068
|
+
* // - Login into gcloud by running:
|
|
5069
|
+
* // ```sh
|
|
5070
|
+
* // $ gcloud auth application-default login
|
|
5071
|
+
* // ```
|
|
5072
|
+
* // - Install the npm module by running:
|
|
5073
|
+
* // ```sh
|
|
5074
|
+
* // $ npm install googleapis
|
|
5075
|
+
* // ```
|
|
5076
|
+
*
|
|
5077
|
+
* const {google} = require('googleapis');
|
|
5078
|
+
* const chromemanagement = google.chromemanagement('v1');
|
|
5079
|
+
*
|
|
5080
|
+
* async function main() {
|
|
5081
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5082
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5083
|
+
* scopes: [],
|
|
5084
|
+
* });
|
|
5085
|
+
*
|
|
5086
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5087
|
+
* const authClient = await auth.getClient();
|
|
5088
|
+
* google.options({auth: authClient});
|
|
5089
|
+
*
|
|
5090
|
+
* // Do the magic
|
|
5091
|
+
* const res =
|
|
5092
|
+
* await chromemanagement.customers.enterprise.securityInsights.enable({
|
|
5093
|
+
* // Required. The customer to enable insights for. Format: customers/{customer\}
|
|
5094
|
+
* customer: 'customers/my-customer',
|
|
5095
|
+
*
|
|
5096
|
+
* // Request body metadata
|
|
5097
|
+
* requestBody: {
|
|
5098
|
+
* // request body parameters
|
|
5099
|
+
* // {
|
|
5100
|
+
* // "targetOus": []
|
|
5101
|
+
* // }
|
|
5102
|
+
* },
|
|
5103
|
+
* });
|
|
5104
|
+
* console.log(res.data);
|
|
5105
|
+
*
|
|
5106
|
+
* // Example response
|
|
5107
|
+
* // {
|
|
5108
|
+
* // "insightsState": "my_insightsState"
|
|
5109
|
+
* // }
|
|
5110
|
+
* }
|
|
5111
|
+
*
|
|
5112
|
+
* main().catch(e => {
|
|
5113
|
+
* console.error(e);
|
|
5114
|
+
* throw e;
|
|
5115
|
+
* });
|
|
5116
|
+
*
|
|
5117
|
+
* ```
|
|
5118
|
+
*
|
|
5119
|
+
* @param params - Parameters for request
|
|
5120
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5121
|
+
* @param callback - Optional callback that handles the response.
|
|
5122
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5123
|
+
*/
|
|
5124
|
+
enable(params: Params$Resource$Customers$Enterprise$Securityinsights$Enable, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5125
|
+
enable(params?: Params$Resource$Customers$Enterprise$Securityinsights$Enable, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleChromeManagementVersionsV1EnableInsightsResponse>>;
|
|
5126
|
+
enable(params: Params$Resource$Customers$Enterprise$Securityinsights$Enable, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
5127
|
+
enable(params: Params$Resource$Customers$Enterprise$Securityinsights$Enable, options: MethodOptions | BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnableInsightsResponse>, callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnableInsightsResponse>): void;
|
|
5128
|
+
enable(params: Params$Resource$Customers$Enterprise$Securityinsights$Enable, callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnableInsightsResponse>): void;
|
|
5129
|
+
enable(callback: BodyResponseCallback<Schema$GoogleChromeManagementVersionsV1EnableInsightsResponse>): void;
|
|
5130
|
+
}
|
|
5131
|
+
export interface Params$Resource$Customers$Enterprise$Securityinsights$Checkenablementstatus extends StandardParameters {
|
|
5132
|
+
/**
|
|
5133
|
+
* Required. The customer to check the enablement status for. Format: customers/{customer_id\}
|
|
5134
|
+
*/
|
|
5135
|
+
customer?: string;
|
|
5136
|
+
}
|
|
5137
|
+
export interface Params$Resource$Customers$Enterprise$Securityinsights$Disable extends StandardParameters {
|
|
5138
|
+
/**
|
|
5139
|
+
* Required. The customer to disable insights for. Format: customers/{customer\}
|
|
5140
|
+
*/
|
|
5141
|
+
customer?: string;
|
|
5142
|
+
/**
|
|
5143
|
+
* Request body metadata
|
|
5144
|
+
*/
|
|
5145
|
+
requestBody?: Schema$GoogleChromeManagementVersionsV1DisableInsightsRequest;
|
|
5146
|
+
}
|
|
5147
|
+
export interface Params$Resource$Customers$Enterprise$Securityinsights$Enable extends StandardParameters {
|
|
5148
|
+
/**
|
|
5149
|
+
* Required. The customer to enable insights for. Format: customers/{customer\}
|
|
5150
|
+
*/
|
|
5151
|
+
customer?: string;
|
|
5152
|
+
/**
|
|
5153
|
+
* Request body metadata
|
|
5154
|
+
*/
|
|
5155
|
+
requestBody?: Schema$GoogleChromeManagementVersionsV1EnableInsightsRequest;
|
|
5156
|
+
}
|
|
4881
5157
|
export class Resource$Customers$Profiles {
|
|
4882
5158
|
context: APIRequestContext;
|
|
4883
5159
|
commands: Resource$Customers$Profiles$Commands;
|
package/build/v1.js
CHANGED
|
@@ -51,6 +51,7 @@ var chromemanagement_v1;
|
|
|
51
51
|
apps;
|
|
52
52
|
certificateProvisioningProcesses;
|
|
53
53
|
connectorConfigs;
|
|
54
|
+
enterprise;
|
|
54
55
|
profiles;
|
|
55
56
|
reports;
|
|
56
57
|
telemetry;
|
|
@@ -61,6 +62,7 @@ var chromemanagement_v1;
|
|
|
61
62
|
this.certificateProvisioningProcesses =
|
|
62
63
|
new Resource$Customers$Certificateprovisioningprocesses(this.context);
|
|
63
64
|
this.connectorConfigs = new Resource$Customers$Connectorconfigs(this.context);
|
|
65
|
+
this.enterprise = new Resource$Customers$Enterprise(this.context);
|
|
64
66
|
this.profiles = new Resource$Customers$Profiles(this.context);
|
|
65
67
|
this.reports = new Resource$Customers$Reports(this.context);
|
|
66
68
|
this.telemetry = new Resource$Customers$Telemetry(this.context);
|
|
@@ -679,6 +681,123 @@ var chromemanagement_v1;
|
|
|
679
681
|
}
|
|
680
682
|
}
|
|
681
683
|
chromemanagement_v1.Resource$Customers$Connectorconfigs = Resource$Customers$Connectorconfigs;
|
|
684
|
+
class Resource$Customers$Enterprise {
|
|
685
|
+
context;
|
|
686
|
+
securityInsights;
|
|
687
|
+
constructor(context) {
|
|
688
|
+
this.context = context;
|
|
689
|
+
this.securityInsights =
|
|
690
|
+
new Resource$Customers$Enterprise$Securityinsights(this.context);
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
chromemanagement_v1.Resource$Customers$Enterprise = Resource$Customers$Enterprise;
|
|
694
|
+
class Resource$Customers$Enterprise$Securityinsights {
|
|
695
|
+
context;
|
|
696
|
+
constructor(context) {
|
|
697
|
+
this.context = context;
|
|
698
|
+
}
|
|
699
|
+
checkEnablementStatus(paramsOrCallback, optionsOrCallback, callback) {
|
|
700
|
+
let params = (paramsOrCallback ||
|
|
701
|
+
{});
|
|
702
|
+
let options = (optionsOrCallback || {});
|
|
703
|
+
if (typeof paramsOrCallback === 'function') {
|
|
704
|
+
callback = paramsOrCallback;
|
|
705
|
+
params =
|
|
706
|
+
{};
|
|
707
|
+
options = {};
|
|
708
|
+
}
|
|
709
|
+
if (typeof optionsOrCallback === 'function') {
|
|
710
|
+
callback = optionsOrCallback;
|
|
711
|
+
options = {};
|
|
712
|
+
}
|
|
713
|
+
const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
714
|
+
const parameters = {
|
|
715
|
+
options: Object.assign({
|
|
716
|
+
url: (rootUrl +
|
|
717
|
+
'/v1/{+customer}/enterprise/securityInsights:checkEnablementStatus').replace(/([^:]\/)\/+/g, '$1'),
|
|
718
|
+
method: 'GET',
|
|
719
|
+
apiVersion: '',
|
|
720
|
+
}, options),
|
|
721
|
+
params,
|
|
722
|
+
requiredParams: ['customer'],
|
|
723
|
+
pathParams: ['customer'],
|
|
724
|
+
context: this.context,
|
|
725
|
+
};
|
|
726
|
+
if (callback) {
|
|
727
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
728
|
+
}
|
|
729
|
+
else {
|
|
730
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
disable(paramsOrCallback, optionsOrCallback, callback) {
|
|
734
|
+
let params = (paramsOrCallback ||
|
|
735
|
+
{});
|
|
736
|
+
let options = (optionsOrCallback || {});
|
|
737
|
+
if (typeof paramsOrCallback === 'function') {
|
|
738
|
+
callback = paramsOrCallback;
|
|
739
|
+
params =
|
|
740
|
+
{};
|
|
741
|
+
options = {};
|
|
742
|
+
}
|
|
743
|
+
if (typeof optionsOrCallback === 'function') {
|
|
744
|
+
callback = optionsOrCallback;
|
|
745
|
+
options = {};
|
|
746
|
+
}
|
|
747
|
+
const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
748
|
+
const parameters = {
|
|
749
|
+
options: Object.assign({
|
|
750
|
+
url: (rootUrl + '/v1/{+customer}/enterprise/securityInsights:disable').replace(/([^:]\/)\/+/g, '$1'),
|
|
751
|
+
method: 'POST',
|
|
752
|
+
apiVersion: '',
|
|
753
|
+
}, options),
|
|
754
|
+
params,
|
|
755
|
+
requiredParams: ['customer'],
|
|
756
|
+
pathParams: ['customer'],
|
|
757
|
+
context: this.context,
|
|
758
|
+
};
|
|
759
|
+
if (callback) {
|
|
760
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
761
|
+
}
|
|
762
|
+
else {
|
|
763
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
enable(paramsOrCallback, optionsOrCallback, callback) {
|
|
767
|
+
let params = (paramsOrCallback ||
|
|
768
|
+
{});
|
|
769
|
+
let options = (optionsOrCallback || {});
|
|
770
|
+
if (typeof paramsOrCallback === 'function') {
|
|
771
|
+
callback = paramsOrCallback;
|
|
772
|
+
params =
|
|
773
|
+
{};
|
|
774
|
+
options = {};
|
|
775
|
+
}
|
|
776
|
+
if (typeof optionsOrCallback === 'function') {
|
|
777
|
+
callback = optionsOrCallback;
|
|
778
|
+
options = {};
|
|
779
|
+
}
|
|
780
|
+
const rootUrl = options.rootUrl || 'https://chromemanagement.googleapis.com/';
|
|
781
|
+
const parameters = {
|
|
782
|
+
options: Object.assign({
|
|
783
|
+
url: (rootUrl + '/v1/{+customer}/enterprise/securityInsights:enable').replace(/([^:]\/)\/+/g, '$1'),
|
|
784
|
+
method: 'POST',
|
|
785
|
+
apiVersion: '',
|
|
786
|
+
}, options),
|
|
787
|
+
params,
|
|
788
|
+
requiredParams: ['customer'],
|
|
789
|
+
pathParams: ['customer'],
|
|
790
|
+
context: this.context,
|
|
791
|
+
};
|
|
792
|
+
if (callback) {
|
|
793
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
794
|
+
}
|
|
795
|
+
else {
|
|
796
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
chromemanagement_v1.Resource$Customers$Enterprise$Securityinsights = Resource$Customers$Enterprise$Securityinsights;
|
|
682
801
|
class Resource$Customers$Profiles {
|
|
683
802
|
context;
|
|
684
803
|
commands;
|