@maxim_mazurok/gapi.client.gkehub-v1alpha 0.0.20221207 → 0.0.20230119
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 +22 -2
- package/package.json +1 -1
- package/tests.ts +105 -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: 20230119
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -147,6 +147,10 @@ declare namespace gapi.client {
|
|
|
147
147
|
/** Output only. The "running state" of the Feature in this Hub. */
|
|
148
148
|
state?: FeatureState;
|
|
149
149
|
}
|
|
150
|
+
interface CommonFleetDefaultMemberConfigSpec {
|
|
151
|
+
/** Identity Service-specific spec. */
|
|
152
|
+
identityservice?: IdentityServiceMembershipSpec;
|
|
153
|
+
}
|
|
150
154
|
interface ConfigManagementBinauthzConfig {
|
|
151
155
|
/** Whether binauthz is enabled in this cluster. */
|
|
152
156
|
enabled?: boolean;
|
|
@@ -427,6 +431,8 @@ declare namespace gapi.client {
|
|
|
427
431
|
createTime?: string;
|
|
428
432
|
/** Output only. When the Feature resource was deleted. */
|
|
429
433
|
deleteTime?: string;
|
|
434
|
+
/** Optional. Feature configuration applicable to all memberships of the fleet. */
|
|
435
|
+
fleetDefaultMemberConfig?: CommonFleetDefaultMemberConfigSpec;
|
|
430
436
|
/** GCP labels for this Feature. */
|
|
431
437
|
labels?: { [P in string]: string };
|
|
432
438
|
/**
|
|
@@ -928,6 +934,12 @@ declare namespace gapi.client {
|
|
|
928
934
|
*/
|
|
929
935
|
version?: number;
|
|
930
936
|
}
|
|
937
|
+
interface PolicyControllerBundleInstallSpec {
|
|
938
|
+
/** the set of namespaces to be exempted from the bundle */
|
|
939
|
+
exemptedNamespaces?: string[];
|
|
940
|
+
/** Management specifies how the bundle will be managed by the controller. */
|
|
941
|
+
management?: string;
|
|
942
|
+
}
|
|
931
943
|
interface PolicyControllerHubConfig {
|
|
932
944
|
/** Sets the interval for Policy Controller Audit Scans (in seconds). When set to 0, this disables audit functionality altogether. */
|
|
933
945
|
auditIntervalSeconds?: string;
|
|
@@ -944,6 +956,8 @@ declare namespace gapi.client {
|
|
|
944
956
|
monitoring?: PolicyControllerMonitoringConfig;
|
|
945
957
|
/** Enables the ability to mutate resources using Policy Controller. */
|
|
946
958
|
mutationEnabled?: boolean;
|
|
959
|
+
/** Specifies the desired policy content on the cluster */
|
|
960
|
+
policyContent?: PolicyControllerPolicyContentSpec;
|
|
947
961
|
/** Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated. */
|
|
948
962
|
referentialRulesEnabled?: boolean;
|
|
949
963
|
/** Configures the library templates to install along with Policy Controller. */
|
|
@@ -956,8 +970,10 @@ declare namespace gapi.client {
|
|
|
956
970
|
version?: string;
|
|
957
971
|
}
|
|
958
972
|
interface PolicyControllerMembershipState {
|
|
959
|
-
/** Currently these include (also serving as map keys): 1. "admission" 2. "audit" 3. "mutation"
|
|
973
|
+
/** Currently these include (also serving as map keys): 1. "admission" 2. "audit" 3. "mutation" */
|
|
960
974
|
componentStates?: { [P in string]: PolicyControllerOnClusterState };
|
|
975
|
+
/** The state of the template library and any bundles included in the chosen version of the manifest */
|
|
976
|
+
contentStates?: { [P in string]: PolicyControllerOnClusterState };
|
|
961
977
|
/** The overall Policy Controller lifecycle state observed by the Hub Feature controller. */
|
|
962
978
|
state?: string;
|
|
963
979
|
}
|
|
@@ -971,6 +987,10 @@ declare namespace gapi.client {
|
|
|
971
987
|
/** The lifecycle state of this component. */
|
|
972
988
|
state?: string;
|
|
973
989
|
}
|
|
990
|
+
interface PolicyControllerPolicyContentSpec {
|
|
991
|
+
/** map of bundle name to BundleInstallSpec. The bundle name maps to the `bundleName` key in the `policycontroller.gke.io/constraintData` annotation on a constraint. */
|
|
992
|
+
bundles?: { [P in string]: PolicyControllerBundleInstallSpec };
|
|
993
|
+
}
|
|
974
994
|
interface PolicyControllerTemplateLibraryConfig {
|
|
975
995
|
/** Whether the standard template library should be installed or not. */
|
|
976
996
|
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: 20230119
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -54,6 +54,42 @@ gapi.load('client', async () => {
|
|
|
54
54
|
}, {
|
|
55
55
|
createTime: "Test string",
|
|
56
56
|
deleteTime: "Test string",
|
|
57
|
+
fleetDefaultMemberConfig: {
|
|
58
|
+
identityservice: {
|
|
59
|
+
authMethods: [
|
|
60
|
+
{
|
|
61
|
+
azureadConfig: {
|
|
62
|
+
clientId: "Test string",
|
|
63
|
+
clientSecret: "Test string",
|
|
64
|
+
encryptedClientSecret: "Test string",
|
|
65
|
+
kubectlRedirectUri: "Test string",
|
|
66
|
+
tenant: "Test string",
|
|
67
|
+
},
|
|
68
|
+
googleConfig: {
|
|
69
|
+
disable: true,
|
|
70
|
+
},
|
|
71
|
+
name: "Test string",
|
|
72
|
+
oidcConfig: {
|
|
73
|
+
certificateAuthorityData: "Test string",
|
|
74
|
+
clientId: "Test string",
|
|
75
|
+
clientSecret: "Test string",
|
|
76
|
+
deployCloudConsoleProxy: true,
|
|
77
|
+
enableAccessToken: true,
|
|
78
|
+
encryptedClientSecret: "Test string",
|
|
79
|
+
extraParams: "Test string",
|
|
80
|
+
groupPrefix: "Test string",
|
|
81
|
+
groupsClaim: "Test string",
|
|
82
|
+
issuerUri: "Test string",
|
|
83
|
+
kubectlRedirectUri: "Test string",
|
|
84
|
+
scopes: "Test string",
|
|
85
|
+
userClaim: "Test string",
|
|
86
|
+
userPrefix: "Test string",
|
|
87
|
+
},
|
|
88
|
+
proxy: "Test string",
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
},
|
|
92
|
+
},
|
|
57
93
|
labels: {
|
|
58
94
|
A: "Test string"
|
|
59
95
|
},
|
|
@@ -174,6 +210,16 @@ gapi.load('client', async () => {
|
|
|
174
210
|
],
|
|
175
211
|
},
|
|
176
212
|
mutationEnabled: true,
|
|
213
|
+
policyContent: {
|
|
214
|
+
bundles: {
|
|
215
|
+
A: {
|
|
216
|
+
exemptedNamespaces: [
|
|
217
|
+
"Test string"
|
|
218
|
+
],
|
|
219
|
+
management: "Test string",
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
},
|
|
177
223
|
referentialRulesEnabled: true,
|
|
178
224
|
templateLibraryConfig: {
|
|
179
225
|
included: true,
|
|
@@ -380,6 +426,12 @@ gapi.load('client', async () => {
|
|
|
380
426
|
state: "Test string",
|
|
381
427
|
}
|
|
382
428
|
},
|
|
429
|
+
contentStates: {
|
|
430
|
+
A: {
|
|
431
|
+
details: "Test string",
|
|
432
|
+
state: "Test string",
|
|
433
|
+
}
|
|
434
|
+
},
|
|
383
435
|
state: "Test string",
|
|
384
436
|
},
|
|
385
437
|
servicemesh: {
|
|
@@ -543,6 +595,42 @@ gapi.load('client', async () => {
|
|
|
543
595
|
}, {
|
|
544
596
|
createTime: "Test string",
|
|
545
597
|
deleteTime: "Test string",
|
|
598
|
+
fleetDefaultMemberConfig: {
|
|
599
|
+
identityservice: {
|
|
600
|
+
authMethods: [
|
|
601
|
+
{
|
|
602
|
+
azureadConfig: {
|
|
603
|
+
clientId: "Test string",
|
|
604
|
+
clientSecret: "Test string",
|
|
605
|
+
encryptedClientSecret: "Test string",
|
|
606
|
+
kubectlRedirectUri: "Test string",
|
|
607
|
+
tenant: "Test string",
|
|
608
|
+
},
|
|
609
|
+
googleConfig: {
|
|
610
|
+
disable: true,
|
|
611
|
+
},
|
|
612
|
+
name: "Test string",
|
|
613
|
+
oidcConfig: {
|
|
614
|
+
certificateAuthorityData: "Test string",
|
|
615
|
+
clientId: "Test string",
|
|
616
|
+
clientSecret: "Test string",
|
|
617
|
+
deployCloudConsoleProxy: true,
|
|
618
|
+
enableAccessToken: true,
|
|
619
|
+
encryptedClientSecret: "Test string",
|
|
620
|
+
extraParams: "Test string",
|
|
621
|
+
groupPrefix: "Test string",
|
|
622
|
+
groupsClaim: "Test string",
|
|
623
|
+
issuerUri: "Test string",
|
|
624
|
+
kubectlRedirectUri: "Test string",
|
|
625
|
+
scopes: "Test string",
|
|
626
|
+
userClaim: "Test string",
|
|
627
|
+
userPrefix: "Test string",
|
|
628
|
+
},
|
|
629
|
+
proxy: "Test string",
|
|
630
|
+
}
|
|
631
|
+
],
|
|
632
|
+
},
|
|
633
|
+
},
|
|
546
634
|
labels: {
|
|
547
635
|
A: "Test string"
|
|
548
636
|
},
|
|
@@ -663,6 +751,16 @@ gapi.load('client', async () => {
|
|
|
663
751
|
],
|
|
664
752
|
},
|
|
665
753
|
mutationEnabled: true,
|
|
754
|
+
policyContent: {
|
|
755
|
+
bundles: {
|
|
756
|
+
A: {
|
|
757
|
+
exemptedNamespaces: [
|
|
758
|
+
"Test string"
|
|
759
|
+
],
|
|
760
|
+
management: "Test string",
|
|
761
|
+
}
|
|
762
|
+
},
|
|
763
|
+
},
|
|
666
764
|
referentialRulesEnabled: true,
|
|
667
765
|
templateLibraryConfig: {
|
|
668
766
|
included: true,
|
|
@@ -869,6 +967,12 @@ gapi.load('client', async () => {
|
|
|
869
967
|
state: "Test string",
|
|
870
968
|
}
|
|
871
969
|
},
|
|
970
|
+
contentStates: {
|
|
971
|
+
A: {
|
|
972
|
+
details: "Test string",
|
|
973
|
+
state: "Test string",
|
|
974
|
+
}
|
|
975
|
+
},
|
|
872
976
|
state: "Test string",
|
|
873
977
|
},
|
|
874
978
|
servicemesh: {
|