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

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 +41 -16
  2. package/package.json +1 -1
  3. package/tests.ts +65 -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: 20230627
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -296,7 +296,7 @@ declare namespace gapi.client {
296
296
  AppDevExperienceFeatureState;
297
297
  /** FleetObservability feature state. */
298
298
  fleetobservability?:
299
- any;
299
+ FleetObservabilityFeatureState;
300
300
  /** Service Mesh-specific state. */
301
301
  servicemesh?:
302
302
  ServiceMeshFeatureState;
@@ -851,13 +851,47 @@ declare namespace gapi.client {
851
851
  code?:
852
852
  string;
853
853
  }
854
+ interface FleetObservabilityFeatureError {
855
+ /** The code of the error. */
856
+ code?:
857
+ string;
858
+ /** A human-readable description of the current status. */
859
+ description?:
860
+ string;
861
+ }
854
862
  interface FleetObservabilityFeatureSpec {
855
863
  /** Specified if fleet logging feature is enabled for the entire fleet. If UNSPECIFIED, fleet logging feature is disabled for the entire fleet. */
856
864
  loggingConfig?:
857
865
  FleetObservabilityLoggingConfig;
858
866
  }
859
- // tslint:disable-next-line:no-empty-interface
860
867
  interface FleetObservabilityFeatureState {
868
+ /** The feature state of default logging. */
869
+ logging?:
870
+ FleetObservabilityFleetObservabilityLoggingState;
871
+ /** The feature state of fleet monitoring. */
872
+ monitoring?:
873
+ FleetObservabilityFleetObservabilityMonitoringState;
874
+ }
875
+ interface FleetObservabilityFleetObservabilityBaseFeatureState {
876
+ /** The high-level, machine-readable status of this Feature. */
877
+ code?:
878
+ string;
879
+ /** Errors after reconciling the monitoring and logging feature if the code is not OK. */
880
+ errors?:
881
+ FleetObservabilityFeatureError[];
882
+ }
883
+ interface FleetObservabilityFleetObservabilityLoggingState {
884
+ /** The base feature state of fleet default log. */
885
+ defaultLog?:
886
+ FleetObservabilityFleetObservabilityBaseFeatureState;
887
+ /** The base feature state of fleet scope log. */
888
+ scopeLog?:
889
+ FleetObservabilityFleetObservabilityBaseFeatureState;
890
+ }
891
+ interface FleetObservabilityFleetObservabilityMonitoringState {
892
+ /** The base feature state of fleet monitoring feature. */
893
+ state?:
894
+ FleetObservabilityFleetObservabilityBaseFeatureState;
861
895
  }
862
896
  interface FleetObservabilityLoggingConfig {
863
897
  /** Specified if applying the default routing config to logs not specified in other configs. */
@@ -1565,12 +1599,9 @@ declare namespace gapi.client {
1565
1599
  number;
1566
1600
  }
1567
1601
  interface PolicyControllerBundleInstallSpec {
1568
- /** the set of namespaces to be exempted from the bundle */
1602
+ /** The set of namespaces to be exempted from the bundle. */
1569
1603
  exemptedNamespaces?:
1570
1604
  string[];
1571
- /** Management specifies how the bundle will be managed by the controller. */
1572
- management?:
1573
- string;
1574
1605
  }
1575
1606
  interface PolicyControllerHubConfig {
1576
1607
  /** Sets the interval for Policy Controller Audit Scans (in seconds). When set to 0, this disables audit functionality altogether. */
@@ -1606,9 +1637,6 @@ declare namespace gapi.client {
1606
1637
  /** Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated. */
1607
1638
  referentialRulesEnabled?:
1608
1639
  boolean;
1609
- /** Configures the library templates to install along with Policy Controller. */
1610
- templateLibraryConfig?:
1611
- PolicyControllerTemplateLibraryConfig;
1612
1640
  }
1613
1641
  interface PolicyControllerMembershipSpec {
1614
1642
  /** Policy Controller configuration for the cluster. */
@@ -1622,9 +1650,6 @@ declare namespace gapi.client {
1622
1650
  /** Currently these include (also serving as map keys): 1. "admission" 2. "audit" 3. "mutation" */
1623
1651
  componentStates?:
1624
1652
  { [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
1653
  /** The overall content state observed by the Hub Feature controller. */
1629
1654
  policyContentState?:
1630
1655
  PolicyControllerPolicyContentState;
@@ -1671,6 +1696,9 @@ declare namespace gapi.client {
1671
1696
  /** Container resource requirements. */
1672
1697
  containerResources?:
1673
1698
  PolicyControllerResourceRequirements;
1699
+ /** Pod affinity configuration. */
1700
+ podAffinity?:
1701
+ string;
1674
1702
  /** Pod anti-affinity enablement. */
1675
1703
  podAntiAffinity?:
1676
1704
  boolean;
@@ -1698,9 +1726,6 @@ declare namespace gapi.client {
1698
1726
  PolicyControllerResourceList;
1699
1727
  }
1700
1728
  interface PolicyControllerTemplateLibraryConfig {
1701
- /** Whether the standard template library should be installed or not. */
1702
- included?:
1703
- boolean;
1704
1729
  /** Configures the manner in which the template library is installed on the cluster. */
1705
1730
  installation?:
1706
1731
  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.20230627",
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: 20230627
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -219,6 +219,7 @@ gapi.load('client', async () => {
219
219
  memory: "Test string",
220
220
  },
221
221
  },
222
+ podAffinity: "Test string",
222
223
  podAntiAffinity: true,
223
224
  podTolerations: [
224
225
  {
@@ -248,19 +249,13 @@ gapi.load('client', async () => {
248
249
  exemptedNamespaces: [
249
250
  "Test string"
250
251
  ],
251
- management: "Test string",
252
252
  }
253
253
  },
254
254
  templateLibrary: {
255
- included: true,
256
255
  installation: "Test string",
257
256
  },
258
257
  },
259
258
  referentialRulesEnabled: true,
260
- templateLibraryConfig: {
261
- included: true,
262
- installation: "Test string",
263
- },
264
259
  },
265
260
  version: "Test string",
266
261
  },
@@ -499,12 +494,6 @@ gapi.load('client', async () => {
499
494
  state: "Test string",
500
495
  }
501
496
  },
502
- contentStates: {
503
- A: {
504
- details: "Test string",
505
- state: "Test string",
506
- }
507
- },
508
497
  policyContentState: {
509
498
  bundleStates: {
510
499
  A: {
@@ -687,6 +676,37 @@ gapi.load('client', async () => {
687
676
  },
688
677
  },
689
678
  fleetobservability: {
679
+ logging: {
680
+ defaultLog: {
681
+ code: "Test string",
682
+ errors: [
683
+ {
684
+ code: "Test string",
685
+ description: "Test string",
686
+ }
687
+ ],
688
+ },
689
+ scopeLog: {
690
+ code: "Test string",
691
+ errors: [
692
+ {
693
+ code: "Test string",
694
+ description: "Test string",
695
+ }
696
+ ],
697
+ },
698
+ },
699
+ monitoring: {
700
+ state: {
701
+ code: "Test string",
702
+ errors: [
703
+ {
704
+ code: "Test string",
705
+ description: "Test string",
706
+ }
707
+ ],
708
+ },
709
+ },
690
710
  },
691
711
  servicemesh: {
692
712
  analysisMessages: [
@@ -913,6 +933,7 @@ gapi.load('client', async () => {
913
933
  memory: "Test string",
914
934
  },
915
935
  },
936
+ podAffinity: "Test string",
916
937
  podAntiAffinity: true,
917
938
  podTolerations: [
918
939
  {
@@ -942,19 +963,13 @@ gapi.load('client', async () => {
942
963
  exemptedNamespaces: [
943
964
  "Test string"
944
965
  ],
945
- management: "Test string",
946
966
  }
947
967
  },
948
968
  templateLibrary: {
949
- included: true,
950
969
  installation: "Test string",
951
970
  },
952
971
  },
953
972
  referentialRulesEnabled: true,
954
- templateLibraryConfig: {
955
- included: true,
956
- installation: "Test string",
957
- },
958
973
  },
959
974
  version: "Test string",
960
975
  },
@@ -1193,12 +1208,6 @@ gapi.load('client', async () => {
1193
1208
  state: "Test string",
1194
1209
  }
1195
1210
  },
1196
- contentStates: {
1197
- A: {
1198
- details: "Test string",
1199
- state: "Test string",
1200
- }
1201
- },
1202
1211
  policyContentState: {
1203
1212
  bundleStates: {
1204
1213
  A: {
@@ -1381,6 +1390,37 @@ gapi.load('client', async () => {
1381
1390
  },
1382
1391
  },
1383
1392
  fleetobservability: {
1393
+ logging: {
1394
+ defaultLog: {
1395
+ code: "Test string",
1396
+ errors: [
1397
+ {
1398
+ code: "Test string",
1399
+ description: "Test string",
1400
+ }
1401
+ ],
1402
+ },
1403
+ scopeLog: {
1404
+ code: "Test string",
1405
+ errors: [
1406
+ {
1407
+ code: "Test string",
1408
+ description: "Test string",
1409
+ }
1410
+ ],
1411
+ },
1412
+ },
1413
+ monitoring: {
1414
+ state: {
1415
+ code: "Test string",
1416
+ errors: [
1417
+ {
1418
+ code: "Test string",
1419
+ description: "Test string",
1420
+ }
1421
+ ],
1422
+ },
1423
+ },
1384
1424
  },
1385
1425
  servicemesh: {
1386
1426
  analysisMessages: [