@maxim_mazurok/gapi.client.gkehub-v1alpha 0.0.20230804 → 0.0.20230901

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.
Files changed (3) hide show
  1. package/index.d.ts +43 -11
  2. package/package.json +1 -1
  3. package/tests.ts +115 -9
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: 20230804
12
+ // Revision: 20230901
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -78,9 +78,10 @@ declare namespace gapi.client {
78
78
  identityProvider?:
79
79
  string;
80
80
  /**
81
- * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and be a valid URL with length <2000 characters. If set, then Google will allow valid OIDC tokens
82
- * from this issuer to authenticate within the workload_identity_pool. OIDC discovery will be performed on this URI to validate tokens from the issuer. Clearing `issuer` disables
83
- * Workload Identity. `issuer` cannot be directly modified; it must be cleared (and Workload Identity disabled) before using a new issuer (and re-enabling Workload Identity).
81
+ * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and be a valid URL with length <2000 characters, it must use `location` rather than `zone` for GKE
82
+ * clusters. If set, then Google will allow valid OIDC tokens from this issuer to authenticate within the workload_identity_pool. OIDC discovery will be performed on this URI to
83
+ * validate tokens from the issuer. Clearing `issuer` disables Workload Identity. `issuer` cannot be directly modified; it must be cleared (and Workload Identity disabled) before using
84
+ * a new issuer (and re-enabling Workload Identity).
84
85
  */
85
86
  issuer?:
86
87
  string;
@@ -146,6 +147,34 @@ declare namespace gapi.client {
146
147
  version?:
147
148
  string;
148
149
  }
150
+ interface ClusterUpgradeFleetSpec {
151
+ /** Allow users to override some properties of each GKE upgrade. */
152
+ gkeUpgradeOverrides?:
153
+ ClusterUpgradeGKEUpgradeOverride[];
154
+ /** Required. Post conditions to evaluate to mark an upgrade COMPLETE. Required. */
155
+ postConditions?:
156
+ ClusterUpgradePostConditions;
157
+ /**
158
+ * 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
159
+ * or id. This is defined as repeated for future proof reasons. Initial implementation will enforce at most one upstream fleet.
160
+ */
161
+ upstreamFleets?:
162
+ string[];
163
+ }
164
+ interface ClusterUpgradeFleetState {
165
+ /** This fleets whose upstream_fleets contain the current fleet. The fleet name should be either fleet project number or id. */
166
+ downstreamFleets?:
167
+ string[];
168
+ /** Feature state for GKE clusters. */
169
+ gkeState?:
170
+ ClusterUpgradeGKEUpgradeFeatureState;
171
+ /**
172
+ * 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
173
+ * membership resource is in the format: `projects/{p}/locations/{l}/membership/{m}`.
174
+ */
175
+ ignored?:
176
+ { [P in string]: ClusterUpgradeIgnoredMembership };
177
+ }
149
178
  interface ClusterUpgradeGKEUpgrade {
150
179
  /** Name of the upgrade, e.g., "k8s_control_plane". It should be a valid upgrade name. It must not exceet 99 characters. */
151
180
  name?:
@@ -212,6 +241,9 @@ declare namespace gapi.client {
212
241
  ClusterUpgradeGKEUpgrade;
213
242
  }
214
243
  interface ClusterUpgradeMembershipState {
244
+ /** Project number or id of the fleet. It is set only for Memberships that are part of fleet-based Rollout Sequencing. */
245
+ fleet?:
246
+ string;
215
247
  /** 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
248
  ignored?:
217
249
  ClusterUpgradeIgnoredMembership;
@@ -280,6 +312,9 @@ declare namespace gapi.client {
280
312
  /** Cloud Audit Logging-specific spec. */
281
313
  cloudauditlogging?:
282
314
  CloudAuditLoggingFeatureSpec;
315
+ /** ClusterUpgrade (fleet-based) feature spec. */
316
+ clusterupgrade?:
317
+ ClusterUpgradeFleetSpec;
283
318
  /** FleetObservability feature spec. */
284
319
  fleetobservability?:
285
320
  FleetObservabilityFeatureSpec;
@@ -294,6 +329,9 @@ declare namespace gapi.client {
294
329
  /** Appdevexperience specific state. */
295
330
  appdevexperience?:
296
331
  AppDevExperienceFeatureState;
332
+ /** ClusterUpgrade fleet-level state. */
333
+ clusterupgrade?:
334
+ ClusterUpgradeFleetState;
297
335
  /** FleetObservability feature state. */
298
336
  fleetobservability?:
299
337
  FleetObservabilityFeatureState;
@@ -531,7 +569,7 @@ declare namespace gapi.client {
531
569
  string;
532
570
  }
533
571
  interface ConfigManagementMembershipSpec {
534
- /** Binauthz conifguration for the cluster. */
572
+ /** Binauthz conifguration for the cluster. Deprecated: This field will be ignored and should not be set. */
535
573
  binauthz?:
536
574
  ConfigManagementBinauthzConfig;
537
575
  /**
@@ -983,9 +1021,6 @@ declare namespace gapi.client {
983
1021
  /** Kind of Azure AD account to be authenticated. Supported values are or for accounts belonging to a specific tenant. */
984
1022
  tenant?:
985
1023
  string;
986
- /** Optional. Claim in the AzureAD ID Token that holds the user details. */
987
- userClaim?:
988
- string;
989
1024
  }
990
1025
  interface IdentityServiceGoogleConfig {
991
1026
  /** Disable automatic configuration of Google Plugin on supported platforms. */
@@ -1298,9 +1333,6 @@ declare namespace gapi.client {
1298
1333
  /** Output only. When the membership binding was deleted. */
1299
1334
  deleteTime?:
1300
1335
  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
1336
  /** Optional. Labels for this MembershipBinding. */
1305
1337
  labels?:
1306
1338
  { [P in string]: string };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.gkehub-v1alpha",
3
- "version": "0.0.20230804",
3
+ "version": "0.0.20230901",
4
4
  "description": "TypeScript typings for GKE Hub API v1alpha",
5
5
  "license": "MIT",
6
6
  "author": {
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: 20230804
6
+ // Revision: 20230901
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -64,7 +64,6 @@ gapi.load('client', async () => {
64
64
  encryptedClientSecret: "Test string",
65
65
  kubectlRedirectUri: "Test string",
66
66
  tenant: "Test string",
67
- userClaim: "Test string",
68
67
  },
69
68
  googleConfig: {
70
69
  disable: true,
@@ -171,7 +170,6 @@ gapi.load('client', async () => {
171
170
  encryptedClientSecret: "Test string",
172
171
  kubectlRedirectUri: "Test string",
173
172
  tenant: "Test string",
174
- userClaim: "Test string",
175
173
  },
176
174
  googleConfig: {
177
175
  disable: true,
@@ -275,6 +273,7 @@ gapi.load('client', async () => {
275
273
  },
276
274
  },
277
275
  clusterupgrade: {
276
+ fleet: "Test string",
278
277
  ignored: {
279
278
  ignoredTime: "Test string",
280
279
  reason: "Test string",
@@ -458,7 +457,6 @@ gapi.load('client', async () => {
458
457
  encryptedClientSecret: "Test string",
459
458
  kubectlRedirectUri: "Test string",
460
459
  tenant: "Test string",
461
- userClaim: "Test string",
462
460
  },
463
461
  googleConfig: {
464
462
  disable: true,
@@ -650,6 +648,25 @@ gapi.load('client', async () => {
650
648
  "Test string"
651
649
  ],
652
650
  },
651
+ clusterupgrade: {
652
+ gkeUpgradeOverrides: [
653
+ {
654
+ postConditions: {
655
+ soaking: "Test string",
656
+ },
657
+ upgrade: {
658
+ name: "Test string",
659
+ version: "Test string",
660
+ },
661
+ }
662
+ ],
663
+ postConditions: {
664
+ soaking: "Test string",
665
+ },
666
+ upstreamFleets: [
667
+ "Test string"
668
+ ],
669
+ },
653
670
  fleetobservability: {
654
671
  loggingConfig: {
655
672
  defaultConfig: {
@@ -678,6 +695,43 @@ gapi.load('client', async () => {
678
695
  description: "Test string",
679
696
  },
680
697
  },
698
+ clusterupgrade: {
699
+ downstreamFleets: [
700
+ "Test string"
701
+ ],
702
+ gkeState: {
703
+ conditions: [
704
+ {
705
+ reason: "Test string",
706
+ status: "Test string",
707
+ type: "Test string",
708
+ updateTime: "Test string",
709
+ }
710
+ ],
711
+ upgradeState: [
712
+ {
713
+ stats: {
714
+ A: "Test string"
715
+ },
716
+ status: {
717
+ code: "Test string",
718
+ reason: "Test string",
719
+ updateTime: "Test string",
720
+ },
721
+ upgrade: {
722
+ name: "Test string",
723
+ version: "Test string",
724
+ },
725
+ }
726
+ ],
727
+ },
728
+ ignored: {
729
+ A: {
730
+ ignoredTime: "Test string",
731
+ reason: "Test string",
732
+ }
733
+ },
734
+ },
681
735
  fleetobservability: {
682
736
  logging: {
683
737
  defaultLog: {
@@ -781,7 +835,6 @@ gapi.load('client', async () => {
781
835
  encryptedClientSecret: "Test string",
782
836
  kubectlRedirectUri: "Test string",
783
837
  tenant: "Test string",
784
- userClaim: "Test string",
785
838
  },
786
839
  googleConfig: {
787
840
  disable: true,
@@ -888,7 +941,6 @@ gapi.load('client', async () => {
888
941
  encryptedClientSecret: "Test string",
889
942
  kubectlRedirectUri: "Test string",
890
943
  tenant: "Test string",
891
- userClaim: "Test string",
892
944
  },
893
945
  googleConfig: {
894
946
  disable: true,
@@ -992,6 +1044,7 @@ gapi.load('client', async () => {
992
1044
  },
993
1045
  },
994
1046
  clusterupgrade: {
1047
+ fleet: "Test string",
995
1048
  ignored: {
996
1049
  ignoredTime: "Test string",
997
1050
  reason: "Test string",
@@ -1175,7 +1228,6 @@ gapi.load('client', async () => {
1175
1228
  encryptedClientSecret: "Test string",
1176
1229
  kubectlRedirectUri: "Test string",
1177
1230
  tenant: "Test string",
1178
- userClaim: "Test string",
1179
1231
  },
1180
1232
  googleConfig: {
1181
1233
  disable: true,
@@ -1367,6 +1419,25 @@ gapi.load('client', async () => {
1367
1419
  "Test string"
1368
1420
  ],
1369
1421
  },
1422
+ clusterupgrade: {
1423
+ gkeUpgradeOverrides: [
1424
+ {
1425
+ postConditions: {
1426
+ soaking: "Test string",
1427
+ },
1428
+ upgrade: {
1429
+ name: "Test string",
1430
+ version: "Test string",
1431
+ },
1432
+ }
1433
+ ],
1434
+ postConditions: {
1435
+ soaking: "Test string",
1436
+ },
1437
+ upstreamFleets: [
1438
+ "Test string"
1439
+ ],
1440
+ },
1370
1441
  fleetobservability: {
1371
1442
  loggingConfig: {
1372
1443
  defaultConfig: {
@@ -1395,6 +1466,43 @@ gapi.load('client', async () => {
1395
1466
  description: "Test string",
1396
1467
  },
1397
1468
  },
1469
+ clusterupgrade: {
1470
+ downstreamFleets: [
1471
+ "Test string"
1472
+ ],
1473
+ gkeState: {
1474
+ conditions: [
1475
+ {
1476
+ reason: "Test string",
1477
+ status: "Test string",
1478
+ type: "Test string",
1479
+ updateTime: "Test string",
1480
+ }
1481
+ ],
1482
+ upgradeState: [
1483
+ {
1484
+ stats: {
1485
+ A: "Test string"
1486
+ },
1487
+ status: {
1488
+ code: "Test string",
1489
+ reason: "Test string",
1490
+ updateTime: "Test string",
1491
+ },
1492
+ upgrade: {
1493
+ name: "Test string",
1494
+ version: "Test string",
1495
+ },
1496
+ }
1497
+ ],
1498
+ },
1499
+ ignored: {
1500
+ A: {
1501
+ ignoredTime: "Test string",
1502
+ reason: "Test string",
1503
+ }
1504
+ },
1505
+ },
1398
1506
  fleetobservability: {
1399
1507
  logging: {
1400
1508
  defaultLog: {
@@ -1918,7 +2026,6 @@ gapi.load('client', async () => {
1918
2026
  }, {
1919
2027
  createTime: "Test string",
1920
2028
  deleteTime: "Test string",
1921
- fleet: true,
1922
2029
  labels: {
1923
2030
  A: "Test string"
1924
2031
  },
@@ -1952,7 +2059,6 @@ gapi.load('client', async () => {
1952
2059
  }, {
1953
2060
  createTime: "Test string",
1954
2061
  deleteTime: "Test string",
1955
- fleet: true,
1956
2062
  labels: {
1957
2063
  A: "Test string"
1958
2064
  },