@maxim_mazurok/gapi.client.gkehub-v1 0.0.20230329 → 0.0.20230414

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 +32 -1
  2. package/package.json +1 -1
  3. package/tests.ts +28 -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: 20230329
12
+ // Revision: 20230414
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -127,6 +127,8 @@ declare namespace gapi.client {
127
127
  enabled?: boolean;
128
128
  /** Git repo configuration for the cluster. */
129
129
  git?: ConfigManagementGitConfig;
130
+ /** Configuration for Managed Config Sync. */
131
+ managed?: ConfigManagementManaged;
130
132
  /** OCI repo configuration for the cluster */
131
133
  oci?: ConfigManagementOciConfig;
132
134
  /** Set to true to enable the Config Sync admission webhook to prevent drifts. If set to `false`, disables the Config Sync admission webhook and does not prevent drifts. */
@@ -248,6 +250,10 @@ declare namespace gapi.client {
248
250
  /** A string representing the user facing error message */
249
251
  errorMessage?: string;
250
252
  }
253
+ interface ConfigManagementManaged {
254
+ /** Set to true to enable Managed Config Sync. Defaults to false which disables Managed Config Sync. */
255
+ enabled?: boolean;
256
+ }
251
257
  interface ConfigManagementMembershipSpec {
252
258
  /** Config Sync configuration for the cluster. */
253
259
  configSync?: ConfigManagementConfigSync;
@@ -665,6 +671,8 @@ declare namespace gapi.client {
665
671
  * clusters that do not use GKE Connect, or that have never connected successfully, this field will be unset.
666
672
  */
667
673
  lastConnectionTime?: string;
674
+ /** Optional. The monitoring config information for this membership. */
675
+ monitoringConfig?: MonitoringConfig;
668
676
  /**
669
677
  * Output only. The full, unique name of this Membership resource in the format `projects/*‍/locations/*‍/memberships/{membership_id}`, set during creation. `membership_id` must be a
670
678
  * valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must consist of lower case alphanumeric characters or `-` 3. It must start and end with an alphanumeric
@@ -758,6 +766,27 @@ declare namespace gapi.client {
758
766
  /** Output only. The current state of the Membership resource. */
759
767
  code?: string;
760
768
  }
769
+ interface MonitoringConfig {
770
+ /**
771
+ * Immutable. Cluster name used to report metrics. For Anthos on VMWare/Baremetal, it would be in format `memberClusters/cluster_name`; And for Anthos on MultiCloud, it would be in
772
+ * format `{azureClusters, awsClusters}/cluster_name`.
773
+ */
774
+ cluster?: string;
775
+ /**
776
+ * Immutable. Cluster hash, this is a unique string generated by google code, which does not contain any PII, which we can use to reference the cluster. This is expected to be created
777
+ * by the monitoring stack and persisted into the Cluster object as well as to GKE-Hub.
778
+ */
779
+ clusterHash?: string;
780
+ /**
781
+ * Kubernetes system metrics, if available, are written to this prefix. This defaults to kubernetes.io for GKE, and kubernetes.io/anthos for Anthos eventually. Noted: Anthos MultiCloud
782
+ * will have kubernetes.io prefix today but will migration to be under kubernetes.io/anthos
783
+ */
784
+ kubernetesMetricsPrefix?: string;
785
+ /** Immutable. Location used to report Metrics */
786
+ location?: string;
787
+ /** Immutable. Project used to report Metrics */
788
+ projectId?: string;
789
+ }
761
790
  interface MultiCloudCluster {
762
791
  /** Output only. If cluster_missing is set then it denotes that API(gkemulticloud.googleapis.com) resource for this GKE Multi-Cloud cluster no longer exists. */
763
792
  clusterMissing?: boolean;
@@ -881,6 +910,8 @@ declare namespace gapi.client {
881
910
  v1beta1Crd?: boolean;
882
911
  }
883
912
  interface Scope {
913
+ /** If true, all Memberships in the Fleet bind to this Scope. */
914
+ allMemberships?: boolean;
884
915
  /** Output only. When the scope was created. */
885
916
  createTime?: string;
886
917
  /** Output only. When the scope was deleted. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.gkehub-v1",
3
- "version": "0.0.20230329",
3
+ "version": "0.0.20230414",
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: 20230329
6
+ // Revision: 20230414
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -69,6 +69,9 @@ gapi.load('client', async () => {
69
69
  syncRev: "Test string",
70
70
  syncWaitSecs: "Test string",
71
71
  },
72
+ managed: {
73
+ enabled: true,
74
+ },
72
75
  oci: {
73
76
  gcpServiceAccountEmail: "Test string",
74
77
  policyDir: "Test string",
@@ -225,6 +228,9 @@ gapi.load('client', async () => {
225
228
  syncRev: "Test string",
226
229
  syncWaitSecs: "Test string",
227
230
  },
231
+ managed: {
232
+ enabled: true,
233
+ },
228
234
  oci: {
229
235
  gcpServiceAccountEmail: "Test string",
230
236
  policyDir: "Test string",
@@ -444,6 +450,9 @@ gapi.load('client', async () => {
444
450
  syncRev: "Test string",
445
451
  syncWaitSecs: "Test string",
446
452
  },
453
+ managed: {
454
+ enabled: true,
455
+ },
447
456
  oci: {
448
457
  gcpServiceAccountEmail: "Test string",
449
458
  policyDir: "Test string",
@@ -600,6 +609,9 @@ gapi.load('client', async () => {
600
609
  syncRev: "Test string",
601
610
  syncWaitSecs: "Test string",
602
611
  },
612
+ managed: {
613
+ enabled: true,
614
+ },
603
615
  oci: {
604
616
  gcpServiceAccountEmail: "Test string",
605
617
  policyDir: "Test string",
@@ -889,6 +901,13 @@ gapi.load('client', async () => {
889
901
  A: "Test string"
890
902
  },
891
903
  lastConnectionTime: "Test string",
904
+ monitoringConfig: {
905
+ cluster: "Test string",
906
+ clusterHash: "Test string",
907
+ kubernetesMetricsPrefix: "Test string",
908
+ location: "Test string",
909
+ projectId: "Test string",
910
+ },
892
911
  name: "Test string",
893
912
  state: {
894
913
  code: "Test string",
@@ -1006,6 +1025,13 @@ gapi.load('client', async () => {
1006
1025
  A: "Test string"
1007
1026
  },
1008
1027
  lastConnectionTime: "Test string",
1028
+ monitoringConfig: {
1029
+ cluster: "Test string",
1030
+ clusterHash: "Test string",
1031
+ kubernetesMetricsPrefix: "Test string",
1032
+ location: "Test string",
1033
+ projectId: "Test string",
1034
+ },
1009
1035
  name: "Test string",
1010
1036
  state: {
1011
1037
  code: "Test string",
@@ -1140,6 +1166,7 @@ gapi.load('client', async () => {
1140
1166
  parent: "Test string",
1141
1167
  scopeId: "Test string",
1142
1168
  }, {
1169
+ allMemberships: true,
1143
1170
  createTime: "Test string",
1144
1171
  deleteTime: "Test string",
1145
1172
  name: "Test string",