@maxim_mazurok/gapi.client.compute-alpha 0.0.20230425 → 0.0.20230509

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 +213 -32
  2. package/package.json +1 -1
  3. package/readme.md +5 -0
  4. package/tests.ts +296 -1
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: 20230425
12
+ // Revision: 20230509
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -715,6 +715,9 @@ declare namespace gapi.client {
715
715
  */
716
716
  diskType?:
717
717
  string;
718
+ /** Whether this disk is using confidential compute mode. */
719
+ enableConfidentialCompute?:
720
+ boolean;
718
721
  /**
719
722
  * A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
720
723
  * Guest OS features are applied by merging initializeParams.guestOsFeatures and disks.guestOsFeatures
@@ -2506,6 +2509,9 @@ declare namespace gapi.client {
2506
2509
  /** A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together. */
2507
2510
  resources?:
2508
2511
  ResourceCommitment[];
2512
+ /** [Output Only] Status information for Commitment resource. */
2513
+ resourceStatus?:
2514
+ CommitmentResourceStatus;
2509
2515
  /** [Output Only] Server-defined URL for the resource. */
2510
2516
  selfLink?:
2511
2517
  string;
@@ -2622,6 +2628,28 @@ declare namespace gapi.client {
2622
2628
  string;
2623
2629
  };
2624
2630
  }
