@maxim_mazurok/gapi.client.compute-alpha 0.0.20230322 → 0.0.20230403

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.
Files changed (3) hide show
  1. package/index.d.ts +48 -21
  2. package/package.json +1 -1
  3. package/tests.ts +2870 -4003
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: 20230322
12
+ // Revision: 20230403
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -1786,8 +1786,6 @@ declare namespace gapi.client {
1786
1786
  interface BulkInsertInstanceResource {
1787
1787
  /** The maximum number of instances to create. */
1788
1788
  count?: string;
1789
- /** DEPRECATED: Please use instance_properties instead. */
1790
- instance?: Instance;
1791
1789
  /** The instance properties defining the VM instances to be created. Required if sourceInstanceTemplate is not provided. */
1792
1790
  instanceProperties?: InstanceProperties;
1793
1791
  /** Policy for chosing target zone. For more information, see Create VMs in bulk . */
@@ -1824,6 +1822,18 @@ declare namespace gapi.client {
1824
1822
  /** This field is only temporary. It will be removed. Do not use it. */
1825
1823
  name?: string;
1826
1824
  }
1825
+ interface BulkInsertOperationStatus {
1826
+ /** [Output Only] Count of VMs successfully created so far. */
1827
+ createdVmCount?: number;
1828
+ /** [Output Only] Count of VMs that got deleted during rollback. */
1829
+ deletedVmCount?: number;
1830
+ /** [Output Only] Count of VMs that started creating but encountered an error. */
1831
+ failedToCreateVmCount?: number;
1832
+ /** [Output Only] Creation status of BulkInsert operation - information if the flow is rolling forward or rolling back. */
1833
+ status?: string;
1834
+ /** [Output Only] Count of VMs originally planned to be created. */
1835
+ targetVmCount?: number;
1836
+ }
1827
1837
  interface BundledLocalSsds {
1828
1838
  /** The default disk interface if the interface is not specified. */
1829
1839
  defaultInterface?: string;
@@ -2462,6 +2472,10 @@ declare namespace gapi.client {
2462
2472
  };
2463
2473
  }
2464
2474
  interface DiskAsyncReplication {
2475
+ /** [Output Only] URL of the DiskConsistencyGroupPolicy if replication was started on the disk as a member of a group. */
2476
+ consistencyGroupPolicy?: string;
2477
+ /** [Output Only] ID of the DiskConsistencyGroupPolicy if replication was started on the disk as a member of a group. */
2478
+ consistencyGroupPolicyId?: string;
2465
2479
  /**
2466
2480
  * The other disk asynchronously replicated to or from the current disk. You can provide this as a partial or full URL to the resource. For example, the following are valid values: -
2467
2481
  * https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk
@@ -3394,8 +3408,8 @@ declare namespace gapi.client {
3394
3408
  name?: string;
3395
3409
  /**
3396
3410
  * This field is not used for external load balancing. For Internal TCP/UDP Load Balancing, this field identifies the network that the load balanced IP should belong to for this
3397
- * Forwarding Rule. If this field is not specified, the default network will be used. For Private Service Connect forwarding rules that forward traffic to Google APIs, a network must
3398
- * be provided.
3411
+ * Forwarding Rule. If the subnetwork is specified, the network of the subnetwork will be used. If neither subnetwork nor this field is specified, the default network will be used. For
3412
+ * Private Service Connect forwarding rules that forward traffic to Google APIs, a network must be provided.
3399
3413
  */
3400
3414
  network?: string;
3401
3415
  /**
@@ -6206,6 +6220,10 @@ declare namespace gapi.client {
6206
6220
  /** Resource policies to be added to this instance. */
6207
6221
  resourcePolicies?: string[];
6208
6222
  }
6223
+ interface InstancesBulkInsertOperationMetadata {
6224
+ /** Status information per location (location name is key). Example key: zones/us-central1-a */
6225
+ perLocationStatus?: { [P in string]: BulkInsertOperationStatus };
6226
+ }
6209
6227
  interface InstanceSettings {
6210
6228
  /** Email address of the service account. */
6211
6229
  email?: string;
@@ -8179,7 +8197,7 @@ declare namespace gapi.client {
8179
8197
  ipAddress?: string;
8180
8198
  /** The project id or number of the interface to which the IP was assigned. */
8181
8199
  projectIdOrNum?: string;
8182
- /** Alias IP ranges from the same subnetwork */
8200
+ /** Alias IP ranges from the same subnetwork. */
8183
8201
  secondaryIpCidrRanges?: string[];
8184
8202
  /** The status of a connected endpoint to this network attachment. */
8185
8203
  status?: string;
@@ -9522,6 +9540,7 @@ declare namespace gapi.client {
9522
9540
  id?: string;
9523
9541
  /** [Output Only] The time that this operation was requested. This value is in RFC3339 text format. */
9524
9542
  insertTime?: string;
9543
+ instancesBulkInsertOperationMetadata?: InstancesBulkInsertOperationMetadata;
9525
9544
  /** [Output Only] Type of the resource. Always `compute#operation` for Operation resources. */
9526
9545
  kind?: string;
9527
9546
  /** [Output Only] Name of the operation. */
@@ -11621,7 +11640,6 @@ declare namespace gapi.client {
11621
11640
  scheduling?: ResourceStatusScheduling;
11622
11641
  /** [Output Only] Represents the status of the service integration specs defined by the user in instance.serviceIntegrationSpecs. */
11623
11642
  serviceIntegrationStatuses?: { [P in string]: ResourceStatusServiceIntegrationStatus };
11624
- upcomingMaintenance?: ResourceStatusUpcomingMaintenance;
11625
11643
  }
11626
11644
  interface ResourceStatusScheduling {
11627
11645
  /**
@@ -11641,10 +11659,6 @@ declare namespace gapi.client {
11641
11659
  /** Enum representing the registration state of a Backup and DR backup plan for the instance. */
11642
11660
  state?: string;
11643
11661
  }
11644
- interface ResourceStatusUpcomingMaintenance {
11645
- /** Indicates if the maintenance can be customer triggered. See go/sf-ctm-design for more details */
11646
- canReschedule?: boolean;
11647
- }
11648
11662
  interface RolloutPolicy {
11649
11663
  /** An optional RFC3339 timestamp on or after which the update is considered rolled out to any zone that is not explicitly stated. */
11650
11664
  defaultRolloutTime?: string;
@@ -12639,9 +12653,12 @@ declare namespace gapi.client {
12639
12653
  loadThreshold?: number;
12640
12654
  }
12641
12655
  interface SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig {
12642
- /** If set to true, enables CAAP for L7 DDoS detection. */
12656
+ /** If set to true, enables CAAP for L7 DDoS detection. This field is only supported in Global Security Policies of type CLOUD_ARMOR. */
12643
12657
  enable?: boolean;
12644
- /** Rule visibility can be one of the following: STANDARD - opaque rules. (default) PREMIUM - transparent rules. */
12658
+ /**
12659
+ * Rule visibility can be one of the following: STANDARD - opaque rules. (default) PREMIUM - transparent rules. This field is only supported in Global Security Policies of type
12660
+ * CLOUD_ARMOR.
12661
+ */
12645
12662
  ruleVisibility?: string;
12646
12663
  }
12647
12664
  interface SecurityPolicyAdvancedOptionsConfig {
@@ -12713,7 +12730,8 @@ declare namespace gapi.client {
12713
12730
  interface SecurityPolicyRecaptchaOptionsConfig {
12714
12731
  /**
12715
12732
  * An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified
12716
- * site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used.
12733
+ * site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used. This
12734
+ * field is only supported in Global Security Policies of type CLOUD_ARMOR.
12717
12735
  */
12718
12736
  redirectSiteKey?: string;
12719
12737
  }
@@ -12725,8 +12743,9 @@ declare namespace gapi.client {
12725
12743
  * The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP
12726
12744
  * response code specified. Valid values for `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic
12727
12745
  * exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either
12728
- * be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. - throttle: limit client
12729
- * traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this.
12746
+ * be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. This action is only
12747
+ * supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions.
12748
+ * Requires rate_limit_options to be set for this.
12730
12749
  */
12731
12750
  action?: string;
12732
12751
  /** An optional description of this resource. Provide this property when you create the resource. */
@@ -12738,7 +12757,7 @@ declare namespace gapi.client {
12738
12757
  * BigQuery or Pub/Sub. Note: you cannot enable logging on "goto_next" rules. This field may only be specified when the versioned_expr is set to FIREWALL.
12739
12758
  */
12740
12759
  enableLogging?: boolean;
12741
- /** Optional, additional actions that are performed on headers. */
12760
+ /** Optional, additional actions that are performed on headers. This field is only supported in Global Security Policies of type CLOUD_ARMOR. */
12742
12761
  headerAction?: SecurityPolicyRuleHttpHeaderAction;
12743
12762
  /** [Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules */
12744
12763
  kind?: string;
@@ -12770,7 +12789,7 @@ declare namespace gapi.client {
12770
12789
  priority?: number;
12771
12790
  /** Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions. */
12772
12791
  rateLimitOptions?: SecurityPolicyRuleRateLimitOptions;
12773
- /** Parameters defining the redirect action. Cannot be specified for any other actions. */
12792
+ /** Parameters defining the redirect action. Cannot be specified for any other actions. This field is only supported in Global Security Policies of type CLOUD_ARMOR. */
12774
12793
  redirectOptions?: SecurityPolicyRuleRedirectOptions;
12775
12794
  /** This must be specified for redirect actions. Cannot be specified for any other actions. */
12776
12795
  redirectTarget?: string;
@@ -12807,7 +12826,11 @@ declare namespace gapi.client {
12807
12826
  * specified.
12808
12827
  */
12809
12828
  config?: SecurityPolicyRuleMatcherConfig;
12810
- /** User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as origin.ip, source.region_code and contents in the request header. */
12829
+ /**
12830
+ * User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as origin.ip, source.region_code and contents in the request header. Expressions containing
12831
+ * `evaluateThreatIntelligence` require Cloud Armor Managed Protection Plus tier and are not supported in Edge Policies nor in Regional Policies. Expressions containing
12832
+ * `evaluatePreconfiguredExpr('sourceiplist-*')` require Cloud Armor Managed Protection Plus tier and are only supported in Global Security Policies.
12833
+ */
12811
12834
  expr?: Expr;
12812
12835
  /**
12813
12836
  * Preconfigured versioned expression. If this field is specified, config must also be specified. Available preconfigured expressions along with their requirements are: SRC_IPS_V1 -
@@ -12944,12 +12967,16 @@ declare namespace gapi.client {
12944
12967
  enforceOnKeyName?: string;
12945
12968
  /**
12946
12969
  * Action to take for requests that are above the configured rate limit threshold, to either deny with a specified HTTP response code, or redirect to a different endpoint. Valid
12947
- * options are `deny(STATUS)`, where valid values for `STATUS` are 403, 404, 429, and 502, and `redirect`, where the redirect parameters come from `exceedRedirectOptions` below.
12970
+ * options are `deny(STATUS)`, where valid values for `STATUS` are 403, 404, 429, and 502, and `redirect`, where the redirect parameters come from `exceedRedirectOptions` below. The
12971
+ * `redirect` action is only supported in Global Security Policies of type CLOUD_ARMOR.
12948
12972
  */
12949
12973
  exceedAction?: string;
12950
12974
  /** Specified gRPC response status for proxyless gRPC requests that are above the configured rate limit threshold */
12951
12975
  exceedActionRpcStatus?: SecurityPolicyRuleRateLimitOptionsRpcStatus;
12952
- /** Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect. */
12976
+ /**
12977
+ * Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect. This field is only supported in Global Security
12978
+ * Policies of type CLOUD_ARMOR.
12979
+ */
12953
12980
  exceedRedirectOptions?: SecurityPolicyRuleRedirectOptions;
12954
12981
  /** Threshold at which to begin ratelimiting. */
12955
12982
  rateLimitThreshold?: SecurityPolicyRuleRateLimitOptionsThreshold;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.compute-alpha",
3
- "version": "0.0.20230322",
3
+ "version": "0.0.20230403",
4
4
  "description": "TypeScript typings for Compute Engine API alpha",
5
5
  "license": "MIT",
6
6
  "author": {