@maxim_mazurok/gapi.client.compute-alpha 0.0.20230701 → 0.0.20230711

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/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://www.googleapis.com/discovery/v1/apis/compute/alpha/rest
12
- // Revision: 20230701
12
+ // Revision: 20230711
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -1348,7 +1348,7 @@ declare namespace gapi.client {
1348
1348
  /** [Output Only] Creation timestamp in RFC3339 text format. */
1349
1349
  creationTimestamp?:
1350
1350
  string;
1351
- /** Headers that the HTTP/S load balancer should add to proxied responses. */
1351
+ /** Headers that the Application Load Balancer should add to proxied responses. */
1352
1352
  customResponseHeaders?:
1353
1353
  string[];
1354
1354
  /** An optional textual description of the resource; provided by the client when the resource is created. */
@@ -7765,8 +7765,8 @@ declare namespace gapi.client {
7765
7765
  replacementMethod?:
7766
7766
  string;
7767
7767
  /**
7768
- * The type of update process. You can specify either PROACTIVE so that the instance group manager proactively executes actions in order to bring instances to their target versions or
7769
- * OPPORTUNISTIC so that no action is proactively executed but the update will be performed as part of other actions (for example, resizes or recreateInstances calls).
7768
+ * The type of update process. You can specify either PROACTIVE so that the MIG automatically updates VMs to the latest configurations or OPPORTUNISTIC so that you can select the VMs
7769
+ * that you want to update.
7770
7770
  */
7771
7771
  type?:
7772
7772
  string;
@@ -13501,6 +13501,12 @@ declare namespace gapi.client {
13501
13501
  /** [Output Only] Type of the resource. Always compute#project for projects. */
13502
13502
  kind?:
13503
13503
  string;
13504
+ /**
13505
+ * [Output Only] The Cloud Armor Managed Protection (CAMP) tier for this project. It can be one of the following values: CA_STANDARD, CAMP_PLUS_MONTHLY. If this field is not specified,
13506
+ * it is assumed to be CA_STANDARD.
13507
+ */
13508
+ managedProtectionTier?:
13509
+ string;
13504
13510
  /** The project ID. For example: my-example-project. Use the project ID to make requests to Compute Engine. */
13505
13511
  name?:
13506
13512
  string;
@@ -13565,6 +13571,11 @@ declare namespace gapi.client {
13565
13571
  email?:
13566
13572
  string;
13567
13573
  }
13574
+ interface ProjectsSetManagedProtectionTierRequest {
13575
+ /** Managed protection tier to be set. */
13576
+ managedProtectionTier?:
13577
+ string;
13578
+ }
13568
13579
  interface PublicAdvertisedPrefix {
13569
13580
  /** [Output Only] Creation timestamp in RFC3339 text format. */
13570
13581
  creationTimestamp?:
@@ -58283,6 +58294,112 @@ declare namespace gapi.client {
58283
58294
  string;
58284
58295
  },
58285
58296
  body: ProjectsSetDefaultServiceAccountRequest): Request<Operation>;
58297
+ /**
58298
+ * Sets the Cloud Armor Managed Protection (CAMP) tier of the project. To set PLUS or above the billing account of the project must be subscribed to Managed Protection Plus. See
58299
+ * Subscribing to Managed Protection Plus for more information.
58300
+ */
58301
+ setManagedProtectionTier(request: {
58302
+ /** V1 error format. */
58303
+ "$.xgafv"?:
58304
+ string;
58305
+ /** OAuth access token. */
58306
+ access_token?:
58307
+ string;
58308
+ /** Data format for response. */
58309
+ alt?:
58310
+ string;
58311
+ /** JSONP */
58312
+ callback?:
58313
+ string;
58314
+ /** Selector specifying which fields to include in a partial response. */
58315
+ fields?:
58316
+ string;
58317
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
58318
+ key?:
58319
+ string;
58320
+ /** OAuth 2.0 token for the current user. */
58321
+ oauth_token?:
58322
+ string;
58323
+ /** Returns response with indentations and line breaks. */
58324
+ prettyPrint?:
58325
+ boolean;
58326
+ /** Project ID for this request. */
58327
+ project:
58328
+ string;
58329
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
58330
+ quotaUser?:
58331
+ string;
58332
+ /**
58333
+ * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already
58334
+ * been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server
58335
+ * can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate
58336
+ * commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
58337
+ */
58338
+ requestId?:
58339
+ string;
58340
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
58341
+ upload_protocol?:
58342
+ string;
58343
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
58344
+ uploadType?:
58345
+ string;
58346
+ /** Legacy name for parameter that has been superseded by `quotaUser`. */
58347
+ userIp?:
58348
+ string;
58349
+ /** Request body */
58350
+ resource:
58351
+ ProjectsSetManagedProtectionTierRequest;
58352
+ }): Request<Operation>;
58353
+ setManagedProtectionTier(request: {
58354
+ /** V1 error format. */
58355
+ "$.xgafv"?:
58356
+ string;
58357
+ /** OAuth access token. */
58358
+ access_token?:
58359
+ string;
58360
+ /** Data format for response. */
58361
+ alt?:
58362
+ string;
58363
+ /** JSONP */
58364
+ callback?:
58365
+ string;
58366
+ /** Selector specifying which fields to include in a partial response. */
58367
+ fields?:
58368
+ string;
58369
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
58370
+ key?:
58371
+ string;
58372
+ /** OAuth 2.0 token for the current user. */
58373
+ oauth_token?:
58374
+ string;
58375
+ /** Returns response with indentations and line breaks. */
58376
+ prettyPrint?:
58377
+ boolean;
58378
+ /** Project ID for this request. */
58379
+ project:
58380
+ string;
58381
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
58382
+ quotaUser?:
58383
+ string;
58384
+ /**
58385
+ * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already
58386
+ * been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server
58387
+ * can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate
58388
+ * commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
58389
+ */
58390
+ requestId?:
58391
+ string;
58392
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
58393
+ upload_protocol?:
58394
+ string;
58395
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
58396
+ uploadType?:
58397
+ string;
58398
+ /** Legacy name for parameter that has been superseded by `quotaUser`. */
58399
+ userIp?:
58400
+ string;
58401
+ },
58402
+ body: ProjectsSetManagedProtectionTierRequest): Request<Operation>;
58286
58403
  /**
58287
58404
  * Enables the usage export feature and sets the usage export bucket where reports are stored. If you provide an empty request body using this method, the usage export feature will be
58288
58405
  * disabled.
@@ -72128,8 +72245,8 @@ declare namespace gapi.client {
72128
72245
  string;
72129
72246
  }): Request<SecurityPolicyList>;
72130
72247
  /**
72131
- * Patches the specified policy with the data included in the request. To clear fields in the rule, leave the fields empty and specify them in the updateMask. This cannot be used to be
72132
- * update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.
72248
+ * Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to
72249
+ * be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.
72133
72250
  */
72134
72251
  patch(request: {
72135
72252
  /** V1 error format. */
@@ -78935,8 +79052,8 @@ declare namespace gapi.client {
78935
79052
  string;
78936
79053
  }): Request<SecurityPoliciesListPreconfiguredExpressionSetsResponse>;
78937
79054
  /**
78938
- * Patches the specified policy with the data included in the request. To clear fields in the rule, leave the fields empty and specify them in the updateMask. This cannot be used to be
78939
- * update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.
79055
+ * Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to
79056
+ * be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.
78940
79057
  */
78941
79058
  patch(request: {
78942
79059
  /** V1 error format. */
@@ -79056,7 +79173,7 @@ declare namespace gapi.client {
79056
79173
  string;
79057
79174
  },
79058
79175
  body: SecurityPolicy): Request<Operation>;
79059
- /** Patches a rule at the specified priority. */
79176
+ /** Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and specify them in the updateMask. */
79060
79177
  patchRule(request: {
79061
79178
  /** V1 error format. */
79062
79179
  "$.xgafv"?:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.compute-alpha",
3
- "version": "0.0.20230701",
3
+ "version": "0.0.20230711",
4
4
  "description": "TypeScript typings for Compute Engine API alpha",
5
5
  "license": "MIT",
6
6
  "author": {
package/readme.md CHANGED
@@ -2401,6 +2401,11 @@ Sets the default service account of the project. The default service account is
2401
2401
  */
2402
2402
  await gapi.client.compute.projects.setDefaultServiceAccount({ project: "project", });
2403
2403
 
2404
+ /*
2405
+ Sets the Cloud Armor Managed Protection (CAMP) tier of the project. To set PLUS or above the billing account of the project must be subscribed to Managed Protection Plus. See Subscribing to Managed Protection Plus for more information.
2406
+ */
2407
+ await gapi.client.compute.projects.setManagedProtectionTier({ project: "project", });
2408
+
2404
2409
  /*
2405
2410
  Enables the usage export feature and sets the usage export bucket where reports are stored. If you provide an empty request body using this method, the usage export feature will be disabled.
2406
2411
  */
@@ -3237,7 +3242,7 @@ List all the policies that have been configured for the specified project and re
3237
3242
  await gapi.client.compute.regionSecurityPolicies.list({ project: "project", region: "region", });
3238
3243
 
3239
3244
  /*
3240
- Patches the specified policy with the data included in the request. To clear fields in the rule, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.
3245
+ Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.
3241
3246
  */
3242
3247
  await gapi.client.compute.regionSecurityPolicies.patch({ project: "project", region: "region", securityPolicy: "securityPolicy", });
3243
3248
 
@@ -3677,12 +3682,12 @@ Gets the current list of preconfigured Web Application Firewall (WAF) expression
3677
3682
  await gapi.client.compute.securityPolicies.listPreconfiguredExpressionSets({ project: "project", });
3678
3683
 
3679
3684
  /*
3680
- Patches the specified policy with the data included in the request. To clear fields in the rule, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.
3685
+ Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.
3681
3686
  */
3682
3687
  await gapi.client.compute.securityPolicies.patch({ project: "project", securityPolicy: "securityPolicy", });
3683
3688
 
3684
3689
  /*
3685
- Patches a rule at the specified priority.
3690
+ Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and specify them in the updateMask.
3686
3691
  */
3687
3692
  await gapi.client.compute.securityPolicies.patchRule({ project: "project", securityPolicy: "securityPolicy", });
3688
3693
 
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20230701
6
+ // Revision: 20230711
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -14286,6 +14286,16 @@ gapi.load('client', async () => {
14286
14286
  }, {
14287
14287
  email: "Test string",
14288
14288
  });
14289
+ /**
14290
+ * Sets the Cloud Armor Managed Protection (CAMP) tier of the project. To set PLUS or above the billing account of the project must be subscribed to Managed Protection Plus. See
14291
+ * Subscribing to Managed Protection Plus for more information.
14292
+ */
14293
+ await gapi.client.compute.projects.setManagedProtectionTier({
14294
+ project: "Test string",
14295
+ requestId: "Test string",
14296
+ }, {
14297
+ managedProtectionTier: "Test string",
14298
+ });
14289
14299
  /**
14290
14300
  * Enables the usage export feature and sets the usage export bucket where reports are stored. If you provide an empty request body using this method, the usage export feature will be
14291
14301
  * disabled.
@@ -20926,7 +20936,7 @@ gapi.load('client', async () => {
20926
20936
  returnPartialSuccess: true,
20927
20937
  });
20928
20938
  /**
20929
- * Patches the specified policy with the data included in the request. To clear fields in the rule, leave the fields empty and specify them in the updateMask. This cannot be used to be
20939
+ * Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be
20930
20940
  * update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.
20931
20941
  */
20932
20942
  await gapi.client.compute.regionSecurityPolicies.patch({
@@ -26425,7 +26435,7 @@ gapi.load('client', async () => {
26425
26435
  returnPartialSuccess: true,
26426
26436
  });
26427
26437
  /**
26428
- * Patches the specified policy with the data included in the request. To clear fields in the rule, leave the fields empty and specify them in the updateMask. This cannot be used to be
26438
+ * Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be
26429
26439
  * update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.
26430
26440
  */
26431
26441
  await gapi.client.compute.securityPolicies.patch({
@@ -26682,7 +26692,7 @@ gapi.load('client', async () => {
26682
26692
  }
26683
26693
  ],
26684
26694
  });
26685
- /** Patches a rule at the specified priority. */
26695
+ /** Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and specify them in the updateMask. */
26686
26696
  await gapi.client.compute.securityPolicies.patchRule({
26687
26697
  priority: 42,
26688
26698
  project: "Test string",