@maxim_mazurok/gapi.client.compute-alpha 0.0.20230509 → 0.0.20230516
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 +128 -9
- package/package.json +1 -1
- package/readme.md +10 -0
- package/tests.ts +20 -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: 20230516
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -509,6 +509,9 @@ declare namespace gapi.client {
|
|
|
509
509
|
/** The VM family that all instances scheduled against this reservation must belong to. */
|
|
510
510
|
vmFamily?:
|
|
511
511
|
string;
|
|
512
|
+
/** The workload type of the instances that will target this reservation. */
|
|
513
|
+
workloadType?:
|
|
514
|
+
string;
|
|
512
515
|
}
|
|
513
516
|
interface AllocationAggregateReservationReservedResourceInfo {
|
|
514
517
|
/** Properties of accelerator resources in this reservation. */
|
|
@@ -1076,9 +1079,10 @@ declare namespace gapi.client {
|
|
|
1076
1079
|
}
|
|
1077
1080
|
interface AutoscalingPolicy {
|
|
1078
1081
|
/**
|
|
1079
|
-
* The number of seconds that
|
|
1080
|
-
*
|
|
1081
|
-
*
|
|
1082
|
+
* The number of seconds that your application takes to initialize on a VM instance. This is referred to as the [initialization period](/compute/docs/autoscaler#cool_down_period).
|
|
1083
|
+
* Specifying an accurate initialization period improves autoscaler decisions. For example, when scaling out, the autoscaler ignores data from VMs that are still initializing because
|
|
1084
|
+
* those VMs might not yet represent normal usage of your application. The default initialization period is 60 seconds. Initialization periods might vary because of numerous factors.
|
|
1085
|
+
* We recommend that you test how long your application takes to initialize. To do this, create a VM and time your application's startup process.
|
|
1082
1086
|
*/
|
|
1083
1087
|
coolDownPeriodSec?:
|
|
1084
1088
|
number;
|
|
@@ -1103,7 +1107,10 @@ declare namespace gapi.client {
|
|
|
1103
1107
|
*/
|
|
1104
1108
|
minNumReplicas?:
|
|
1105
1109
|
number;
|
|
1106
|
-
/**
|
|
1110
|
+
/**
|
|
1111
|
+
* Defines the operating mode for this policy. The following modes are available: - OFF: Disables the autoscaler but maintains its configuration. - ONLY_SCALE_OUT: Restricts the
|
|
1112
|
+
* autoscaler to add VM instances only. - ON: Enables all autoscaler activities according to its policy. For more information, see "Turning off or restricting an autoscaler"
|
|
1113
|
+
*/
|
|
1107
1114
|
mode?:
|
|
1108
1115
|
string;
|
|
1109
1116
|
scaleDownControl?:
|
|
@@ -2634,7 +2641,7 @@ declare namespace gapi.client {
|
|
|
2634
2641
|
CommitmentResourceStatusCancellationInformation;
|
|
2635
2642
|
}
|
|
2636
2643
|
interface CommitmentResourceStatusCancellationInformation {
|
|
2637
|
-
/** [Output Only] An optional
|
|
2644
|
+
/** [Output Only] An optional amount of CUDs canceled so far in the last 365 days. */
|
|
2638
2645
|
canceledCommitment?:
|
|
2639
2646
|
Money;
|
|
2640
2647
|
/** [Output Only] An optional last update time of canceled_commitment. RFC3339 text format. */
|
|
@@ -5014,8 +5021,8 @@ declare namespace gapi.client {
|
|
|
5014
5021
|
interface GuestOsFeature {
|
|
5015
5022
|
/**
|
|
5016
5023
|
* The ID of a supported feature. To add multiple values, use commas to separate values. Set to one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS -
|
|
5017
|
-
* MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - SEV_LIVE_MIGRATABLE - SEV_SNP_CAPABLE
|
|
5018
|
-
*
|
|
5024
|
+
* MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - SEV_LIVE_MIGRATABLE - SEV_SNP_CAPABLE For more information, see Enabling guest operating system
|
|
5025
|
+
* features.
|
|
5019
5026
|
*/
|
|
5020
5027
|
type?:
|
|
5021
5028
|
string;
|
|
@@ -10733,7 +10740,7 @@ declare namespace gapi.client {
|
|
|
10733
10740
|
};
|
|
10734
10741
|
}
|
|
10735
10742
|
interface NetworkAttachmentConnectedEndpoint {
|
|
10736
|
-
/** The
|
|
10743
|
+
/** The IPv4 address assigned to the producer instance network interface. This value will be a range in case of Serverless. */
|
|
10737
10744
|
ipAddress?:
|
|
10738
10745
|
string;
|
|
10739
10746
|
/** The project id or number of the interface to which the IP was assigned. */
|
|
@@ -60505,6 +60512,118 @@ declare namespace gapi.client {
|
|
|
60505
60512
|
userIp?:
|
|
60506
60513
|
string;
|
|
60507
60514
|
}): Request<CommitmentAggregatedList>;
|
|
60515
|
+
/** Calculate cancellation fee for the specified commitment. */
|
|
60516
|
+
calculateCancellationFee(request?: {
|
|
60517
|
+
/** V1 error format. */
|
|
60518
|
+
"$.xgafv"?:
|
|
60519
|
+
string;
|
|
60520
|
+
/** OAuth access token. */
|
|
60521
|
+
access_token?:
|
|
60522
|
+
string;
|
|
60523
|
+
/** Data format for response. */
|
|
60524
|
+
alt?:
|
|
60525
|
+
string;
|
|
60526
|
+
/** JSONP */
|
|
60527
|
+
callback?:
|
|
60528
|
+
string;
|
|
60529
|
+
/** Name of the commitment to delete. */
|
|
60530
|
+
commitment:
|
|
60531
|
+
string;
|
|
60532
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
60533
|
+
fields?:
|
|
60534
|
+
string;
|
|
60535
|
+
/** 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. */
|
|
60536
|
+
key?:
|
|
60537
|
+
string;
|
|
60538
|
+
/** OAuth 2.0 token for the current user. */
|
|
60539
|
+
oauth_token?:
|
|
60540
|
+
string;
|
|
60541
|
+
/** Returns response with indentations and line breaks. */
|
|
60542
|
+
prettyPrint?:
|
|
60543
|
+
boolean;
|
|
60544
|
+
/** Project ID for this request. */
|
|
60545
|
+
project:
|
|
60546
|
+
string;
|
|
60547
|
+
/** 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. */
|
|
60548
|
+
quotaUser?:
|
|
60549
|
+
string;
|
|
60550
|
+
/** Name of the region for this request. */
|
|
60551
|
+
region:
|
|
60552
|
+
string;
|
|
60553
|
+
/**
|
|
60554
|
+
* 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
|
|
60555
|
+
* 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
|
|
60556
|
+
* 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
|
|
60557
|
+
* commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
|
60558
|
+
*/
|
|
60559
|
+
requestId?:
|
|
60560
|
+
string;
|
|
60561
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
60562
|
+
upload_protocol?:
|
|
60563
|
+
string;
|
|
60564
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
60565
|
+
uploadType?:
|
|
60566
|
+
string;
|
|
60567
|
+
/** Legacy name for parameter that has been superseded by `quotaUser`. */
|
|
60568
|
+
userIp?:
|
|
60569
|
+
string;
|
|
60570
|
+
}): Request<Operation>;
|
|
60571
|
+
/** Cancel the specified commitment. */
|
|
60572
|
+
cancel(request?: {
|
|
60573
|
+
/** V1 error format. */
|
|
60574
|
+
"$.xgafv"?:
|
|
60575
|
+
string;
|
|
60576
|
+
/** OAuth access token. */
|
|
60577
|
+
access_token?:
|
|
60578
|
+
string;
|
|
60579
|
+
/** Data format for response. */
|
|
60580
|
+
alt?:
|
|
60581
|
+
string;
|
|
60582
|
+
/** JSONP */
|
|
60583
|
+
callback?:
|
|
60584
|
+
string;
|
|
60585
|
+
/** Name of the commitment to delete. */
|
|
60586
|
+
commitment:
|
|
60587
|
+
string;
|
|
60588
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
60589
|
+
fields?:
|
|
60590
|
+
string;
|
|
60591
|
+
/** 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. */
|
|
60592
|
+
key?:
|
|
60593
|
+
string;
|
|
60594
|
+
/** OAuth 2.0 token for the current user. */
|
|
60595
|
+
oauth_token?:
|
|
60596
|
+
string;
|
|
60597
|
+
/** Returns response with indentations and line breaks. */
|
|
60598
|
+
prettyPrint?:
|
|
60599
|
+
boolean;
|
|
60600
|
+
/** Project ID for this request. */
|
|
60601
|
+
project:
|
|
60602
|
+
string;
|
|
60603
|
+
/** 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. */
|
|
60604
|
+
quotaUser?:
|
|
60605
|
+
string;
|
|
60606
|
+
/** Name of the region for this request. */
|
|
60607
|
+
region:
|
|
60608
|
+
string;
|
|
60609
|
+
/**
|
|
60610
|
+
* 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
|
|
60611
|
+
* 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
|
|
60612
|
+
* 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
|
|
60613
|
+
* commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
|
60614
|
+
*/
|
|
60615
|
+
requestId?:
|
|
60616
|
+
string;
|
|
60617
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
60618
|
+
upload_protocol?:
|
|
60619
|
+
string;
|
|
60620
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
60621
|
+
uploadType?:
|
|
60622
|
+
string;
|
|
60623
|
+
/** Legacy name for parameter that has been superseded by `quotaUser`. */
|
|
60624
|
+
userIp?:
|
|
60625
|
+
string;
|
|
60626
|
+
}): Request<Operation>;
|
|
60508
60627
|
/** Returns the specified commitment resource. */
|
|
60509
60628
|
get(request?: {
|
|
60510
60629
|
/** V1 error format. */
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -2556,6 +2556,16 @@ Retrieves an aggregated list of commitments by region.
|
|
|
2556
2556
|
*/
|
|
2557
2557
|
await gapi.client.compute.regionCommitments.aggregatedList({ project: "project", });
|
|
2558
2558
|
|
|
2559
|
+
/*
|
|
2560
|
+
Calculate cancellation fee for the specified commitment.
|
|
2561
|
+
*/
|
|
2562
|
+
await gapi.client.compute.regionCommitments.calculateCancellationFee({ commitment: "commitment", project: "project", region: "region", });
|
|
2563
|
+
|
|
2564
|
+
/*
|
|
2565
|
+
Cancel the specified commitment.
|
|
2566
|
+
*/
|
|
2567
|
+
await gapi.client.compute.regionCommitments.cancel({ commitment: "commitment", project: "project", region: "region", });
|
|
2568
|
+
|
|
2559
2569
|
/*
|
|
2560
2570
|
Returns the specified commitment resource.
|
|
2561
2571
|
*/
|
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: 20230516
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -16092,6 +16092,20 @@ gapi.load('client', async () => {
|
|
|
16092
16092
|
project: "Test string",
|
|
16093
16093
|
returnPartialSuccess: true,
|
|
16094
16094
|
});
|
|
16095
|
+
/** Calculate cancellation fee for the specified commitment. */
|
|
16096
|
+
await gapi.client.compute.regionCommitments.calculateCancellationFee({
|
|
16097
|
+
commitment: "Test string",
|
|
16098
|
+
project: "Test string",
|
|
16099
|
+
region: "Test string",
|
|
16100
|
+
requestId: "Test string",
|
|
16101
|
+
});
|
|
16102
|
+
/** Cancel the specified commitment. */
|
|
16103
|
+
await gapi.client.compute.regionCommitments.cancel({
|
|
16104
|
+
commitment: "Test string",
|
|
16105
|
+
project: "Test string",
|
|
16106
|
+
region: "Test string",
|
|
16107
|
+
requestId: "Test string",
|
|
16108
|
+
});
|
|
16095
16109
|
/** Returns the specified commitment resource. */
|
|
16096
16110
|
await gapi.client.compute.regionCommitments.get({
|
|
16097
16111
|
commitment: "Test string",
|
|
@@ -16142,6 +16156,7 @@ gapi.load('client', async () => {
|
|
|
16142
16156
|
}
|
|
16143
16157
|
],
|
|
16144
16158
|
vmFamily: "Test string",
|
|
16159
|
+
workloadType: "Test string",
|
|
16145
16160
|
},
|
|
16146
16161
|
commitment: "Test string",
|
|
16147
16162
|
creationTimestamp: "Test string",
|
|
@@ -16312,6 +16327,7 @@ gapi.load('client', async () => {
|
|
|
16312
16327
|
}
|
|
16313
16328
|
],
|
|
16314
16329
|
vmFamily: "Test string",
|
|
16330
|
+
workloadType: "Test string",
|
|
16315
16331
|
},
|
|
16316
16332
|
commitment: "Test string",
|
|
16317
16333
|
creationTimestamp: "Test string",
|
|
@@ -16439,6 +16455,7 @@ gapi.load('client', async () => {
|
|
|
16439
16455
|
}
|
|
16440
16456
|
],
|
|
16441
16457
|
vmFamily: "Test string",
|
|
16458
|
+
workloadType: "Test string",
|
|
16442
16459
|
},
|
|
16443
16460
|
commitment: "Test string",
|
|
16444
16461
|
creationTimestamp: "Test string",
|
|
@@ -24262,6 +24279,7 @@ gapi.load('client', async () => {
|
|
|
24262
24279
|
}
|
|
24263
24280
|
],
|
|
24264
24281
|
vmFamily: "Test string",
|
|
24282
|
+
workloadType: "Test string",
|
|
24265
24283
|
},
|
|
24266
24284
|
commitment: "Test string",
|
|
24267
24285
|
creationTimestamp: "Test string",
|
|
@@ -24489,6 +24507,7 @@ gapi.load('client', async () => {
|
|
|
24489
24507
|
}
|
|
24490
24508
|
],
|
|
24491
24509
|
vmFamily: "Test string",
|
|
24510
|
+
workloadType: "Test string",
|
|
24492
24511
|
},
|
|
24493
24512
|
commitment: "Test string",
|
|
24494
24513
|
creationTimestamp: "Test string",
|