@maxim_mazurok/gapi.client.gkehub-v1alpha 0.0.20230106 → 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 +49 -10
  2. package/package.json +1 -1
  3. package/tests.ts +113 -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: 20230106
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`. */
@@ -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;
@@ -361,6 +365,10 @@ declare namespace gapi.client {
361
365
  /** Installs the default template library along with Policy Controller. */
362
366
  templateLibraryInstalled?: boolean;
363
367
  }
368
+ interface ConfigManagementPolicyControllerMigration {
369
+ /** Stage of the migration. */
370
+ stage?: string;
371
+ }
364
372
  interface ConfigManagementPolicyControllerMonitoring {
365
373
  /** Specifies the list of backends Policy Controller will export to. An empty list would effectively disable metrics export. */
366
374
  backends?: string[];
@@ -368,6 +376,8 @@ declare namespace gapi.client {
368
376
  interface ConfigManagementPolicyControllerState {
369
377
  /** The state about the policy controller installation. */
370
378
  deploymentState?: ConfigManagementGatekeeperDeploymentState;
379
+ /** Record state of ACM -> PoCo Hub migration for this feature. */
380
+ migration?: ConfigManagementPolicyControllerMigration;
371
381
  /** The version of Gatekeeper Policy Controller deployed. */
372
382
  version?: ConfigManagementPolicyControllerVersion;
373
383
  }
@@ -427,6 +437,8 @@ declare namespace gapi.client {
427
437
  createTime?: string;
428
438
  /** Output only. When the Feature resource was deleted. */
429
439
  deleteTime?: string;
440
+ /** Optional. Feature configuration applicable to all memberships of the fleet. */
441
+ fleetDefaultMemberConfig?: CommonFleetDefaultMemberConfigSpec;
430
442
  /** GCP labels for this Feature. */
431
443
  labels?: { [P in string]: string };
432
444
  /**
@@ -937,6 +949,10 @@ declare namespace gapi.client {
937
949
  interface PolicyControllerHubConfig {
938
950
  /** Sets the interval for Policy Controller Audit Scans (in seconds). When set to 0, this disables audit functionality altogether. */
939
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 };
940
956
  /** The set of namespaces that are excluded from Policy Controller checks. Namespaces do not need to currently exist on the cluster. */
941
957
  exemptableNamespaces?: string[];
942
958
  /**
@@ -985,6 +1001,26 @@ declare namespace gapi.client {
985
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. */
986
1002
  bundles?: { [P in string]: PolicyControllerBundleInstallSpec };
987
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
+ }
988
1024
  interface PolicyControllerTemplateLibraryConfig {
989
1025
  /** Whether the standard template library should be installed or not. */
990
1026
  included?: boolean;
@@ -2035,7 +2071,10 @@ declare namespace gapi.client {
2035
2071
  pageSize?: number;
2036
2072
  /** Optional. Token returned by previous call to `ListMemberships` which specifies the position in the list from where to continue listing the resources. */
2037
2073
  pageToken?: string;
2038
- /** 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
+ */
2039
2078
  parent: string;
2040
2079
  /** Returns response with indentations and line breaks. */
2041
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.20230106",
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: 20230106
6
+ // Revision: 20230129
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
  },
@@ -163,6 +199,23 @@ gapi.load('client', async () => {
163
199
  policycontroller: {
164
200
  policyControllerHubConfig: {
165
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
+ },
166
219
  exemptableNamespaces: [
167
220
  "Test string"
168
221
  ],
@@ -333,6 +386,9 @@ gapi.load('client', async () => {
333
386
  gatekeeperControllerManagerState: "Test string",
334
387
  gatekeeperMutation: "Test string",
335
388
  },
389
+ migration: {
390
+ stage: "Test string",
391
+ },
336
392
  version: {
337
393
  version: "Test string",
338
394
  },
@@ -559,6 +615,42 @@ gapi.load('client', async () => {
559
615
  }, {
560
616
  createTime: "Test string",
561
617
  deleteTime: "Test string",
618
+ fleetDefaultMemberConfig: {
619
+ identityservice: {
620
+ authMethods: [
621
+ {
622
+ azureadConfig: {
623
+ clientId: "Test string",
624
+ clientSecret: "Test string",
625
+ encryptedClientSecret: "Test string",
626
+ kubectlRedirectUri: "Test string",
627
+ tenant: "Test string",
628
+ },
629
+ googleConfig: {
630
+ disable: true,
631
+ },
632
+ name: "Test string",
633
+ oidcConfig: {
634
+ certificateAuthorityData: "Test string",
635
+ clientId: "Test string",
636
+ clientSecret: "Test string",
637
+ deployCloudConsoleProxy: true,
638
+ enableAccessToken: true,
639
+ encryptedClientSecret: "Test string",
640
+ extraParams: "Test string",
641
+ groupPrefix: "Test string",
642
+ groupsClaim: "Test string",
643
+ issuerUri: "Test string",
644
+ kubectlRedirectUri: "Test string",
645
+ scopes: "Test string",
646
+ userClaim: "Test string",
647
+ userPrefix: "Test string",
648
+ },
649
+ proxy: "Test string",
650
+ }
651
+ ],
652
+ },
653
+ },
562
654
  labels: {
563
655
  A: "Test string"
564
656
  },
@@ -668,6 +760,23 @@ gapi.load('client', async () => {
668
760
  policycontroller: {
669
761
  policyControllerHubConfig: {
670
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
+ },
671
780
  exemptableNamespaces: [
672
781
  "Test string"
673
782
  ],
@@ -838,6 +947,9 @@ gapi.load('client', async () => {
838
947
  gatekeeperControllerManagerState: "Test string",
839
948
  gatekeeperMutation: "Test string",
840
949
  },
950
+ migration: {
951
+ stage: "Test string",
952
+ },
841
953
  version: {
842
954
  version: "Test string",
843
955
  },