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

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 +45 -10
  2. package/package.json +1 -1
  3. package/tests.ts +44 -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: 20230206
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
  }
@@ -771,6 +777,8 @@ declare namespace gapi.client {
771
777
  edgeCluster?: EdgeCluster;
772
778
  /** Optional. Specific information for a GKE-on-GCP cluster. */
773
779
  gkeCluster?: GkeCluster;
780
+ /** Output only. Whether the lifecycle of this membership is managed by a google cluster platform service. */
781
+ googleManaged?: boolean;
774
782
  /** Output only. Useful Kubernetes-specific metadata. */
775
783
  kubernetesMetadata?: KubernetesMetadata;
776
784
  /**
@@ -943,6 +951,10 @@ declare namespace gapi.client {
943
951
  interface PolicyControllerHubConfig {
944
952
  /** Sets the interval for Policy Controller Audit Scans (in seconds). When set to 0, this disables audit functionality altogether. */
945
953
  auditIntervalSeconds?: string;
954
+ /** The maximum number of audit violations to be stored in a constraint. If not set, the internal default (currently 20) will be used. */
955
+ constraintViolationLimit?: string;
956
+ /** Map of deployment configs to deployments (“admission”, “audit”, “mutation”). */
957
+ deploymentConfigs?: { [P in string]: PolicyControllerPolicyControllerDeploymentConfig };
946
958
  /** The set of namespaces that are excluded from Policy Controller checks. Namespaces do not need to currently exist on the cluster. */
947
959
  exemptableNamespaces?: string[];
948
960
  /**
@@ -991,6 +1003,26 @@ declare namespace gapi.client {
991
1003
  /** 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
1004
  bundles?: { [P in string]: PolicyControllerBundleInstallSpec };
993
1005
  }
1006
+ interface PolicyControllerPolicyControllerDeploymentConfig {
1007
+ /** Container resource requirements. */
1008
+ containerResources?: PolicyControllerResourceRequirements;
1009
+ /** Pod anti-affinity enablement. */
1010
+ podAntiAffinity?: boolean;
1011
+ /** Pod replica count. */
1012
+ replicaCount?: string;
1013
+ }
1014
+ interface PolicyControllerResourceList {
1015
+ /** CPU requirement expressed in Kubernetes resource units. */
1016
+ cpu?: string;
1017
+ /** Memory requirement expressed in Kubernetes resource units. */
1018
+ memory?: string;
1019
+ }
1020
+ interface PolicyControllerResourceRequirements {
1021
+ /** Limits describes the maximum amount of compute resources allowed for use by the running container. */
1022
+ limits?: PolicyControllerResourceList;
1023
+ /** Requests describes the amount of compute resources reserved for the container by the kube-scheduler. */
1024
+ requests?: PolicyControllerResourceList;
1025
+ }
994
1026
  interface PolicyControllerTemplateLibraryConfig {
995
1027
  /** Whether the standard template library should be installed or not. */
996
1028
  included?: boolean;
@@ -2041,7 +2073,10 @@ declare namespace gapi.client {
2041
2073
  pageSize?: number;
2042
2074
  /** Optional. Token returned by previous call to `ListMemberships` which specifies the position in the list from where to continue listing the resources. */
2043
2075
  pageToken?: string;
2044
- /** Required. The parent (project and location) where the Memberships will be listed. Specified in the format `projects/*‍/locations/*`. */
2076
+ /**
2077
+ * Required. The parent (project and location) where the Memberships will be listed. Specified in the format `projects/*‍/locations/*`. `projects/*‍/locations/-` list memberships
2078
+ * in all the regions.
2079
+ */
2045
2080
  parent: string;
2046
2081
  /** Returns response with indentations and line breaks. */
2047
2082
  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.20230206",
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: 20230206
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
  },
@@ -1225,6 +1265,7 @@ gapi.load('client', async () => {
1225
1265
  clusterMissing: true,
1226
1266
  resourceLink: "Test string",
1227
1267
  },
1268
+ googleManaged: true,
1228
1269
  kubernetesMetadata: {
1229
1270
  kubernetesApiServerVersion: "Test string",
1230
1271
  memoryMb: 42,
@@ -1348,6 +1389,7 @@ gapi.load('client', async () => {
1348
1389
  clusterMissing: true,
1349
1390
  resourceLink: "Test string",
1350
1391
  },
1392
+ googleManaged: true,
1351
1393
  kubernetesMetadata: {
1352
1394
  kubernetesApiServerVersion: "Test string",
1353
1395
  memoryMb: 42,
@@ -1475,6 +1517,7 @@ gapi.load('client', async () => {
1475
1517
  clusterMissing: true,
1476
1518
  resourceLink: "Test string",
1477
1519
  },
1520
+ googleManaged: true,
1478
1521
  kubernetesMetadata: {
1479
1522
  kubernetesApiServerVersion: "Test string",
1480
1523
  memoryMb: 42,