@maxim_mazurok/gapi.client.gkehub-v1alpha 0.0.20230119 → 0.0.20230129

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 +43 -10
  2. package/package.json +1 -1
  3. package/tests.ts +41 -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: 20230119
12
+ // Revision: 20230129
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -94,14 +94,14 @@ declare namespace gapi.client {
94
94
  * Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example,
95
95
  * `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service
96
96
  * account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. *
97
- * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
98
- * identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to
99
- * `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing
100
- * a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value
101
- * reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
102
- * identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to
103
- * `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For
104
- * example, `google.com` or `example.com`.
97
+ * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the
98
+ * users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has
99
+ * been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains
100
+ * the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently
101
+ * deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and
102
+ * the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that
103
+ * has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group
104
+ * retains the role in the binding.
105
105
  */
106
106
  members?: string[];
107
107
  /** Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. */
@@ -365,6 +365,10 @@ declare namespace gapi.client {
365
365
  /** Installs the default template library along with Policy Controller. */
366
366
  templateLibraryInstalled?: boolean;
367
367
  }
368
+ interface ConfigManagementPolicyControllerMigration {
369
+ /** Stage of the migration. */
370
+ stage?: string;
371
+ }
368
372
  interface ConfigManagementPolicyControllerMonitoring {
369
373
  /** Specifies the list of backends Policy Controller will export to. An empty list would effectively disable metrics export. */
370
374
  backends?: string[];
@@ -372,6 +376,8 @@ declare namespace gapi.client {
372
376
  interface ConfigManagementPolicyControllerState {
373
377
  /** The state about the policy controller installation. */
374
378
  deploymentState?: ConfigManagementGatekeeperDeploymentState;
379
+ /** Record state of ACM -> PoCo Hub migration for this feature. */
380
+ migration?: ConfigManagementPolicyControllerMigration;
375
381
  /** The version of Gatekeeper Policy Controller deployed. */
376
382
  version?: ConfigManagementPolicyControllerVersion;
377
383
  }
@@ -943,6 +949,10 @@ declare namespace gapi.client {
943
949
  interface PolicyControllerHubConfig {
944
950
  /** Sets the interval for Policy Controller Audit Scans (in seconds). When set to 0, this disables audit functionality altogether. */
945
951
  auditIntervalSeconds?: string;
952
+ /** The maximum number of audit violations to be stored in a constraint. If not set, the internal default (currently 20) will be used. */
953
+ constraintViolationLimit?: string;
954
+ /** Map of deployment configs to deployments (“admission”, “audit”, “mutation”). */
955
+ deploymentConfigs?: { [P in string]: PolicyControllerPolicyControllerDeploymentConfig };
946
956
  /** The set of namespaces that are excluded from Policy Controller checks. Namespaces do not need to currently exist on the cluster. */
947
957
  exemptableNamespaces?: string[];
948
958
  /**
@@ -991,6 +1001,26 @@ declare namespace gapi.client {
991
1001
  /** 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
1002
  bundles?: { [P in string]: PolicyControllerBundleInstallSpec };
993
1003
  }
1004
+ interface PolicyControllerPolicyControllerDeploymentConfig {
1005
+ /** Container resource requirements. */
1006
+ containerResources?: PolicyControllerResourceRequirements;
1007
+ /** Pod anti-affinity enablement. */
1008
+ podAntiAffinity?: boolean;
1009
+ /** Pod replica count. */
1010
+ replicaCount?: string;
1011
+ }
1012
+ interface PolicyControllerResourceList {
1013
+ /** CPU requirement expressed in Kubernetes resource units. */
1014
+ cpu?: string;
1015
+ /** Memory requirement expressed in Kubernetes resource units. */
1016
+ memory?: string;
1017
+ }
1018
+ interface PolicyControllerResourceRequirements {
1019
+ /** Limits describes the maximum amount of compute resources allowed for use by the running container. */
1020
+ limits?: PolicyControllerResourceList;
1021
+ /** Requests describes the amount of compute resources reserved for the container by the kube-scheduler. */
1022
+ requests?: PolicyControllerResourceList;
1023
+ }
994
1024
  interface PolicyControllerTemplateLibraryConfig {
995
1025
  /** Whether the standard template library should be installed or not. */
996
1026
  included?: boolean;
@@ -2041,7 +2071,10 @@ declare namespace gapi.client {
2041
2071
  pageSize?: number;
2042
2072
  /** Optional. Token returned by previous call to `ListMemberships` which specifies the position in the list from where to continue listing the resources. */
2043
2073
  pageToken?: string;
2044
- /** Required. The parent (project and location) where the Memberships will be listed. Specified in the format `projects/*‍/locations/*`. */
2074
+ /**
2075
+ * Required. The parent (project and location) where the Memberships will be listed. Specified in the format `projects/*‍/locations/*`. `projects/*‍/locations/-` list memberships
2076
+ * in all the regions.
2077
+ */
2045
2078
  parent: string;
2046
2079
  /** Returns response with indentations and line breaks. */
2047
2080
  prettyPrint?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.gkehub-v1alpha",
3
- "version": "0.0.20230119",
3
+ "version": "0.0.20230129",
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: 20230119
6
+ // Revision: 20230129
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -199,6 +199,23 @@ gapi.load('client', async () => {
199
199
  policycontroller: {
200
200
  policyControllerHubConfig: {
201
201
  auditIntervalSeconds: "Test string",
202
+ constraintViolationLimit: "Test string",
203
+ deploymentConfigs: {
204
+ A: {
205
+ containerResources: {
206
+ limits: {
207
+ cpu: "Test string",
208
+ memory: "Test string",
209
+ },
210
+ requests: {
211
+ cpu: "Test string",
212
+ memory: "Test string",
213
+ },
214
+ },
215
+ podAntiAffinity: true,
216
+ replicaCount: "Test string",
217
+ }
218
+ },
202
219
  exemptableNamespaces: [
203
220
  "Test string"
204
221
  ],
@@ -369,6 +386,9 @@ gapi.load('client', async () => {
369
386
  gatekeeperControllerManagerState: "Test string",
370
387
  gatekeeperMutation: "Test string",
371
388
  },
389
+ migration: {
390
+ stage: "Test string",
391
+ },
372
392
  version: {
373
393
  version: "Test string",
374
394
  },
@@ -740,6 +760,23 @@ gapi.load('client', async () => {
740
760
  policycontroller: {
741
761
  policyControllerHubConfig: {
742
762
  auditIntervalSeconds: "Test string",
763
+ constraintViolationLimit: "Test string",
764
+ deploymentConfigs: {
765
+ A: {
766
+ containerResources: {
767
+ limits: {
768
+ cpu: "Test string",
769
+ memory: "Test string",
770
+ },
771
+ requests: {
772
+ cpu: "Test string",
773
+ memory: "Test string",
774
+ },
775
+ },
776
+ podAntiAffinity: true,
777
+ replicaCount: "Test string",
778
+ }
779
+ },
743
780
  exemptableNamespaces: [
744
781
  "Test string"
745
782
  ],
@@ -910,6 +947,9 @@ gapi.load('client', async () => {
910
947
  gatekeeperControllerManagerState: "Test string",
911
948
  gatekeeperMutation: "Test string",
912
949
  },
950
+ migration: {
951
+ stage: "Test string",
952
+ },
913
953
  version: {
914
954
  version: "Test string",
915
955
  },