@maxim_mazurok/gapi.client.gkehub-v1 0.0.20230609 → 0.0.20230620

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 +28 -23
  2. package/package.json +1 -1
  3. package/tests.ts +15 -19
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: 20230609
12
+ // Revision: 20230620
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -144,22 +144,18 @@ 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 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).
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 the git or oci field.
150
149
  */
151
150
  enabled?:
152
151
  boolean;
153
152
  /** Git repo configuration for the cluster. */
154
153
  git?:
155
154
  ConfigManagementGitConfig;
156
- /** Configuration for Managed Config Sync. */
157
- managed?:
158
- ConfigManagementManaged;
159
155
  /**
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.
156
+ * The Email of the Google Cloud Service Account (GSA) used for exporting Config Sync metrics to Cloud Monitoring and Cloud Monarch when Workload Identity is enabled. The GSA should
157
+ * have the Monitoring Metric Writer (roles/monitoring.metricWriter) IAM role. The Kubernetes ServiceAccount `default` in the namespace `config-management-monitoring` should be binded
158
+ * to the GSA. This field is required when automatic Feature management is enabled.
163
159
  */
164
160
  metricsGcpServiceAccountEmail?:
165
161
  string;
@@ -172,6 +168,12 @@ declare namespace gapi.client {
172
168
  /** Specifies whether the Config Sync Repo is in "hierarchical" or "unstructured" mode. */
173
169
  sourceFormat?:
174
170
  string;
171
+ /**
172
+ * Set to true to stop syncing configs for a single cluster when automatic Feature management is enabled. Default to false. The field will be ignored when automatic Feature management
173
+ * is disabled.
174
+ */
175
+ stopSyncing?:
176
+ boolean;
175
177
  }
