@maxim_mazurok/gapi.client.gkehub-v1alpha 0.0.20230728 → 0.0.20230814
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 +44 -21
- package/package.json +2 -2
- package/tests.ts +121 -35
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://gkehub.googleapis.com/$discovery/rest?version=v1alpha
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230814
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -146,6 +146,34 @@ declare namespace gapi.client {
|
|
|
146
146
|
version?:
|
|
147
147
|
string;
|
|
148
148
|
}
|
|
149
|
+
interface ClusterUpgradeFleetSpec {
|
|
150
|
+
/** Allow users to override some properties of each GKE upgrade. */
|
|
151
|
+
gkeUpgradeOverrides?:
|
|
152
|
+
ClusterUpgradeGKEUpgradeOverride[];
|
|
153
|
+
/** Required. Post conditions to evaluate to mark an upgrade COMPLETE. Required. */
|
|
154
|
+
postConditions?:
|
|
155
|
+
ClusterUpgradePostConditions;
|
|
156
|
+
/**
|
|
157
|
+
* This fleet consumes upgrades that have COMPLETE status code in the upstream fleets. See UpgradeStatus.Code for code definitions. The fleet name should be either fleet project number
|
|
158
|
+
* or id. This is defined as repeated for future proof reasons. Initial implementation will enforce at most one upstream fleet.
|
|
159
|
+
*/
|
|
160
|
+
upstreamFleets?:
|
|
161
|
+
string[];
|
|
162
|
+
}
|
|
163
|
+
interface ClusterUpgradeFleetState {
|
|
164
|
+
/** This fleets whose upstream_fleets contain the current fleet. The fleet name should be either fleet project number or id. */
|
|
165
|
+
downstreamFleets?:
|
|
166
|
+
string[];
|
|
167
|
+
/** Feature state for GKE clusters. */
|
|
168
|
+
gkeState?:
|
|
169
|
+
ClusterUpgradeGKEUpgradeFeatureState;
|
|
170
|
+
/**
|
|
171
|
+
* A list of memberships ignored by the feature. For example, manually upgraded clusters can be ignored if they are newer than the default versions of its release channel. The
|
|
172
|
+
* membership resource is in the format: `projects/{p}/locations/{l}/membership/{m}`.
|
|
173
|
+
*/
|
|
174
|
+
ignored?:
|
|
175
|
+
{ [P in string]: ClusterUpgradeIgnoredMembership };
|
|
176
|
+
}
|
|
149
177
|
interface ClusterUpgradeGKEUpgrade {
|
|
150
178
|
/** Name of the upgrade, e.g., "k8s_control_plane". It should be a valid upgrade name. It must not exceet 99 characters. */
|
|
151
179
|
name?:
|
|
@@ -172,9 +200,6 @@ declare namespace gapi.client {
|
|
|
172
200
|
/** Current conditions of the feature. */
|
|
173
201
|
conditions?:
|
|
174
202
|
ClusterUpgradeGKEUpgradeFeatureCondition[];
|
|
175
|
-
/** Scope-level upgrade state. */
|
|
176
|
-
state?:
|
|
177
|
-
ClusterUpgradeScopeGKEUpgradeState[];
|
|
178
203
|
/** Upgrade state. It will eventually replace `state`. */
|
|
179
204
|
upgradeState?:
|
|
180
205
|
ClusterUpgradeGKEUpgradeState[];
|
|
@@ -215,6 +240,9 @@ declare namespace gapi.client {
|
|
|
215
240
|
ClusterUpgradeGKEUpgrade;
|
|
216
241
|
}
|
|
217
242
|
interface ClusterUpgradeMembershipState {
|
|
243
|
+
/** Project number or id of the fleet. It is set only for Memberships that are part of fleet-based Rollout Sequencing. */
|
|
244
|
+
fleet?:
|
|
245
|
+
string;
|
|
218
246
|
/** Whether this membership is ignored by the feature. For example, manually upgraded clusters can be ignored if they are newer than the default versions of its release channel. */
|
|
219
247
|
ignored?:
|
|
220
248
|
ClusterUpgradeIgnoredMembership;
|
|
@@ -230,17 +258,6 @@ declare namespace gapi.client {
|
|
|
230
258
|
soaking?:
|
|
231
259
|
string;
|
|
232
260
|
}
|
|
233
|
-
interface ClusterUpgradeScopeGKEUpgradeState {
|
|
234
|
-
/** Number of GKE clusters in each status code. */
|
|
235
|
-
stats?:
|
|
236
|
-
{ [P in string]: string };
|
|
237
|
-
/** Status of the upgrade. */
|
|
238
|
-
status?:
|
|
239
|
-
ClusterUpgradeUpgradeStatus;
|
|
240
|
-
/** Which upgrade to track the state. */
|
|
241
|
-
upgrade?:
|
|
242
|
-
ClusterUpgradeGKEUpgrade;
|
|
243
|
-
}
|
|
244
261
|
interface ClusterUpgradeScopeSpec {
|
|
245
262
|
/** Allow users to override some properties of each GKE upgrade. */
|
|
246
263
|
gkeUpgradeOverrides?:
|
|
@@ -294,6 +311,9 @@ declare namespace gapi.client {
|
|
|
294
311
|
/** Cloud Audit Logging-specific spec. */
|
|
295
312
|
cloudauditlogging?:
|
|
296
313
|
CloudAuditLoggingFeatureSpec;
|
|
314
|
+
/** ClusterUpgrade (fleet-based) feature spec. */
|
|
315
|
+
clusterupgrade?:
|
|
316
|
+
ClusterUpgradeFleetSpec;
|
|
297
317
|
/** FleetObservability feature spec. */
|
|
298
318
|
fleetobservability?:
|
|
299
319
|
FleetObservabilityFeatureSpec;
|
|
@@ -308,6 +328,9 @@ declare namespace gapi.client {
|
|
|
308
328
|
/** Appdevexperience specific state. */
|
|
309
329
|
appdevexperience?:
|
|
310
330
|
AppDevExperienceFeatureState;
|
|
331
|
+
/** ClusterUpgrade fleet-level state. */
|
|
332
|
+
clusterupgrade?:
|
|
333
|
+
ClusterUpgradeFleetState;
|
|
311
334
|
/** FleetObservability feature state. */
|
|
312
335
|
fleetobservability?:
|
|
313
336
|
FleetObservabilityFeatureState;
|
|
@@ -997,6 +1020,9 @@ declare namespace gapi.client {
|
|
|
997
1020
|
/** Kind of Azure AD account to be authenticated. Supported values are or for accounts belonging to a specific tenant. */
|
|
998
1021
|
tenant?:
|
|
999
1022
|
string;
|
|
1023
|
+
/** Optional. Claim in the AzureAD ID Token that holds the user details. */
|
|
1024
|
+
userClaim?:
|
|
1025
|
+
string;
|
|
1000
1026
|
}
|
|
1001
1027
|
interface IdentityServiceGoogleConfig {
|
|
1002
1028
|
/** Disable automatic configuration of Google Plugin on supported platforms. */
|
|
@@ -1309,9 +1335,6 @@ declare namespace gapi.client {
|
|
|
1309
1335
|
/** Output only. When the membership binding was deleted. */
|
|
1310
1336
|
deleteTime?:
|
|
1311
1337
|
string;
|
|
1312
|
-
/** Whether the membershipbinding is Fleet-wide; true means that this Membership should be bound to all Namespaces in this entire Fleet. */
|
|
1313
|
-
fleet?:
|
|
1314
|
-
boolean;
|
|
1315
1338
|
/** Optional. Labels for this MembershipBinding. */
|
|
1316
1339
|
labels?:
|
|
1317
1340
|
{ [P in string]: string };
|
|
@@ -1573,9 +1596,9 @@ declare namespace gapi.client {
|
|
|
1573
1596
|
name?:
|
|
1574
1597
|
string;
|
|
1575
1598
|
/**
|
|
1576
|
-
* The normal response of the operation
|
|
1577
|
-
*
|
|
1578
|
-
*
|
|
1599
|
+
* The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original
|
|
1600
|
+
* method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original
|
|
1601
|
+
* method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
|
|
1579
1602
|
*/
|
|
1580
1603
|
response?:
|
|
1581
1604
|
{ [P in string]: any };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maxim_mazurok/gapi.client.gkehub-v1alpha",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20230814",
|
|
4
4
|
"description": "TypeScript typings for GKE Hub API v1alpha",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -15,6 +15,6 @@
|
|
|
15
15
|
"types": "index.d.ts",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@types/gapi.client": "*",
|
|
18
|
-
"@types/gapi.client.discovery": "*"
|
|
18
|
+
"@types/gapi.client.discovery-v1": "*"
|
|
19
19
|
}
|
|
20
20
|
}
|
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: 20230814
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -64,6 +64,7 @@ gapi.load('client', async () => {
|
|
|
64
64
|
encryptedClientSecret: "Test string",
|
|
65
65
|
kubectlRedirectUri: "Test string",
|
|
66
66
|
tenant: "Test string",
|
|
67
|
+
userClaim: "Test string",
|
|
67
68
|
},
|
|
68
69
|
googleConfig: {
|
|
69
70
|
disable: true,
|
|
@@ -170,6 +171,7 @@ gapi.load('client', async () => {
|
|
|
170
171
|
encryptedClientSecret: "Test string",
|
|
171
172
|
kubectlRedirectUri: "Test string",
|
|
172
173
|
tenant: "Test string",
|
|
174
|
+
userClaim: "Test string",
|
|
173
175
|
},
|
|
174
176
|
googleConfig: {
|
|
175
177
|
disable: true,
|
|
@@ -273,6 +275,7 @@ gapi.load('client', async () => {
|
|
|
273
275
|
},
|
|
274
276
|
},
|
|
275
277
|
clusterupgrade: {
|
|
278
|
+
fleet: "Test string",
|
|
276
279
|
ignored: {
|
|
277
280
|
ignoredTime: "Test string",
|
|
278
281
|
reason: "Test string",
|
|
@@ -456,6 +459,7 @@ gapi.load('client', async () => {
|
|
|
456
459
|
encryptedClientSecret: "Test string",
|
|
457
460
|
kubectlRedirectUri: "Test string",
|
|
458
461
|
tenant: "Test string",
|
|
462
|
+
userClaim: "Test string",
|
|
459
463
|
},
|
|
460
464
|
googleConfig: {
|
|
461
465
|
disable: true,
|
|
@@ -601,22 +605,6 @@ gapi.load('client', async () => {
|
|
|
601
605
|
updateTime: "Test string",
|
|
602
606
|
}
|
|
603
607
|
],
|
|
604
|
-
state: [
|
|
605
|
-
{
|
|
606
|
-
stats: {
|
|
607
|
-
A: "Test string"
|
|
608
|
-
},
|
|
609
|
-
status: {
|
|
610
|
-
code: "Test string",
|
|
611
|
-
reason: "Test string",
|
|
612
|
-
updateTime: "Test string",
|
|
613
|
-
},
|
|
614
|
-
upgrade: {
|
|
615
|
-
name: "Test string",
|
|
616
|
-
version: "Test string",
|
|
617
|
-
},
|
|
618
|
-
}
|
|
619
|
-
],
|
|
620
608
|
upgradeState: [
|
|
621
609
|
{
|
|
622
610
|
stats: {
|
|
@@ -663,6 +651,25 @@ gapi.load('client', async () => {
|
|
|
663
651
|
"Test string"
|
|
664
652
|
],
|
|
665
653
|
},
|
|
654
|
+
clusterupgrade: {
|
|
655
|
+
gkeUpgradeOverrides: [
|
|
656
|
+
{
|
|
657
|
+
postConditions: {
|
|
658
|
+
soaking: "Test string",
|
|
659
|
+
},
|
|
660
|
+
upgrade: {
|
|
661
|
+
name: "Test string",
|
|
662
|
+
version: "Test string",
|
|
663
|
+
},
|
|
664
|
+
}
|
|
665
|
+
],
|
|
666
|
+
postConditions: {
|
|
667
|
+
soaking: "Test string",
|
|
668
|
+
},
|
|
669
|
+
upstreamFleets: [
|
|
670
|
+
"Test string"
|
|
671
|
+
],
|
|
672
|
+
},
|
|
666
673
|
fleetobservability: {
|
|
667
674
|
loggingConfig: {
|
|
668
675
|
defaultConfig: {
|
|
@@ -691,6 +698,43 @@ gapi.load('client', async () => {
|
|
|
691
698
|
description: "Test string",
|
|
692
699
|
},
|
|
693
700
|
},
|
|
701
|
+
clusterupgrade: {
|
|
702
|
+
downstreamFleets: [
|
|
703
|
+
"Test string"
|
|
704
|
+
],
|
|
705
|
+
gkeState: {
|
|
706
|
+
conditions: [
|
|
707
|
+
{
|
|
708
|
+
reason: "Test string",
|
|
709
|
+
status: "Test string",
|
|
710
|
+
type: "Test string",
|
|
711
|
+
updateTime: "Test string",
|
|
712
|
+
}
|
|
713
|
+
],
|
|
714
|
+
upgradeState: [
|
|
715
|
+
{
|
|
716
|
+
stats: {
|
|
717
|
+
A: "Test string"
|
|
718
|
+
},
|
|
719
|
+
status: {
|
|
720
|
+
code: "Test string",
|
|
721
|
+
reason: "Test string",
|
|
722
|
+
updateTime: "Test string",
|
|
723
|
+
},
|
|
724
|
+
upgrade: {
|
|
725
|
+
name: "Test string",
|
|
726
|
+
version: "Test string",
|
|
727
|
+
},
|
|
728
|
+
}
|
|
729
|
+
],
|
|
730
|
+
},
|
|
731
|
+
ignored: {
|
|
732
|
+
A: {
|
|
733
|
+
ignoredTime: "Test string",
|
|
734
|
+
reason: "Test string",
|
|
735
|
+
}
|
|
736
|
+
},
|
|
737
|
+
},
|
|
694
738
|
fleetobservability: {
|
|
695
739
|
logging: {
|
|
696
740
|
defaultLog: {
|
|
@@ -794,6 +838,7 @@ gapi.load('client', async () => {
|
|
|
794
838
|
encryptedClientSecret: "Test string",
|
|
795
839
|
kubectlRedirectUri: "Test string",
|
|
796
840
|
tenant: "Test string",
|
|
841
|
+
userClaim: "Test string",
|
|
797
842
|
},
|
|
798
843
|
googleConfig: {
|
|
799
844
|
disable: true,
|
|
@@ -900,6 +945,7 @@ gapi.load('client', async () => {
|
|
|
900
945
|
encryptedClientSecret: "Test string",
|
|
901
946
|
kubectlRedirectUri: "Test string",
|
|
902
947
|
tenant: "Test string",
|
|
948
|
+
userClaim: "Test string",
|
|
903
949
|
},
|
|
904
950
|
googleConfig: {
|
|
905
951
|
disable: true,
|
|
@@ -1003,6 +1049,7 @@ gapi.load('client', async () => {
|
|
|
1003
1049
|
},
|
|
1004
1050
|
},
|
|
1005
1051
|
clusterupgrade: {
|
|
1052
|
+
fleet: "Test string",
|
|
1006
1053
|
ignored: {
|
|
1007
1054
|
ignoredTime: "Test string",
|
|
1008
1055
|
reason: "Test string",
|
|
@@ -1186,6 +1233,7 @@ gapi.load('client', async () => {
|
|
|
1186
1233
|
encryptedClientSecret: "Test string",
|
|
1187
1234
|
kubectlRedirectUri: "Test string",
|
|
1188
1235
|
tenant: "Test string",
|
|
1236
|
+
userClaim: "Test string",
|
|
1189
1237
|
},
|
|
1190
1238
|
googleConfig: {
|
|
1191
1239
|
disable: true,
|
|
@@ -1331,22 +1379,6 @@ gapi.load('client', async () => {
|
|
|
1331
1379
|
updateTime: "Test string",
|
|
1332
1380
|
}
|
|
1333
1381
|
],
|
|
1334
|
-
state: [
|
|
1335
|
-
{
|
|
1336
|
-
stats: {
|
|
1337
|
-
A: "Test string"
|
|
1338
|
-
},
|
|
1339
|
-
status: {
|
|
1340
|
-
code: "Test string",
|
|
1341
|
-
reason: "Test string",
|
|
1342
|
-
updateTime: "Test string",
|
|
1343
|
-
},
|
|
1344
|
-
upgrade: {
|
|
1345
|
-
name: "Test string",
|
|
1346
|
-
version: "Test string",
|
|
1347
|
-
},
|
|
1348
|
-
}
|
|
1349
|
-
],
|
|
1350
1382
|
upgradeState: [
|
|
1351
1383
|
{
|
|
1352
1384
|
stats: {
|
|
@@ -1393,6 +1425,25 @@ gapi.load('client', async () => {
|
|
|
1393
1425
|
"Test string"
|
|
1394
1426
|
],
|
|
1395
1427
|
},
|
|
1428
|
+
clusterupgrade: {
|
|
1429
|
+
gkeUpgradeOverrides: [
|
|
1430
|
+
{
|
|
1431
|
+
postConditions: {
|
|
1432
|
+
soaking: "Test string",
|
|
1433
|
+
},
|
|
1434
|
+
upgrade: {
|
|
1435
|
+
name: "Test string",
|
|
1436
|
+
version: "Test string",
|
|
1437
|
+
},
|
|
1438
|
+
}
|
|
1439
|
+
],
|
|
1440
|
+
postConditions: {
|
|
1441
|
+
soaking: "Test string",
|
|
1442
|
+
},
|
|
1443
|
+
upstreamFleets: [
|
|
1444
|
+
"Test string"
|
|
1445
|
+
],
|
|
1446
|
+
},
|
|
1396
1447
|
fleetobservability: {
|
|
1397
1448
|
loggingConfig: {
|
|
1398
1449
|
defaultConfig: {
|
|
@@ -1421,6 +1472,43 @@ gapi.load('client', async () => {
|
|
|
1421
1472
|
description: "Test string",
|
|
1422
1473
|
},
|
|
1423
1474
|
},
|
|
1475
|
+
clusterupgrade: {
|
|
1476
|
+
downstreamFleets: [
|
|
1477
|
+
"Test string"
|
|
1478
|
+
],
|
|
1479
|
+
gkeState: {
|
|
1480
|
+
conditions: [
|
|
1481
|
+
{
|
|
1482
|
+
reason: "Test string",
|
|
1483
|
+
status: "Test string",
|
|
1484
|
+
type: "Test string",
|
|
1485
|
+
updateTime: "Test string",
|
|
1486
|
+
}
|
|
1487
|
+
],
|
|
1488
|
+
upgradeState: [
|
|
1489
|
+
{
|
|
1490
|
+
stats: {
|
|
1491
|
+
A: "Test string"
|
|
1492
|
+
},
|
|
1493
|
+
status: {
|
|
1494
|
+
code: "Test string",
|
|
1495
|
+
reason: "Test string",
|
|
1496
|
+
updateTime: "Test string",
|
|
1497
|
+
},
|
|
1498
|
+
upgrade: {
|
|
1499
|
+
name: "Test string",
|
|
1500
|
+
version: "Test string",
|
|
1501
|
+
},
|
|
1502
|
+
}
|
|
1503
|
+
],
|
|
1504
|
+
},
|
|
1505
|
+
ignored: {
|
|
1506
|
+
A: {
|
|
1507
|
+
ignoredTime: "Test string",
|
|
1508
|
+
reason: "Test string",
|
|
1509
|
+
}
|
|
1510
|
+
},
|
|
1511
|
+
},
|
|
1424
1512
|
fleetobservability: {
|
|
1425
1513
|
logging: {
|
|
1426
1514
|
defaultLog: {
|
|
@@ -1944,7 +2032,6 @@ gapi.load('client', async () => {
|
|
|
1944
2032
|
}, {
|
|
1945
2033
|
createTime: "Test string",
|
|
1946
2034
|
deleteTime: "Test string",
|
|
1947
|
-
fleet: true,
|
|
1948
2035
|
labels: {
|
|
1949
2036
|
A: "Test string"
|
|
1950
2037
|
},
|
|
@@ -1978,7 +2065,6 @@ gapi.load('client', async () => {
|
|
|
1978
2065
|
}, {
|
|
1979
2066
|
createTime: "Test string",
|
|
1980
2067
|
deleteTime: "Test string",
|
|
1981
|
-
fleet: true,
|
|
1982
2068
|
labels: {
|
|
1983
2069
|
A: "Test string"
|
|
1984
2070
|
},
|