@maxim_mazurok/gapi.client.compute-alpha 0.0.20230502 → 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 (3) hide show
  1. package/index.d.ts +74 -13
  2. package/package.json +1 -1
  3. package/tests.ts +167 -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: 20230502
12
+ // Revision: 20230509
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -715,7 +715,7 @@ declare namespace gapi.client {
715
715
  */
716
716
  diskType?:
717
717
  string;
718
- /** Whether this disk is using confidential compute mode. see go/confidential-mode-in-arcus for details. */
718
+ /** Whether this disk is using confidential compute mode. */
719
719
  enableConfidentialCompute?:
720
720
  boolean;
721
721
  /**
@@ -2509,6 +2509,9 @@ declare namespace gapi.client {
2509
2509
  /** A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together. */
2510
2510
  resources?:
2511
2511
  ResourceCommitment[];
2512
+ /** [Output Only] Status information for Commitment resource. */
2513
+ resourceStatus?:
2514
+ CommitmentResourceStatus;
2512
2515
  /** [Output Only] Server-defined URL for the resource. */
2513
2516
  selfLink?:
2514
2517
  string;
@@ -2625,6 +2628,28 @@ declare namespace gapi.client {
2625
2628
  string;
2626
2629
  };
2627
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
+ }
2628
2653
  interface CommitmentsScopedList {
2629
2654
  /** [Output Only] A list of commitments contained in this scope. */
2630
2655
  commitments?:
@@ -2889,7 +2914,7 @@ declare namespace gapi.client {
2889
2914
  */
2890
2915
  diskEncryptionKey?:
2891
2916
  CustomerEncryptionKey;
2892
- /** 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. */
2893
2918
  enableConfidentialCompute?:
2894
2919
  boolean;
2895
2920
  /** Specifies whether the disk restored from a source snapshot should erase Windows specific VSS signature. */
@@ -3276,6 +3301,9 @@ declare namespace gapi.client {
3276
3301
  /** Key: disk, value: AsyncReplicationStatus message */
3277
3302
  asyncSecondaryDisks?:
3278
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;
3279
3307
  }
3280
3308
  interface DiskResourceStatusAsyncReplicationStatus {
3281
3309
  state?:
@@ -7090,9 +7118,9 @@ declare namespace gapi.client {
7090
7118
  healthCheck?:
7091
7119
  string;
7092
7120
  /**
7093
- * 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
7094
- * 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
7095
- * 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.
7096
7124
  */
7097
7125
  initialDelaySec?:
7098
7126
  number;
@@ -10470,6 +10498,21 @@ declare namespace gapi.client {
10470
10498
  value?:
10471
10499
  string;
10472
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
+ }
10473
10516
  interface MutualTls {
10474
10517
  /**
10475
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
@@ -16812,6 +16855,9 @@ declare namespace gapi.client {
16812
16855
  */
16813
16856
  expr?:
16814
16857
  Expr;
16858
+ /** The configuration options available when specifying a user defined CEVAL expression (i.e., 'expr'). */
16859
+ exprOptions?:
16860
+ SecurityPolicyRuleMatcherExprOptions;
16815
16861
  /**
16816
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 -
16817
16863
  * must specify the corresponding src_ip_range field in config.
@@ -16863,6 +16909,25 @@ declare namespace gapi.client {
16863
16909
  ports?:
16864
16910
  string[];
16865
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
+ }
16866
16931
  interface SecurityPolicyRuleNetworkMatcher {
16867
16932
  /** Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format. */
16868
16933
  destIpRanges?:
@@ -17088,7 +17153,7 @@ declare namespace gapi.client {
17088
17153
  AWSV4Signature;
17089
17154
  /**
17090
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
17091
- * 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.
17092
17157
  */
17093
17158
  clientTlsPolicy?:
17094
17159
  string;
@@ -17100,8 +17165,7 @@ declare namespace gapi.client {
17100
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.
17101
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
17102
17167
  * certificate's subjectAltName field are configured by the Public Key Infrastructure which provisions server identities. Only applies to a global BackendService with
17103
- * loadBalancingScheme set to INTERNAL_SELF_MANAGED. Only applies when BackendService has an attached clientTlsPolicy with clientCertificate (mTLS mode). Note: This field currently has
17104
- * no impact.
17168
+ * loadBalancingScheme set to INTERNAL_SELF_MANAGED. Only applies when BackendService has an attached clientTlsPolicy with clientCertificate (mTLS mode).
17105
17169
  */
17106
17170
  subjectAltNames?:
17107
17171
  string[];
@@ -17547,10 +17611,7 @@ declare namespace gapi.client {
17547
17611
  /** [Output Only] Number of bytes downloaded to restore a snapshot to a disk. */
17548
17612
  downloadBytes?:
17549
17613
  string;
17550
- /**
17551
- * Whether this snapshot is created from a confidential compute mode disk. see go/confidential-mode-in-arcus for details. [Output Only]: This field is not set by user, but from source
17552
- * disk.
17553
- */
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. */
17554
17615
  enableConfidentialCompute?:
17555
17616
  boolean;
17556
17617
  /** [Input Only] Whether to attempt an application consistent snapshot by informing the OS to prepare for the snapshot process. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.compute-alpha",
3
- "version": "0.0.20230502",
3
+ "version": "0.0.20230509",
4
4
  "description": "TypeScript typings for Compute Engine API alpha",
5
5
  "license": "MIT",
6
6
  "author": {
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: 20230502
6
+ // Revision: 20230509
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -2457,6 +2457,7 @@ gapi.load('client', async () => {
2457
2457
  state: "Test string",
2458
2458
  }
2459
2459
  },
2460
+ usedBytes: "Test string",
2460
2461
  },
2461
2462
  satisfiesPzs: true,
2462
2463
  selfLink: "Test string",
@@ -2774,6 +2775,7 @@ gapi.load('client', async () => {
2774
2775
  state: "Test string",
2775
2776
  }
2776
2777
  },
2778
+ usedBytes: "Test string",
2777
2779
  },
2778
2780
  satisfiesPzs: true,
2779
2781
  selfLink: "Test string",
@@ -13053,6 +13055,16 @@ gapi.load('client', async () => {
13053
13055
  location: "Test string",
13054
13056
  title: "Test string",
13055
13057
  },
13058
+ exprOptions: {
13059
+ recaptchaOptions: {
13060
+ actionTokenSiteKeys: [
13061
+ "Test string"
13062
+ ],
13063
+ sessionTokenSiteKeys: [
13064
+ "Test string"
13065
+ ],
13066
+ },
13067
+ },
13056
13068
  versionedExpr: "Test string",
13057
13069
  },
13058
13070
  networkMatch: {
@@ -13296,6 +13308,16 @@ gapi.load('client', async () => {
13296
13308
  location: "Test string",
13297
13309
  title: "Test string",
13298
13310
  },
13311
+ exprOptions: {
13312
+ recaptchaOptions: {
13313
+ actionTokenSiteKeys: [
13314
+ "Test string"
13315
+ ],
13316
+ sessionTokenSiteKeys: [
13317
+ "Test string"
13318
+ ],
13319
+ },
13320
+ },
13299
13321
  versionedExpr: "Test string",
13300
13322
  },
13301
13323
  networkMatch: {
@@ -13548,6 +13570,16 @@ gapi.load('client', async () => {
13548
13570
  location: "Test string",
13549
13571
  title: "Test string",
13550
13572
  },
13573
+ exprOptions: {
13574
+ recaptchaOptions: {
13575
+ actionTokenSiteKeys: [
13576
+ "Test string"
13577
+ ],
13578
+ sessionTokenSiteKeys: [
13579
+ "Test string"
13580
+ ],
13581
+ },
13582
+ },
13551
13583
  versionedExpr: "Test string",
13552
13584
  },
13553
13585
  networkMatch: {
@@ -13726,6 +13758,16 @@ gapi.load('client', async () => {
13726
13758
  location: "Test string",
13727
13759
  title: "Test string",
13728
13760
  },
13761
+ exprOptions: {
13762
+ recaptchaOptions: {
13763
+ actionTokenSiteKeys: [
13764
+ "Test string"
13765
+ ],
13766
+ sessionTokenSiteKeys: [
13767
+ "Test string"
13768
+ ],
13769
+ },
13770
+ },
13729
13771
  versionedExpr: "Test string",
13730
13772
  },
13731
13773
  networkMatch: {
@@ -16171,6 +16213,27 @@ gapi.load('client', async () => {
16171
16213
  type: "Test string",
16172
16214
  }
16173
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
+ },
16174
16237
  selfLink: "Test string",
16175
16238
  selfLinkWithId: "Test string",
16176
16239
  splitSourceCommitment: "Test string",
@@ -16320,6 +16383,27 @@ gapi.load('client', async () => {
16320
16383
  type: "Test string",
16321
16384
  }
16322
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
+ },
16323
16407
  selfLink: "Test string",
16324
16408
  selfLinkWithId: "Test string",
16325
16409
  splitSourceCommitment: "Test string",
@@ -16622,6 +16706,7 @@ gapi.load('client', async () => {
16622
16706
  state: "Test string",
16623
16707
  }
16624
16708
  },
16709
+ usedBytes: "Test string",
16625
16710
  },
16626
16711
  satisfiesPzs: true,
16627
16712
  selfLink: "Test string",
@@ -16939,6 +17024,7 @@ gapi.load('client', async () => {
16939
17024
  state: "Test string",
16940
17025
  }
16941
17026
  },
17027
+ usedBytes: "Test string",
16942
17028
  },
16943
17029
  satisfiesPzs: true,
16944
17030
  selfLink: "Test string",
@@ -20212,6 +20298,16 @@ gapi.load('client', async () => {
20212
20298
  location: "Test string",
20213
20299
  title: "Test string",
20214
20300
  },
20301
+ exprOptions: {
20302
+ recaptchaOptions: {
20303
+ actionTokenSiteKeys: [
20304
+ "Test string"
20305
+ ],
20306
+ sessionTokenSiteKeys: [
20307
+ "Test string"
20308
+ ],
20309
+ },
20310
+ },
20215
20311
  versionedExpr: "Test string",
20216
20312
  },
20217
20313
  networkMatch: {
@@ -20452,6 +20548,16 @@ gapi.load('client', async () => {
20452
20548
  location: "Test string",
20453
20549
  title: "Test string",
20454
20550
  },
20551
+ exprOptions: {
20552
+ recaptchaOptions: {
20553
+ actionTokenSiteKeys: [
20554
+ "Test string"
20555
+ ],
20556
+ sessionTokenSiteKeys: [
20557
+ "Test string"
20558
+ ],
20559
+ },
20560
+ },
20455
20561
  versionedExpr: "Test string",
20456
20562
  },
20457
20563
  networkMatch: {
@@ -20702,6 +20808,16 @@ gapi.load('client', async () => {
20702
20808
  location: "Test string",
20703
20809
  title: "Test string",
20704
20810
  },
20811
+ exprOptions: {
20812
+ recaptchaOptions: {
20813
+ actionTokenSiteKeys: [
20814
+ "Test string"
20815
+ ],
20816
+ sessionTokenSiteKeys: [
20817
+ "Test string"
20818
+ ],
20819
+ },
20820
+ },
20705
20821
  versionedExpr: "Test string",
20706
20822
  },
20707
20823
  networkMatch: {
@@ -20883,6 +20999,16 @@ gapi.load('client', async () => {
20883
20999
  location: "Test string",
20884
21000
  title: "Test string",
20885
21001
  },
21002
+ exprOptions: {
21003
+ recaptchaOptions: {
21004
+ actionTokenSiteKeys: [
21005
+ "Test string"
21006
+ ],
21007
+ sessionTokenSiteKeys: [
21008
+ "Test string"
21009
+ ],
21010
+ },
21011
+ },
20886
21012
  versionedExpr: "Test string",
20887
21013
  },
20888
21014
  networkMatch: {
@@ -25597,6 +25723,16 @@ gapi.load('client', async () => {
25597
25723
  location: "Test string",
25598
25724
  title: "Test string",
25599
25725
  },
25726
+ exprOptions: {
25727
+ recaptchaOptions: {
25728
+ actionTokenSiteKeys: [
25729
+ "Test string"
25730
+ ],
25731
+ sessionTokenSiteKeys: [
25732
+ "Test string"
25733
+ ],
25734
+ },
25735
+ },
25600
25736
  versionedExpr: "Test string",
25601
25737
  },
25602
25738
  networkMatch: {
@@ -25843,6 +25979,16 @@ gapi.load('client', async () => {
25843
25979
  location: "Test string",
25844
25980
  title: "Test string",
25845
25981
  },
25982
+ exprOptions: {
25983
+ recaptchaOptions: {
25984
+ actionTokenSiteKeys: [
25985
+ "Test string"
25986
+ ],
25987
+ sessionTokenSiteKeys: [
25988
+ "Test string"
25989
+ ],
25990
+ },
25991
+ },
25846
25992
  versionedExpr: "Test string",
25847
25993
  },
25848
25994
  networkMatch: {
@@ -26100,6 +26246,16 @@ gapi.load('client', async () => {
26100
26246
  location: "Test string",
26101
26247
  title: "Test string",
26102
26248
  },
26249
+ exprOptions: {
26250
+ recaptchaOptions: {
26251
+ actionTokenSiteKeys: [
26252
+ "Test string"
26253
+ ],
26254
+ sessionTokenSiteKeys: [
26255
+ "Test string"
26256
+ ],
26257
+ },
26258
+ },
26103
26259
  versionedExpr: "Test string",
26104
26260
  },
26105
26261
  networkMatch: {
@@ -26280,6 +26436,16 @@ gapi.load('client', async () => {
26280
26436
  location: "Test string",
26281
26437
  title: "Test string",
26282
26438
  },
26439
+ exprOptions: {
26440
+ recaptchaOptions: {
26441
+ actionTokenSiteKeys: [
26442
+ "Test string"
26443
+ ],
26444
+ sessionTokenSiteKeys: [
26445
+ "Test string"
26446
+ ],
26447
+ },
26448
+ },
26283
26449
  versionedExpr: "Test string",
26284
26450
  },
26285
26451
  networkMatch: {