@maxim_mazurok/gapi.client.gkehub-v1alpha 0.0.20230329 → 0.0.20230407
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.
- package/index.d.ts +30 -1
- package/package.json +1 -1
- package/tests.ts +34 -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:
|
|
12
|
+
// Revision: 20230407
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -175,6 +175,8 @@ declare namespace gapi.client {
|
|
|
175
175
|
enabled?: boolean;
|
|
176
176
|
/** Git repo configuration for the cluster. */
|
|
177
177
|
git?: ConfigManagementGitConfig;
|
|
178
|
+
/** Configuration for Managed Config Sync. */
|
|
179
|
+
managed?: ConfigManagementManaged;
|
|
178
180
|
/** OCI repo configuration for the cluster */
|
|
179
181
|
oci?: ConfigManagementOciConfig;
|
|
180
182
|
/** 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. */
|
|
@@ -296,6 +298,10 @@ declare namespace gapi.client {
|
|
|
296
298
|
/** A string representing the user facing error message */
|
|
297
299
|
errorMessage?: string;
|
|
298
300
|
}
|
|
301
|
+
interface ConfigManagementManaged {
|
|
302
|
+
/** Set to true to enable Managed Config Sync. Defaults to false which disables Managed Config Sync. */
|
|
303
|
+
enabled?: boolean;
|
|
304
|
+
}
|
|
299
305
|
interface ConfigManagementMembershipSpec {
|
|
300
306
|
/** Binauthz conifguration for the cluster. */
|
|
301
307
|
binauthz?: ConfigManagementBinauthzConfig;
|
|
@@ -778,6 +784,8 @@ declare namespace gapi.client {
|
|
|
778
784
|
* clusters that do not use GKE Connect, or that have never connected successfully, this field will be unset.
|
|
779
785
|
*/
|
|
780
786
|
lastConnectionTime?: string;
|
|
787
|
+
/** Optional. The monitoring config information for this membership. */
|
|
788
|
+
monitoringConfig?: MonitoringConfig;
|
|
781
789
|
/**
|
|
782
790
|
* 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
|
|
783
791
|
* 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
|
|
@@ -893,6 +901,27 @@ declare namespace gapi.client {
|
|
|
893
901
|
/** The vCPUs capacity in the cluster according to the most recent measurement (1/1000 precision). */
|
|
894
902
|
preciseLastMeasuredClusterVcpuCapacity?: number;
|
|
895
903
|
}
|
|
904
|
+
interface MonitoringConfig {
|
|
905
|
+
/**
|
|
906
|
+
* 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
|
|
907
|
+
* format `{azureClusters, awsClusters}/cluster_name`.
|
|
908
|
+
*/
|
|
909
|
+
cluster?: string;
|
|
910
|
+
/**
|
|
911
|
+
* 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
|
|
912
|
+
* by the monitoring stack and persisted into the Cluster object as well as to GKE-Hub.
|
|
913
|
+
*/
|
|
914
|
+
clusterHash?: string;
|
|
915
|
+
/**
|
|
916
|
+
* 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
|
|
917
|
+
* will have kubernetes.io prefix today but will migration to be under kubernetes.io/anthos
|
|
918
|
+
*/
|
|
919
|
+
kubernetesMetricsPrefix?: string;
|
|
920
|
+
/** Immutable. Location used to report Metrics */
|
|
921
|
+
location?: string;
|
|
922
|
+
/** Immutable. Project used to report Metrics */
|
|
923
|
+
projectId?: string;
|
|
924
|
+
}
|
|
896
925
|
interface MultiCloudCluster {
|
|
897
926
|
/** 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. */
|
|
898
927
|
clusterMissing?: boolean;
|
package/package.json
CHANGED
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:
|
|
6
|
+
// Revision: 20230407
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -121,6 +121,9 @@ gapi.load('client', async () => {
|
|
|
121
121
|
syncRev: "Test string",
|
|
122
122
|
syncWaitSecs: "Test string",
|
|
123
123
|
},
|
|
124
|
+
managed: {
|
|
125
|
+
enabled: true,
|
|
126
|
+
},
|
|
124
127
|
oci: {
|
|
125
128
|
gcpServiceAccountEmail: "Test string",
|
|
126
129
|
policyDir: "Test string",
|
|
@@ -351,6 +354,9 @@ gapi.load('client', async () => {
|
|
|
351
354
|
syncRev: "Test string",
|
|
352
355
|
syncWaitSecs: "Test string",
|
|
353
356
|
},
|
|
357
|
+
managed: {
|
|
358
|
+
enabled: true,
|
|
359
|
+
},
|
|
354
360
|
oci: {
|
|
355
361
|
gcpServiceAccountEmail: "Test string",
|
|
356
362
|
policyDir: "Test string",
|
|
@@ -707,6 +713,9 @@ gapi.load('client', async () => {
|
|
|
707
713
|
syncRev: "Test string",
|
|
708
714
|
syncWaitSecs: "Test string",
|
|
709
715
|
},
|
|
716
|
+
managed: {
|
|
717
|
+
enabled: true,
|
|
718
|
+
},
|
|
710
719
|
oci: {
|
|
711
720
|
gcpServiceAccountEmail: "Test string",
|
|
712
721
|
policyDir: "Test string",
|
|
@@ -937,6 +946,9 @@ gapi.load('client', async () => {
|
|
|
937
946
|
syncRev: "Test string",
|
|
938
947
|
syncWaitSecs: "Test string",
|
|
939
948
|
},
|
|
949
|
+
managed: {
|
|
950
|
+
enabled: true,
|
|
951
|
+
},
|
|
940
952
|
oci: {
|
|
941
953
|
gcpServiceAccountEmail: "Test string",
|
|
942
954
|
policyDir: "Test string",
|
|
@@ -1360,6 +1372,13 @@ gapi.load('client', async () => {
|
|
|
1360
1372
|
A: "Test string"
|
|
1361
1373
|
},
|
|
1362
1374
|
lastConnectionTime: "Test string",
|
|
1375
|
+
monitoringConfig: {
|
|
1376
|
+
cluster: "Test string",
|
|
1377
|
+
clusterHash: "Test string",
|
|
1378
|
+
kubernetesMetricsPrefix: "Test string",
|
|
1379
|
+
location: "Test string",
|
|
1380
|
+
projectId: "Test string",
|
|
1381
|
+
},
|
|
1363
1382
|
name: "Test string",
|
|
1364
1383
|
state: {
|
|
1365
1384
|
code: "Test string",
|
|
@@ -1485,6 +1504,13 @@ gapi.load('client', async () => {
|
|
|
1485
1504
|
A: "Test string"
|
|
1486
1505
|
},
|
|
1487
1506
|
lastConnectionTime: "Test string",
|
|
1507
|
+
monitoringConfig: {
|
|
1508
|
+
cluster: "Test string",
|
|
1509
|
+
clusterHash: "Test string",
|
|
1510
|
+
kubernetesMetricsPrefix: "Test string",
|
|
1511
|
+
location: "Test string",
|
|
1512
|
+
projectId: "Test string",
|
|
1513
|
+
},
|
|
1488
1514
|
name: "Test string",
|
|
1489
1515
|
state: {
|
|
1490
1516
|
code: "Test string",
|
|
@@ -1613,6 +1639,13 @@ gapi.load('client', async () => {
|
|
|
1613
1639
|
A: "Test string"
|
|
1614
1640
|
},
|
|
1615
1641
|
lastConnectionTime: "Test string",
|
|
1642
|
+
monitoringConfig: {
|
|
1643
|
+
cluster: "Test string",
|
|
1644
|
+
clusterHash: "Test string",
|
|
1645
|
+
kubernetesMetricsPrefix: "Test string",
|
|
1646
|
+
location: "Test string",
|
|
1647
|
+
projectId: "Test string",
|
|
1648
|
+
},
|
|
1616
1649
|
name: "Test string",
|
|
1617
1650
|
state: {
|
|
1618
1651
|
code: "Test string",
|