@maxim_mazurok/gapi.client.compute-alpha 0.0.20230530 → 0.0.20230606
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 +35 -10
- package/package.json +1 -1
- package/tests.ts +65 -2
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://www.googleapis.com/discovery/v1/apis/compute/alpha/rest
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230606
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -2785,7 +2785,11 @@ declare namespace gapi.client {
|
|
|
2785
2785
|
number;
|
|
2786
2786
|
}
|
|
2787
2787
|
interface CustomerEncryptionKey {
|
|
2788
|
-
/**
|
|
2788
|
+
/**
|
|
2789
|
+
* The name of the encryption key that is stored in Google Cloud KMS. For example: "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key The
|
|
2790
|
+
* fully-qualifed key name may be returned for resource GET requests. For example: "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key
|
|
2791
|
+
* /cryptoKeyVersions/1
|
|
2792
|
+
*/
|
|
2789
2793
|
kmsKeyName?:
|
|
2790
2794
|
string;
|
|
2791
2795
|
/**
|
|
@@ -6584,6 +6588,9 @@ declare namespace gapi.client {
|
|
|
6584
6588
|
/** Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload. */
|
|
6585
6589
|
params?:
|
|
6586
6590
|
InstanceParams;
|
|
6591
|
+
/** Partner Metadata assigned to the instance. A map from a subdomain (namespace) to entries map. */
|
|
6592
|
+
partnerMetadata?:
|
|
6593
|
+
{ [P in string]: StructuredEntries };
|
|
6587
6594
|
/** PostKeyRevocationActionType of the instance. */
|
|
6588
6595
|
postKeyRevocationActionType?:
|
|
6589
6596
|
string;
|
|
@@ -8043,6 +8050,9 @@ declare namespace gapi.client {
|
|
|
8043
8050
|
/** Note that for MachineImage, this is not supported yet. */
|
|
8044
8051
|
networkPerformanceConfig?:
|
|
8045
8052
|
NetworkPerformanceConfig;
|
|
8053
|
+
/** Partner Metadata assigned to the instance properties. A map from a subdomain (namespace) to entries map. */
|
|
8054
|
+
partnerMetadata?:
|
|
8055
|
+
{ [P in string]: StructuredEntries };
|
|
8046
8056
|
/** PostKeyRevocationActionType of the instance. */
|
|
8047
8057
|
postKeyRevocationActionType?:
|
|
8048
8058
|
string;
|
|
@@ -8119,12 +8129,6 @@ declare namespace gapi.client {
|
|
|
8119
8129
|
/** [Output Only] Type of the resource. Always compute#instance_settings for instance settings. */
|
|
8120
8130
|
kind?:
|
|
8121
8131
|
string;
|
|
8122
|
-
/**
|
|
8123
|
-
* Partial URL of the machine type resource to use for this instance, in the format: machineTypes/machine-type. This is either provided by the client or chosen by the system. For
|
|
8124
|
-
* example, the following is a valid partial url to a predefined machine type: machineTypes/n2-standard-1
|
|
8125
|
-
*/
|
|
8126
|
-
machineType?:
|
|
8127
|
-
string;
|
|
8128
8132
|
/** [Output Only] URL of the zone where the resource resides You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. */
|
|
8129
8133
|
zone?:
|
|
8130
8134
|
string;
|
|
@@ -14086,6 +14090,9 @@ declare namespace gapi.client {
|
|
|
14086
14090
|
/** The Compute Engine quota metric name. */
|
|
14087
14091
|
metricName?:
|
|
14088
14092
|
string;
|
|
14093
|
+
/** Rollout status of the future quota limit. */
|
|
14094
|
+
rolloutStatus?:
|
|
14095
|
+
string;
|
|
14089
14096
|
}
|
|
14090
14097
|
interface RbacPolicy {
|
|
14091
14098
|
/** Name of the RbacPolicy. */
|
|
@@ -15410,7 +15417,7 @@ declare namespace gapi.client {
|
|
|
15410
15417
|
*/
|
|
15411
15418
|
nextHopGateway?:
|
|
15412
15419
|
string;
|
|
15413
|
-
/** [Output Only] The full resource name of the
|
|
15420
|
+
/** [Output Only] The full resource name of the Network Connectivity Center hub that will handle matching packets. */
|
|
15414
15421
|
nextHopHub?:
|
|
15415
15422
|
string;
|
|
15416
15423
|
/**
|
|
@@ -20584,7 +20591,7 @@ declare namespace gapi.client {
|
|
|
20584
20591
|
string;
|
|
20585
20592
|
}
|
|
20586
20593
|
interface UpcomingMaintenance {
|
|
20587
|
-
/** Indicates if the maintenance can be customer triggered.
|
|
20594
|
+
/** Indicates if the maintenance can be customer triggered. */
|
|
20588
20595
|
canReschedule?:
|
|
20589
20596
|
boolean;
|
|
20590
20597
|
/** [Output Only] The date when the maintenance will take place. This value is in RFC3339 text format. DEPRECATED: Use window_start_time instead. */
|
|
@@ -40853,6 +40860,9 @@ declare namespace gapi.client {
|
|
|
40853
40860
|
/** Legacy name for parameter that has been superseded by `quotaUser`. */
|
|
40854
40861
|
userIp?:
|
|
40855
40862
|
string;
|
|
40863
|
+
/** View of the instance. */
|
|
40864
|
+
view?:
|
|
40865
|
+
string;
|
|
40856
40866
|
/** The name of the zone for this request. */
|
|
40857
40867
|
zone:
|
|
40858
40868
|
string;
|
|
@@ -41482,6 +41492,9 @@ declare namespace gapi.client {
|
|
|
41482
41492
|
/** Legacy name for parameter that has been superseded by `quotaUser`. */
|
|
41483
41493
|
userIp?:
|
|
41484
41494
|
string;
|
|
41495
|
+
/** View of the instance. */
|
|
41496
|
+
view?:
|
|
41497
|
+
string;
|
|
41485
41498
|
/** The name of the zone for this request. */
|
|
41486
41499
|
zone:
|
|
41487
41500
|
string;
|
|
@@ -45141,6 +45154,9 @@ declare namespace gapi.client {
|
|
|
45141
45154
|
/** Legacy name for parameter that has been superseded by `quotaUser`. */
|
|
45142
45155
|
userIp?:
|
|
45143
45156
|
string;
|
|
45157
|
+
/** View of the instance template. */
|
|
45158
|
+
view?:
|
|
45159
|
+
string;
|
|
45144
45160
|
}): Request<InstanceTemplate>;
|
|
45145
45161
|
/** Gets the access control policy for a resource. May be empty if no such policy or resource exists. */
|
|
45146
45162
|
getIamPolicy(request?: {
|
|
@@ -45373,6 +45389,9 @@ declare namespace gapi.client {
|
|
|
45373
45389
|
/** Legacy name for parameter that has been superseded by `quotaUser`. */
|
|
45374
45390
|
userIp?:
|
|
45375
45391
|
string;
|
|
45392
|
+
/** View of the instance template. */
|
|
45393
|
+
view?:
|
|
45394
|
+
string;
|
|
45376
45395
|
}): Request<InstanceTemplateList>;
|
|
45377
45396
|
/** Sets the access control policy on the specified resource. Replaces any existing policy. */
|
|
45378
45397
|
setIamPolicy(request: {
|
|
@@ -67951,6 +67970,9 @@ declare namespace gapi.client {
|
|
|
67951
67970
|
/** Legacy name for parameter that has been superseded by `quotaUser`. */
|
|
67952
67971
|
userIp?:
|
|
67953
67972
|
string;
|
|
67973
|
+
/** View of the instance template. */
|
|
67974
|
+
view?:
|
|
67975
|
+
string;
|
|
67954
67976
|
}): Request<InstanceTemplate>;
|
|
67955
67977
|
/** Creates an instance template in the specified project and region using the global instance template whose URL is included in the request. */
|
|
67956
67978
|
insert(request: {
|
|
@@ -68141,6 +68163,9 @@ declare namespace gapi.client {
|
|
|
68141
68163
|
/** Legacy name for parameter that has been superseded by `quotaUser`. */
|
|
68142
68164
|
userIp?:
|
|
68143
68165
|
string;
|
|
68166
|
+
/** View of the instance template. */
|
|
68167
|
+
view?:
|
|
68168
|
+
string;
|
|
68144
68169
|
}): Request<InstanceTemplateList>;
|
|
68145
68170
|
}
|
|
68146
68171
|
interface RegionInstantSnapshotsResource {
|
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: 20230606
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -5710,6 +5710,7 @@ gapi.load('client', async () => {
|
|
|
5710
5710
|
limit: 42,
|
|
5711
5711
|
limitName: "Test string",
|
|
5712
5712
|
metricName: "Test string",
|
|
5713
|
+
rolloutStatus: "Test string",
|
|
5713
5714
|
},
|
|
5714
5715
|
}
|
|
5715
5716
|
],
|
|
@@ -7262,6 +7263,13 @@ gapi.load('client', async () => {
|
|
|
7262
7263
|
externalIpEgressBandwidthTier: "Test string",
|
|
7263
7264
|
totalEgressBandwidthTier: "Test string",
|
|
7264
7265
|
},
|
|
7266
|
+
partnerMetadata: {
|
|
7267
|
+
A: {
|
|
7268
|
+
entries: {
|
|
7269
|
+
A: 42
|
|
7270
|
+
},
|
|
7271
|
+
}
|
|
7272
|
+
},
|
|
7265
7273
|
postKeyRevocationActionType: "Test string",
|
|
7266
7274
|
privateIpv6GoogleAccess: "Test string",
|
|
7267
7275
|
reservationAffinity: {
|
|
@@ -7398,6 +7406,7 @@ gapi.load('client', async () => {
|
|
|
7398
7406
|
await gapi.client.compute.instances.get({
|
|
7399
7407
|
instance: "Test string",
|
|
7400
7408
|
project: "Test string",
|
|
7409
|
+
view: "Test string",
|
|
7401
7410
|
zone: "Test string",
|
|
7402
7411
|
});
|
|
7403
7412
|
/** Returns effective firewalls applied to an interface of the instance. */
|
|
@@ -7710,6 +7719,13 @@ gapi.load('client', async () => {
|
|
|
7710
7719
|
A: "Test string"
|
|
7711
7720
|
},
|
|
7712
7721
|
},
|
|
7722
|
+
partnerMetadata: {
|
|
7723
|
+
A: {
|
|
7724
|
+
entries: {
|
|
7725
|
+
A: 42
|
|
7726
|
+
},
|
|
7727
|
+
}
|
|
7728
|
+
},
|
|
7713
7729
|
postKeyRevocationActionType: "Test string",
|
|
7714
7730
|
preservedStateSizeGb: "Test string",
|
|
7715
7731
|
privateIpv6GoogleAccess: "Test string",
|
|
@@ -7850,6 +7866,7 @@ gapi.load('client', async () => {
|
|
|
7850
7866
|
pageToken: "Test string",
|
|
7851
7867
|
project: "Test string",
|
|
7852
7868
|
returnPartialSuccess: true,
|
|
7869
|
+
view: "Test string",
|
|
7853
7870
|
zone: "Test string",
|
|
7854
7871
|
});
|
|
7855
7872
|
/**
|
|
@@ -8574,6 +8591,13 @@ gapi.load('client', async () => {
|
|
|
8574
8591
|
A: "Test string"
|
|
8575
8592
|
},
|
|
8576
8593
|
},
|
|
8594
|
+
partnerMetadata: {
|
|
8595
|
+
A: {
|
|
8596
|
+
entries: {
|
|
8597
|
+
A: 42
|
|
8598
|
+
},
|
|
8599
|
+
}
|
|
8600
|
+
},
|
|
8577
8601
|
postKeyRevocationActionType: "Test string",
|
|
8578
8602
|
preservedStateSizeGb: "Test string",
|
|
8579
8603
|
privateIpv6GoogleAccess: "Test string",
|
|
@@ -8857,7 +8881,6 @@ gapi.load('client', async () => {
|
|
|
8857
8881
|
}, {
|
|
8858
8882
|
email: "Test string",
|
|
8859
8883
|
kind: "Test string",
|
|
8860
|
-
machineType: "Test string",
|
|
8861
8884
|
zone: "Test string",
|
|
8862
8885
|
});
|
|
8863
8886
|
/** Retrieves the list of all InstanceTemplates resources, regional and global, available to the specified project. */
|
|
@@ -8883,6 +8906,7 @@ gapi.load('client', async () => {
|
|
|
8883
8906
|
await gapi.client.compute.instanceTemplates.get({
|
|
8884
8907
|
instanceTemplate: "Test string",
|
|
8885
8908
|
project: "Test string",
|
|
8909
|
+
view: "Test string",
|
|
8886
8910
|
});
|
|
8887
8911
|
/** Gets the access control policy for a resource. May be empty if no such policy or resource exists. */
|
|
8888
8912
|
await gapi.client.compute.instanceTemplates.getIamPolicy({
|
|
@@ -9126,6 +9150,13 @@ gapi.load('client', async () => {
|
|
|
9126
9150
|
externalIpEgressBandwidthTier: "Test string",
|
|
9127
9151
|
totalEgressBandwidthTier: "Test string",
|
|
9128
9152
|
},
|
|
9153
|
+
partnerMetadata: {
|
|
9154
|
+
A: {
|
|
9155
|
+
entries: {
|
|
9156
|
+
A: 42
|
|
9157
|
+
},
|
|
9158
|
+
}
|
|
9159
|
+
},
|
|
9129
9160
|
postKeyRevocationActionType: "Test string",
|
|
9130
9161
|
privateIpv6GoogleAccess: "Test string",
|
|
9131
9162
|
reservationAffinity: {
|
|
@@ -9233,6 +9264,7 @@ gapi.load('client', async () => {
|
|
|
9233
9264
|
pageToken: "Test string",
|
|
9234
9265
|
project: "Test string",
|
|
9235
9266
|
returnPartialSuccess: true,
|
|
9267
|
+
view: "Test string",
|
|
9236
9268
|
});
|
|
9237
9269
|
/** Sets the access control policy on the specified resource. Replaces any existing policy. */
|
|
9238
9270
|
await gapi.client.compute.instanceTemplates.setIamPolicy({
|
|
@@ -10801,6 +10833,13 @@ gapi.load('client', async () => {
|
|
|
10801
10833
|
externalIpEgressBandwidthTier: "Test string",
|
|
10802
10834
|
totalEgressBandwidthTier: "Test string",
|
|
10803
10835
|
},
|
|
10836
|
+
partnerMetadata: {
|
|
10837
|
+
A: {
|
|
10838
|
+
entries: {
|
|
10839
|
+
A: 42
|
|
10840
|
+
},
|
|
10841
|
+
}
|
|
10842
|
+
},
|
|
10804
10843
|
postKeyRevocationActionType: "Test string",
|
|
10805
10844
|
privateIpv6GoogleAccess: "Test string",
|
|
10806
10845
|
reservationAffinity: {
|
|
@@ -18828,6 +18867,13 @@ gapi.load('client', async () => {
|
|
|
18828
18867
|
externalIpEgressBandwidthTier: "Test string",
|
|
18829
18868
|
totalEgressBandwidthTier: "Test string",
|
|
18830
18869
|
},
|
|
18870
|
+
partnerMetadata: {
|
|
18871
|
+
A: {
|
|
18872
|
+
entries: {
|
|
18873
|
+
A: 42
|
|
18874
|
+
},
|
|
18875
|
+
}
|
|
18876
|
+
},
|
|
18831
18877
|
postKeyRevocationActionType: "Test string",
|
|
18832
18878
|
privateIpv6GoogleAccess: "Test string",
|
|
18833
18879
|
reservationAffinity: {
|
|
@@ -18948,6 +18994,7 @@ gapi.load('client', async () => {
|
|
|
18948
18994
|
instanceTemplate: "Test string",
|
|
18949
18995
|
project: "Test string",
|
|
18950
18996
|
region: "Test string",
|
|
18997
|
+
view: "Test string",
|
|
18951
18998
|
});
|
|
18952
18999
|
/** Creates an instance template in the specified project and region using the global instance template whose URL is included in the request. */
|
|
18953
19000
|
await gapi.client.compute.regionInstanceTemplates.insert({
|
|
@@ -19183,6 +19230,13 @@ gapi.load('client', async () => {
|
|
|
19183
19230
|
externalIpEgressBandwidthTier: "Test string",
|
|
19184
19231
|
totalEgressBandwidthTier: "Test string",
|
|
19185
19232
|
},
|
|
19233
|
+
partnerMetadata: {
|
|
19234
|
+
A: {
|
|
19235
|
+
entries: {
|
|
19236
|
+
A: 42
|
|
19237
|
+
},
|
|
19238
|
+
}
|
|
19239
|
+
},
|
|
19186
19240
|
postKeyRevocationActionType: "Test string",
|
|
19187
19241
|
privateIpv6GoogleAccess: "Test string",
|
|
19188
19242
|
reservationAffinity: {
|
|
@@ -19291,6 +19345,7 @@ gapi.load('client', async () => {
|
|
|
19291
19345
|
project: "Test string",
|
|
19292
19346
|
region: "Test string",
|
|
19293
19347
|
returnPartialSuccess: true,
|
|
19348
|
+
view: "Test string",
|
|
19294
19349
|
});
|
|
19295
19350
|
/**
|
|
19296
19351
|
* Deletes the specified InstantSnapshot resource. Keep in mind that deleting a single instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data on the
|
|
@@ -31882,6 +31937,13 @@ gapi.load('client', async () => {
|
|
|
31882
31937
|
externalIpEgressBandwidthTier: "Test string",
|
|
31883
31938
|
totalEgressBandwidthTier: "Test string",
|
|
31884
31939
|
},
|
|
31940
|
+
partnerMetadata: {
|
|
31941
|
+
A: {
|
|
31942
|
+
entries: {
|
|
31943
|
+
A: 42
|
|
31944
|
+
},
|
|
31945
|
+
}
|
|
31946
|
+
},
|
|
31885
31947
|
postKeyRevocationActionType: "Test string",
|
|
31886
31948
|
privateIpv6GoogleAccess: "Test string",
|
|
31887
31949
|
reservationAffinity: {
|
|
@@ -32040,6 +32102,7 @@ gapi.load('client', async () => {
|
|
|
32040
32102
|
limit: 42,
|
|
32041
32103
|
limitName: "Test string",
|
|
32042
32104
|
metricName: "Test string",
|
|
32105
|
+
rolloutStatus: "Test string",
|
|
32043
32106
|
},
|
|
32044
32107
|
}
|
|
32045
32108
|
],
|