@maxim_mazurok/gapi.client.gkehub-v1alpha 0.0.20230310 → 0.0.20230324

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 +18 -6
  2. package/package.json +1 -1
  3. package/tests.ts +35 -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: 20230310
12
+ // Revision: 20230324
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -1015,9 +1015,9 @@ declare namespace gapi.client {
1015
1015
  version?: number;
1016
1016
  }
1017
1017
  interface PolicyControllerBundleInstallSpec {
1018
- /** the set of namespaces to be exempted from the bundle */
1018
+ /** the set of namespaces to be exempted from the bundle TODO (b/271878194): Decrement this */
1019
1019
  exemptedNamespaces?: string[];
1020
- /** Management specifies how the bundle will be managed by the controller. */
1020
+ /** Management specifies how the bundle will be managed by the controller. TODO (b/271878194): Remove this */
1021
1021
  management?: string;
1022
1022
  }
1023
1023
  interface PolicyControllerHubConfig {
@@ -1044,7 +1044,7 @@ declare namespace gapi.client {
1044
1044
  policyContent?: PolicyControllerPolicyContentSpec;
1045
1045
  /** Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated. */
1046
1046
  referentialRulesEnabled?: boolean;
1047
- /** Configures the library templates to install along with Policy Controller. */
1047
+ /** Configures the library templates to install along with Policy Controller. TODO (b/271878194): Remove this */
1048
1048
  templateLibraryConfig?: PolicyControllerTemplateLibraryConfig;
1049
1049
  }
1050
1050
  interface PolicyControllerMembershipSpec {
@@ -1056,8 +1056,10 @@ declare namespace gapi.client {
1056
1056
  interface PolicyControllerMembershipState {
1057
1057
  /** Currently these include (also serving as map keys): 1. "admission" 2. "audit" 3. "mutation" */
1058
1058
  componentStates?: { [P in string]: PolicyControllerOnClusterState };
1059
- /** The state of the template library and any bundles included in the chosen version of the manifest */
1059
+ /** The state of the template library and any bundles included in the chosen version of the manifest TODO (b/271878194): Remove this */
1060
1060
  contentStates?: { [P in string]: PolicyControllerOnClusterState };
1061
+ /** The overall content state observed by the Hub Feature controller. TODO (b/271878194): Decrement this */
1062
+ policyContentState?: PolicyControllerPolicyContentState;
1061
1063
  /** The overall Policy Controller lifecycle state observed by the Hub Feature controller. */
1062
1064
  state?: string;
1063
1065
  }
@@ -1074,6 +1076,14 @@ declare namespace gapi.client {
1074
1076
  interface PolicyControllerPolicyContentSpec {
1075
1077
  /** map of bundle name to BundleInstallSpec. The bundle name maps to the `bundleName` key in the `policycontroller.gke.io/constraintData` annotation on a constraint. */
1076
1078
  bundles?: { [P in string]: PolicyControllerBundleInstallSpec };
1079
+ /** Configures the installation of the Template Library. */
1080
+ templateLibrary?: PolicyControllerTemplateLibraryConfig;
1081
+ }
1082
+ interface PolicyControllerPolicyContentState {
1083
+ /** The state of the any bundles included in the chosen version of the manifest */
1084
+ bundleStates?: { [P in string]: PolicyControllerOnClusterState };
1085
+ /** The state of the template library */
1086
+ templateLibraryState?: PolicyControllerOnClusterState;
1077
1087
  }
1078
1088
  interface PolicyControllerPolicyControllerDeploymentConfig {
1079
1089
  /** Container resource requirements. */
@@ -1098,8 +1108,10 @@ declare namespace gapi.client {
1098
1108
  requests?: PolicyControllerResourceList;
1099
1109
  }
1100
1110
  interface PolicyControllerTemplateLibraryConfig {
1101
- /** Whether the standard template library should be installed or not. */
1111
+ /** Whether the standard template library should be installed or not. TODO (b/271878194): Remove this */
1102
1112
  included?: boolean;
1113
+ /** Configures the manner in which the template library is installed on the cluster. TODO (b/271878194): Decrement this */
1114
+ installation?: string;
1103
1115
  }
1104
1116
  interface PolicyControllerToleration {
1105
1117
  /** Matches a taint effect. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.gkehub-v1alpha",
3
- "version": "0.0.20230310",
3
+ "version": "0.0.20230324",
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: 20230310
6
+ // Revision: 20230324
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -244,10 +244,15 @@ gapi.load('client', async () => {
244
244
  management: "Test string",
245
245
  }
246
246
  },
247
+ templateLibrary: {
248
+ included: true,
249
+ installation: "Test string",
250
+ },
247
251
  },
248
252
  referentialRulesEnabled: true,
249
253
  templateLibraryConfig: {
250
254
  included: true,
255
+ installation: "Test string",
251
256
  },
252
257
  },
253
258
  version: "Test string",
@@ -460,6 +465,18 @@ gapi.load('client', async () => {
460
465
  state: "Test string",
461
466
  }
462
467
  },
468
+ policyContentState: {
469
+ bundleStates: {
470
+ A: {
471
+ details: "Test string",
472
+ state: "Test string",
473
+ }
474
+ },
475
+ templateLibraryState: {
476
+ details: "Test string",
477
+ state: "Test string",
478
+ },
479
+ },
463
480
  state: "Test string",
464
481
  },
465
482
  servicemesh: {
@@ -813,10 +830,15 @@ gapi.load('client', async () => {
813
830
  management: "Test string",
814
831
  }
815
832
  },
833
+ templateLibrary: {
834
+ included: true,
835
+ installation: "Test string",
836
+ },
816
837
  },
817
838
  referentialRulesEnabled: true,
818
839
  templateLibraryConfig: {
819
840
  included: true,
841
+ installation: "Test string",
820
842
  },
821
843
  },
822
844
  version: "Test string",
@@ -1029,6 +1051,18 @@ gapi.load('client', async () => {
1029
1051
  state: "Test string",
1030
1052
  }
1031
1053
  },
1054
+ policyContentState: {
1055
+ bundleStates: {
1056
+ A: {
1057
+ details: "Test string",
1058
+ state: "Test string",
1059
+ }
1060
+ },
1061
+ templateLibraryState: {
1062
+ details: "Test string",
1063
+ state: "Test string",
1064
+ },
1065
+ },
1032
1066
  state: "Test string",
1033
1067
  },
1034
1068
  servicemesh: {