@maxim_mazurok/gapi.client.gkehub-v1alpha 0.0.20230804 → 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 +38 -4
- package/package.json +1 -1
- package/tests.ts +115 -3
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?:
|
|
@@ -212,6 +240,9 @@ declare namespace gapi.client {
|
|
|
212
240
|
ClusterUpgradeGKEUpgrade;
|
|
213
241
|
}
|
|
214
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;
|
|
215
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. */
|
|
216
247
|
ignored?:
|
|
217
248
|
ClusterUpgradeIgnoredMembership;
|
|
@@ -280,6 +311,9 @@ declare namespace gapi.client {
|
|
|
280
311
|
/** Cloud Audit Logging-specific spec. */
|
|
281
312
|
cloudauditlogging?:
|
|
282
313
|
CloudAuditLoggingFeatureSpec;
|
|
314
|
+
/** ClusterUpgrade (fleet-based) feature spec. */
|
|
315
|
+
clusterupgrade?:
|
|
316
|
+
ClusterUpgradeFleetSpec;
|
|
283
317
|
/** FleetObservability feature spec. */
|
|
284
318
|
fleetobservability?:
|
|
285
319
|
FleetObservabilityFeatureSpec;
|
|
@@ -294,6 +328,9 @@ declare namespace gapi.client {
|
|
|
294
328
|
/** Appdevexperience specific state. */
|
|
295
329
|
appdevexperience?:
|
|
296
330
|
AppDevExperienceFeatureState;
|
|
331
|
+
/** ClusterUpgrade fleet-level state. */
|
|
332
|
+
clusterupgrade?:
|
|
333
|
+
ClusterUpgradeFleetState;
|
|
297
334
|
/** FleetObservability feature state. */
|
|
298
335
|
fleetobservability?:
|
|
299
336
|
FleetObservabilityFeatureState;
|
|
@@ -1298,9 +1335,6 @@ declare namespace gapi.client {
|
|
|
1298
1335
|
/** Output only. When the membership binding was deleted. */
|
|
1299
1336
|
deleteTime?:
|
|
1300
1337
|
string;
|
|
1301
|
-
/** Whether the membershipbinding is Fleet-wide; true means that this Membership should be bound to all Namespaces in this entire Fleet. */
|
|
1302
|
-
fleet?:
|
|
1303
|
-
boolean;
|
|
1304
1338
|
/** Optional. Labels for this MembershipBinding. */
|
|
1305
1339
|
labels?:
|
|
1306
1340
|
{ [P in string]: 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: 20230814
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -275,6 +275,7 @@ gapi.load('client', async () => {
|
|
|
275
275
|
},
|
|
276
276
|
},
|
|
277
277
|
clusterupgrade: {
|
|
278
|
+
fleet: "Test string",
|
|
278
279
|
ignored: {
|
|
279
280
|
ignoredTime: "Test string",
|
|
280
281
|
reason: "Test string",
|
|
@@ -650,6 +651,25 @@ gapi.load('client', async () => {
|
|
|
650
651
|
"Test string"
|
|
651
652
|
],
|
|
652
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
|
+
},
|
|
653
673
|
fleetobservability: {
|
|
654
674
|
loggingConfig: {
|
|
655
675
|
defaultConfig: {
|
|
@@ -678,6 +698,43 @@ gapi.load('client', async () => {
|
|
|
678
698
|
description: "Test string",
|
|
679
699
|
},
|
|
680
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
|
+
},
|
|
681
738
|
fleetobservability: {
|
|
682
739
|
logging: {
|
|
683
740
|
defaultLog: {
|
|
@@ -992,6 +1049,7 @@ gapi.load('client', async () => {
|
|
|
992
1049
|
},
|
|
993
1050
|
},
|
|
994
1051
|
clusterupgrade: {
|
|
1052
|
+
fleet: "Test string",
|
|
995
1053
|
ignored: {
|
|
996
1054
|
ignoredTime: "Test string",
|
|
997
1055
|
reason: "Test string",
|
|
@@ -1367,6 +1425,25 @@ gapi.load('client', async () => {
|
|
|
1367
1425
|
"Test string"
|
|
1368
1426
|
],
|
|
1369
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
|
+
},
|
|
1370
1447
|
fleetobservability: {
|
|
1371
1448
|
loggingConfig: {
|
|
1372
1449
|
defaultConfig: {
|
|
@@ -1395,6 +1472,43 @@ gapi.load('client', async () => {
|
|
|
1395
1472
|
description: "Test string",
|
|
1396
1473
|
},
|
|
1397
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
|
+
},
|
|
1398
1512
|
fleetobservability: {
|
|
1399
1513
|
logging: {
|
|
1400
1514
|
defaultLog: {
|
|
@@ -1918,7 +2032,6 @@ gapi.load('client', async () => {
|
|
|
1918
2032
|
}, {
|
|
1919
2033
|
createTime: "Test string",
|
|
1920
2034
|
deleteTime: "Test string",
|
|
1921
|
-
fleet: true,
|
|
1922
2035
|
labels: {
|
|
1923
2036
|
A: "Test string"
|
|
1924
2037
|
},
|
|
@@ -1952,7 +2065,6 @@ gapi.load('client', async () => {
|
|
|
1952
2065
|
}, {
|
|
1953
2066
|
createTime: "Test string",
|
|
1954
2067
|
deleteTime: "Test string",
|
|
1955
|
-
fleet: true,
|
|
1956
2068
|
labels: {
|
|
1957
2069
|
A: "Test string"
|
|
1958
2070
|
},
|