2631
+ interface CommitmentResourceStatus {
2632
+ /** [Output Only] An optional, contains all the needed information of cancellation. */
2633
+ cancellationInformation?:
2634
+ CommitmentResourceStatusCancellationInformation;
2635
+ }
2636
+ interface CommitmentResourceStatusCancellationInformation {
2637
+ /** [Output Only] An optional, the amount of CUDs canceled so far in the last 365 days. */
2638
+ canceledCommitment?:
2639
+ Money;
2640
+ /** [Output Only] An optional last update time of canceled_commitment. RFC3339 text format. */
2641
+ canceledCommitmentLastUpdatedTimestamp?:
2642
+ string;
2643
+ /** [Output Only] An optional,the cancellation cap for how much commitments can be canceled in a rolling 365 per billing account. */
2644
+ cancellationCap?:
2645
+ Money;
2646
+ /** [Output Only] An optional, cancellation fee. */
2647
+ cancellationFee?:
2648
+ Money;
2649
+ /** [Output Only] An optional, cancellation fee expiration time. RFC3339 text format. */
2650
+ cancellationFeeExpirationTimestamp?:
2651
+ string;
2652
+ }
2625
2653
  interface CommitmentsScopedList {
2626
2654
  /** [Output Only] A list of commitments contained in this scope. */
2627
2655
  commitments?:
@@ -2886,7 +2914,7 @@ declare namespace gapi.client {
2886
2914
  */
2887
2915
  diskEncryptionKey?:
2888
2916
  CustomerEncryptionKey;
2889
- /** Whether this disk is using confidential compute mode. see go/confidential-mode-in-arcus for details. */
2917
+ /** Whether this disk is using confidential compute mode. */
2890
2918
  enableConfidentialCompute?:
2891
2919
  boolean;
2892
2920
  /** Specifies whether the disk restored from a source snapshot should erase Windows specific VSS signature. */
@@ -3273,6 +3301,9 @@ declare namespace gapi.client {
3273
3301
  /** Key: disk, value: AsyncReplicationStatus message */
3274
3302
  asyncSecondaryDisks?:
3275
3303
  { [P in string]: DiskResourceStatusAsyncReplicationStatus };
3304
+ /** [Output Only] Space used by data stored in the disk (in bytes). Note that this field is set only when the disk is in a storage pool. */
3305
+ usedBytes?:
3306
+ string;
3276
3307
  }
3277
3308
  interface DiskResourceStatusAsyncReplicationStatus {
3278
3309
  state?:
@@ -4772,12 +4803,21 @@ declare namespace gapi.client {
4772
4803
  };
4773
4804
  }
4774
4805
  interface FutureReservationStatus {
4806
+ /** The current status of the requested amendment. */
4807
+ amendmentStatus?:
4808
+ string;
4775
4809
  /** Fully qualified urls of the automatically created reservations at start_time. */
4776
4810
  autoCreatedReservations?:
4777
4811
  string[];
4778
4812
  /** This count indicates the fulfilled capacity so far. This is set during "PROVISIONING" state. This count also includes capacity delivered as part of existing matching reservations. */
4779
4813
  fulfilledCount?:
4780
4814
  string;
4815
+ /**
4816
+ * This field represents the future reservation before an amendment was requested. If the amendment is declined, the Future Reservation will be reverted to the last known good state.
4817
+ * The last known good state is not set when updating a future reservation whose Procurement Status is DRAFTING.
4818
+ */
4819
+ lastKnownGoodState?:
4820
+ FutureReservationStatusLastKnownGoodState;
4781
4821
  /**
4782
4822
  * Time when Future Reservation would become LOCKED, after which no modifications to Future Reservation will be allowed. Applicable only after the Future Reservation is in the APPROVED
4783
4823
  * state. The lock_time is an RFC3339 string. The procurement_status will transition to PROCURING state at this time.
@@ -4790,6 +4830,30 @@ declare namespace gapi.client {
4790
4830
  specificSkuProperties?:
4791
4831
  FutureReservationStatusSpecificSKUProperties;
4792
4832
  }
4833
+ interface FutureReservationStatusLastKnownGoodState {
4834
+ /** The description of the FutureReservation before an amendment was requested. */
4835
+ description?:
4836
+ string;
4837
+ futureReservationSpecs?:
4838
+ FutureReservationStatusLastKnownGoodStateFutureReservationSpecs;
4839
+ /** The name prefix of the Future Reservation before an amendment was requested. */
4840
+ namePrefix?:
4841
+ string;
4842
+ /** The status of the last known good state for the Future Reservation. */
4843
+ procurementStatus?:
4844
+ string;
4845
+ }
4846
+ interface FutureReservationStatusLastKnownGoodStateFutureReservationSpecs {
4847
+ /** The previous share settings of the Future Reservation. */
4848
+ shareSettings?:
4849
+ ShareSettings;
4850
+ /** The previous instance related properties of the Future Reservation. */
4851
+ specificSkuProperties?:
4852
+ FutureReservationSpecificSKUProperties;
4853
+ /** The previous time window of the Future Reservation. */
4854
+ timeWindow?:
4855
+ FutureReservationTimeWindow;
4856
+ }
4793
4857
  interface FutureReservationStatusSpecificSKUProperties {
4794
4858
  /** ID of the instance template used to populate the Future Reservation properties. */
4795
4859
  sourceInstanceTemplateId?:
@@ -7054,9 +7118,9 @@ declare namespace gapi.client {
7054
7118
  healthCheck?:
7055
7119
  string;
7056
7120
  /**
7057
- * The number of seconds that the managed instance group waits before it applies autohealing policies to new instances or recently recreated instances. This initial delay allows
7058
- * instances to initialize and run their startup scripts before the instance group determines that they are UNHEALTHY. This prevents the managed instance group from recreating its
7059
- * instances prematurely. This value must be from range [0, 3600].
7121
+ * The initial delay is the number of seconds that a new VM takes to initialize and run its startup script. During a VM's initial delay period, the MIG ignores unsuccessful health
7122
+ * checks because the VM might be in the startup process. This prevents the MIG from prematurely recreating a VM. If the health check receives a healthy response during the initial
7123
+ * delay, it indicates that the startup process is complete and the VM is ready. The value of initial delay must be between 0 and 3600 seconds. The default value is 0.
7060
7124
  */
7061
7125
  initialDelaySec?:
7062
7126
  number;
@@ -9520,7 +9584,7 @@ declare namespace gapi.client {
9520
9584
  * [Output Only] Port pair remote location constraints, which can take one of the following values: PORT_PAIR_UNCONSTRAINED_REMOTE_LOCATION, PORT_PAIR_MATCHING_REMOTE_LOCATION. GCP's
9521
9585
  * API refers only to individual ports, but the UI uses this field when ordering a pair of ports, to prevent users from accidentally ordering something that is incompatible with their
9522
9586
  * cloud provider. Specifically, when ordering a redundant pair of Cross-Cloud Interconnect ports, and one of them uses a remote location with portPairMatchingRemoteLocation set to
9523
- * matching, the UI will require that both ports use the same remote location.
9587
+ * matching, the UI requires that both ports use the same remote location.
9524
9588
  */
9525
9589
  portPairRemoteLocation?:
9526
9590
  string;
@@ -9552,8 +9616,8 @@ declare namespace gapi.client {
9552
9616
  kind?:
9553
9617
  string;
9554
9618
  /**
9555
- * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the
9556
- * query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
9619
+ * [Output Only] This token lets you get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query
9620
+ * parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
9557
9621
  */
9558
9622
  nextPageToken?:
9559
9623
  string;
@@ -10092,7 +10156,7 @@ declare namespace gapi.client {
10092
10156
  /** Number of accelerator cards exposed to the guest. */
10093
10157
  guestAcceleratorCount?:
10094
10158
  number;
10095
- /** The accelerator type resource name, not a full URL, e.g. 'nvidia-tesla-k80'. */
10159
+ /** The accelerator type resource name, not a full URL, e.g. nvidia-tesla-t4. */
10096
10160
  guestAcceleratorType?:
10097
10161
  string;
10098
10162
  }>;
@@ -10434,6 +10498,21 @@ declare namespace gapi.client {
10434
10498
  value?:
10435
10499
  string;
10436
10500
  }
10501
+ interface Money {
10502
+ /** The three-letter currency code defined in ISO 4217. */
10503
+ currencyCode?:
10504
+ string;
10505
+ /**
10506
+ * Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units`
10507
+ * is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and
10508
+ * `nanos`=-750,000,000.
10509
+ */
10510
+ nanos?:
10511
+ number;
10512
+ /** The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. */
10513
+ units?:
10514
+ string;
10515
+ }
10437
10516
  interface MutualTls {
10438
10517
  /**
10439
10518
  * Specifies if the server TLS is configured to be strict or permissive. This field can be set to one of the following: STRICT: Client certificate must be presented, connection is in
@@ -10450,6 +10529,30 @@ declare namespace gapi.client {
10450
10529
  port?:
10451
10530
  number;
10452
10531
  }
10532
+ interface NatIpInfo {
10533
+ /** A list of all NAT IPs assigned to this NAT config. */
10534
+ natIpInfoMappings?:
10535
+ NatIpInfoNatIpInfoMapping[];
10536
+ /** Name of the NAT config which the NAT IP belongs to. */
10537
+ natName?:
10538
+ string;
10539
+ }
10540
+ interface NatIpInfoNatIpInfoMapping {
10541
+ /** Specifies whether NAT IP is auto or manual. */
10542
+ mode?:
10543
+ string;
10544
+ /** NAT IP address. For example: 203.0.113.11. */
10545
+ natIp?:
10546
+ string;
10547
+ /** Specifies whether NAT IP is currently serving at least one endpoint or not. */
10548
+ usage?:
10549
+ string;
10550
+ }
10551
+ interface NatIpInfoResponse {
10552
+ /** [Output Only] A list of NAT IP information. */
10553
+ result?:
10554
+ NatIpInfo[];
10555
+ }
10453
10556
  interface Network {
10454
10557
  /**
10455
10558
  * Must be set to create a VPC network. If not set, a legacy network is created. When set to true, the VPC network is created in auto mode. When set to false, the VPC network is
@@ -10542,10 +10645,7 @@ declare namespace gapi.client {
10542
10645
  /** An optional description of this resource. Provide this property when you create the resource. */
10543
10646
  description?:
10544
10647
  string;
10545
- /**
10546
- * [Output Only] Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. An up-to-date fingerprint must be provided in
10547
- * order to patch.
10548
- */
10648
+ /** Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. An up-to-date fingerprint must be provided in order to patch. */
10549
10649
  fingerprint?:
10550
10650
  string;
10551
10651
  /** [Output Only] The unique identifier for the resource type. The server generates this identifier. */
@@ -15855,8 +15955,8 @@ declare namespace gapi.client {
15855
15955
  /**
15856
15956
  * Specify the Nat option, which can take one of the following values: - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat. -
15857
15957
  * ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP ranges in every Subnetwork are allowed to Nat. - LIST_OF_SUBNETWORKS: A list of Subnetworks are allowed to Nat
15858
- * (specified in the field subnetwork below) The default is SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. Note that if this field contains ALL_SUBNETWORKS_ALL_IP_RANGES or
15859
- * ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES, then there should not be any other Router.Nat section in any Router for this network in this region.
15958
+ * (specified in the field subnetwork below) The default is SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. Note that if this field contains ALL_SUBNETWORKS_ALL_IP_RANGES then there
15959
+ * should not be any other Router.Nat section in any Router for this network in this region.
15860
15960
  */
15861
15961
  sourceSubnetworkIpRangesToNat?:
15862
15962
  string;
@@ -16755,6 +16855,9 @@ declare namespace gapi.client {
16755
16855
  */
16756
16856
  expr?:
16757
16857
  Expr;
16858
+ /** The configuration options available when specifying a user defined CEVAL expression (i.e., 'expr'). */
16859
+ exprOptions?:
16860
+ SecurityPolicyRuleMatcherExprOptions;
16758
16861
  /**
16759
16862
  * Preconfigured versioned expression. If this field is specified, config must also be specified. Available preconfigured expressions along with their requirements are: SRC_IPS_V1 -
16760
16863
  * must specify the corresponding src_ip_range field in config.
@@ -16806,6 +16909,25 @@ declare namespace gapi.client {
16806
16909
  ports?:
16807
16910
  string[];
16808
16911
  }
16912
+ interface SecurityPolicyRuleMatcherExprOptions {
16913
+ /** reCAPTCHA configuration options to be applied for the rule. If the rule does not evaluate reCAPTCHA tokens, this field will have no effect. */
16914
+ recaptchaOptions?:
16915
+ SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions;
16916
+ }
16917
+ interface SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions {
16918
+ /**
16919
+ * A list of site keys to be used during the validation of reCAPTCHA action-tokens. The provided site keys need to be created from reCAPTCHA API under the same project where the
16920
+ * security policy is created.
16921
+ */
16922
+ actionTokenSiteKeys?:
16923
+ string[];
16924
+ /**
16925
+ * A list of site keys to be used during the validation of reCAPTCHA session-tokens. The provided site keys need to be created from reCAPTCHA API under the same project where the
16926
+ * security policy is created.
16927
+ */
16928
+ sessionTokenSiteKeys?:
16929
+ string[];
16930
+ }
16809
16931
  interface SecurityPolicyRuleNetworkMatcher {
16810
16932
  /** Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format. */
16811
16933
  destIpRanges?:
@@ -17031,7 +17153,7 @@ declare namespace gapi.client {
17031
17153
  AWSV4Signature;
17032
17154
  /**
17033
17155
  * Optional. A URL referring to a networksecurity.ClientTlsPolicy resource that describes how clients should authenticate with this service's backends. clientTlsPolicy only applies to
17034
- * a global BackendService with the loadBalancingScheme set to INTERNAL_SELF_MANAGED. If left blank, communications are not encrypted. Note: This field currently has no impact.
17156
+ * a global BackendService with the loadBalancingScheme set to INTERNAL_SELF_MANAGED. If left blank, communications are not encrypted.
17035
17157
  */
17036
17158
  clientTlsPolicy?:
17037
17159
  string;
@@ -17043,8 +17165,7 @@ declare namespace gapi.client {
17043
17165
  * its X.509 certificate to the client, the client inspects the certificate's subjectAltName field. If the field contains one of the specified values, the communication continues.
17044
17166
  * Otherwise, it fails. This additional check enables the client to verify that the server is authorized to run the requested service. Note that the contents of the server
17045
17167
  * certificate's subjectAltName field are configured by the Public Key Infrastructure which provisions server identities. Only applies to a global BackendService with
17046
- * loadBalancingScheme set to INTERNAL_SELF_MANAGED. Only applies when BackendService has an attached clientTlsPolicy with clientCertificate (mTLS mode). Note: This field currently has
17047
- * no impact.
17168
+ * loadBalancingScheme set to INTERNAL_SELF_MANAGED. Only applies when BackendService has an attached clientTlsPolicy with clientCertificate (mTLS mode).
17048
17169
  */
17049
17170
  subjectAltNames?:
17050
17171
  string[];
@@ -17490,6 +17611,9 @@ declare namespace gapi.client {
17490
17611
  /** [Output Only] Number of bytes downloaded to restore a snapshot to a disk. */
17491
17612
  downloadBytes?:
17492
17613
  string;
17614
+ /** Whether this snapshot is created from a confidential compute mode disk. [Output Only]: This field is not set by user, but from source disk. */
17615
+ enableConfidentialCompute?:
17616
+ boolean;
17493
17617
  /** [Input Only] Whether to attempt an application consistent snapshot by informing the OS to prepare for the snapshot process. */
17494
17618
  guestFlush?:
17495
17619
  boolean;
@@ -18457,7 +18581,7 @@ declare namespace gapi.client {
18457
18581
  string;
18458
18582
  /**
18459
18583
  * Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org
18460
- * policy, if there is no org policy specified, then it will default to disabled. This field isn't supported with the purpose field set to INTERNAL_HTTPS_LOAD_BALANCER.
18584
+ * policy, if there is no org policy specified, then it will default to disabled. This field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
18461
18585
  */
18462
18586
  enableFlowLogs?:
18463
18587
  boolean;
@@ -18541,9 +18665,12 @@ declare namespace gapi.client {
18541
18665
  privateIpv6GoogleAccess?:
18542
18666
  string;
18543
18667
  /**
18544
- * The purpose of the resource. This field can be either PRIVATE_RFC_1918 or INTERNAL_HTTPS_LOAD_BALANCER. A subnetwork with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a
18545
- * user-created subnetwork that is reserved for Internal HTTP(S) Load Balancing. If unspecified, the purpose defaults to PRIVATE_RFC_1918. The enableFlowLogs field isn't supported with
18546
- * the purpose field set to INTERNAL_HTTPS_LOAD_BALANCER.
18668
+ * The purpose of the resource. This field can be either PRIVATE, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or INTERNAL_HTTPS_LOAD_BALANCER. PRIVATE is the default purpose for
18669
+ * user-created subnets or subnets that are automatically created in auto mode networks. A subnet with purpose set to REGIONAL_MANAGED_PROXY is a user-created subnetwork that is
18670
+ * reserved for regional Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with
18671
+ * purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a proxy-only subnet that can be used only by regional internal HTTP(S) load balancers. Note that REGIONAL_MANAGED_PROXY is the
18672
+ * preferred setting for all regional Envoy load balancers. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field
18673
+ * is set to REGIONAL_MANAGED_PROXY.
18547
18674
  */
18548
18675
  purpose?:
18549
18676
  string;
@@ -18554,9 +18681,9 @@ declare namespace gapi.client {
18554
18681
  reservedInternalRange?:
18555
18682
  string;
18556
18683
  /**
18557
- * The role of subnetwork. Currently, this field is only used when purpose = INTERNAL_HTTPS_LOAD_BALANCER. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is
18558
- * currently being used for Internal HTTP(S) Load Balancing. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with
18559
- * a patch request.
18684
+ * The role of subnetwork. Currently, this field is only used when purpose = REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is
18685
+ * currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be
18686
+ * updated with a patch request.
18560
18687
  */
18561
18688
  role?:
18562
18689
  string;
@@ -18692,7 +18819,7 @@ declare namespace gapi.client {
18692
18819
  string;
18693
18820
  /**
18694
18821
  * Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org
18695
- * policy, if there is no org policy specified, then it will default to disabled.
18822
+ * policy, if there is no org policy specified, then it will default to disabled. Flow logging isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
18696
18823
  */
18697
18824
  enable?:
18698
18825
  boolean;
@@ -20665,16 +20792,19 @@ declare namespace gapi.client {
20665
20792
  network?:
20666
20793
  string;
20667
20794
  /**
20668
- * The purpose of the resource. This field can be either PRIVATE_RFC_1918 or INTERNAL_HTTPS_LOAD_BALANCER. A subnetwork with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a
20669
- * user-created subnetwork that is reserved for Internal HTTP(S) Load Balancing. If unspecified, the purpose defaults to PRIVATE_RFC_1918. The enableFlowLogs field isn't supported with
20670
- * the purpose field set to INTERNAL_HTTPS_LOAD_BALANCER.
20795
+ * The purpose of the resource. This field can be either PRIVATE, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or INTERNAL_HTTPS_LOAD_BALANCER. PRIVATE is the default purpose for
20796
+ * user-created subnets or subnets that are automatically created in auto mode networks. A subnet with purpose set to REGIONAL_MANAGED_PROXY is a user-created subnetwork that is
20797
+ * reserved for regional Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with
20798
+ * purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a proxy-only subnet that can be used only by regional internal HTTP(S) load balancers. Note that REGIONAL_MANAGED_PROXY is the
20799
+ * preferred setting for all regional Envoy load balancers. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field
20800
+ * is set to REGIONAL_MANAGED_PROXY.
20671
20801
  */
20672
20802
  purpose?:
20673
20803
  string;
20674
20804
  /**
20675
- * The role of subnetwork. Currently, this field is only used when purpose = INTERNAL_HTTPS_LOAD_BALANCER. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is
20676
- * currently being used for Internal HTTP(S) Load Balancing. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with
20677
- * a patch request.
20805
+ * The role of subnetwork. Currently, this field is only used when purpose = REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is
20806
+ * currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be
20807
+ * updated with a patch request.
20678
20808
  */
20679
20809
  role?:
20680
20810
  string;
@@ -76273,6 +76403,57 @@ declare namespace gapi.client {
76273
76403
  userIp?:
76274
76404
  string;
76275
76405
  }): Request<Router>;
76406
+ /** Retrieves runtime NAT IP information. */
76407
+ getNatIpInfo(request?: {
76408
+ /** V1 error format. */
76409
+ "$.xgafv"?:
76410
+ string;
76411
+ /** OAuth access token. */
76412
+ access_token?:
76413
+ string;
76414
+ /** Data format for response. */
76415
+ alt?:
76416
+ string;
76417
+ /** JSONP */
76418
+ callback?:
76419
+ string;
76420
+ /** Selector specifying which fields to include in a partial response. */
76421
+ fields?:
76422
+ string;
76423
+ /** 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. */
76424
+ key?:
76425
+ string;
76426
+ /** Name of the nat service to filter the NAT IP information. If it is omitted, all nats for this router will be returned. Name should conform to RFC1035. */
76427
+ natName?:
76428
+ string;
76429
+ /** OAuth 2.0 token for the current user. */
76430
+ oauth_token?:
76431
+ string;
76432
+ /** Returns response with indentations and line breaks. */
76433
+ prettyPrint?:
76434
+ boolean;
76435
+ /** Project ID for this request. */
76436
+ project:
76437
+ string;
76438
+ /** 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. */
76439
+ quotaUser?:
76440
+ string;
76441
+ /** Name of the region for this request. */
76442
+ region:
76443
+ string;
76444
+ /** Name of the Router resource to query for Nat IP information. The name should conform to RFC1035. */
76445
+ router:
76446
+ string;
76447
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
76448
+ upload_protocol?:
76449
+ string;
76450
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
76451
+ uploadType?:
76452
+ string;
76453
+ /** Legacy name for parameter that has been superseded by `quotaUser`. */
76454
+ userIp?:
76455
+ string;
76456
+ }): Request<NatIpInfoResponse>;
76276
76457
  /** Retrieves runtime Nat mapping information of VM endpoints. */
76277
76458
  getNatMappingInfo(request?: {
76278
76459
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.compute-alpha",
3
- "version": "0.0.20230425",
3
+ "version": "0.0.20230509",
4
4
  "description": "TypeScript typings for Compute Engine API alpha",
5
5
  "license": "MIT",
6
6
  "author": {
package/readme.md CHANGED
@@ -3521,6 +3521,11 @@ Returns the specified Router resource.
3521
3521
  */
3522
3522
  await gapi.client.compute.routers.get({ project: "project", region: "region", router: "router", });
3523
3523
 
3524
+ /*
3525
+ Retrieves runtime NAT IP information.
3526
+ */
3527
+ await gapi.client.compute.routers.getNatIpInfo({ project: "project", region: "region", router: "router", });
3528
+
3524
3529
  /*
3525
3530
  Retrieves runtime Nat mapping information of VM endpoints.
3526
3531
  */
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: 20230425
6
+ // Revision: 20230509
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -2290,6 +2290,7 @@ gapi.load('client', async () => {
2290
2290
  description: "Test string",
2291
2291
  diskSizeGb: "Test string",
2292
2292
  downloadBytes: "Test string",
2293
+ enableConfidentialCompute: true,
2293
2294
  guestFlush: true,
2294
2295
  guestOsFeatures: [
2295
2296
  {
@@ -2456,6 +2457,7 @@ gapi.load('client', async () => {
2456
2457
  state: "Test string",
2457
2458
  }
2458
2459
  },
2460
+ usedBytes: "Test string",
2459
2461
  },
2460
2462
  satisfiesPzs: true,
2461
2463
  selfLink: "Test string",
@@ -2773,6 +2775,7 @@ gapi.load('client', async () => {
2773
2775
  state: "Test string",
2774
2776
  }
2775
2777
  },
2778
+ usedBytes: "Test string",
2776
2779
  },
2777
2780
  satisfiesPzs: true,
2778
2781
  selfLink: "Test string",
@@ -3932,10 +3935,65 @@ gapi.load('client', async () => {
3932
3935
  totalCount: "Test string",
3933
3936
  },
3934
3937
  status: {
3938
+ amendmentStatus: "Test string",
3935
3939
  autoCreatedReservations: [
3936
3940
  "Test string"
3937
3941
  ],
3938
3942
  fulfilledCount: "Test string",
3943
+ lastKnownGoodState: {
3944
+ description: "Test string",
3945
+ futureReservationSpecs: {
3946
+ shareSettings: {
3947
+ folderMap: {
3948
+ A: {
3949
+ folderId: "Test string",
3950
+ }
3951
+ },
3952
+ projectMap: {
3953
+ A: {
3954
+ projectId: "Test string",
3955
+ }
3956
+ },
3957
+ projects: [
3958
+ "Test string"
3959
+ ],
3960
+ shareType: "Test string",
3961
+ },
3962
+ specificSkuProperties: {
3963
+ instanceProperties: {
3964
+ guestAccelerators: [
3965
+ {
3966
+ acceleratorCount: 42,
3967
+ acceleratorType: "Test string",
3968
+ }
3969
+ ],
3970
+ localSsds: [
3971
+ {
3972
+ diskSizeGb: "Test string",
3973
+ interface: "Test string",
3974
+ }
3975
+ ],
3976
+ locationHint: "Test string",
3977
+ machineType: "Test string",
3978
+ maintenanceFreezeDurationHours: 42,
3979
+ maintenanceInterval: "Test string",
3980
+ minCpuPlatform: "Test string",
3981
+ },
3982
+ sourceInstanceTemplate: "Test string",
3983
+ totalCount: "Test string",
3984
+ },
3985
+ timeWindow: {
3986
+ duration: {
3987
+ nanos: 42,
3988
+ seconds: "Test string",
3989
+ },
3990
+ endTime: "Test string",
3991
+ startTime: "Test string",
3992
+ },
3993
+ },
3994
+ namePrefix: "Test string",
3995
+ procurementStatus: "Test string",
3996
+ },
3939
3997
  lockTime: "Test string",
3940
3998
  procurementStatus: "Test string",
3941
3999
  specificSkuProperties: {
@@ -4020,10 +4078,65 @@ gapi.load('client', async () => {
4020
4078
  totalCount: "Test string",
4021
4079
  },
4022
4080
  status: {
4081
+ amendmentStatus: "Test string",
4023
4082
  autoCreatedReservations: [
4024
4083
  "Test string"
4025
4084
  ],
4026
4085
  fulfilledCount: "Test string",
4086
+ lastKnownGoodState: {
4087
+ description: "Test string",
4088
+ futureReservationSpecs: {
4089
+ shareSettings: {
4090
+ folderMap: {
4091
+ A: {
4092
+ folderId: "Test string",
4093
+ }
4094
+ },
4095
+ projectMap: {
4096
+ A: {
4097
+ projectId: "Test string",
4098
+ }
4099
+ },
4100
+ projects: [
4101
+ "Test string"
4102
+ ],
4103
+ shareType: "Test string",
4104
+ },
4105
+ specificSkuProperties: {
4106
+ instanceProperties: {
4107
+ guestAccelerators: [
4108
+ {
4109
+ acceleratorCount: 42,
4110
+ acceleratorType: "Test string",
4111
+ }
4112
+ ],
4113
+ localSsds: [
4114
+ {
4115
+ diskSizeGb: "Test string",
4116
+ interface: "Test string",
4117
+ }
4118
+ ],
4119
+ locationHint: "Test string",
4120
+ machineType: "Test string",
4121
+ maintenanceFreezeDurationHours: 42,
4122
+ maintenanceInterval: "Test string",
4123
+ minCpuPlatform: "Test string",
4124
+ },
4125
+ sourceInstanceTemplate: "Test string",
4126
+ totalCount: "Test string",
4127
+ },
4128
+ timeWindow: {
4129
+ duration: {
4130
+ nanos: 42,
4131
+ seconds: "Test string",
4132
+ },
4133
+ endTime: "Test string",
4134
+ startTime: "Test string",
4135
+ },
4136
+ },
4137
+ namePrefix: "Test string",
4138
+ procurementStatus: "Test string",
4139
+ },
4027
4140
  lockTime: "Test string",
4028
4141
  procurementStatus: "Test string",
4029
4142
  specificSkuProperties: {
@@ -6803,6 +6916,7 @@ gapi.load('client', async () => {
6803
6916
  diskName: "Test string",
6804
6917
  diskSizeGb: "Test string",
6805
6918
  diskType: "Test string",
6919
+ enableConfidentialCompute: true,
6806
6920
  guestOsFeatures: [
6807
6921
  {
6808
6922
  type: "Test string",
@@ -6937,6 +7051,7 @@ gapi.load('client', async () => {
6937
7051
  diskName: "Test string",
6938
7052
  diskSizeGb: "Test string",
6939
7053
  diskType: "Test string",
7054
+ enableConfidentialCompute: true,
6940
7055
  guestOsFeatures: [
6941
7056
  {
6942
7057
  type: "Test string",
@@ -7355,6 +7470,7 @@ gapi.load('client', async () => {
7355
7470
  diskName: "Test string",
7356
7471
  diskSizeGb: "Test string",
7357
7472
  diskType: "Test string",
7473
+ enableConfidentialCompute: true,
7358
7474
  guestOsFeatures: [
7359
7475
  {
7360
7476
  type: "Test string",
@@ -8202,6 +8318,7 @@ gapi.load('client', async () => {
8202
8318
  diskName: "Test string",
8203
8319
  diskSizeGb: "Test string",
8204
8320
  diskType: "Test string",
8321
+ enableConfidentialCompute: true,
8205
8322
  guestOsFeatures: [
8206
8323
  {
8207
8324
  type: "Test string",
@@ -8775,6 +8892,7 @@ gapi.load('client', async () => {
8775
8892
  diskName: "Test string",
8776
8893
  diskSizeGb: "Test string",
8777
8894
  diskType: "Test string",
8895
+ enableConfidentialCompute: true,
8778
8896
  guestOsFeatures: [
8779
8897
  {
8780
8898
  type: "Test string",
@@ -10449,6 +10567,7 @@ gapi.load('client', async () => {
10449
10567
  diskName: "Test string",
10450
10568
  diskSizeGb: "Test string",
10451
10569
  diskType: "Test string",
10570
+ enableConfidentialCompute: true,
10452
10571
  guestOsFeatures: [
10453
10572
  {
10454
10573
  type: "Test string",
@@ -12936,6 +13055,16 @@ gapi.load('client', async () => {
12936
13055
  location: "Test string",
12937
13056
  title: "Test string",
12938
13057
  },
13058
+ exprOptions: {
13059
+ recaptchaOptions: {
13060
+ actionTokenSiteKeys: [
13061
+ "Test string"
13062
+ ],
13063
+ sessionTokenSiteKeys: [
13064
+ "Test string"
13065
+ ],
13066
+ },
13067
+ },
12939
13068
  versionedExpr: "Test string",
12940
13069
  },
12941
13070
  networkMatch: {
@@ -13179,6 +13308,16 @@ gapi.load('client', async () => {
13179
13308
  location: "Test string",
13180
13309
  title: "Test string",
13181
13310
  },
13311
+ exprOptions: {
13312
+ recaptchaOptions: {
13313
+ actionTokenSiteKeys: [
13314
+ "Test string"
13315
+ ],
13316
+ sessionTokenSiteKeys: [
13317
+ "Test string"
13318
+ ],
13319
+ },
13320
+ },
13182
13321
  versionedExpr: "Test string",
13183
13322
  },
13184
13323
  networkMatch: {
@@ -13431,6 +13570,16 @@ gapi.load('client', async () => {
13431
13570
  location: "Test string",
13432
13571
  title: "Test string",
13433
13572
  },
13573
+ exprOptions: {
13574
+ recaptchaOptions: {
13575
+ actionTokenSiteKeys: [
13576
+ "Test string"
13577
+ ],
13578
+ sessionTokenSiteKeys: [
13579
+ "Test string"
13580
+ ],
13581
+ },
13582
+ },
13434
13583
  versionedExpr: "Test string",
13435
13584
  },
13436
13585
  networkMatch: {
@@ -13609,6 +13758,16 @@ gapi.load('client', async () => {
13609
13758
  location: "Test string",
13610
13759
  title: "Test string",
13611
13760
  },
13761
+ exprOptions: {
13762
+ recaptchaOptions: {
13763
+ actionTokenSiteKeys: [
13764
+ "Test string"
13765
+ ],
13766
+ sessionTokenSiteKeys: [
13767
+ "Test string"
13768
+ ],
13769
+ },
13770
+ },
13612
13771
  versionedExpr: "Test string",
13613
13772
  },
13614
13773
  networkMatch: {
@@ -16054,6 +16213,27 @@ gapi.load('client', async () => {
16054
16213
  type: "Test string",
16055
16214
  }
16056
16215
  ],
16216
+ resourceStatus: {
16217
+ cancellationInformation: {
16218
+ canceledCommitment: {
16219
+ currencyCode: "Test string",
16220
+ nanos: 42,
16221
+ units: "Test string",
16222
+ },
16223
+ canceledCommitmentLastUpdatedTimestamp: "Test string",
16224
+ cancellationCap: {
16225
+ currencyCode: "Test string",
16226
+ nanos: 42,
16227
+ units: "Test string",
16228
+ },
16229
+ cancellationFee: {
16230
+ currencyCode: "Test string",
16231
+ nanos: 42,
16232
+ units: "Test string",
16233
+ },
16234
+ cancellationFeeExpirationTimestamp: "Test string",
16235
+ },
16236
+ },
16057
16237
  selfLink: "Test string",
16058
16238
  selfLinkWithId: "Test string",
16059
16239
  splitSourceCommitment: "Test string",
@@ -16203,6 +16383,27 @@ gapi.load('client', async () => {
16203
16383
  type: "Test string",
16204
16384
  }
16205
16385
  ],
16386
+ resourceStatus: {
16387
+ cancellationInformation: {
16388
+ canceledCommitment: {
16389
+ currencyCode: "Test string",
16390
+ nanos: 42,
16391
+ units: "Test string",
16392
+ },
16393
+ canceledCommitmentLastUpdatedTimestamp: "Test string",
16394
+ cancellationCap: {
16395
+ currencyCode: "Test string",
16396
+ nanos: 42,
16397
+ units: "Test string",
16398
+ },
16399
+ cancellationFee: {
16400
+ currencyCode: "Test string",
16401
+ nanos: 42,
16402
+ units: "Test string",
16403
+ },
16404
+ cancellationFeeExpirationTimestamp: "Test string",
16405
+ },
16406
+ },
16206
16407
  selfLink: "Test string",
16207
16408
  selfLinkWithId: "Test string",
16208
16409
  splitSourceCommitment: "Test string",
@@ -16341,6 +16542,7 @@ gapi.load('client', async () => {
16341
16542
  description: "Test string",
16342
16543
  diskSizeGb: "Test string",
16343
16544
  downloadBytes: "Test string",
16545
+ enableConfidentialCompute: true,
16344
16546
  guestFlush: true,
16345
16547
  guestOsFeatures: [
16346
16548
  {
@@ -16504,6 +16706,7 @@ gapi.load('client', async () => {
16504
16706
  state: "Test string",
16505
16707
  }
16506
16708
  },
16709
+ usedBytes: "Test string",
16507
16710
  },
16508
16711
  satisfiesPzs: true,
16509
16712
  selfLink: "Test string",
@@ -16821,6 +17024,7 @@ gapi.load('client', async () => {
16821
17024
  state: "Test string",
16822
17025
  }
16823
17026
  },
17027
+ usedBytes: "Test string",
16824
17028
  },
16825
17029
  satisfiesPzs: true,
16826
17030
  selfLink: "Test string",
@@ -18342,6 +18546,7 @@ gapi.load('client', async () => {
18342
18546
  diskName: "Test string",
18343
18547
  diskSizeGb: "Test string",
18344
18548
  diskType: "Test string",
18549
+ enableConfidentialCompute: true,
18345
18550
  guestOsFeatures: [
18346
18551
  {
18347
18552
  type: "Test string",
@@ -18696,6 +18901,7 @@ gapi.load('client', async () => {
18696
18901
  diskName: "Test string",
18697
18902
  diskSizeGb: "Test string",
18698
18903
  diskType: "Test string",
18904
+ enableConfidentialCompute: true,
18699
18905
  guestOsFeatures: [
18700
18906
  {
18701
18907
  type: "Test string",
@@ -20092,6 +20298,16 @@ gapi.load('client', async () => {
20092
20298
  location: "Test string",
20093
20299
  title: "Test string",
20094
20300
  },
20301
+ exprOptions: {
20302
+ recaptchaOptions: {
20303
+ actionTokenSiteKeys: [
20304
+ "Test string"
20305
+ ],
20306
+ sessionTokenSiteKeys: [
20307
+ "Test string"
20308
+ ],
20309
+ },
20310
+ },
20095
20311
  versionedExpr: "Test string",
20096
20312
  },
20097
20313
  networkMatch: {
@@ -20332,6 +20548,16 @@ gapi.load('client', async () => {
20332
20548
  location: "Test string",
20333
20549
  title: "Test string",
20334
20550
  },
20551
+ exprOptions: {
20552
+ recaptchaOptions: {
20553
+ actionTokenSiteKeys: [
20554
+ "Test string"
20555
+ ],
20556
+ sessionTokenSiteKeys: [
20557
+ "Test string"
20558
+ ],
20559
+ },
20560
+ },
20335
20561
  versionedExpr: "Test string",
20336
20562
  },
20337
20563
  networkMatch: {
@@ -20582,6 +20808,16 @@ gapi.load('client', async () => {
20582
20808
  location: "Test string",
20583
20809
  title: "Test string",
20584
20810
  },
20811
+ exprOptions: {
20812
+ recaptchaOptions: {
20813
+ actionTokenSiteKeys: [
20814
+ "Test string"
20815
+ ],
20816
+ sessionTokenSiteKeys: [
20817
+ "Test string"
20818
+ ],
20819
+ },
20820
+ },
20585
20821
  versionedExpr: "Test string",
20586
20822
  },
20587
20823
  networkMatch: {
@@ -20763,6 +20999,16 @@ gapi.load('client', async () => {
20763
20999
  location: "Test string",
20764
21000
  title: "Test string",
20765
21001
  },
21002
+ exprOptions: {
21003
+ recaptchaOptions: {
21004
+ actionTokenSiteKeys: [
21005
+ "Test string"
21006
+ ],
21007
+ sessionTokenSiteKeys: [
21008
+ "Test string"
21009
+ ],
21010
+ },
21011
+ },
20766
21012
  versionedExpr: "Test string",
20767
21013
  },
20768
21014
  networkMatch: {
@@ -24680,6 +24926,13 @@ gapi.load('client', async () => {
24680
24926
  region: "Test string",
24681
24927
  router: "Test string",
24682
24928
  });
24929
+ /** Retrieves runtime NAT IP information. */
24930
+ await gapi.client.compute.routers.getNatIpInfo({
24931
+ natName: "Test string",
24932
+ project: "Test string",
24933
+ region: "Test string",
24934
+ router: "Test string",
24935
+ });
24683
24936
  /** Retrieves runtime Nat mapping information of VM endpoints. */
24684
24937
  await gapi.client.compute.routers.getNatMappingInfo({
24685
24938
  filter: "Test string",
@@ -25470,6 +25723,16 @@ gapi.load('client', async () => {
25470
25723
  location: "Test string",
25471
25724
  title: "Test string",
25472
25725
  },
25726
+ exprOptions: {
25727
+ recaptchaOptions: {
25728
+ actionTokenSiteKeys: [
25729
+ "Test string"
25730
+ ],
25731
+ sessionTokenSiteKeys: [
25732
+ "Test string"
25733
+ ],
25734
+ },
25735
+ },
25473
25736
  versionedExpr: "Test string",
25474
25737
  },
25475
25738
  networkMatch: {
@@ -25716,6 +25979,16 @@ gapi.load('client', async () => {
25716
25979
  location: "Test string",
25717
25980
  title: "Test string",
25718
25981
  },
25982
+ exprOptions: {
25983
+ recaptchaOptions: {
25984
+ actionTokenSiteKeys: [
25985
+ "Test string"
25986
+ ],
25987
+ sessionTokenSiteKeys: [
25988
+ "Test string"
25989
+ ],
25990
+ },
25991
+ },
25719
25992
  versionedExpr: "Test string",
25720
25993
  },
25721
25994
  networkMatch: {
@@ -25973,6 +26246,16 @@ gapi.load('client', async () => {
25973
26246
  location: "Test string",
25974
26247
  title: "Test string",
25975
26248
  },
26249
+ exprOptions: {
26250
+ recaptchaOptions: {
26251
+ actionTokenSiteKeys: [
26252
+ "Test string"
26253
+ ],
26254
+ sessionTokenSiteKeys: [
26255
+ "Test string"
26256
+ ],
26257
+ },
26258
+ },
25976
26259
  versionedExpr: "Test string",
25977
26260
  },
25978
26261
  networkMatch: {
@@ -26153,6 +26436,16 @@ gapi.load('client', async () => {
26153
26436
  location: "Test string",
26154
26437
  title: "Test string",
26155
26438
  },
26439
+ exprOptions: {
26440
+ recaptchaOptions: {
26441
+ actionTokenSiteKeys: [
26442
+ "Test string"
26443
+ ],
26444
+ sessionTokenSiteKeys: [
26445
+ "Test string"
26446
+ ],
26447
+ },
26448
+ },
26156
26449
  versionedExpr: "Test string",
26157
26450
  },
26158
26451
  networkMatch: {
@@ -26580,6 +26873,7 @@ gapi.load('client', async () => {
26580
26873
  description: "Test string",
26581
26874
  diskSizeGb: "Test string",
26582
26875
  downloadBytes: "Test string",
26876
+ enableConfidentialCompute: true,
26583
26877
  guestFlush: true,
26584
26878
  guestOsFeatures: [
26585
26879
  {
@@ -31234,6 +31528,7 @@ gapi.load('client', async () => {
31234
31528
  diskName: "Test string",
31235
31529
  diskSizeGb: "Test string",
31236
31530
  diskType: "Test string",
31531
+ enableConfidentialCompute: true,
31237
31532
  guestOsFeatures: [
31238
31533
  {
31239
31534
  type: "Test string",