@maxim_mazurok/gapi.client.gkehub-v1alpha 0.0.20221108 → 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.
- package/index.d.ts +19 -3
- package/package.json +1 -1
- 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:
|
|
12
|
+
// Revision: 20230106
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -162,7 +162,7 @@ declare namespace gapi.client {
|
|
|
162
162
|
webhookVersion?: string;
|
|
163
163
|
}
|
|
164
164
|
interface ConfigManagementConfigSync {
|
|
165
|
-
/** Set to true to allow the vertical scaling. Defaults to false which disallows vertical scaling. */
|
|
165
|
+
/** Set to true to allow the vertical scaling. Defaults to false which disallows vertical scaling. This field is deprecated. */
|
|
166
166
|
allowVerticalScale?: boolean;
|
|
167
167
|
/**
|
|
168
168
|
* Enables the installation of ConfigSync. If set to true, ConfigSync resources will be created and the other ConfigSync fields will be applied if exist. If set to false, all other
|
|
@@ -785,6 +785,8 @@ declare namespace gapi.client {
|
|
|
785
785
|
cloudbuild?: CloudBuildMembershipSpec;
|
|
786
786
|
/** Config Management-specific spec. */
|
|
787
787
|
configmanagement?: ConfigManagementMembershipSpec;
|
|
788
|
+
/** True if value of `feature_spec` was inherited from a fleet-level default. */
|
|
789
|
+
fleetInherited?: boolean;
|
|
788
790
|
/** Fleet observability membership spec */
|
|
789
791
|
fleetobservability?: any;
|
|
790
792
|
/** Identity Service-specific spec. */
|
|
@@ -926,6 +928,12 @@ declare namespace gapi.client {
|
|
|
926
928
|
*/
|
|
927
929
|
version?: number;
|
|
928
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
|
+
}
|
|
929
937
|
interface PolicyControllerHubConfig {
|
|
930
938
|
/** Sets the interval for Policy Controller Audit Scans (in seconds). When set to 0, this disables audit functionality altogether. */
|
|
931
939
|
auditIntervalSeconds?: string;
|
|
@@ -942,6 +950,8 @@ declare namespace gapi.client {
|
|
|
942
950
|
monitoring?: PolicyControllerMonitoringConfig;
|
|
943
951
|
/** Enables the ability to mutate resources using Policy Controller. */
|
|
944
952
|
mutationEnabled?: boolean;
|
|
953
|
+
/** Specifies the desired policy content on the cluster */
|
|
954
|
+
policyContent?: PolicyControllerPolicyContentSpec;
|
|
945
955
|
/** Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated. */
|
|
946
956
|
referentialRulesEnabled?: boolean;
|
|
947
957
|
/** Configures the library templates to install along with Policy Controller. */
|
|
@@ -954,8 +964,10 @@ declare namespace gapi.client {
|
|
|
954
964
|
version?: string;
|
|
955
965
|
}
|
|
956
966
|
interface PolicyControllerMembershipState {
|
|
957
|
-
/** Currently these include (also serving as map keys): 1. "admission" 2. "audit" 3. "mutation"
|
|
967
|
+
/** Currently these include (also serving as map keys): 1. "admission" 2. "audit" 3. "mutation" */
|
|
958
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 };
|
|
959
971
|
/** The overall Policy Controller lifecycle state observed by the Hub Feature controller. */
|
|
960
972
|
state?: string;
|
|
961
973
|
}
|
|
@@ -969,6 +981,10 @@ declare namespace gapi.client {
|
|
|
969
981
|
/** The lifecycle state of this component. */
|
|
970
982
|
state?: string;
|
|
971
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
|
+
}
|
|
972
988
|
interface PolicyControllerTemplateLibraryConfig {
|
|
973
989
|
/** Whether the standard template library should be installed or not. */
|
|
974
990
|
included?: boolean;
|
package/package.json
CHANGED
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:
|
|
6
|
+
// Revision: 20230106
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -118,6 +118,7 @@ gapi.load('client', async () => {
|
|
|
118
118
|
},
|
|
119
119
|
version: "Test string",
|
|
120
120
|
},
|
|
121
|
+
fleetInherited: true,
|
|
121
122
|
fleetobservability: {
|
|
122
123
|
},
|
|
123
124
|
identityservice: {
|
|
@@ -173,6 +174,16 @@ gapi.load('client', async () => {
|
|
|
173
174
|
],
|
|
174
175
|
},
|
|
175
176
|
mutationEnabled: true,
|
|
177
|
+
policyContent: {
|
|
178
|
+
bundles: {
|
|
179
|
+
A: {
|
|
180
|
+
exemptedNamespaces: [
|
|
181
|
+
"Test string"
|
|
182
|
+
],
|
|
183
|
+
management: "Test string",
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
},
|
|
176
187
|
referentialRulesEnabled: true,
|
|
177
188
|
templateLibraryConfig: {
|
|
178
189
|
included: true,
|
|
@@ -379,6 +390,12 @@ gapi.load('client', async () => {
|
|
|
379
390
|
state: "Test string",
|
|
380
391
|
}
|
|
381
392
|
},
|
|
393
|
+
contentStates: {
|
|
394
|
+
A: {
|
|
395
|
+
details: "Test string",
|
|
396
|
+
state: "Test string",
|
|
397
|
+
}
|
|
398
|
+
},
|
|
382
399
|
state: "Test string",
|
|
383
400
|
},
|
|
384
401
|
servicemesh: {
|
|
@@ -606,6 +623,7 @@ gapi.load('client', async () => {
|
|
|
606
623
|
},
|
|
607
624
|
version: "Test string",
|
|
608
625
|
},
|
|
626
|
+
fleetInherited: true,
|
|
609
627
|
fleetobservability: {
|
|
610
628
|
},
|
|
611
629
|
identityservice: {
|
|
@@ -661,6 +679,16 @@ gapi.load('client', async () => {
|
|
|
661
679
|
],
|
|
662
680
|
},
|
|
663
681
|
mutationEnabled: true,
|
|
682
|
+
policyContent: {
|
|
683
|
+
bundles: {
|
|
684
|
+
A: {
|
|
685
|
+
exemptedNamespaces: [
|
|
686
|
+
"Test string"
|
|
687
|
+
],
|
|
688
|
+
management: "Test string",
|
|
689
|
+
}
|
|
690
|
+
},
|
|
691
|
+
},
|
|
664
692
|
referentialRulesEnabled: true,
|
|
665
693
|
templateLibraryConfig: {
|
|
666
694
|
included: true,
|
|
@@ -867,6 +895,12 @@ gapi.load('client', async () => {
|
|
|
867
895
|
state: "Test string",
|
|
868
896
|
}
|
|
869
897
|
},
|
|
898
|
+
contentStates: {
|
|
899
|
+
A: {
|
|
900
|
+
details: "Test string",
|
|
901
|
+
state: "Test string",
|
|
902
|
+
}
|
|
903
|
+
},
|
|
870
904
|
state: "Test string",
|
|
871
905
|
},
|
|
872
906
|
servicemesh: {
|