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

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 (4) hide show
  1. package/index.d.ts +274 -46
  2. package/package.json +1 -1
  3. package/readme.md +11 -1
  4. package/tests.ts +98 -2
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: 20230610
12
+ // Revision: 20230701
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -1675,9 +1675,16 @@ declare namespace gapi.client {
1675
1675
  network?:
1676
1676
  string;
1677
1677
  /**
1678
- * Settings controlling the eviction of unhealthy hosts from the load balancing pool for the backend service. If not set, this feature is considered disabled. This field is applicable
1679
- * to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, HTTP2, or GRPC, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service
1680
- * with the load_balancing_scheme set to INTERNAL_SELF_MANAGED.
1678
+ * Settings controlling the ejection of unhealthy backend endpoints from the load balancing pool of each individual proxy instance that processes the traffic for the given backend
1679
+ * service. If not set, this feature is considered disabled. Results of the outlier detection algorithm (ejection of endpoints from the load balancing pool and returning them back to
1680
+ * the pool) are executed independently by each proxy instance of the load balancer. In most cases, more than one proxy instance handles the traffic received by a backend service.
1681
+ * Thus, it is possible that an unhealthy endpoint is detected and ejected by only some of the proxies, and while this happens, other proxies may continue to send requests to the same
1682
+ * unhealthy endpoint until they detect and eject the unhealthy endpoint. Applicable backend endpoints can be: - VM instances in an Instance Group - Endpoints in a Zonal NEG
1683
+ * (GCE_VM_IP, GCE_VM_IP_PORT) - Endpoints in a Hybrid Connectivity NEG (NON_GCP_PRIVATE_IP_PORT) - Serverless NEGs, that resolve to Cloud Run, App Engine, or Cloud Functions Services
1684
+ * - Private Service Connect NEGs, that resolve to Google-managed regional API endpoints or managed services published using Private Service Connect Applicable backend service types
1685
+ * can be: - A global backend service with the loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. - A regional backend service with the serviceProtocol set to HTTP,
1686
+ * HTTPS, or HTTP2, and loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not supported for Serverless NEGs. Not supported when the backend service is referenced by a
1687
+ * URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
1681
1688
  */
1682
1689
  outlierDetection?:
1683
1690
  OutlierDetection;
@@ -1723,8 +1730,8 @@ declare namespace gapi.client {
1723
1730
  serviceBindings?:
1724
1731
  string[];
1725
1732
  /**
1726
- * URL to networkservices.ServiceLbPolicy resource. Can only be set if load balancing scheme is EXTERNAL, INTERNAL_MANAGED or INTERNAL_SELF_MANAGED. If used with a backend service,
1727
- * must reference a global policy. If used with a regional backend service, must reference a regional policy.
1733
+ * URL to networkservices.ServiceLbPolicy resource. Can only be set if load balancing scheme is EXTERNAL, EXTERNAL_MANAGED, INTERNAL_MANAGED or INTERNAL_SELF_MANAGED and the scope is
1734
+ * global.
1728
1735
  */
1729
1736
  serviceLbPolicy?:
1730
1737
  string;
@@ -4307,8 +4314,9 @@ declare namespace gapi.client {
4307
4314
  }
4308
4315
  interface ForwardingRule {
4309
4316
  /**
4310
- * This field is used along with the backend_service field for internal load balancing or with the target field for internal TargetInstance. If the field is set to TRUE, clients can
4311
- * access ILB from all regions. Otherwise only allows access from clients in the same region as the internal load balancer.
4317
+ * This field is used along with the backend_service field for internal load balancing or with the target field for internal TargetInstance. If set to true, clients can access the
4318
+ * Internal TCP/UDP Load Balancer, Internal HTTP(S) and TCP Proxy Load Balancer from all regions. If false, only allows access from the local region the load balancer is located at.
4319
+ * Note that for INTERNAL_MANAGED forwarding rules, this field cannot be changed after the forwarding rule is created.
4312
4320
  */
4313
4321
  allowGlobalAccess?:
4314
4322
  boolean;
@@ -6258,6 +6266,9 @@ declare namespace gapi.client {
6258
6266
  /** Size of the image when restored onto a persistent disk (in GB). */
6259
6267
  diskSizeGb?:
6260
6268
  string;
6269
+ /** Whether this image is created from a confidential compute mode disk. [Output Only]: This field is not set by user, but from source disk. */
6270
+ enableConfidentialCompute?:
6271
+ boolean;
6261
6272
  /**
6262
6273
  * The name of the image family to which this image belongs. The image family name can be from a publicly managed image family provided by Compute Engine, or from a custom image family
6263
6274
  * you create. For example, centos-stream-9 is a publicly available image family. For more information, see Image family best practices. When creating disks, you can specify an image
@@ -7053,6 +7064,12 @@ declare namespace gapi.client {
7053
7064
  */
7054
7065
  creatingAtomically?:
7055
7066
  number;
7067
+ /**
7068
+ * [Output Only] The number of instances that the managed instance group will attempt to create in bulk. If the desired count of instances cannot be created, entire batch will be
7069
+ * deleted and the group will decrease its targetSize value accordingly.
7070
+ */
7071
+ creatingInBulk?:
7072
+ number;
7056
7073
  /**
7057
7074
  * [Output Only] The number of instances that the managed instance group will attempt to create. The group attempts to create each instance only once. If the group fails to create any
7058
7075
  * of these instances, it decreases the group's targetSize value accordingly.
@@ -7438,6 +7455,9 @@ declare namespace gapi.client {
7438
7455
  PerInstanceConfig[];
7439
7456
  }
7440
7457
  interface InstanceGroupManagersDeleteInstancesRequest {
7458
+ /** The list of instance names to delete. Queued instances do not have URL and can be deleted only by name. You cannot specify both URLs and names in a single request. */
7459
+ instanceNames?:
7460
+ string[];
7441
7461
  /**
7442
7462
  * The URLs of one or more instances to delete. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. Queued instances do not have URL and can be
7443
7463
  * deleted only by name. One cannot specify both URLs and names in a single request.
@@ -7627,6 +7647,9 @@ declare namespace gapi.client {
7627
7647
  interface InstanceGroupManagerStandbyPolicy {
7628
7648
  initialDelaySec?:
7629
7649
  number;
7650
+ /** Defines behaviour of using instances from standby pool to resize MIG. */
7651
+ mode?:
7652
+ string;
7630
7653
  }
7631
7654
  interface InstanceGroupManagerStatus {
7632
7655
  /** [Output only] Status of all-instances configuration on the group. */
@@ -8146,6 +8169,13 @@ declare namespace gapi.client {
8146
8169
  /** Email address of the service account. */
8147
8170
  email?:
8148
8171
  string;
8172
+ /**
8173
+ * Specifies a fingerprint for instance settings, which is essentially a hash of the instance settings resource's contents and used for optimistic locking. The fingerprint is initially
8174
+ * generated by Compute Engine and changes after every request to modify or update the instance settings resource. You must always provide an up-to-date fingerprint hash in order to
8175
+ * update or change the resource, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the resource.
8176
+ */
8177
+ fingerprint?:
8178
+ string;
8149
8179
  /** [Output Only] Type of the resource. Always compute#instance_settings for instance settings. */
8150
8180
  kind?:
8151
8181
  string;
@@ -8714,8 +8744,8 @@ declare namespace gapi.client {
8714
8744
  adminEnabled?:
8715
8745
  boolean;
8716
8746
  /**
8717
- * [Output only] List of features available for this interconnect, which can take one of the following values: - MACSEC If present then the interconnect was created on MACsec capable
8718
- * hardware ports. If not present then the interconnect is provisioned on non-MACsec capable ports and MACsec enablement will fail.
8747
+ * [Output only] List of features available for this Interconnect connection, which can take one of the following values: - MACSEC If present then the interconnect was created on
8748
+ * MACsec capable hardware ports. If not present then the interconnect is provisioned on non-MACsec capable ports and MACsec enablement will fail.
8719
8749
  */
8720
8750
  availableFeatures?:
8721
8751
  string[];
@@ -8774,10 +8804,10 @@ declare namespace gapi.client {
8774
8804
  /** URL of the InterconnectLocation object that represents where this connection is to be provisioned. */
8775
8805
  location?:
8776
8806
  string;
8777
- /** Configuration to enable Media Access Control security (MACsec) on the Interconnect between Google and your on-premises router. */
8807
+ /** Configuration to enable Media Access Control security (MACsec) on the Interconnect connection between Google and your on-premises router. */
8778
8808
  macsec?:
8779
8809
  InterconnectMacsec;
8780
- /** Enable or disable MACsec on this Interconnect. MACsec enablement will fail if the macsec object is not specified. */
8810
+ /** Enable or disable MACsec on this Interconnect connection. MACsec enablement fails if the MACsec object is not specified. */
8781
8811
  macsecEnabled?:
8782
8812
  boolean;
8783
8813
  /**
@@ -8814,9 +8844,9 @@ declare namespace gapi.client {
8814
8844
  remoteLocation?:
8815
8845
  string;
8816
8846
  /**
8817
- * Optional. List of features requested for this interconnect, which can take one of the following values: - MACSEC If specified then the interconnect will be created on MACsec capable
8818
- * hardware ports. If not specified, the default value is false, which will allocate non-MACsec capable ports first if available. This parameter can only be provided during
8819
- * interconnect INSERT and cannot be changed using interconnect PATCH. Please review Interconnect Pricing for implications on enabling this flag.
8847
+ * Optional. List of features requested for this Interconnect connection, which can take one of the following values: - MACSEC If specified then the interconnect will be created on
8848
+ * MACsec capable hardware ports. If not specified, the default value is false, which will allocate non-MACsec capable ports first if available. This parameter can only be provided
8849
+ * during interconnect INSERT and cannot be changed using interconnect PATCH.
8820
8850
  */
8821
8851
  requestedFeatures?:
8822
8852
  string[];
@@ -9358,10 +9388,10 @@ declare namespace gapi.client {
9358
9388
  */
9359
9389
  availabilityZone?:
9360
9390
  string;
9361
- /** [Output only] List of features available at this interconnect location, which can take one of the following values: - MACSEC */
9391
+ /** [Output only] List of features available at this InterconnectLocation, which can take one of the following values: - MACSEC */
9362
9392
  availableFeatures?:
9363
9393
  string[];
9364
- /** [Output only] List of link types available at this interconnect location, which can take one of the following values: - LINK_TYPE_ETHERNET_10G_LR - LINK_TYPE_ETHERNET_100G_LR */
9394
+ /** [Output only] List of link types available at this InterconnectLocation, which can take one of the following values: - LINK_TYPE_ETHERNET_10G_LR - LINK_TYPE_ETHERNET_100G_LR */
9365
9395
  availableLinkTypes?:
9366
9396
  string[];
9367
9397
  /** [Output Only] Metropolitan area designator that indicates which city an interconnect is located. For example: "Chicago, IL", "Amsterdam, Netherlands". */
@@ -9473,9 +9503,9 @@ declare namespace gapi.client {
9473
9503
  }
9474
9504
  interface InterconnectMacsec {
9475
9505
  /**
9476
- * If set to true, the Interconnect will be configured with a should-secure MACsec security policy, that allows the Google router to fallback to cleartext traffic if the MKA session
9477
- * cannot be established. By default, the Interconnect will be configured with a must-secure security policy that drops all traffic if the MKA session cannot be established with your
9478
- * router.
9506
+ * If set to true, the Interconnect connection is configured with a should-secure MACsec security policy, that allows the Google router to fallback to cleartext traffic if the MKA
9507
+ * session cannot be established. By default, the Interconnect connection is configured with a must-secure security policy that drops all traffic if the MKA session cannot be
9508
+ * established with your router.
9479
9509
  */
9480
9510
  failOpen?:
9481
9511
  boolean;
@@ -9488,8 +9518,8 @@ declare namespace gapi.client {
9488
9518
  }
9489
9519
  interface InterconnectMacsecConfig {
9490
9520
  /**
9491
- * A keychain placeholder describing a set of named key objects along with their start times. A MACsec CKN/CAK will be generated for each key in the key chain. Google router will
9492
- * automatically pick the key with the most recent startTime when establishing or re-establishing a MACsec secure link.
9521
+ * A keychain placeholder describing a set of named key objects along with their start times. A MACsec CKN/CAK is generated for each key in the key chain. Google router automatically
9522
+ * picks the key with the most recent startTime when establishing or re-establishing a MACsec secure link.
9493
9523
  */
9494
9524
  preSharedKeys?:
9495
9525
  InterconnectMacsecConfigPreSharedKey[];
@@ -12804,64 +12834,69 @@ declare namespace gapi.client {
12804
12834
  }
12805
12835
  interface OutlierDetection {
12806
12836
  /**
12807
- * The base time that a host is ejected for. The real ejection time is equal to the base ejection time multiplied by the number of times the host has been ejected. Defaults to 30000ms
12808
- * or 30s.
12837
+ * The base time that a backend endpoint is ejected for. Defaults to 30000ms or 30s. After a backend endpoint is returned back to the load balancing pool, it can be ejected again in
12838
+ * another ejection analysis. Thus, the total ejection time is equal to the base ejection time multiplied by the number of times the backend endpoint has been ejected. Defaults to
12839
+ * 30000ms or 30s.
12809
12840
  */
12810
12841
  baseEjectionTime?:
12811
12842
  Duration;
12812
12843
  /**
12813
- * Number of errors before a host is ejected from the connection pool. When the backend host is accessed over HTTP, a 5xx return code qualifies as an error. Defaults to 5. Not
12814
- * supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
12844
+ * Number of consecutive errors before a backend endpoint is ejected from the load balancing pool. When the backend endpoint is accessed over HTTP, a 5xx return code qualifies as an
12845
+ * error. Defaults to 5.
12815
12846
  */
12816
12847
  consecutiveErrors?:
12817
12848
  number;
12818
12849
  /**
12819
12850
  * The number of consecutive gateway failures (502, 503, 504 status or connection errors that are mapped to one of those status codes) before a consecutive gateway failure ejection
12820
- * occurs. Defaults to 3. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
12851
+ * occurs. Defaults to 3.
12821
12852
  */
12822
12853
  consecutiveGatewayFailure?:
12823
12854
  number;
12824
12855
  /**
12825
- * The percentage chance that a host will be actually ejected when an outlier status is detected through consecutive 5xx. This setting can be used to disable ejection or to ramp it up
12826
- * slowly. Defaults to 0. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
12856
+ * The percentage chance that a backend endpoint will be ejected when an outlier status is detected through consecutive 5xx. This setting can be used to disable ejection or to ramp it
12857
+ * up slowly. Defaults to 0.
12827
12858
  */
12828
12859
  enforcingConsecutiveErrors?:
12829
12860
  number;
12830
12861
  /**
12831
- * The percentage chance that a host will be actually ejected when an outlier status is detected through consecutive gateway failures. This setting can be used to disable ejection or
12832
- * to ramp it up slowly. Defaults to 100. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set
12833
- * to true.
12862
+ * The percentage chance that a backend endpoint will be ejected when an outlier status is detected through consecutive gateway failures. This setting can be used to disable ejection
12863
+ * or to ramp it up slowly. Defaults to 100.
12834
12864
  */
12835
12865
  enforcingConsecutiveGatewayFailure?:
12836
12866
  number;
12837
12867
  /**
12838
- * The percentage chance that a host will be actually ejected when an outlier status is detected through success rate statistics. This setting can be used to disable ejection or to
12839
- * ramp it up slowly. Defaults to 100.
12868
+ * The percentage chance that a backend endpoint will be ejected when an outlier status is detected through success rate statistics. This setting can be used to disable ejection or to
12869
+ * ramp it up slowly. Defaults to 100. Not supported when the backend service uses Serverless NEG.
12840
12870
  */
12841
12871
  enforcingSuccessRate?:
12842
12872
  number;
12843
- /** Time interval between ejection analysis sweeps. This can result in both new ejections as well as hosts being returned to service. Defaults to 1 second. */
12873
+ /**
12874
+ * Time interval between ejection analysis sweeps. This can result in both new ejections and backend endpoints being returned to service. The interval is equal to the number of seconds
12875
+ * as defined in outlierDetection.interval.seconds plus the number of nanoseconds as defined in outlierDetection.interval.nanos. Defaults to 1 second.
12876
+ */
12844
12877
  interval?:
12845
12878
  Duration;
12846
- /** Maximum percentage of hosts in the load balancing pool for the backend service that can be ejected. Defaults to 50%. */
12879
+ /** Maximum percentage of backend endpoints in the load balancing pool for the backend service that can be ejected if the ejection conditions are met. Defaults to 50%. */
12847
12880
  maxEjectionPercent?:
12848
12881
  number;
12849
12882
  /**
12850
- * The number of hosts in a cluster that must have enough request volume to detect success rate outliers. If the number of hosts is less than this setting, outlier detection via
12851
- * success rate statistics is not performed for any host in the cluster. Defaults to 5.
12883
+ * The number of backend endpoints in the load balancing pool that must have enough request volume to detect success rate outliers. If the number of backend endpoints is fewer than
12884
+ * this setting, outlier detection via success rate statistics is not performed for any backend endpoint in the load balancing pool. Defaults to 5. Not supported when the backend
12885
+ * service uses Serverless NEG.
12852
12886
  */
12853
12887
  successRateMinimumHosts?:
12854
12888
  number;
12855
12889
  /**
12856
- * The minimum number of total requests that must be collected in one interval (as defined by the interval duration above) to include this host in success rate based outlier detection.
12857
- * If the volume is lower than this setting, outlier detection via success rate statistics is not performed for that host. Defaults to 100.
12890
+ * The minimum number of total requests that must be collected in one interval (as defined by the interval duration above) to include this backend endpoint in success rate based
12891
+ * outlier detection. If the volume is lower than this setting, outlier detection via success rate statistics is not performed for that backend endpoint. Defaults to 100. Not supported
12892
+ * when the backend service uses Serverless NEG.
12858
12893
  */
12859
12894
  successRateRequestVolume?:
12860
12895
  number;
12861
12896
  /**
12862
12897
  * This factor is used to determine the ejection threshold for success rate outlier ejection. The ejection threshold is the difference between the mean success rate, and the product of
12863
- * this factor and the standard deviation of the mean success rate: mean - (stdev * success_rate_stdev_factor). This factor is divided by a thousand to get a double. That is, if the
12864
- * desired factor is 1.9, the runtime value should be 1900. Defaults to 1900.
12898
+ * this factor and the standard deviation of the mean success rate: mean - (stdev * successRateStdevFactor). This factor is divided by a thousand to get a double. That is, if the
12899
+ * desired factor is 1.9, the runtime value should be 1900. Defaults to 1900. Not supported when the backend service uses Serverless NEG.
12865
12900
  */
12866
12901
  successRateStdevFactor?:
12867
12902
  number;
@@ -13671,7 +13706,7 @@ declare namespace gapi.client {
13671
13706
  /** [Output Only] The unique identifier for the resource type. The server generates this identifier. */
13672
13707
  id?:
13673
13708
  string;
13674
- /** The IPv4 address range, in CIDR format, represented by this public delegated prefix. */
13709
+ /** The IP address range, in CIDR format, represented by this public delegated prefix. */
13675
13710
  ipCidrRange?:
13676
13711
  string;
13677
13712
  /** If true, the prefix will be live migrated. */
@@ -13840,7 +13875,7 @@ declare namespace gapi.client {
13840
13875
  /** An optional description of this resource. Provide this property when you create the resource. */
13841
13876
  description?:
13842
13877
  string;
13843
- /** The IPv4 address range, in CIDR format, represented by this sub public delegated prefix. */
13878
+ /** The IP address range, in CIDR format, represented by this sub public delegated prefix. */
13844
13879
  ipCidrRange?:
13845
13880
  string;
13846
13881
  /** Whether the sub prefix is delegated to create Address resources in the delegatee project. */
@@ -16722,6 +16757,22 @@ declare namespace gapi.client {
16722
16757
  */
16723
16758
  ruleVisibility?:
16724
16759
  string;
16760
+ /** Configuration options for layer7 adaptive protection for various customizable thresholds. */
16761
+ thresholdConfigs?:
16762
+ SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig[];
16763
+ }
16764
+ interface SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig {
16765
+ autoDeployConfidenceThreshold?:
16766
+ number;
16767
+ autoDeployExpirationSec?:
16768
+ number;
16769
+ autoDeployImpactedBaselineThreshold?:
16770
+ number;
16771
+ autoDeployLoadThreshold?:
16772
+ number;
16773
+ /** The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the security policy. */
16774
+ name?:
16775
+ string;
16725
16776
  }
16726
16777
  interface SecurityPolicyAdvancedOptionsConfig {
16727
16778
  /** Custom configuration to apply the JSON parsing. Only applicable when json_parsing is set to STANDARD. */
@@ -17870,6 +17921,24 @@ declare namespace gapi.client {
17870
17921
  string;
17871
17922
  };
17872
17923
  }
17924
+ interface SnapshotSettings {
17925
+ /** Policy of which storage location is going to be resolved, and additional data that particularizes how the policy is going to be carried out. */
17926
+ storageLocation?:
17927
+ SnapshotSettingsStorageLocationSettings;
17928
+ }
17929
+ interface SnapshotSettingsStorageLocationSettings {
17930
+ /** When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this field. Keys are GCS bucket locations. */
17931
+ locations?:
17932
+ { [P in string]: SnapshotSettingsStorageLocationSettingsStorageLocationPreference };
17933
+ /** The chosen location policy. */
17934
+ policy?:
17935
+ string;
17936
+ }
17937
+ interface SnapshotSettingsStorageLocationSettingsStorageLocationPreference {
17938
+ /** Name of the location. It should be one of the GCS buckets. */
17939
+ name?:
17940
+ string;
17941
+ }
17873
17942
  interface SourceDiskEncryptionKey {
17874
17943
  /** The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key. */
17875
17944
  diskEncryptionKey?:
@@ -18691,7 +18760,7 @@ declare namespace gapi.client {
18691
18760
  };
18692
18761
  }
18693
18762
  interface StoragePoolResourceStatus {
18694
- /** [Output Only] Sum of all the disk' provisioned IOPS. */
18763
+ /** [Output Only] Sum of all the disks' provisioned IOPS. */
18695
18764
  aggregateDiskProvisionedIops?:
18696
18765
  string;
18697
18766
  /** [Output Only] Sum of all the capacity provisioned in disks in this storage pool. A disk's provisioned capacity is the same as its total capacity. */
@@ -18712,6 +18781,9 @@ declare namespace gapi.client {
18712
18781
  /** [Output Only] Space used by compressed and deduped data stored in disks within the storage pool (in bytes). */
18713
18782
  usedReducedBytes?:
18714
18783
  string;
18784
+ /** [Output Only] Sum of all the disks' provisioned throughput in MB/s. */
18785
+ usedThroughput?:
18786
+ string;
18715
18787
  }
18716
18788
  interface StoragePoolsScopedList {
18717
18789
  /** [Output Only] A list of storage pool contained in this scope. */
@@ -57797,7 +57869,8 @@ declare namespace gapi.client {
57797
57869
  body: DiskMoveRequest): Request<Operation>;
57798
57870
  /**
57799
57871
  * Moves an instance and its attached persistent disks from one zone to another. *Note*: Moving VMs or disks by using this method might cause unexpected behavior. For more information,
57800
- * see the [known issue](/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior).
57872
+ * see the [known issue](/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior). [Deprecated] This method is
57873
+ * deprecated. See [moving instance across zones](/compute/docs/instances/moving-instance-across-zones) instead.
57801
57874
  */
57802
57875
  moveInstance(request: {
57803
57876
  /** V1 error format. */
@@ -80353,6 +80426,159 @@ declare namespace gapi.client {
80353
80426
  },
80354
80427
  body: TestPermissionsRequest): Request<TestPermissionsResponse>;
80355
80428
  }
80429
+ interface SnapshotSettingsResource {
80430
+ /** Get snapshot settings. */
80431
+ get(request?: {
80432
+ /** V1 error format. */
80433
+ "$.xgafv"?:
80434
+ string;
80435
+ /** OAuth access token. */
80436
+ access_token?:
80437
+ string;
80438
+ /** Data format for response. */
80439
+ alt?:
80440
+ string;
80441
+ /** JSONP */
80442
+ callback?:
80443
+ string;
80444
+ /** Selector specifying which fields to include in a partial response. */
80445
+ fields?:
80446
+ string;
80447
+ /** 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. */
80448
+ key?:
80449
+ string;
80450
+ /** OAuth 2.0 token for the current user. */
80451
+ oauth_token?:
80452
+ string;
80453
+ /** Returns response with indentations and line breaks. */
80454
+ prettyPrint?:
80455
+ boolean;
80456
+ /** Project ID for this request. */
80457
+ project:
80458
+ string;
80459
+ /** 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. */
80460
+ quotaUser?:
80461
+ string;
80462
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
80463
+ upload_protocol?:
80464
+ string;
80465
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
80466
+ uploadType?:
80467
+ string;
80468
+ /** Legacy name for parameter that has been superseded by `quotaUser`. */
80469
+ userIp?:
80470
+ string;
80471
+ }): Request<SnapshotSettings>;
80472
+ /** Patch snapshot settings. */
80473
+ patch(request: {
80474
+ /** V1 error format. */
80475
+ "$.xgafv"?:
80476
+ string;
80477
+ /** OAuth access token. */
80478
+ access_token?:
80479
+ string;
80480
+ /** Data format for response. */
80481
+ alt?:
80482
+ string;
80483
+ /** JSONP */
80484
+ callback?:
80485
+ string;
80486
+ /** Selector specifying which fields to include in a partial response. */
80487
+ fields?:
80488
+ string;
80489
+ /** 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. */
80490
+ key?:
80491
+ string;
80492
+ /** OAuth 2.0 token for the current user. */
80493
+ oauth_token?:
80494
+ string;
80495
+ /** Returns response with indentations and line breaks. */
80496
+ prettyPrint?:
80497
+ boolean;
80498
+ /** Project ID for this request. */
80499
+ project:
80500
+ string;
80501
+ /** 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. */
80502
+ quotaUser?:
80503
+ string;
80504
+ /**
80505
+ * 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
80506
+ * 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
80507
+ * 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
80508
+ * commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
80509
+ */
80510
+ requestId?:
80511
+ string;
80512
+ /** update_mask indicates fields to be updated as part of this request. */
80513
+ updateMask?:
80514
+ string;
80515
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
80516
+ upload_protocol?:
80517
+ string;
80518
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
80519
+ uploadType?:
80520
+ string;
80521
+ /** Legacy name for parameter that has been superseded by `quotaUser`. */
80522
+ userIp?:
80523
+ string;
80524
+ /** Request body */
80525
+ resource:
80526
+ SnapshotSettings;
80527
+ }): Request<Operation>;
80528
+ patch(request: {
80529
+ /** V1 error format. */
80530
+ "$.xgafv"?:
80531
+ string;
80532
+ /** OAuth access token. */
80533
+ access_token?:
80534
+ string;
80535
+ /** Data format for response. */
80536
+ alt?:
80537
+ string;
80538
+ /** JSONP */
80539
+ callback?:
80540
+ string;
80541
+ /** Selector specifying which fields to include in a partial response. */
80542
+ fields?:
80543
+ string;
80544
+ /** 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. */
80545
+ key?:
80546
+ string;
80547
+ /** OAuth 2.0 token for the current user. */
80548
+ oauth_token?:
80549
+ string;
80550
+ /** Returns response with indentations and line breaks. */
80551
+ prettyPrint?:
80552
+ boolean;
80553
+ /** Project ID for this request. */
80554
+ project:
80555
+ string;
80556
+ /** 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. */
80557
+ quotaUser?:
80558
+ string;
80559
+ /**
80560
+ * 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
80561
+ * 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
80562
+ * 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
80563
+ * commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
80564
+ */
80565
+ requestId?:
80566
+ string;
80567
+ /** update_mask indicates fields to be updated as part of this request. */
80568
+ updateMask?:
80569
+ string;
80570
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
80571
+ upload_protocol?:
80572
+ string;
80573
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
80574
+ uploadType?:
80575
+ string;
80576
+ /** Legacy name for parameter that has been superseded by `quotaUser`. */
80577
+ userIp?:
80578
+ string;
80579
+ },
80580
+ body: SnapshotSettings): Request<Operation>;
80581
+ }
80356
80582
  interface SslCertificatesResource {
80357
80583
  /** Retrieves the list of all SslCertificate resources, regional and global, available to the specified project. */
80358
80584
  aggregatedList(request?: {
@@ -91858,6 +92084,8 @@ declare namespace gapi.client {
91858
92084
 
91859
92085
  const serviceAttachments: ServiceAttachmentsResource;
91860
92086
 
92087
+ const snapshotSettings: SnapshotSettingsResource;
92088
+
91861
92089
  const snapshots: SnapshotsResource;
91862
92090
 
91863
92091
  const sslCertificates: SslCertificatesResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.compute-alpha",
3
- "version": "0.0.20230610",
3
+ "version": "0.0.20230701",
4
4
  "description": "TypeScript typings for Compute Engine API alpha",
5
5
  "license": "MIT",
6
6
  "author": {
package/readme.md CHANGED
@@ -2382,7 +2382,7 @@ Moves a persistent disk from one zone to another.
2382
2382
  await gapi.client.compute.projects.moveDisk({ project: "project", });
2383
2383
 
2384
2384
  /*
2385
- Moves an instance and its attached persistent disks from one zone to another. *Note*: Moving VMs or disks by using this method might cause unexpected behavior. For more information, see the [known issue](/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior).
2385
+ Moves an instance and its attached persistent disks from one zone to another. *Note*: Moving VMs or disks by using this method might cause unexpected behavior. For more information, see the [known issue](/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior). [Deprecated] This method is deprecated. See [moving instance across zones](/compute/docs/instances/moving-instance-across-zones) instead.
2386
2386
  */
2387
2387
  await gapi.client.compute.projects.moveInstance({ project: "project", });
2388
2388
 
@@ -3786,6 +3786,16 @@ Returns permissions that a caller has on the specified resource.
3786
3786
  */
3787
3787
  await gapi.client.compute.snapshots.testIamPermissions({ project: "project", resource: "resource", });
3788
3788
 
3789
+ /*
3790
+ Get snapshot settings.
3791
+ */
3792
+ await gapi.client.compute.snapshotSettings.get({ project: "project", });
3793
+
3794
+ /*
3795
+ Patch snapshot settings.
3796
+ */
3797
+ await gapi.client.compute.snapshotSettings.patch({ project: "project", });
3798
+
3789
3799
  /*
3790
3800
  Retrieves the list of all SslCertificate resources, regional and global, available to the specified project.
3791
3801
  */
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: 20230610
6
+ // Revision: 20230701
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -5273,6 +5273,7 @@ gapi.load('client', async () => {
5273
5273
  },
5274
5274
  description: "Test string",
5275
5275
  diskSizeGb: "Test string",
5276
+ enableConfidentialCompute: true,
5276
5277
  family: "Test string",
5277
5278
  guestOsFeatures: [
5278
5279
  {
@@ -5412,6 +5413,7 @@ gapi.load('client', async () => {
5412
5413
  },
5413
5414
  description: "Test string",
5414
5415
  diskSizeGb: "Test string",
5416
+ enableConfidentialCompute: true,
5415
5417
  family: "Test string",
5416
5418
  guestOsFeatures: [
5417
5419
  {
@@ -5865,6 +5867,9 @@ gapi.load('client', async () => {
5865
5867
  requestId: "Test string",
5866
5868
  zone: "Test string",
5867
5869
  }, {
5870
+ instanceNames: [
5871
+ "Test string"
5872
+ ],
5868
5873
  instances: [
5869
5874
  "Test string"
5870
5875
  ],
@@ -5927,6 +5932,7 @@ gapi.load('client', async () => {
5927
5932
  abandoning: 42,
5928
5933
  creating: 42,
5929
5934
  creatingAtomically: 42,
5935
+ creatingInBulk: 42,
5930
5936
  creatingWithoutRetries: 42,
5931
5937
  deleting: 42,
5932
5938
  none: 42,
@@ -5986,6 +5992,7 @@ gapi.load('client', async () => {
5986
5992
  serviceAccount: "Test string",
5987
5993
  standbyPolicy: {
5988
5994
  initialDelaySec: 42,
5995
+ mode: "Test string",
5989
5996
  },
5990
5997
  statefulPolicy: {
5991
5998
  preservedState: {
@@ -6153,6 +6160,7 @@ gapi.load('client', async () => {
6153
6160
  abandoning: 42,
6154
6161
  creating: 42,
6155
6162
  creatingAtomically: 42,
6163
+ creatingInBulk: 42,
6156
6164
  creatingWithoutRetries: 42,
6157
6165
  deleting: 42,
6158
6166
  none: 42,
@@ -6212,6 +6220,7 @@ gapi.load('client', async () => {
6212
6220
  serviceAccount: "Test string",
6213
6221
  standbyPolicy: {
6214
6222
  initialDelaySec: 42,
6223
+ mode: "Test string",
6215
6224
  },
6216
6225
  statefulPolicy: {
6217
6226
  preservedState: {
@@ -6559,6 +6568,7 @@ gapi.load('client', async () => {
6559
6568
  abandoning: 42,
6560
6569
  creating: 42,
6561
6570
  creatingAtomically: 42,
6571
+ creatingInBulk: 42,
6562
6572
  creatingWithoutRetries: 42,
6563
6573
  deleting: 42,
6564
6574
  none: 42,
@@ -6618,6 +6628,7 @@ gapi.load('client', async () => {
6618
6628
  serviceAccount: "Test string",
6619
6629
  standbyPolicy: {
6620
6630
  initialDelaySec: 42,
6631
+ mode: "Test string",
6621
6632
  },
6622
6633
  statefulPolicy: {
6623
6634
  preservedState: {
@@ -8892,6 +8903,7 @@ gapi.load('client', async () => {
8892
8903
  zone: "Test string",
8893
8904
  }, {
8894
8905
  email: "Test string",
8906
+ fingerprint: "Test string",
8895
8907
  kind: "Test string",
8896
8908
  zone: "Test string",
8897
8909
  });
@@ -13324,6 +13336,15 @@ gapi.load('client', async () => {
13324
13336
  layer7DdosDefenseConfig: {
13325
13337
  enable: true,
13326
13338
  ruleVisibility: "Test string",
13339
+ thresholdConfigs: [
13340
+ {
13341
+ autoDeployConfidenceThreshold: 42,
13342
+ autoDeployExpirationSec: 42,
13343
+ autoDeployImpactedBaselineThreshold: 42,
13344
+ autoDeployLoadThreshold: 42,
13345
+ name: "Test string",
13346
+ }
13347
+ ],
13327
13348
  },
13328
13349
  },
13329
13350
  advancedOptionsConfig: {
@@ -13586,6 +13607,15 @@ gapi.load('client', async () => {
13586
13607
  layer7DdosDefenseConfig: {
13587
13608
  enable: true,
13588
13609
  ruleVisibility: "Test string",
13610
+ thresholdConfigs: [
13611
+ {
13612
+ autoDeployConfidenceThreshold: 42,
13613
+ autoDeployExpirationSec: 42,
13614
+ autoDeployImpactedBaselineThreshold: 42,
13615
+ autoDeployLoadThreshold: 42,
13616
+ name: "Test string",
13617
+ }
13618
+ ],
13589
13619
  },
13590
13620
  },
13591
13621
  advancedOptionsConfig: {
@@ -14218,7 +14248,8 @@ gapi.load('client', async () => {
14218
14248
  });
14219
14249
  /**
14220
14250
  * Moves an instance and its attached persistent disks from one zone to another. *Note*: Moving VMs or disks by using this method might cause unexpected behavior. For more information, see
14221
- * the [known issue](/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior).
14251
+ * the [known issue](/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior). [Deprecated] This method is deprecated.
14252
+ * See [moving instance across zones](/compute/docs/instances/moving-instance-across-zones) instead.
14222
14253
  */
14223
14254
  await gapi.client.compute.projects.moveInstance({
14224
14255
  project: "Test string",
@@ -17803,6 +17834,7 @@ gapi.load('client', async () => {
17803
17834
  abandoning: 42,
17804
17835
  creating: 42,
17805
17836
  creatingAtomically: 42,
17837
+ creatingInBulk: 42,
17806
17838
  creatingWithoutRetries: 42,
17807
17839
  deleting: 42,
17808
17840
  none: 42,
@@ -17862,6 +17894,7 @@ gapi.load('client', async () => {
17862
17894
  serviceAccount: "Test string",
17863
17895
  standbyPolicy: {
17864
17896
  initialDelaySec: 42,
17897
+ mode: "Test string",
17865
17898
  },
17866
17899
  statefulPolicy: {
17867
17900
  preservedState: {
@@ -18028,6 +18061,7 @@ gapi.load('client', async () => {
18028
18061
  abandoning: 42,
18029
18062
  creating: 42,
18030
18063
  creatingAtomically: 42,
18064
+ creatingInBulk: 42,
18031
18065
  creatingWithoutRetries: 42,
18032
18066
  deleting: 42,
18033
18067
  none: 42,
@@ -18087,6 +18121,7 @@ gapi.load('client', async () => {
18087
18121
  serviceAccount: "Test string",
18088
18122
  standbyPolicy: {
18089
18123
  initialDelaySec: 42,
18124
+ mode: "Test string",
18090
18125
  },
18091
18126
  statefulPolicy: {
18092
18127
  preservedState: {
@@ -18425,6 +18460,7 @@ gapi.load('client', async () => {
18425
18460
  abandoning: 42,
18426
18461
  creating: 42,
18427
18462
  creatingAtomically: 42,
18463
+ creatingInBulk: 42,
18428
18464
  creatingWithoutRetries: 42,
18429
18465
  deleting: 42,
18430
18466
  none: 42,
@@ -18484,6 +18520,7 @@ gapi.load('client', async () => {
18484
18520
  serviceAccount: "Test string",
18485
18521
  standbyPolicy: {
18486
18522
  initialDelaySec: 42,
18523
+ mode: "Test string",
18487
18524
  },
18488
18525
  statefulPolicy: {
18489
18526
  preservedState: {
@@ -20641,6 +20678,15 @@ gapi.load('client', async () => {
20641
20678
  layer7DdosDefenseConfig: {
20642
20679
  enable: true,
20643
20680
  ruleVisibility: "Test string",
20681
+ thresholdConfigs: [
20682
+ {
20683
+ autoDeployConfidenceThreshold: 42,
20684
+ autoDeployExpirationSec: 42,
20685
+ autoDeployImpactedBaselineThreshold: 42,
20686
+ autoDeployLoadThreshold: 42,
20687
+ name: "Test string",
20688
+ }
20689
+ ],
20644
20690
  },
20645
20691
  },
20646
20692
  advancedOptionsConfig: {
@@ -20901,6 +20947,15 @@ gapi.load('client', async () => {
20901
20947
  layer7DdosDefenseConfig: {
20902
20948
  enable: true,
20903
20949
  ruleVisibility: "Test string",
20950
+ thresholdConfigs: [
20951
+ {
20952
+ autoDeployConfidenceThreshold: 42,
20953
+ autoDeployExpirationSec: 42,
20954
+ autoDeployImpactedBaselineThreshold: 42,
20955
+ autoDeployLoadThreshold: 42,
20956
+ name: "Test string",
20957
+ }
20958
+ ],
20904
20959
  },
20905
20960
  },
20906
20961
  advancedOptionsConfig: {
@@ -26114,6 +26169,15 @@ gapi.load('client', async () => {
26114
26169
  layer7DdosDefenseConfig: {
26115
26170
  enable: true,
26116
26171
  ruleVisibility: "Test string",
26172
+ thresholdConfigs: [
26173
+ {
26174
+ autoDeployConfidenceThreshold: 42,
26175
+ autoDeployExpirationSec: 42,
26176
+ autoDeployImpactedBaselineThreshold: 42,
26177
+ autoDeployLoadThreshold: 42,
26178
+ name: "Test string",
26179
+ }
26180
+ ],
26117
26181
  },
26118
26182
  },
26119
26183
  advancedOptionsConfig: {
@@ -26381,6 +26445,15 @@ gapi.load('client', async () => {
26381
26445
  layer7DdosDefenseConfig: {
26382
26446
  enable: true,
26383
26447
  ruleVisibility: "Test string",
26448
+ thresholdConfigs: [
26449
+ {
26450
+ autoDeployConfidenceThreshold: 42,
26451
+ autoDeployExpirationSec: 42,
26452
+ autoDeployImpactedBaselineThreshold: 42,
26453
+ autoDeployLoadThreshold: 42,
26454
+ name: "Test string",
26455
+ }
26456
+ ],
26384
26457
  },
26385
26458
  },
26386
26459
  advancedOptionsConfig: {
@@ -27299,6 +27372,25 @@ gapi.load('client', async () => {
27299
27372
  "Test string"
27300
27373
  ],
27301
27374
  });
27375
+ /** Get snapshot settings. */
27376
+ await gapi.client.compute.snapshotSettings.get({
27377
+ project: "Test string",
27378
+ });
27379
+ /** Patch snapshot settings. */
27380
+ await gapi.client.compute.snapshotSettings.patch({
27381
+ project: "Test string",
27382
+ requestId: "Test string",
27383
+ updateMask: "Test string",
27384
+ }, {
27385
+ storageLocation: {
27386
+ locations: {
27387
+ A: {
27388
+ name: "Test string",
27389
+ }
27390
+ },
27391
+ policy: "Test string",
27392
+ },
27393
+ });
27302
27394
  /** Retrieves the list of all SslCertificate resources, regional and global, available to the specified project. */
27303
27395
  await gapi.client.compute.sslCertificates.aggregatedList({
27304
27396
  filter: "Test string",
@@ -27663,6 +27755,7 @@ gapi.load('client', async () => {
27663
27755
  numberOfDisks: "Test string",
27664
27756
  usedBytes: "Test string",
27665
27757
  usedReducedBytes: "Test string",
27758
+ usedThroughput: "Test string",
27666
27759
  },
27667
27760
  selfLink: "Test string",
27668
27761
  selfLinkWithId: "Test string",
@@ -27676,6 +27769,7 @@ gapi.load('client', async () => {
27676
27769
  numberOfDisks: "Test string",
27677
27770
  usedBytes: "Test string",
27678
27771
  usedReducedBytes: "Test string",
27772
+ usedThroughput: "Test string",
27679
27773
  },
27680
27774
  storagePoolType: "Test string",
27681
27775
  type: "Test string",
@@ -27862,6 +27956,7 @@ gapi.load('client', async () => {
27862
27956
  numberOfDisks: "Test string",
27863
27957
  usedBytes: "Test string",
27864
27958
  usedReducedBytes: "Test string",
27959
+ usedThroughput: "Test string",
27865
27960
  },
27866
27961
  selfLink: "Test string",
27867
27962
  selfLinkWithId: "Test string",
@@ -27875,6 +27970,7 @@ gapi.load('client', async () => {
27875
27970
  numberOfDisks: "Test string",
27876
27971
  usedBytes: "Test string",
27877
27972
  usedReducedBytes: "Test string",
27973
+ usedThroughput: "Test string",
27878
27974
  },
27879
27975
  storagePoolType: "Test string",
27880
27976
  type: "Test string",