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

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 +81 -27
  2. package/package.json +1 -1
  3. package/tests.ts +93 -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: 20230627
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -120,7 +120,7 @@ declare namespace gapi.client {
120
120
  any;
121
121
  /** FleetObservability feature spec. */
122
122
  fleetobservability?:
123
- any;
123
+ FleetObservabilityFeatureSpec;
124
124
  /** Multicluster Ingress-specific spec. */
125
125
  multiclusteringress?:
126
126
  MultiClusterIngressFeatureSpec;
@@ -131,7 +131,7 @@ declare namespace gapi.client {
131
131
  AppDevExperienceFeatureState;
132
132
  /** FleetObservability feature state. */
133
133
  fleetobservability?:
134
- any;
134
+ FleetObservabilityFeatureState;
135
135
  /** Output only. The "running state" of the Feature in this Hub. */
136
136
  state?:
137
137
  FeatureState;
@@ -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. */
@@ -652,11 +649,55 @@ declare namespace gapi.client {
652
649
  code?:
653
650
  string;
654
651
  }
655
- // tslint:disable-next-line:no-empty-interface
652
+ interface FleetObservabilityFeatureError {
653
+ /** The code of the error. */
654
+ code?:
655
+ string;
656
+ /** A human-readable description of the current status. */
657
+ description?:
658
+ string;
659
+ }
656
660
  interface FleetObservabilityFeatureSpec {
661
+ /** Specified if fleet logging feature is enabled for the entire fleet. If UNSPECIFIED, fleet logging feature is disabled for the entire fleet. */
662
+ loggingConfig?:
663
+ FleetObservabilityLoggingConfig;
657
664
  }
658
- // tslint:disable-next-line:no-empty-interface
659
665
  interface FleetObservabilityFeatureState {
666
+ /** The feature state of default logging. */
667
+ logging?:
668
+ FleetObservabilityFleetObservabilityLoggingState;
669
+ /** The feature state of fleet monitoring. */
670
+ monitoring?:
671
+ FleetObservabilityFleetObservabilityMonitoringState;
672
+ }
673
+ interface FleetObservabilityFleetObservabilityBaseFeatureState {
674
+ /** The high-level, machine-readable status of this Feature. */
675
+ code?:
676
+ string;
677
+ /** Errors after reconciling the monitoring and logging feature if the code is not OK. */
678
+ errors?:
679
+ FleetObservabilityFeatureError[];
680
+ }
681
+ interface FleetObservabilityFleetObservabilityLoggingState {
682
+ /** The base feature state of fleet default log. */
683
+ defaultLog?:
684
+ FleetObservabilityFleetObservabilityBaseFeatureState;
685
+ /** The base feature state of fleet scope log. */
686
+ scopeLog?:
687
+ FleetObservabilityFleetObservabilityBaseFeatureState;
688
+ }
689
+ interface FleetObservabilityFleetObservabilityMonitoringState {
690
+ /** The base feature state of fleet monitoring feature. */
691
+ state?:
692
+ FleetObservabilityFleetObservabilityBaseFeatureState;
693
+ }
694
+ interface FleetObservabilityLoggingConfig {
695
+ /** Specified if applying the default routing config to logs not specified in other configs. */
696
+ defaultConfig?:
697
+ FleetObservabilityRoutingConfig;
698
+ /** Specified if applying the routing config to all logs for all fleet scopes. */
699
+ fleetScopeLogsConfig?:
700
+ FleetObservabilityRoutingConfig;
660
701
  }
661
702
  // tslint:disable-next-line:no-empty-interface
662
703
  interface FleetObservabilityMembershipSpec {
@@ -664,6 +705,11 @@ declare namespace gapi.client {
664
705
  // tslint:disable-next-line:no-empty-interface
665
706
  interface FleetObservabilityMembershipState {
666
707
  }
708
+ interface FleetObservabilityRoutingConfig {
709
+ /** mode configures the logs routing mode. */
710
+ mode?:
711
+ string;
712
+ }
667
713
  interface GenerateConnectManifestResponse {
668
714
  /** The ordered list of Kubernetes resources that need to be applied to the cluster for GKE Connect agent installation/upgrade. */
669
715
  manifest?:
@@ -1049,9 +1095,6 @@ declare namespace gapi.client {
1049
1095
  /** Config Management-specific spec. */
1050
1096
  configmanagement?:
1051
1097
  ConfigManagementMembershipSpec;
1052
- /** True if value of `feature_spec` was inherited from a fleet-level default. */
1053
- fleetInherited?:
1054
- boolean;
1055
1098
  /** Fleet observability membership spec */
1056
1099
  fleetobservability?:
1057
1100
  any;
@@ -1061,6 +1104,12 @@ declare namespace gapi.client {
1061
1104
  /** Anthos Service Mesh-specific spec */
1062
1105
  mesh?:
1063
1106
  ServiceMeshMembershipSpec;
1107
+ /**
1108
+ * 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)
1109
+ * or setting to FLEET explicitly.
1110
+ */
1111
+ origin?:
1112
+ Origin;
1064
1113
  }
1065
1114
  interface MembershipFeatureState {
1066
1115
  /** Appdevexperience specific state. */
@@ -1202,6 +1251,11 @@ declare namespace gapi.client {
1202
1251
  verb?:
1203
1252
  string;
1204
1253
  }
1254
+ interface Origin {
1255
+ /** Type specifies which type of origin is set. */
1256
+ type?:
1257
+ string;
1258
+ }
1205
1259
  interface Policy {
1206
1260
  /** Specifies cloud audit logging configuration for this policy. */
1207
1261
  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.20230627",
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: 20230627
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,
@@ -396,6 +394,14 @@ gapi.load('client', async () => {
396
394
  appdevexperience: {
397
395
  },
398
396
  fleetobservability: {
397
+ loggingConfig: {
398
+ defaultConfig: {
399
+ mode: "Test string",
400
+ },
401
+ fleetScopeLogsConfig: {
402
+ mode: "Test string",
403
+ },
404
+ },
399
405
  },
400
406
  multiclusteringress: {
401
407
  configMembership: "Test string",
@@ -409,6 +415,37 @@ gapi.load('client', async () => {
409
415
  },
410
416
  },
411
417
  fleetobservability: {
418
+ logging: {
419
+ defaultLog: {
420
+ code: "Test string",
421
+ errors: [
422
+ {
423
+ code: "Test string",
424
+ description: "Test string",
425
+ }
426
+ ],
427
+ },
428
+ scopeLog: {
429
+ code: "Test string",
430
+ errors: [
431
+ {
432
+ code: "Test string",
433
+ description: "Test string",
434
+ }
435
+ ],
436
+ },
437
+ },
438
+ monitoring: {
439
+ state: {
440
+ code: "Test string",
441
+ errors: [
442
+ {
443
+ code: "Test string",
444
+ description: "Test string",
445
+ }
446
+ ],
447
+ },
448
+ },
412
449
  },
413
450
  state: {
414
451
  code: "Test string",
@@ -471,10 +508,6 @@ gapi.load('client', async () => {
471
508
  syncRev: "Test string",
472
509
  syncWaitSecs: "Test string",
473
510
  },
474
- managed: {
475
- enabled: true,
476
- stopSyncing: true,
477
- },
478
511
  metricsGcpServiceAccountEmail: "Test string",
479
512
  oci: {
480
513
  gcpServiceAccountEmail: "Test string",
@@ -485,12 +518,14 @@ gapi.load('client', async () => {
485
518
  },
486
519
  preventDrift: true,
487
520
  sourceFormat: "Test string",
521
+ stopSyncing: true,
488
522
  },
489
523
  hierarchyController: {
490
524
  enabled: true,
491
525
  enableHierarchicalResourceQuota: true,
492
526
  enablePodTreeLabels: true,
493
527
  },
528
+ management: "Test string",
494
529
  policyController: {
495
530
  auditIntervalSeconds: "Test string",
496
531
  enabled: true,
@@ -510,7 +545,6 @@ gapi.load('client', async () => {
510
545
  },
511
546
  version: "Test string",
512
547
  },
513
- fleetInherited: true,
514
548
  fleetobservability: {
515
549
  },
516
550
  identityservice: {
@@ -551,6 +585,9 @@ gapi.load('client', async () => {
551
585
  controlPlane: "Test string",
552
586
  management: "Test string",
553
587
  },
588
+ origin: {
589
+ type: "Test string",
590
+ },
554
591
  }
555
592
  },
556
593
  membershipStates: {
@@ -639,10 +676,6 @@ gapi.load('client', async () => {
639
676
  syncRev: "Test string",
640
677
  syncWaitSecs: "Test string",
641
678
  },
642
- managed: {
643
- enabled: true,
644
- stopSyncing: true,
645
- },
646
679
  metricsGcpServiceAccountEmail: "Test string",
647
680
  oci: {
648
681
  gcpServiceAccountEmail: "Test string",
@@ -653,12 +686,14 @@ gapi.load('client', async () => {
653
686
  },
654
687
  preventDrift: true,
655
688
  sourceFormat: "Test string",
689
+ stopSyncing: true,
656
690
  },
657
691
  hierarchyController: {
658
692
  enabled: true,
659
693
  enableHierarchicalResourceQuota: true,
660
694
  enablePodTreeLabels: true,
661
695
  },
696
+ management: "Test string",
662
697
  policyController: {
663
698
  auditIntervalSeconds: "Test string",
664
699
  enabled: true,
@@ -791,6 +826,14 @@ gapi.load('client', async () => {
791
826
  appdevexperience: {
792
827
  },
793
828
  fleetobservability: {
829
+ loggingConfig: {
830
+ defaultConfig: {
831
+ mode: "Test string",
832
+ },
833
+ fleetScopeLogsConfig: {
834
+ mode: "Test string",
835
+ },
836
+ },
794
837
  },
795
838
  multiclusteringress: {
796
839
  configMembership: "Test string",
@@ -804,6 +847,37 @@ gapi.load('client', async () => {
804
847
  },
805
848
  },
806
849
  fleetobservability: {
850
+ logging: {
851
+ defaultLog: {
852
+ code: "Test string",
853
+ errors: [
854
+ {
855
+ code: "Test string",
856
+ description: "Test string",
857
+ }
858
+ ],
859
+ },
860
+ scopeLog: {
861
+ code: "Test string",
862
+ errors: [
863
+ {
864
+ code: "Test string",
865
+ description: "Test string",
866
+ }
867
+ ],
868
+ },
869
+ },
870
+ monitoring: {
871
+ state: {
872
+ code: "Test string",
873
+ errors: [
874
+ {
875
+ code: "Test string",
876
+ description: "Test string",
877
+ }
878
+ ],
879
+ },
880
+ },
807
881
  },
808
882
  state: {
809
883
  code: "Test string",