@maxim_mazurok/gapi.client.gkehub-v1alpha 0.0.20221207 → 0.0.20230106

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 +16 -2
  2. package/package.json +1 -1
  3. package/tests.ts +33 -1
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: 20221207
12
+ // Revision: 20230106
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -928,6 +928,12 @@ declare namespace gapi.client {
928
928
  */
929
929
  version?: number;
930
930
  }
931
+ interface PolicyControllerBundleInstallSpec {
932
+ /** the set of namespaces to be exempted from the bundle */
933
+ exemptedNamespaces?: string[];
934
+ /** Management specifies how the bundle will be managed by the controller. */
935
+ management?: string;
936
+ }
931
937
  interface PolicyControllerHubConfig {
932
938
  /** Sets the interval for Policy Controller Audit Scans (in seconds). When set to 0, this disables audit functionality altogether. */
933
939
  auditIntervalSeconds?: string;
@@ -944,6 +950,8 @@ declare namespace gapi.client {
944
950
  monitoring?: PolicyControllerMonitoringConfig;
945
951
  /** Enables the ability to mutate resources using Policy Controller. */
946
952
  mutationEnabled?: boolean;
953
+ /** Specifies the desired policy content on the cluster */
954
+ policyContent?: PolicyControllerPolicyContentSpec;
947
955
  /** Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated. */
948
956
  referentialRulesEnabled?: boolean;
949
957
  /** Configures the library templates to install along with Policy Controller. */
@@ -956,8 +964,10 @@ declare namespace gapi.client {
956
964
  version?: string;
957
965
  }
958
966
  interface PolicyControllerMembershipState {
959
- /** Currently these include (also serving as map keys): 1. "admission" 2. "audit" 3. "mutation" 4. "constraint template library" */
967
+ /** Currently these include (also serving as map keys): 1. "admission" 2. "audit" 3. "mutation" */
960
968
  componentStates?: { [P in string]: PolicyControllerOnClusterState };
969
+ /** The state of the template library and any bundles included in the chosen version of the manifest */
970
+ contentStates?: { [P in string]: PolicyControllerOnClusterState };
961
971
  /** The overall Policy Controller lifecycle state observed by the Hub Feature controller. */
962
972
  state?: string;
963
973
  }
@@ -971,6 +981,10 @@ declare namespace gapi.client {
971
981
  /** The lifecycle state of this component. */
972
982
  state?: string;
973
983
  }
984
+ interface PolicyControllerPolicyContentSpec {
985
+ /** map of bundle name to BundleInstallSpec. The bundle name maps to the `bundleName` key in the `policycontroller.gke.io/constraintData` annotation on a constraint. */
986
+ bundles?: { [P in string]: PolicyControllerBundleInstallSpec };
987
+ }
974
988
  interface PolicyControllerTemplateLibraryConfig {
975
989
  /** Whether the standard template library should be installed or not. */
976
990
  included?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.gkehub-v1alpha",
3
- "version": "0.0.20221207",
3
+ "version": "0.0.20230106",
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: 20221207
6
+ // Revision: 20230106
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -174,6 +174,16 @@ gapi.load('client', async () => {
174
174
  ],
175
175
  },
176
176
  mutationEnabled: true,
177
+ policyContent: {
178
+ bundles: {
179
+ A: {
180
+ exemptedNamespaces: [
181
+ "Test string"
182
+ ],
183
+ management: "Test string",
184
+ }
185
+ },
186
+ },
177
187
  referentialRulesEnabled: true,
178
188
  templateLibraryConfig: {
179
189
  included: true,
@@ -380,6 +390,12 @@ gapi.load('client', async () => {
380
390
  state: "Test string",
381
391
  }
382
392
  },
393
+ contentStates: {
394
+ A: {
395
+ details: "Test string",
396
+ state: "Test string",
397
+ }
398
+ },
383
399
  state: "Test string",
384
400
  },
385
401
  servicemesh: {
@@ -663,6 +679,16 @@ gapi.load('client', async () => {
663
679
  ],
664
680
  },
665
681
  mutationEnabled: true,
682
+ policyContent: {
683
+ bundles: {
684
+ A: {
685
+ exemptedNamespaces: [
686
+ "Test string"
687
+ ],
688
+ management: "Test string",
689
+ }
690
+ },
691
+ },
666
692
  referentialRulesEnabled: true,
667
693
  templateLibraryConfig: {
668
694
  included: true,
@@ -869,6 +895,12 @@ gapi.load('client', async () => {
869
895
  state: "Test string",
870
896
  }
871
897
  },
898
+ contentStates: {
899
+ A: {
900
+ details: "Test string",
901
+ state: "Test string",
902
+ }
903
+ },
872
904
  state: "Test string",
873
905
  },
874
906
  servicemesh: {