176
178
  interface ConfigManagementConfigSyncDeploymentState {
177
179
  /** Deployment state of admission-webhook */
@@ -264,7 +266,7 @@ declare namespace gapi.client {
264
266
  string;
265
267
  }
266
268
  interface ConfigManagementGitConfig {
267
- /** The GCP Service Account Email used for auth when secret_type is gcpServiceAccount. */
269
+ /** The Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount. */
268
270
  gcpServiceAccountEmail?:
269
271
  string;
270
272
  /** URL for the HTTPS proxy to be used when communicating with the Git repo. */
@@ -340,14 +342,6 @@ declare namespace gapi.client {
340
342
  errorMessage?:
341
343
  string;
342
344
  }
343
- interface ConfigManagementManaged {
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. */
345
- enabled?:
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;
350
- }
351
345
  interface ConfigManagementMembershipSpec {
352
346
  /**
353
347
  * 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
@@ -362,6 +356,9 @@ declare namespace gapi.client {
362
356
  /** Hierarchy Controller configuration for the cluster. */
363
357
  hierarchyController?:
364
358
  ConfigManagementHierarchyControllerConfig;
359
+ /** Enables automatic Feature management. */
360
+ management?:
361
+ string;
365
362
  /** Policy Controller configuration for the cluster. */
366
363
  policyController?:
367
364
  ConfigManagementPolicyController;
@@ -390,7 +387,7 @@ declare namespace gapi.client {
390
387
  ConfigManagementPolicyControllerState;
391
388
  }
392
389
  interface ConfigManagementOciConfig {
393
- /** The GCP Service Account Email used for auth when secret_type is gcpServiceAccount. */
390
+ /** The Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount. */
394
391
  gcpServiceAccountEmail?:
395
392
  string;
396
393
  /** The absolute path of the directory that contains the local resources. Default: the root directory of the image. */
@@ -1049,9 +1046,6 @@ declare namespace gapi.client {
1049
1046
  /** Config Management-specific spec. */
1050
1047
  configmanagement?:
1051
1048
  ConfigManagementMembershipSpec;
1052
- /** True if value of `feature_spec` was inherited from a fleet-level default. */
1053
- fleetInherited?:
1054
- boolean;
1055
1049
  /** Fleet observability membership spec */
1056
1050
  fleetobservability?:
1057
1051
  any;
@@ -1061,6 +1055,12 @@ declare namespace gapi.client {
1061
1055
  /** Anthos Service Mesh-specific spec */
1062
1056
  mesh?:
1063
1057
  ServiceMeshMembershipSpec;
1058
+ /**
1059
+ * Whether this per-Membership spec was inherited from a fleet-level default. This field can be updated by users by either overriding a Membership config (updated to USER implicitly)
1060
+ * or setting to FLEET explicitly.
1061
+ */
1062
+ origin?:
1063
+ Origin;
1064
1064
  }
1065
1065
  interface MembershipFeatureState {
1066
1066
  /** Appdevexperience specific state. */
@@ -1202,6 +1202,11 @@ declare namespace gapi.client {
1202
1202
  verb?:
1203
1203
  string;
1204
1204
  }
1205
+ interface Origin {
1206
+ /** Type specifies which type of origin is set. */
1207
+ type?:
1208
+ string;
1209
+ }
1205
1210
  interface Policy {
1206
1211
  /** Specifies cloud audit logging configuration for this policy. */
1207
1212
  auditConfigs?:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.gkehub-v1",
3
- "version": "0.0.20230609",
3
+ "version": "0.0.20230620",
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: 20230609
6
+ // Revision: 20230620
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -76,10 +76,6 @@ gapi.load('client', async () => {
76
76
  syncRev: "Test string",
77
77
  syncWaitSecs: "Test string",
78
78
  },
79
- managed: {
80
- enabled: true,
81
- stopSyncing: true,
82
- },
83
79
  metricsGcpServiceAccountEmail: "Test string",
84
80
  oci: {
85
81
  gcpServiceAccountEmail: "Test string",
@@ -90,12 +86,14 @@ gapi.load('client', async () => {
90
86
  },
91
87
  preventDrift: true,
92
88
  sourceFormat: "Test string",
89
+ stopSyncing: true,
93
90
  },
94
91
  hierarchyController: {
95
92
  enabled: true,
96
93
  enableHierarchicalResourceQuota: true,
97
94
  enablePodTreeLabels: true,
98
95
  },
96
+ management: "Test string",
99
97
  policyController: {
100
98
  auditIntervalSeconds: "Test string",
101
99
  enabled: true,
@@ -115,7 +113,6 @@ gapi.load('client', async () => {
115
113
  },
116
114
  version: "Test string",
117
115
  },
118
- fleetInherited: true,
119
116
  fleetobservability: {
120
117
  },
121
118
  identityservice: {
@@ -156,6 +153,9 @@ gapi.load('client', async () => {
156
153
  controlPlane: "Test string",
157
154
  management: "Test string",
158
155
  },
156
+ origin: {
157
+ type: "Test string",
158
+ },
159
159
  }
160
160
  },
161
161
  membershipStates: {
@@ -244,10 +244,6 @@ gapi.load('client', async () => {
244
244
  syncRev: "Test string",
245
245
  syncWaitSecs: "Test string",
246
246
  },
247
- managed: {
248
- enabled: true,
249
- stopSyncing: true,
250
- },
251
247
  metricsGcpServiceAccountEmail: "Test string",
252
248
  oci: {
253
249
  gcpServiceAccountEmail: "Test string",
@@ -258,12 +254,14 @@ gapi.load('client', async () => {
258
254
  },
259
255
  preventDrift: true,
260
256
  sourceFormat: "Test string",
257
+ stopSyncing: true,
261
258
  },
262
259
  hierarchyController: {
263
260
  enabled: true,
264
261
  enableHierarchicalResourceQuota: true,
265
262
  enablePodTreeLabels: true,
266
263
  },
264
+ management: "Test string",
267
265
  policyController: {
268
266
  auditIntervalSeconds: "Test string",
269
267
  enabled: true,
@@ -471,10 +469,6 @@ gapi.load('client', async () => {
471
469
  syncRev: "Test string",
472
470
  syncWaitSecs: "Test string",
473
471
  },
474
- managed: {
475
- enabled: true,
476
- stopSyncing: true,
477
- },
478
472
  metricsGcpServiceAccountEmail: "Test string",
479
473
  oci: {
480
474
  gcpServiceAccountEmail: "Test string",
@@ -485,12 +479,14 @@ gapi.load('client', async () => {
485
479
  },
486
480
  preventDrift: true,
487
481
  sourceFormat: "Test string",
482
+ stopSyncing: true,
488
483
  },
489
484
  hierarchyController: {
490
485
  enabled: true,
491
486
  enableHierarchicalResourceQuota: true,
492
487
  enablePodTreeLabels: true,
493
488
  },
489
+ management: "Test string",
494
490
  policyController: {
495
491
  auditIntervalSeconds: "Test string",
496
492
  enabled: true,
@@ -510,7 +506,6 @@ gapi.load('client', async () => {
510
506
  },
511
507
  version: "Test string",
512
508
  },
513
- fleetInherited: true,
514
509
  fleetobservability: {
515
510
  },
516
511
  identityservice: {
@@ -551,6 +546,9 @@ gapi.load('client', async () => {
551
546
  controlPlane: "Test string",
552
547
  management: "Test string",
553
548
  },
549
+ origin: {
550
+ type: "Test string",
551
+ },
554
552
  }
555
553
  },
556
554
  membershipStates: {
@@ -639,10 +637,6 @@ gapi.load('client', async () => {
639
637
  syncRev: "Test string",
640
638
  syncWaitSecs: "Test string",
641
639
  },
642
- managed: {
643
- enabled: true,
644
- stopSyncing: true,
645
- },
646
640
  metricsGcpServiceAccountEmail: "Test string",
647
641
  oci: {
648
642
  gcpServiceAccountEmail: "Test string",
@@ -653,12 +647,14 @@ gapi.load('client', async () => {
653
647
  },
654
648
  preventDrift: true,
655
649
  sourceFormat: "Test string",
650
+ stopSyncing: true,
656
651
  },
657
652
  hierarchyController: {
658
653
  enabled: true,
659
654
  enableHierarchicalResourceQuota: true,
660
655
  enablePodTreeLabels: true,
661
656
  },
657
+ management: "Test string",
662
658
  policyController: {
663
659
  auditIntervalSeconds: "Test string",
664
660
  enabled: true,