@maxim_mazurok/gapi.client.gkehub-v1alpha 0.0.20220729 → 0.0.20220805

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 +14 -18
  2. package/package.json +1 -1
  3. package/tests.ts +11 -57
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: 20220729
13
+ // Revision: 20220805
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`. * `group:{emailid}`: An email address that represents a Google group. For example,
127
- * `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example,
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
@@ -957,16 +959,6 @@ declare namespace gapi.client {
957
959
  /** Configures the library templates to install along with Policy Controller. */
958
960
  templateLibraryConfig?: PolicyControllerTemplateLibraryConfig;
959
961
  }
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
962
  interface PolicyControllerMembershipSpec {
971
963
  /** Policy Controller configuration for the cluster. */
972
964
  policyControllerHubConfig?: PolicyControllerHubConfig;
@@ -979,17 +971,21 @@ declare namespace gapi.client {
979
971
  * cluster manually prior to enabling the PC hub feature. Unique within a Policy Controller installation.
980
972
  */
981
973
  clusterName?: string;
982
- /** Membership configuration in the cluster. This represents the actual state in the cluster, while the MembershipSpec in the FeatureSpec represents the intended state */
983
- membershipSpec?: PolicyControllerMembershipSpec;
984
- /** Policy Controller state observed by the Policy Controller Hub */
985
- policyControllerHubState?: PolicyControllerHubState;
986
- /** The lifecycle state Policy Controller is in. */
974
+ /** Currently these include (also serving as map keys): 1. "admission" 2. "audit" 3. "mutation" 4. "constraint template library" */
975
+ componentStates?: { [P in string]: PolicyControllerOnClusterState };
976
+ /** The overall Policy Controller lifecycle state observed by the Hub Feature controller. */
987
977
  state?: string;
988
978
  }
989
979
  interface PolicyControllerMonitoringConfig {
990
980
  /** Specifies the list of backends Policy Controller will export to. An empty list would effectively disable metrics export. */
991
981
  backends?: string[];
992
982
  }
983
+ interface PolicyControllerOnClusterState {
984
+ /** Surface potential errors or information logs. */
985
+ details?: string;
986
+ /** The lifecycle state of this component. */
987
+ state?: string;
988
+ }
993
989
  interface PolicyControllerTemplateLibraryConfig {
994
990
  /** Whether the standard template library should be installed or not. */
995
991
  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.20220729",
3
+ "version": "0.0.20220805",
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: 20220729
6
+ // Revision: 20220805
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -394,34 +394,11 @@ gapi.load('client', async () => {
394
394
  },
395
395
  policycontroller: {
396
396
  clusterName: "Test string",
397
- membershipSpec: {
398
- policyControllerHubConfig: {
399
- auditIntervalSeconds: "Test string",
400
- exemptableNamespaces: [
401
- "Test string"
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
- },
397
+ componentStates: {
398
+ A: {
399
+ details: "Test string",
400
+ state: "Test string",
401
+ }
425
402
  },
426
403
  state: "Test string",
427
404
  },
@@ -909,34 +886,11 @@ gapi.load('client', async () => {
909
886
  },
910
887
  policycontroller: {
911
888
  clusterName: "Test string",
912
- membershipSpec: {
913
- policyControllerHubConfig: {
914
- auditIntervalSeconds: "Test string",
915
- exemptableNamespaces: [
916
- "Test string"
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
- },
889
+ componentStates: {
890
+ A: {
891
+ details: "Test string",
892
+ state: "Test string",
893
+ }
940
894
  },
941
895
  state: "Test string",
942
896
  },