@maxim_mazurok/gapi.client.compute-alpha 0.0.20231024 → 0.0.20231031
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +55 -17
- package/package.json +1 -1
- package/tests.ts +119 -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:
|
|
12
|
+
// Revision: 20231031
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -4427,9 +4427,11 @@ declare namespace gapi.client {
|
|
|
4427
4427
|
allowPscPacketInjection?:
|
|
4428
4428
|
boolean;
|
|
4429
4429
|
/**
|
|
4430
|
-
*
|
|
4431
|
-
*
|
|
4432
|
-
*
|
|
4430
|
+
* The ports, portRange, and allPorts fields are mutually exclusive. Only packets addressed to ports in the specified range will be forwarded to the backends configured with this
|
|
4431
|
+
* forwarding rule. The allPorts field has the following limitations: - It requires that the forwarding rule IPProtocol be TCP, UDP, SCTP, or L3_DEFAULT. - It's applicable only to the
|
|
4432
|
+
* following products: internal passthrough Network Load Balancers, backend service-based external passthrough Network Load Balancers, and internal and external protocol forwarding. -
|
|
4433
|
+
* Set this field to true to allow packets addressed to any port or packets lacking destination port information (for example, UDP fragments after the first fragment) to be forwarded
|
|
4434
|
+
* to the backends configured with this forwarding rule. The L3_DEFAULT protocol requires allPorts be set to true.
|
|
4433
4435
|
*/
|
|
4434
4436
|
allPorts?:
|
|
4435
4437
|
boolean;
|
|
@@ -4553,21 +4555,22 @@ declare namespace gapi.client {
|
|
|
4553
4555
|
noAutomateDnsZone?:
|
|
4554
4556
|
boolean;
|
|
4555
4557
|
/**
|
|
4556
|
-
*
|
|
4557
|
-
*
|
|
4558
|
-
*
|
|
4559
|
-
*
|
|
4560
|
-
*
|
|
4561
|
-
* portRanges. @pattern: \\d+(?:-\\d+)?
|
|
4558
|
+
* The ports, portRange, and allPorts fields are mutually exclusive. Only packets addressed to ports in the specified range will be forwarded to the backends configured with this
|
|
4559
|
+
* forwarding rule. The portRange field has the following limitations: - It requires that the forwarding rule IPProtocol be TCP, UDP, or SCTP, and - It's applicable only to the
|
|
4560
|
+
* following products: external passthrough Network Load Balancers, internal and external proxy Network Load Balancers, internal and external Application Load Balancers, external
|
|
4561
|
+
* protocol forwarding, and Classic VPN. - Some products have restrictions on what ports can be used. See port specifications for details. For external forwarding rules, two or more
|
|
4562
|
+
* forwarding rules cannot use the same [IPAddress, IPProtocol] pair, and cannot have overlapping portRanges. For internal forwarding rules within the same VPC network, two or more
|
|
4563
|
+
* forwarding rules cannot use the same [IPAddress, IPProtocol] pair, and cannot have overlapping portRanges. @pattern: \\d+(?:-\\d+)?
|
|
4562
4564
|
*/
|
|
4563
4565
|
portRange?:
|
|
4564
4566
|
string;
|
|
4565
4567
|
/**
|
|
4566
|
-
*
|
|
4567
|
-
* forwarding.
|
|
4568
|
-
*
|
|
4569
|
-
*
|
|
4570
|
-
*
|
|
4568
|
+
* The ports, portRange, and allPorts fields are mutually exclusive. Only packets addressed to ports in the specified range will be forwarded to the backends configured with this
|
|
4569
|
+
* forwarding rule. The ports field has the following limitations: - It requires that the forwarding rule IPProtocol be TCP, UDP, or SCTP, and - It's applicable only to the following
|
|
4570
|
+
* products: internal passthrough Network Load Balancers, backend service-based external passthrough Network Load Balancers, and internal protocol forwarding. - You can specify a list
|
|
4571
|
+
* of up to five ports by number, separated by commas. The ports can be contiguous or discontiguous. For external forwarding rules, two or more forwarding rules cannot use the same
|
|
4572
|
+
* [IPAddress, IPProtocol] pair if they share at least one port number. For internal forwarding rules within the same VPC network, two or more forwarding rules cannot use the same
|
|
4573
|
+
* [IPAddress, IPProtocol] pair if they share at least one port number. @pattern: \\d+(?:-\\d+)?
|
|
4571
4574
|
*/
|
|
4572
4575
|
ports?:
|
|
4573
4576
|
string[];
|
|
@@ -7434,7 +7437,7 @@ declare namespace gapi.client {
|
|
|
7434
7437
|
/** When set, defines queing parameters for the requested deferred capacity. When unset, the request starts provisioning immediately, or fails if immediate provisioning is not possible. */
|
|
7435
7438
|
queuingPolicy?:
|
|
7436
7439
|
QueuingPolicy;
|
|
7437
|
-
/** Requested run duration for instances that will be created by this request.
|
|
7440
|
+
/** Requested run duration for instances that will be created by this request. At the end of the run duration instance will be deleted. */
|
|
7438
7441
|
requestedRunDuration?:
|
|
7439
7442
|
Duration;
|
|
7440
7443
|
/** The number of instances to be created by this resize request. The group's target size will be increased by this number. */
|
|
@@ -13679,7 +13682,7 @@ declare namespace gapi.client {
|
|
|
13679
13682
|
kind?:
|
|
13680
13683
|
string;
|
|
13681
13684
|
/**
|
|
13682
|
-
* [Output Only] The Cloud Armor Managed Protection (CAMP) tier for this project. It can be one of the following values: CA_STANDARD,
|
|
13685
|
+
* [Output Only] The Cloud Armor Managed Protection (CAMP) tier for this project. It can be one of the following values: CA_STANDARD, CAMP_PLUS_PAYGO. If this field is not specified,
|
|
13683
13686
|
* it is assumed to be CA_STANDARD.
|
|
13684
13687
|
*/
|
|
13685
13688
|
managedProtectionTier?:
|
|
@@ -15614,6 +15617,11 @@ declare namespace gapi.client {
|
|
|
15614
15617
|
/** [Output Only] Represents the status of the service integration specs defined by the user in instance.serviceIntegrationSpecs. */
|
|
15615
15618
|
serviceIntegrationStatuses?:
|
|
15616
15619
|
{ [P in string]: ResourceStatusServiceIntegrationStatus };
|
|
15620
|
+
/** [Output Only] Details about stopping state of instance */
|
|
15621
|
+
shutdownDetails?:
|
|
15622
|
+
ResourceStatusShutdownDetails;
|
|
15623
|
+
upcomingMaintenance?:
|
|
15624
|
+
UpcomingMaintenance;
|
|
15617
15625
|
}
|
|
15618
15626
|
interface ResourceStatusLastInstanceTerminationDetails {
|
|
15619
15627
|
/** Reason for termination */
|
|
@@ -15643,6 +15651,20 @@ declare namespace gapi.client {
|
|
|
15643
15651
|
state?:
|
|
15644
15652
|
string;
|
|
15645
15653
|
}
|
|
15654
|
+
interface ResourceStatusShutdownDetails {
|
|
15655
|
+
/** Duration for graceful shutdown. Only applicable when `stop_state=SHUTTING_DOWN`. */
|
|
15656
|
+
maxDuration?:
|
|
15657
|
+
Duration;
|
|
15658
|
+
/** Past timestamp indicating the beginning of current `stopState` in RFC3339 text format. */
|
|
15659
|
+
requestTimestamp?:
|
|
15660
|
+
string;
|
|
15661
|
+
/** Current stopping state of the instance. */
|
|
15662
|
+
stopState?:
|
|
15663
|
+
string;
|
|
15664
|
+
/** Target instance state. */
|
|
15665
|
+
targetState?:
|
|
15666
|
+
string;
|
|
15667
|
+
}
|
|
15646
15668
|
interface RolloutPolicy {
|
|
15647
15669
|
/** An optional RFC3339 timestamp on or after which the update is considered rolled out to any zone that is not explicitly stated. */
|
|
15648
15670
|
defaultRolloutTime?:
|
|
@@ -16841,6 +16863,8 @@ declare namespace gapi.client {
|
|
|
16841
16863
|
/** Current amount of memory (in MB) available for VM. 0 or unset means default amount of memory of the current machine type. */
|
|
16842
16864
|
currentMemoryMb?:
|
|
16843
16865
|
string;
|
|
16866
|
+
gracefulShutdown?:
|
|
16867
|
+
SchedulingGracefulShutdown;
|
|
16844
16868
|
/**
|
|
16845
16869
|
* Specify the time in seconds for host error detection, the value must be within the range of [90, 330] with the increment of 30, if unset, the default behavior of host error recovery
|
|
16846
16870
|
* will be used.
|
|
@@ -16899,6 +16923,14 @@ declare namespace gapi.client {
|
|
|
16899
16923
|
terminationTime?:
|
|
16900
16924
|
string;
|
|
16901
16925
|
}
|
|
16926
|
+
interface SchedulingGracefulShutdown {
|
|
16927
|
+
/** Opts-in for graceful shutdown. */
|
|
16928
|
+
enabled?:
|
|
16929
|
+
boolean;
|
|
16930
|
+
/** Specifies time needed to gracefully shut down the instance. After that time, the instance goes to STOPPING even if graceful shutdown is not completed. */
|
|
16931
|
+
maxDuration?:
|
|
16932
|
+
Duration;
|
|
16933
|
+
}
|
|
16902
16934
|
interface SchedulingNodeAffinity {
|
|
16903
16935
|
/** Corresponds to the label key of Node resource. */
|
|
16904
16936
|
key?:
|
|
@@ -41523,6 +41555,9 @@ declare namespace gapi.client {
|
|
|
41523
41555
|
/** 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. */
|
|
41524
41556
|
key?:
|
|
41525
41557
|
string;
|
|
41558
|
+
/** If true, skips Graceful Shutdown. */
|
|
41559
|
+
noGracefulShutdown?:
|
|
41560
|
+
boolean;
|
|
41526
41561
|
/** OAuth 2.0 token for the current user. */
|
|
41527
41562
|
oauth_token?:
|
|
41528
41563
|
string;
|
|
@@ -44833,6 +44868,9 @@ declare namespace gapi.client {
|
|
|
44833
44868
|
/** 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. */
|
|
44834
44869
|
key?:
|
|
44835
44870
|
string;
|
|
44871
|
+
/** If true, skips Graceful Shutdown. */
|
|
44872
|
+
noGracefulShutdown?:
|
|
44873
|
+
boolean;
|
|
44836
44874
|
/** OAuth 2.0 token for the current user. */
|
|
44837
44875
|
oauth_token?:
|
|
44838
44876
|
string;
|
package/package.json
CHANGED
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:
|
|
6
|
+
// Revision: 20231031
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -7404,6 +7404,13 @@ gapi.load('client', async () => {
|
|
|
7404
7404
|
availabilityDomain: 42,
|
|
7405
7405
|
currentCpus: 42,
|
|
7406
7406
|
currentMemoryMb: "Test string",
|
|
7407
|
+
gracefulShutdown: {
|
|
7408
|
+
enabled: true,
|
|
7409
|
+
maxDuration: {
|
|
7410
|
+
nanos: 42,
|
|
7411
|
+
seconds: "Test string",
|
|
7412
|
+
},
|
|
7413
|
+
},
|
|
7407
7414
|
hostErrorTimeoutSeconds: 42,
|
|
7408
7415
|
instanceTerminationAction: "Test string",
|
|
7409
7416
|
latencyTolerant: true,
|
|
@@ -7495,6 +7502,7 @@ gapi.load('client', async () => {
|
|
|
7495
7502
|
/** Deletes the specified Instance resource. For more information, see Deleting an instance. */
|
|
7496
7503
|
await gapi.client.compute.instances.delete({
|
|
7497
7504
|
instance: "Test string",
|
|
7505
|
+
noGracefulShutdown: true,
|
|
7498
7506
|
project: "Test string",
|
|
7499
7507
|
requestId: "Test string",
|
|
7500
7508
|
zone: "Test string",
|
|
@@ -7881,6 +7889,29 @@ gapi.load('client', async () => {
|
|
|
7881
7889
|
},
|
|
7882
7890
|
}
|
|
7883
7891
|
},
|
|
7892
|
+
shutdownDetails: {
|
|
7893
|
+
maxDuration: {
|
|
7894
|
+
nanos: 42,
|
|
7895
|
+
seconds: "Test string",
|
|
7896
|
+
},
|
|
7897
|
+
requestTimestamp: "Test string",
|
|
7898
|
+
stopState: "Test string",
|
|
7899
|
+
targetState: "Test string",
|
|
7900
|
+
},
|
|
7901
|
+
upcomingMaintenance: {
|
|
7902
|
+
canReschedule: true,
|
|
7903
|
+
date: "Test string",
|
|
7904
|
+
latestWindowStartTime: "Test string",
|
|
7905
|
+
maintenanceStatus: "Test string",
|
|
7906
|
+
startTimeWindow: {
|
|
7907
|
+
earliest: "Test string",
|
|
7908
|
+
latest: "Test string",
|
|
7909
|
+
},
|
|
7910
|
+
time: "Test string",
|
|
7911
|
+
type: "Test string",
|
|
7912
|
+
windowEndTime: "Test string",
|
|
7913
|
+
windowStartTime: "Test string",
|
|
7914
|
+
},
|
|
7884
7915
|
},
|
|
7885
7916
|
satisfiesPzs: true,
|
|
7886
7917
|
scheduling: {
|
|
@@ -7888,6 +7919,13 @@ gapi.load('client', async () => {
|
|
|
7888
7919
|
availabilityDomain: 42,
|
|
7889
7920
|
currentCpus: 42,
|
|
7890
7921
|
currentMemoryMb: "Test string",
|
|
7922
|
+
gracefulShutdown: {
|
|
7923
|
+
enabled: true,
|
|
7924
|
+
maxDuration: {
|
|
7925
|
+
nanos: 42,
|
|
7926
|
+
seconds: "Test string",
|
|
7927
|
+
},
|
|
7928
|
+
},
|
|
7891
7929
|
hostErrorTimeoutSeconds: 42,
|
|
7892
7930
|
instanceTerminationAction: "Test string",
|
|
7893
7931
|
latencyTolerant: true,
|
|
@@ -8294,6 +8332,13 @@ gapi.load('client', async () => {
|
|
|
8294
8332
|
availabilityDomain: 42,
|
|
8295
8333
|
currentCpus: 42,
|
|
8296
8334
|
currentMemoryMb: "Test string",
|
|
8335
|
+
gracefulShutdown: {
|
|
8336
|
+
enabled: true,
|
|
8337
|
+
maxDuration: {
|
|
8338
|
+
nanos: 42,
|
|
8339
|
+
seconds: "Test string",
|
|
8340
|
+
},
|
|
8341
|
+
},
|
|
8297
8342
|
hostErrorTimeoutSeconds: 42,
|
|
8298
8343
|
instanceTerminationAction: "Test string",
|
|
8299
8344
|
latencyTolerant: true,
|
|
@@ -8433,6 +8478,7 @@ gapi.load('client', async () => {
|
|
|
8433
8478
|
await gapi.client.compute.instances.stop({
|
|
8434
8479
|
discardLocalSsd: true,
|
|
8435
8480
|
instance: "Test string",
|
|
8481
|
+
noGracefulShutdown: true,
|
|
8436
8482
|
project: "Test string",
|
|
8437
8483
|
requestId: "Test string",
|
|
8438
8484
|
zone: "Test string",
|
|
@@ -8756,6 +8802,29 @@ gapi.load('client', async () => {
|
|
|
8756
8802
|
},
|
|
8757
8803
|
}
|
|
8758
8804
|
},
|
|
8805
|
+
shutdownDetails: {
|
|
8806
|
+
maxDuration: {
|
|
8807
|
+
nanos: 42,
|
|
8808
|
+
seconds: "Test string",
|
|
8809
|
+
},
|
|
8810
|
+
requestTimestamp: "Test string",
|
|
8811
|
+
stopState: "Test string",
|
|
8812
|
+
targetState: "Test string",
|
|
8813
|
+
},
|
|
8814
|
+
upcomingMaintenance: {
|
|
8815
|
+
canReschedule: true,
|
|
8816
|
+
date: "Test string",
|
|
8817
|
+
latestWindowStartTime: "Test string",
|
|
8818
|
+
maintenanceStatus: "Test string",
|
|
8819
|
+
startTimeWindow: {
|
|
8820
|
+
earliest: "Test string",
|
|
8821
|
+
latest: "Test string",
|
|
8822
|
+
},
|
|
8823
|
+
time: "Test string",
|
|
8824
|
+
type: "Test string",
|
|
8825
|
+
windowEndTime: "Test string",
|
|
8826
|
+
windowStartTime: "Test string",
|
|
8827
|
+
},
|
|
8759
8828
|
},
|
|
8760
8829
|
satisfiesPzs: true,
|
|
8761
8830
|
scheduling: {
|
|
@@ -8763,6 +8832,13 @@ gapi.load('client', async () => {
|
|
|
8763
8832
|
availabilityDomain: 42,
|
|
8764
8833
|
currentCpus: 42,
|
|
8765
8834
|
currentMemoryMb: "Test string",
|
|
8835
|
+
gracefulShutdown: {
|
|
8836
|
+
enabled: true,
|
|
8837
|
+
maxDuration: {
|
|
8838
|
+
nanos: 42,
|
|
8839
|
+
seconds: "Test string",
|
|
8840
|
+
},
|
|
8841
|
+
},
|
|
8766
8842
|
hostErrorTimeoutSeconds: 42,
|
|
8767
8843
|
instanceTerminationAction: "Test string",
|
|
8768
8844
|
latencyTolerant: true,
|
|
@@ -9316,6 +9392,13 @@ gapi.load('client', async () => {
|
|
|
9316
9392
|
availabilityDomain: 42,
|
|
9317
9393
|
currentCpus: 42,
|
|
9318
9394
|
currentMemoryMb: "Test string",
|
|
9395
|
+
gracefulShutdown: {
|
|
9396
|
+
enabled: true,
|
|
9397
|
+
maxDuration: {
|
|
9398
|
+
nanos: 42,
|
|
9399
|
+
seconds: "Test string",
|
|
9400
|
+
},
|
|
9401
|
+
},
|
|
9319
9402
|
hostErrorTimeoutSeconds: 42,
|
|
9320
9403
|
instanceTerminationAction: "Test string",
|
|
9321
9404
|
latencyTolerant: true,
|
|
@@ -11004,6 +11087,13 @@ gapi.load('client', async () => {
|
|
|
11004
11087
|
availabilityDomain: 42,
|
|
11005
11088
|
currentCpus: 42,
|
|
11006
11089
|
currentMemoryMb: "Test string",
|
|
11090
|
+
gracefulShutdown: {
|
|
11091
|
+
enabled: true,
|
|
11092
|
+
maxDuration: {
|
|
11093
|
+
nanos: 42,
|
|
11094
|
+
seconds: "Test string",
|
|
11095
|
+
},
|
|
11096
|
+
},
|
|
11007
11097
|
hostErrorTimeoutSeconds: 42,
|
|
11008
11098
|
instanceTerminationAction: "Test string",
|
|
11009
11099
|
latencyTolerant: true,
|
|
@@ -11231,6 +11321,13 @@ gapi.load('client', async () => {
|
|
|
11231
11321
|
availabilityDomain: 42,
|
|
11232
11322
|
currentCpus: 42,
|
|
11233
11323
|
currentMemoryMb: "Test string",
|
|
11324
|
+
gracefulShutdown: {
|
|
11325
|
+
enabled: true,
|
|
11326
|
+
maxDuration: {
|
|
11327
|
+
nanos: 42,
|
|
11328
|
+
seconds: "Test string",
|
|
11329
|
+
},
|
|
11330
|
+
},
|
|
11234
11331
|
hostErrorTimeoutSeconds: 42,
|
|
11235
11332
|
instanceTerminationAction: "Test string",
|
|
11236
11333
|
latencyTolerant: true,
|
|
@@ -19195,6 +19292,13 @@ gapi.load('client', async () => {
|
|
|
19195
19292
|
availabilityDomain: 42,
|
|
19196
19293
|
currentCpus: 42,
|
|
19197
19294
|
currentMemoryMb: "Test string",
|
|
19295
|
+
gracefulShutdown: {
|
|
19296
|
+
enabled: true,
|
|
19297
|
+
maxDuration: {
|
|
19298
|
+
nanos: 42,
|
|
19299
|
+
seconds: "Test string",
|
|
19300
|
+
},
|
|
19301
|
+
},
|
|
19198
19302
|
hostErrorTimeoutSeconds: 42,
|
|
19199
19303
|
instanceTerminationAction: "Test string",
|
|
19200
19304
|
latencyTolerant: true,
|
|
@@ -19558,6 +19662,13 @@ gapi.load('client', async () => {
|
|
|
19558
19662
|
availabilityDomain: 42,
|
|
19559
19663
|
currentCpus: 42,
|
|
19560
19664
|
currentMemoryMb: "Test string",
|
|
19665
|
+
gracefulShutdown: {
|
|
19666
|
+
enabled: true,
|
|
19667
|
+
maxDuration: {
|
|
19668
|
+
nanos: 42,
|
|
19669
|
+
seconds: "Test string",
|
|
19670
|
+
},
|
|
19671
|
+
},
|
|
19561
19672
|
hostErrorTimeoutSeconds: 42,
|
|
19562
19673
|
instanceTerminationAction: "Test string",
|
|
19563
19674
|
latencyTolerant: true,
|
|
@@ -32756,6 +32867,13 @@ gapi.load('client', async () => {
|
|
|
32756
32867
|
availabilityDomain: 42,
|
|
32757
32868
|
currentCpus: 42,
|
|
32758
32869
|
currentMemoryMb: "Test string",
|
|
32870
|
+
gracefulShutdown: {
|
|
32871
|
+
enabled: true,
|
|
32872
|
+
maxDuration: {
|
|
32873
|
+
nanos: 42,
|
|
32874
|
+
seconds: "Test string",
|
|
32875
|
+
},
|
|
32876
|
+
},
|
|
32759
32877
|
hostErrorTimeoutSeconds: 42,
|
|
32760
32878
|
instanceTerminationAction: "Test string",
|
|
32761
32879
|
latencyTolerant: true,
|