@maxim_mazurok/gapi.client.gkehub-v1alpha 0.0.20220729 → 0.0.20220818
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 +14 -38
- package/package.json +1 -1
- package/tests.ts +11 -97
package/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
11
11
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
12
12
|
// Generated from: https://gkehub.googleapis.com/$discovery/rest?version=v1alpha
|
|
13
|
-
// Revision:
|
|
13
|
+
// Revision: 20220818
|
|
14
14
|
|
|
15
15
|
/// <reference types="gapi.client" />
|
|
16
16
|
|
|
@@ -123,8 +123,10 @@ declare namespace gapi.client {
|
|
|
123
123
|
* Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on
|
|
124
124
|
* the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service
|
|
125
125
|
* account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that
|
|
126
|
-
* represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `
|
|
127
|
-
*
|
|
126
|
+
* represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier
|
|
127
|
+
* for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example,
|
|
128
|
+
* `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. *
|
|
129
|
+
* `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example,
|
|
128
130
|
* `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. *
|
|
129
131
|
* `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example,
|
|
130
132
|
* `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service
|
|
@@ -549,10 +551,6 @@ declare namespace gapi.client {
|
|
|
549
551
|
message?: string;
|
|
550
552
|
}
|
|
551
553
|
interface IdentityServiceAuthMethod {
|
|
552
|
-
/** AzureAD specific Configuration. */
|
|
553
|
-
azureadConfig?: IdentityServiceAzureADConfig;
|
|
554
|
-
/** GoogleConfig specific configuration */
|
|
555
|
-
googleConfig?: IdentityServiceGoogleConfig;
|
|
556
554
|
/** Identifier for auth config. */
|
|
557
555
|
name?: string;
|
|
558
556
|
/** OIDC specific configuration. */
|
|
@@ -560,22 +558,6 @@ declare namespace gapi.client {
|
|
|
560
558
|
/** Proxy server address to use for auth method. */
|
|
561
559
|
proxy?: string;
|
|
562
560
|
}
|
|
563
|
-
interface IdentityServiceAzureADConfig {
|
|
564
|
-
/** ID for the registered client application that makes authentication requests to the Azure AD identity provider. */
|
|
565
|
-
clientId?: string;
|
|
566
|
-
/** Input only. Unencrypted AzureAD client secret will be passed to the GKE Hub CLH. */
|
|
567
|
-
clientSecret?: string;
|
|
568
|
-
/** Output only. Encrypted AzureAD client secret. */
|
|
569
|
-
encryptedClientSecret?: string;
|
|
570
|
-
/** The redirect URL that kubectl uses for authorization. */
|
|
571
|
-
kubectlRedirectUri?: string;
|
|
572
|
-
/** Kind of Azure AD account to be authenticated. Supported values are or for accounts belonging to a specific tenant. */
|
|
573
|
-
tenant?: string;
|
|
574
|
-
}
|
|
575
|
-
interface IdentityServiceGoogleConfig {
|
|
576
|
-
/** Disable automatic configuration of Google Plugin on supported platforms. */
|
|
577
|
-
disable?: boolean;
|
|
578
|
-
}
|
|
579
561
|
interface IdentityServiceMembershipSpec {
|
|
580
562
|
/** A member may support multiple auth methods. */
|
|
581
563
|
authMethods?: IdentityServiceAuthMethod[];
|
|
@@ -957,16 +939,6 @@ declare namespace gapi.client {
|
|
|
957
939
|
/** Configures the library templates to install along with Policy Controller. */
|
|
958
940
|
templateLibraryConfig?: PolicyControllerTemplateLibraryConfig;
|
|
959
941
|
}
|
|
960
|
-
interface PolicyControllerHubState {
|
|
961
|
-
/** Map from deployment name to deployment state. Example deployments are gatekeeper-controller-manager, gatekeeper-audit deployment, and gatekeeper-mutation. */
|
|
962
|
-
deploymentStates?: { [P in string]: string };
|
|
963
|
-
/** The version of Gatekeeper Policy Controller deployed. */
|
|
964
|
-
version?: PolicyControllerHubVersion;
|
|
965
|
-
}
|
|
966
|
-
interface PolicyControllerHubVersion {
|
|
967
|
-
/** The gatekeeper image tag that is composed of ACM version, git tag, build number. */
|
|
968
|
-
version?: string;
|
|
969
|
-
}
|
|
970
942
|
interface PolicyControllerMembershipSpec {
|
|
971
943
|
/** Policy Controller configuration for the cluster. */
|
|
972
944
|
policyControllerHubConfig?: PolicyControllerHubConfig;
|
|
@@ -979,17 +951,21 @@ declare namespace gapi.client {
|
|
|
979
951
|
* cluster manually prior to enabling the PC hub feature. Unique within a Policy Controller installation.
|
|
980
952
|
*/
|
|
981
953
|
clusterName?: string;
|
|
982
|
-
/**
|
|
983
|
-
|
|
984
|
-
/** Policy Controller state observed by the
|
|
985
|
-
policyControllerHubState?: PolicyControllerHubState;
|
|
986
|
-
/** The lifecycle state Policy Controller is in. */
|
|
954
|
+
/** Currently these include (also serving as map keys): 1. "admission" 2. "audit" 3. "mutation" 4. "constraint template library" */
|
|
955
|
+
componentStates?: { [P in string]: PolicyControllerOnClusterState };
|
|
956
|
+
/** The overall Policy Controller lifecycle state observed by the Hub Feature controller. */
|
|
987
957
|
state?: string;
|
|
988
958
|
}
|
|
989
959
|
interface PolicyControllerMonitoringConfig {
|
|
990
960
|
/** Specifies the list of backends Policy Controller will export to. An empty list would effectively disable metrics export. */
|
|
991
961
|
backends?: string[];
|
|
992
962
|
}
|
|
963
|
+
interface PolicyControllerOnClusterState {
|
|
964
|
+
/** Surface potential errors or information logs. */
|
|
965
|
+
details?: string;
|
|
966
|
+
/** The lifecycle state of this component. */
|
|
967
|
+
state?: string;
|
|
968
|
+
}
|
|
993
969
|
interface PolicyControllerTemplateLibraryConfig {
|
|
994
970
|
/** Whether the standard template library should be installed or not. */
|
|
995
971
|
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: 20220818
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -131,16 +131,6 @@ gapi.load('client', async () => {
|
|
|
131
131
|
identityservice: {
|
|
132
132
|
authMethods: [
|
|
133
133
|
{
|
|
134
|
-
azureadConfig: {
|
|
135
|
-
clientId: "Test string",
|
|
136
|
-
clientSecret: "Test string",
|
|
137
|
-
encryptedClientSecret: "Test string",
|
|
138
|
-
kubectlRedirectUri: "Test string",
|
|
139
|
-
tenant: "Test string",
|
|
140
|
-
},
|
|
141
|
-
googleConfig: {
|
|
142
|
-
disable: true,
|
|
143
|
-
},
|
|
144
134
|
name: "Test string",
|
|
145
135
|
oidcConfig: {
|
|
146
136
|
certificateAuthorityData: "Test string",
|
|
@@ -355,16 +345,6 @@ gapi.load('client', async () => {
|
|
|
355
345
|
memberConfig: {
|
|
356
346
|
authMethods: [
|
|
357
347
|
{
|
|
358
|
-
azureadConfig: {
|
|
359
|
-
clientId: "Test string",
|
|
360
|
-
clientSecret: "Test string",
|
|
361
|
-
encryptedClientSecret: "Test string",
|
|
362
|
-
kubectlRedirectUri: "Test string",
|
|
363
|
-
tenant: "Test string",
|
|
364
|
-
},
|
|
365
|
-
googleConfig: {
|
|
366
|
-
disable: true,
|
|
367
|
-
},
|
|
368
348
|
name: "Test string",
|
|
369
349
|
oidcConfig: {
|
|
370
350
|
certificateAuthorityData: "Test string",
|
|
@@ -394,34 +374,11 @@ gapi.load('client', async () => {
|
|
|
394
374
|
},
|
|
395
375
|
policycontroller: {
|
|
396
376
|
clusterName: "Test string",
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
],
|
|
403
|
-
installSpec: "Test string",
|
|
404
|
-
logDeniesEnabled: true,
|
|
405
|
-
monitoring: {
|
|
406
|
-
backends: [
|
|
407
|
-
"Test string"
|
|
408
|
-
],
|
|
409
|
-
},
|
|
410
|
-
mutationEnabled: true,
|
|
411
|
-
referentialRulesEnabled: true,
|
|
412
|
-
templateLibraryConfig: {
|
|
413
|
-
included: true,
|
|
414
|
-
},
|
|
415
|
-
},
|
|
416
|
-
version: "Test string",
|
|
417
|
-
},
|
|
418
|
-
policyControllerHubState: {
|
|
419
|
-
deploymentStates: {
|
|
420
|
-
A: "Test string"
|
|
421
|
-
},
|
|
422
|
-
version: {
|
|
423
|
-
version: "Test string",
|
|
424
|
-
},
|
|
377
|
+
componentStates: {
|
|
378
|
+
A: {
|
|
379
|
+
details: "Test string",
|
|
380
|
+
state: "Test string",
|
|
381
|
+
}
|
|
425
382
|
},
|
|
426
383
|
state: "Test string",
|
|
427
384
|
},
|
|
@@ -646,16 +603,6 @@ gapi.load('client', async () => {
|
|
|
646
603
|
identityservice: {
|
|
647
604
|
authMethods: [
|
|
648
605
|
{
|
|
649
|
-
azureadConfig: {
|
|
650
|
-
clientId: "Test string",
|
|
651
|
-
clientSecret: "Test string",
|
|
652
|
-
encryptedClientSecret: "Test string",
|
|
653
|
-
kubectlRedirectUri: "Test string",
|
|
654
|
-
tenant: "Test string",
|
|
655
|
-
},
|
|
656
|
-
googleConfig: {
|
|
657
|
-
disable: true,
|
|
658
|
-
},
|
|
659
606
|
name: "Test string",
|
|
660
607
|
oidcConfig: {
|
|
661
608
|
certificateAuthorityData: "Test string",
|
|
@@ -870,16 +817,6 @@ gapi.load('client', async () => {
|
|
|
870
817
|
memberConfig: {
|
|
871
818
|
authMethods: [
|
|
872
819
|
{
|
|
873
|
-
azureadConfig: {
|
|
874
|
-
clientId: "Test string",
|
|
875
|
-
clientSecret: "Test string",
|
|
876
|
-
encryptedClientSecret: "Test string",
|
|
877
|
-
kubectlRedirectUri: "Test string",
|
|
878
|
-
tenant: "Test string",
|
|
879
|
-
},
|
|
880
|
-
googleConfig: {
|
|
881
|
-
disable: true,
|
|
882
|
-
},
|
|
883
820
|
name: "Test string",
|
|
884
821
|
oidcConfig: {
|
|
885
822
|
certificateAuthorityData: "Test string",
|
|
@@ -909,34 +846,11 @@ gapi.load('client', async () => {
|
|
|
909
846
|
},
|
|
910
847
|
policycontroller: {
|
|
911
848
|
clusterName: "Test string",
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
],
|
|
918
|
-
installSpec: "Test string",
|
|
919
|
-
logDeniesEnabled: true,
|
|
920
|
-
monitoring: {
|
|
921
|
-
backends: [
|
|
922
|
-
"Test string"
|
|
923
|
-
],
|
|
924
|
-
},
|
|
925
|
-
mutationEnabled: true,
|
|
926
|
-
referentialRulesEnabled: true,
|
|
927
|
-
templateLibraryConfig: {
|
|
928
|
-
included: true,
|
|
929
|
-
},
|
|
930
|
-
},
|
|
931
|
-
version: "Test string",
|
|
932
|
-
},
|
|
933
|
-
policyControllerHubState: {
|
|
934
|
-
deploymentStates: {
|
|
935
|
-
A: "Test string"
|
|
936
|
-
},
|
|
937
|
-
version: {
|
|
938
|
-
version: "Test string",
|
|
939
|
-
},
|
|
849
|
+
componentStates: {
|
|
850
|
+
A: {
|
|
851
|
+
details: "Test string",
|
|
852
|
+
state: "Test string",
|
|
853
|
+
}
|
|
940
854
|
},
|
|
941
855
|
state: "Test string",
|
|
942
856
|
},
|