@maxim_mazurok/gapi.client.gkehub-v1 0.0.20230515 → 0.0.20230606

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 +31 -8
  2. package/package.json +1 -1
  3. package/tests.ts +23 -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=v1
12
- // Revision: 20230515
12
+ // Revision: 20230606
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -144,8 +144,9 @@ declare namespace gapi.client {
144
144
  allowVerticalScale?:
145
145
  boolean;
146
146
  /**
147
- * Enables the installation of ConfigSync. If set to true, ConfigSync resources will be created and the other ConfigSync fields will be applied if exist. If set to false, all other
148
- * ConfigSync fields will be ignored, ConfigSync resources will be deleted. If omitted, ConfigSync resources will be managed depends on the presence of git field.
147
+ * Enables the installation of ConfigSync. If set to true, ConfigSync resources will be created and the other ConfigSync fields will be applied if exist. If set to false and Managed
148
+ * Config Sync is disabled, all other ConfigSync fields will be ignored, ConfigSync resources will be deleted. Setting this field to false while enabling Managed Config Sync is
149
+ * invalid. If omitted, ConfigSync resources will be managed if: * the git or oci field is present; or * Managed Config Sync is enabled (i.e., managed.enabled is true).
149
150
  */
150
151
  enabled?:
151
152
  boolean;
@@ -155,6 +156,13 @@ declare namespace gapi.client {
155
156
  /** Configuration for Managed Config Sync. */
156
157
  managed?:
157
158
  ConfigManagementManaged;
159
+ /**
160
+ * The Email of the GCP Service Account (GSA) used for exporting Config Sync metrics to Cloud Monitoring and Cloud Monarch when Workload Identity is enabled. The GSA should have the
161
+ * Monitoring Metric Writer (roles/monitoring.metricWriter) IAM role. The Kubernetes ServiceAccount `default` in the namespace `config-management-monitoring` should be binded to the
162
+ * GSA. This field is required when Managed Config Sync is enabled.
163
+ */
164
+ metricsGcpServiceAccountEmail?:
165
+ string;
158
166
  /** OCI repo configuration for the cluster */
159
167
  oci?:
160
168
  ConfigManagementOciConfig;
@@ -188,10 +196,18 @@ declare namespace gapi.client {
188
196
  syncer?:
189
197
  string;
190
198
  }
199
+ interface ConfigManagementConfigSyncError {
200
+ /** A string representing the user facing error message */
201
+ errorMessage?:
202
+ string;
203
+ }
191
204
  interface ConfigManagementConfigSyncState {
192
205
  /** Information about the deployment of ConfigSync, including the version of the various Pods deployed */
193
206
  deploymentState?:
194
207
  ConfigManagementConfigSyncDeploymentState;
208
+ /** Errors pertaining to the installation of Config Sync. */
209
+ errors?:
210
+ ConfigManagementConfigSyncError[];
195
211
  /** The state of ConfigSync's process to sync configs to a cluster */
196
212
  syncState?:
197
213
  ConfigManagementSyncState;
@@ -325,11 +341,21 @@ declare namespace gapi.client {
325
341
  string;
326
342
  }
327
343
  interface ConfigManagementManaged {
328
- /** Set to true to enable Managed Config Sync. Defaults to false which disables Managed Config Sync. */
344
+ /** Set to true to enable Managed Config Sync. Defaults to false which disables Managed Config Sync. Setting this field to true when configSync.enabled is false is invalid. */
329
345
  enabled?:
330
346
  boolean;
347
+ /** Set to true to stop syncing configs for a single cluster. Default to false. If set to true, Managed Config Sync will not upgrade Config Sync. */
348
+ stopSyncing?:
349
+ boolean;
331
350
  }
332
351
  interface ConfigManagementMembershipSpec {
352
+ /**
353
+ * The user-specified cluster name used by Config Sync cluster-name-selector annotation or ClusterSelector, for applying configs to only a subset of clusters. Omit this field if the
354
+ * cluster's fleet membership name is used by Config Sync cluster-name-selector annotation or ClusterSelector. Set this field if a name different from the cluster's fleet membership
355
+ * name is used by Config Sync cluster-name-selector annotation or ClusterSelector.
356
+ */
357
+ cluster?:
358
+ string;
333
359
  /** Config Sync configuration for the cluster. */
334
360
  configSync?:
335
361
  ConfigManagementConfigSync;
@@ -344,10 +370,7 @@ declare namespace gapi.client {
344
370
  string;
345
371
  }
346
372
  interface ConfigManagementMembershipState {
347
- /**
348
- * The user-defined name for the cluster used by ClusterSelectors to group clusters together. This should match Membership's membership_name, unless the user installed ACM on the
349
- * cluster manually prior to enabling the ACM hub feature. Unique within a Anthos Config Management installation.
350
- */
373
+ /** This field is set to the `cluster_name` field of the Membership Spec if it is not empty. Otherwise, it is set to the cluster's fleet membership name. */
351
374
  clusterName?:
352
375
  string;
353
376
  /** Current sync status */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.gkehub-v1",
3
- "version": "0.0.20230515",
3
+ "version": "0.0.20230606",
4
4
  "description": "TypeScript typings for GKE Hub API v1",
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: 20230515
6
+ // Revision: 20230606
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -56,6 +56,7 @@ gapi.load('client', async () => {
56
56
  membershipSpecs: {
57
57
  A: {
58
58
  configmanagement: {
59
+ cluster: "Test string",
59
60
  configSync: {
60
61
  allowVerticalScale: true,
61
62
  enabled: true,
@@ -71,7 +72,9 @@ gapi.load('client', async () => {
71
72
  },
72
73
  managed: {
73
74
  enabled: true,
75
+ stopSyncing: true,
74
76
  },
77
+ metricsGcpServiceAccountEmail: "Test string",
75
78
  oci: {
76
79
  gcpServiceAccountEmail: "Test string",
77
80
  policyDir: "Test string",
@@ -168,6 +171,11 @@ gapi.load('client', async () => {
168
171
  rootReconciler: "Test string",
169
172
  syncer: "Test string",
170
173
  },
174
+ errors: [
175
+ {
176
+ errorMessage: "Test string",
177
+ }
178
+ ],
171
179
  syncState: {
172
180
  code: "Test string",
173
181
  errors: [
@@ -215,6 +223,7 @@ gapi.load('client', async () => {
215
223
  },
216
224
  },
217
225
  membershipSpec: {
226
+ cluster: "Test string",
218
227
  configSync: {
219
228
  allowVerticalScale: true,
220
229
  enabled: true,
@@ -230,7 +239,9 @@ gapi.load('client', async () => {
230
239
  },
231
240
  managed: {
232
241
  enabled: true,
242
+ stopSyncing: true,
233
243
  },
244
+ metricsGcpServiceAccountEmail: "Test string",
234
245
  oci: {
235
246
  gcpServiceAccountEmail: "Test string",
236
247
  policyDir: "Test string",
@@ -437,6 +448,7 @@ gapi.load('client', async () => {
437
448
  membershipSpecs: {
438
449
  A: {
439
450
  configmanagement: {
451
+ cluster: "Test string",
440
452
  configSync: {
441
453
  allowVerticalScale: true,
442
454
  enabled: true,
@@ -452,7 +464,9 @@ gapi.load('client', async () => {
452
464
  },
453
465
  managed: {
454
466
  enabled: true,
467
+ stopSyncing: true,
455
468
  },
469
+ metricsGcpServiceAccountEmail: "Test string",
456
470
  oci: {
457
471
  gcpServiceAccountEmail: "Test string",
458
472
  policyDir: "Test string",
@@ -549,6 +563,11 @@ gapi.load('client', async () => {
549
563
  rootReconciler: "Test string",
550
564
  syncer: "Test string",
551
565
  },
566
+ errors: [
567
+ {
568
+ errorMessage: "Test string",
569
+ }
570
+ ],
552
571
  syncState: {
553
572
  code: "Test string",
554
573
  errors: [
@@ -596,6 +615,7 @@ gapi.load('client', async () => {
596
615
  },
597
616
  },
598
617
  membershipSpec: {
618
+ cluster: "Test string",
599
619
  configSync: {
600
620
  allowVerticalScale: true,
601
621
  enabled: true,
@@ -611,7 +631,9 @@ gapi.load('client', async () => {
611
631
  },
612
632
  managed: {
613
633
  enabled: true,
634
+ stopSyncing: true,
614
635
  },
636
+ metricsGcpServiceAccountEmail: "Test string",
615
637
  oci: {
616
638
  gcpServiceAccountEmail: "Test string",
617
639
  policyDir: "Test string",