@maxim_mazurok/gapi.client.gkehub-v1alpha 0.0.20230620 → 0.0.20230707

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 +74 -17
  2. package/package.json +1 -1
  3. package/tests.ts +142 -25
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: 20230620
12
+ // Revision: 20230707
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -175,6 +175,9 @@ declare namespace gapi.client {
175
175
  /** Scope-level upgrade state. */
176
176
  state?:
177
177
  ClusterUpgradeScopeGKEUpgradeState[];
178
+ /** Upgrade state. It will eventually replace `state`. */
179
+ upgradeState?:
180
+ ClusterUpgradeGKEUpgradeState[];
178
181
  }
179
182
  interface ClusterUpgradeGKEUpgradeOverride {
180
183
  /** Required. Post conditions to override for the specified upgrade (name + version). Required. */
@@ -184,6 +187,17 @@ declare namespace gapi.client {
184
187
  upgrade?:
185
188
  ClusterUpgradeGKEUpgrade;
186
189
  }
190
+ interface ClusterUpgradeGKEUpgradeState {
191
+ /** Number of GKE clusters in each status code. */
192
+ stats?:
193
+ { [P in string]: string };
194
+ /** Status of the upgrade. */
195
+ status?:
196
+ ClusterUpgradeUpgradeStatus;
197
+ /** Which upgrade to track the state. */
198
+ upgrade?:
199
+ ClusterUpgradeGKEUpgrade;
200
+ }
187
201
  interface ClusterUpgradeIgnoredMembership {
188
202
  /** Time when the membership was first set to ignored. */
189
203
  ignoredTime?:
@@ -296,7 +310,7 @@ declare namespace gapi.client {
296
310
  AppDevExperienceFeatureState;
297
311
  /** FleetObservability feature state. */
298
312
  fleetobservability?:
299
- any;
313
+ FleetObservabilityFeatureState;
300
314
  /** Service Mesh-specific state. */
301
315
  servicemesh?:
302
316
  ServiceMeshFeatureState;
@@ -827,6 +841,9 @@ declare namespace gapi.client {
827
841
  */
828
842
  displayName?:
829
843
  string;
844
+ /** Optional. Labels for this Fleet. */
845
+ labels?:
846
+ { [P in string]: string };
830
847
  /**
831
848
  * Output only. The full, unique resource name of this fleet in the format of `projects/{project}/locations/{location}/fleets/{fleet}`. Each Google Cloud project can have at most one
832
849
  * fleet resource, named "default".
@@ -851,13 +868,47 @@ declare namespace gapi.client {
851
868
  code?:
852
869
  string;
853
870
  }
871
+ interface FleetObservabilityFeatureError {
872
+ /** The code of the error. */
873
+ code?:
874
+ string;
875
+ /** A human-readable description of the current status. */
876
+ description?:
877
+ string;
878
+ }
854
879
  interface FleetObservabilityFeatureSpec {
855
880
  /** Specified if fleet logging feature is enabled for the entire fleet. If UNSPECIFIED, fleet logging feature is disabled for the entire fleet. */
856
881
  loggingConfig?:
857
882
  FleetObservabilityLoggingConfig;
858
883
  }
859
- // tslint:disable-next-line:no-empty-interface
860
884
  interface FleetObservabilityFeatureState {
885
+ /** The feature state of default logging. */
886
+ logging?:
887
+ FleetObservabilityFleetObservabilityLoggingState;
888
+ /** The feature state of fleet monitoring. */
889
+ monitoring?:
890
+ FleetObservabilityFleetObservabilityMonitoringState;
891
+ }
892
+ interface FleetObservabilityFleetObservabilityBaseFeatureState {
893
+ /** The high-level, machine-readable status of this Feature. */
894
+ code?:
895
+ string;
896
+ /** Errors after reconciling the monitoring and logging feature if the code is not OK. */
897
+ errors?:
898
+ FleetObservabilityFeatureError[];
899
+ }
900
+ interface FleetObservabilityFleetObservabilityLoggingState {
901
+ /** The base feature state of fleet default log. */
902
+ defaultLog?:
903
+ FleetObservabilityFleetObservabilityBaseFeatureState;
904
+ /** The base feature state of fleet scope log. */
905
+ scopeLog?:
906
+ FleetObservabilityFleetObservabilityBaseFeatureState;
907
+ }
908
+ interface FleetObservabilityFleetObservabilityMonitoringState {
909
+ /** The base feature state of fleet monitoring feature. */
910
+ state?:
911
+ FleetObservabilityFleetObservabilityBaseFeatureState;
861
912
  }
862
913
  interface FleetObservabilityLoggingConfig {
863
914
  /** Specified if applying the default routing config to logs not specified in other configs. */
@@ -917,7 +968,7 @@ declare namespace gapi.client {
917
968
  /** AzureAD specific Configuration. */
918
969
  azureadConfig?:
919
970
  IdentityServiceAzureADConfig;
920
- /** GoogleConfig specific configuration */
971
+ /** GoogleConfig specific configuration. */
921
972
  googleConfig?:
922
973
  IdentityServiceGoogleConfig;
923
974
  /** Identifier for auth config. */
@@ -946,6 +997,9 @@ declare namespace gapi.client {
946
997
  /** Kind of Azure AD account to be authenticated. Supported values are or for accounts belonging to a specific tenant. */
947
998
  tenant?:
948
999
  string;
1000
+ /** Optional. Claim in the AzureAD ID Token that holds the user details. */
1001
+ userClaim?:
1002
+ string;
949
1003
  }
950
1004
  interface IdentityServiceGoogleConfig {
951
1005
  /** Disable automatic configuration of Google Plugin on supported platforms. */
@@ -1245,6 +1299,9 @@ declare namespace gapi.client {
1245
1299
  /** Whether the membershipbinding is Fleet-wide; true means that this Membership should be bound to all Namespaces in this entire Fleet. */
1246
1300
  fleet?:
1247
1301
  boolean;
1302
+ /** Optional. Labels for this MembershipBinding. */
1303
+ labels?:
1304
+ { [P in string]: string };
1248
1305
  /** The resource name for the membershipbinding itself `projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}` */
1249
1306
  name?:
1250
1307
  string;
@@ -1432,6 +1489,9 @@ declare namespace gapi.client {
1432
1489
  /** Output only. When the namespace was deleted. */
1433
1490
  deleteTime?:
1434
1491
  string;
1492
+ /** Optional. Labels for this Namespace. */
1493
+ labels?:
1494
+ { [P in string]: string };
1435
1495
  /** The resource name for the namespace `projects/{project}/locations/{location}/namespaces/{namespace}` */
1436
1496
  name?:
1437
1497
  string;
@@ -1565,12 +1625,9 @@ declare namespace gapi.client {
1565
1625
  number;
1566
1626
  }
1567
1627
  interface PolicyControllerBundleInstallSpec {
1568
- /** the set of namespaces to be exempted from the bundle */
1628
+ /** The set of namespaces to be exempted from the bundle. */
1569
1629
  exemptedNamespaces?:
1570
1630
  string[];
1571
- /** Management specifies how the bundle will be managed by the controller. */
1572
- management?:
1573
- string;
1574
1631
  }
1575
1632
  interface PolicyControllerHubConfig {
1576
1633
  /** Sets the interval for Policy Controller Audit Scans (in seconds). When set to 0, this disables audit functionality altogether. */
@@ -1606,9 +1663,6 @@ declare namespace gapi.client {
1606
1663
  /** Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated. */
1607
1664
  referentialRulesEnabled?:
1608
1665
  boolean;
1609
- /** Configures the library templates to install along with Policy Controller. */
1610
- templateLibraryConfig?:
1611
- PolicyControllerTemplateLibraryConfig;
1612
1666
  }
1613
1667
  interface PolicyControllerMembershipSpec {
1614
1668
  /** Policy Controller configuration for the cluster. */
@@ -1622,9 +1676,6 @@ declare namespace gapi.client {
1622
1676
  /** Currently these include (also serving as map keys): 1. "admission" 2. "audit" 3. "mutation" */
1623
1677
  componentStates?:
1624
1678
  { [P in string]: PolicyControllerOnClusterState };
1625
- /** The state of the template library and any bundles included in the chosen version of the manifest */
1626
- contentStates?:
1627
- { [P in string]: PolicyControllerOnClusterState };
1628
1679
  /** The overall content state observed by the Hub Feature controller. */
1629
1680
  policyContentState?:
1630
1681
  PolicyControllerPolicyContentState;
@@ -1671,6 +1722,9 @@ declare namespace gapi.client {
1671
1722
  /** Container resource requirements. */
1672
1723
  containerResources?:
1673
1724
  PolicyControllerResourceRequirements;
1725
+ /** Pod affinity configuration. */
1726
+ podAffinity?:
1727
+ string;
1674
1728
  /** Pod anti-affinity enablement. */
1675
1729
  podAntiAffinity?:
1676
1730
  boolean;
@@ -1698,9 +1752,6 @@ declare namespace gapi.client {
1698
1752
  PolicyControllerResourceList;
1699
1753
  }
1700
1754
  interface PolicyControllerTemplateLibraryConfig {
1701
- /** Whether the standard template library should be installed or not. */
1702
- included?:
1703
- boolean;
1704
1755
  /** Configures the manner in which the template library is installed on the cluster. */
1705
1756
  installation?:
1706
1757
  string;
@@ -1729,6 +1780,9 @@ declare namespace gapi.client {
1729
1780
  /** group is the group, as seen by the kubernetes cluster. */
1730
1781
  group?:
1731
1782
  string;
1783
+ /** Optional. Labels for this RBACRolebinding. */
1784
+ labels?:
1785
+ { [P in string]: string };
1732
1786
  /**
1733
1787
  * The resource name for the rbacrolebinding `projects/{project}/locations/{location}/namespaces/{namespace}/rbacrolebindings/{rbacrolebinding}` or
1734
1788
  * `projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}`
@@ -1805,6 +1859,9 @@ declare namespace gapi.client {
1805
1859
  /** Output only. When the scope was deleted. */
1806
1860
  deleteTime?:
1807
1861
  string;
1862
+ /** Optional. Labels for this Scope. */
1863
+ labels?:
1864
+ { [P in string]: string };
1808
1865
  /** The resource name for the scope `projects/{project}/locations/{location}/scopes/{scope}` */
1809
1866
  name?:
1810
1867
  string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.gkehub-v1alpha",
3
- "version": "0.0.20230620",
3
+ "version": "0.0.20230707",
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: 20230620
6
+ // Revision: 20230707
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,
@@ -219,6 +221,7 @@ gapi.load('client', async () => {
219
221
  memory: "Test string",
220
222
  },
221
223
  },
224
+ podAffinity: "Test string",
222
225
  podAntiAffinity: true,
223
226
  podTolerations: [
224
227
  {
@@ -248,19 +251,13 @@ gapi.load('client', async () => {
248
251
  exemptedNamespaces: [
249
252
  "Test string"
250
253
  ],
251
- management: "Test string",
252
254
  }
253
255
  },
254
256
  templateLibrary: {
255
- included: true,
256
257
  installation: "Test string",
257
258
  },
258
259
  },
259
260
  referentialRulesEnabled: true,
260
- templateLibraryConfig: {
261
- included: true,
262
- installation: "Test string",
263
- },
264
261
  },
265
262
  version: "Test string",
266
263
  },
@@ -461,6 +458,7 @@ gapi.load('client', async () => {
461
458
  encryptedClientSecret: "Test string",
462
459
  kubectlRedirectUri: "Test string",
463
460
  tenant: "Test string",
461
+ userClaim: "Test string",
464
462
  },
465
463
  googleConfig: {
466
464
  disable: true,
@@ -499,12 +497,6 @@ gapi.load('client', async () => {
499
497
  state: "Test string",
500
498
  }
501
499
  },
502
- contentStates: {
503
- A: {
504
- details: "Test string",
505
- state: "Test string",
506
- }
507
- },
508
500
  policyContentState: {
509
501
  bundleStates: {
510
502
  A: {
@@ -628,6 +620,22 @@ gapi.load('client', async () => {
628
620
  },
629
621
  }
630
622
  ],
623
+ upgradeState: [
624
+ {
625
+ stats: {
626
+ A: "Test string"
627
+ },
628
+ status: {
629
+ code: "Test string",
630
+ reason: "Test string",
631
+ updateTime: "Test string",
632
+ },
633
+ upgrade: {
634
+ name: "Test string",
635
+ version: "Test string",
636
+ },
637
+ }
638
+ ],
631
639
  },
632
640
  ignored: {
633
641
  A: {
@@ -687,6 +695,37 @@ gapi.load('client', async () => {
687
695
  },
688
696
  },
689
697
  fleetobservability: {
698
+ logging: {
699
+ defaultLog: {
700
+ code: "Test string",
701
+ errors: [
702
+ {
703
+ code: "Test string",
704
+ description: "Test string",
705
+ }
706
+ ],
707
+ },
708
+ scopeLog: {
709
+ code: "Test string",
710
+ errors: [
711
+ {
712
+ code: "Test string",
713
+ description: "Test string",
714
+ }
715
+ ],
716
+ },
717
+ },
718
+ monitoring: {
719
+ state: {
720
+ code: "Test string",
721
+ errors: [
722
+ {
723
+ code: "Test string",
724
+ description: "Test string",
725
+ }
726
+ ],
727
+ },
728
+ },
690
729
  },
691
730
  servicemesh: {
692
731
  analysisMessages: [
@@ -758,6 +797,7 @@ gapi.load('client', async () => {
758
797
  encryptedClientSecret: "Test string",
759
798
  kubectlRedirectUri: "Test string",
760
799
  tenant: "Test string",
800
+ userClaim: "Test string",
761
801
  },
762
802
  googleConfig: {
763
803
  disable: true,
@@ -864,6 +904,7 @@ gapi.load('client', async () => {
864
904
  encryptedClientSecret: "Test string",
865
905
  kubectlRedirectUri: "Test string",
866
906
  tenant: "Test string",
907
+ userClaim: "Test string",
867
908
  },
868
909
  googleConfig: {
869
910
  disable: true,
@@ -913,6 +954,7 @@ gapi.load('client', async () => {
913
954
  memory: "Test string",
914
955
  },
915
956
  },
957
+ podAffinity: "Test string",
916
958
  podAntiAffinity: true,
917
959
  podTolerations: [
918
960
  {
@@ -942,19 +984,13 @@ gapi.load('client', async () => {
942
984
  exemptedNamespaces: [
943
985
  "Test string"
944
986
  ],
945
- management: "Test string",
946
987
  }
947
988
  },
948
989
  templateLibrary: {
949
- included: true,
950
990
  installation: "Test string",
951
991
  },
952
992
  },
953
993
  referentialRulesEnabled: true,
954
- templateLibraryConfig: {
955
- included: true,
956
- installation: "Test string",
957
- },
958
994
  },
959
995
  version: "Test string",
960
996
  },
@@ -1155,6 +1191,7 @@ gapi.load('client', async () => {
1155
1191
  encryptedClientSecret: "Test string",
1156
1192
  kubectlRedirectUri: "Test string",
1157
1193
  tenant: "Test string",
1194
+ userClaim: "Test string",
1158
1195
  },
1159
1196
  googleConfig: {
1160
1197
  disable: true,
@@ -1193,12 +1230,6 @@ gapi.load('client', async () => {
1193
1230
  state: "Test string",
1194
1231
  }
1195
1232
  },
1196
- contentStates: {
1197
- A: {
1198
- details: "Test string",
1199
- state: "Test string",
1200
- }
1201
- },
1202
1233
  policyContentState: {
1203
1234
  bundleStates: {
1204
1235
  A: {
@@ -1322,6 +1353,22 @@ gapi.load('client', async () => {
1322
1353
  },
1323
1354
  }
1324
1355
  ],
1356
+ upgradeState: [
1357
+ {
1358
+ stats: {
1359
+ A: "Test string"
1360
+ },
1361
+ status: {
1362
+ code: "Test string",
1363
+ reason: "Test string",
1364
+ updateTime: "Test string",
1365
+ },
1366
+ upgrade: {
1367
+ name: "Test string",
1368
+ version: "Test string",
1369
+ },
1370
+ }
1371
+ ],
1325
1372
  },
1326
1373
  ignored: {
1327
1374
  A: {
@@ -1381,6 +1428,37 @@ gapi.load('client', async () => {
1381
1428
  },
1382
1429
  },
1383
1430
  fleetobservability: {
1431
+ logging: {
1432
+ defaultLog: {
1433
+ code: "Test string",
1434
+ errors: [
1435
+ {
1436
+ code: "Test string",
1437
+ description: "Test string",
1438
+ }
1439
+ ],
1440
+ },
1441
+ scopeLog: {
1442
+ code: "Test string",
1443
+ errors: [
1444
+ {
1445
+ code: "Test string",
1446
+ description: "Test string",
1447
+ }
1448
+ ],
1449
+ },
1450
+ },
1451
+ monitoring: {
1452
+ state: {
1453
+ code: "Test string",
1454
+ errors: [
1455
+ {
1456
+ code: "Test string",
1457
+ description: "Test string",
1458
+ }
1459
+ ],
1460
+ },
1461
+ },
1384
1462
  },
1385
1463
  servicemesh: {
1386
1464
  analysisMessages: [
@@ -1466,6 +1544,9 @@ gapi.load('client', async () => {
1466
1544
  createTime: "Test string",
1467
1545
  deleteTime: "Test string",
1468
1546
  displayName: "Test string",
1547
+ labels: {
1548
+ A: "Test string"
1549
+ },
1469
1550
  name: "Test string",
1470
1551
  state: {
1471
1552
  code: "Test string",
@@ -1495,6 +1576,9 @@ gapi.load('client', async () => {
1495
1576
  createTime: "Test string",
1496
1577
  deleteTime: "Test string",
1497
1578
  displayName: "Test string",
1579
+ labels: {
1580
+ A: "Test string"
1581
+ },
1498
1582
  name: "Test string",
1499
1583
  state: {
1500
1584
  code: "Test string",
@@ -1867,6 +1951,9 @@ gapi.load('client', async () => {
1867
1951
  createTime: "Test string",
1868
1952
  deleteTime: "Test string",
1869
1953
  fleet: true,
1954
+ labels: {
1955
+ A: "Test string"
1956
+ },
1870
1957
  name: "Test string",
1871
1958
  scope: "Test string",
1872
1959
  state: {
@@ -1898,6 +1985,9 @@ gapi.load('client', async () => {
1898
1985
  createTime: "Test string",
1899
1986
  deleteTime: "Test string",
1900
1987
  fleet: true,
1988
+ labels: {
1989
+ A: "Test string"
1990
+ },
1901
1991
  name: "Test string",
1902
1992
  scope: "Test string",
1903
1993
  state: {
@@ -1914,6 +2004,9 @@ gapi.load('client', async () => {
1914
2004
  createTime: "Test string",
1915
2005
  deleteTime: "Test string",
1916
2006
  group: "Test string",
2007
+ labels: {
2008
+ A: "Test string"
2009
+ },
1917
2010
  name: "Test string",
1918
2011
  role: {
1919
2012
  predefinedRole: "Test string",
@@ -1937,6 +2030,9 @@ gapi.load('client', async () => {
1937
2030
  createTime: "Test string",
1938
2031
  deleteTime: "Test string",
1939
2032
  group: "Test string",
2033
+ labels: {
2034
+ A: "Test string"
2035
+ },
1940
2036
  name: "Test string",
1941
2037
  role: {
1942
2038
  predefinedRole: "Test string",
@@ -1966,6 +2062,9 @@ gapi.load('client', async () => {
1966
2062
  createTime: "Test string",
1967
2063
  deleteTime: "Test string",
1968
2064
  group: "Test string",
2065
+ labels: {
2066
+ A: "Test string"
2067
+ },
1969
2068
  name: "Test string",
1970
2069
  role: {
1971
2070
  predefinedRole: "Test string",
@@ -1984,6 +2083,9 @@ gapi.load('client', async () => {
1984
2083
  }, {
1985
2084
  createTime: "Test string",
1986
2085
  deleteTime: "Test string",
2086
+ labels: {
2087
+ A: "Test string"
2088
+ },
1987
2089
  name: "Test string",
1988
2090
  scope: "Test string",
1989
2091
  state: {
@@ -2013,6 +2115,9 @@ gapi.load('client', async () => {
2013
2115
  }, {
2014
2116
  createTime: "Test string",
2015
2117
  deleteTime: "Test string",
2118
+ labels: {
2119
+ A: "Test string"
2120
+ },
2016
2121
  name: "Test string",
2017
2122
  scope: "Test string",
2018
2123
  state: {
@@ -2029,6 +2134,9 @@ gapi.load('client', async () => {
2029
2134
  createTime: "Test string",
2030
2135
  deleteTime: "Test string",
2031
2136
  group: "Test string",
2137
+ labels: {
2138
+ A: "Test string"
2139
+ },
2032
2140
  name: "Test string",
2033
2141
  role: {
2034
2142
  predefinedRole: "Test string",
@@ -2062,6 +2170,9 @@ gapi.load('client', async () => {
2062
2170
  createTime: "Test string",
2063
2171
  deleteTime: "Test string",
2064
2172
  group: "Test string",
2173
+ labels: {
2174
+ A: "Test string"
2175
+ },
2065
2176
  name: "Test string",
2066
2177
  role: {
2067
2178
  predefinedRole: "Test string",
@@ -2109,6 +2220,9 @@ gapi.load('client', async () => {
2109
2220
  allMemberships: true,
2110
2221
  createTime: "Test string",
2111
2222
  deleteTime: "Test string",
2223
+ labels: {
2224
+ A: "Test string"
2225
+ },
2112
2226
  name: "Test string",
2113
2227
  state: {
2114
2228
  code: "Test string",
@@ -2143,6 +2257,9 @@ gapi.load('client', async () => {
2143
2257
  allMemberships: true,
2144
2258
  createTime: "Test string",
2145
2259
  deleteTime: "Test string",
2260
+ labels: {
2261
+ A: "Test string"
2262
+ },
2146
2263
  name: "Test string",
2147
2264
  state: {
2148
2265
  code: "Test string",