kb-cloud-client-typescript 2.3.0-beta.0 → 2.3.0-beta.2
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/dist/adminapi/apis/cluster-api.d.ts +36 -4
- package/dist/adminapi/apis/cluster-api.d.ts.map +1 -1
- package/dist/adminapi/apis/cluster-api.js +30 -10
- package/dist/adminapi/apis/cluster-api.js.map +1 -1
- package/dist/adminapi/apis/load-balancer-api.d.ts +175 -0
- package/dist/adminapi/apis/load-balancer-api.d.ts.map +1 -1
- package/dist/adminapi/apis/load-balancer-api.js +213 -0
- package/dist/adminapi/apis/load-balancer-api.js.map +1 -1
- package/dist/adminapi/apis/shared-api.d.ts +36 -4
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +30 -10
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- package/dist/adminapi/models/cluster-list-item.d.ts +20 -0
- package/dist/adminapi/models/cluster-list-item.d.ts.map +1 -1
- package/dist/adminapi/models/index.d.ts +4 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +4 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/load-balancer-annotations.d.ts +35 -0
- package/dist/adminapi/models/load-balancer-annotations.d.ts.map +1 -0
- package/dist/adminapi/models/load-balancer-annotations.js +16 -0
- package/dist/adminapi/models/load-balancer-annotations.js.map +1 -0
- package/dist/adminapi/models/load-balancer-config-update.d.ts +26 -0
- package/dist/adminapi/models/load-balancer-config-update.d.ts.map +1 -0
- package/dist/adminapi/models/load-balancer-config-update.js +16 -0
- package/dist/adminapi/models/load-balancer-config-update.js.map +1 -0
- package/dist/adminapi/models/load-balancer-config.d.ts +32 -0
- package/dist/adminapi/models/load-balancer-config.d.ts.map +1 -0
- package/dist/adminapi/models/load-balancer-config.js +16 -0
- package/dist/adminapi/models/load-balancer-config.js.map +1 -0
- package/dist/adminapi/models/scheduling-config.d.ts +14 -0
- package/dist/adminapi/models/scheduling-config.d.ts.map +1 -1
- package/dist/adminapi/models/system-component-scheduler-policy.d.ts +22 -0
- package/dist/adminapi/models/system-component-scheduler-policy.d.ts.map +1 -0
- package/dist/adminapi/models/system-component-scheduler-policy.js +26 -0
- package/dist/adminapi/models/system-component-scheduler-policy.js.map +1 -0
- package/dist/internalapi/apis/cluster-api.d.ts +18 -2
- package/dist/internalapi/apis/cluster-api.d.ts.map +1 -1
- package/dist/internalapi/apis/cluster-api.js +15 -5
- package/dist/internalapi/apis/cluster-api.js.map +1 -1
- package/dist/internalapi/models/cluster-list-item.d.ts +20 -0
- package/dist/internalapi/models/cluster-list-item.d.ts.map +1 -1
- package/dist/internalapi/models/index.d.ts +1 -0
- package/dist/internalapi/models/index.d.ts.map +1 -1
- package/dist/internalapi/models/index.js +1 -0
- package/dist/internalapi/models/index.js.map +1 -1
- package/dist/internalapi/models/tag.d.ts +37 -0
- package/dist/internalapi/models/tag.d.ts.map +1 -0
- package/dist/internalapi/models/tag.js +16 -0
- package/dist/internalapi/models/tag.js.map +1 -0
- package/dist/openapi/apis/cluster-api.d.ts +18 -2
- package/dist/openapi/apis/cluster-api.d.ts.map +1 -1
- package/dist/openapi/apis/cluster-api.js +15 -5
- package/dist/openapi/apis/cluster-api.js.map +1 -1
- package/dist/openapi/apis/shared-api.d.ts +18 -2
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +15 -5
- package/dist/openapi/apis/shared-api.js.map +1 -1
- package/dist/openapi/models/cluster-list-item.d.ts +20 -0
- package/dist/openapi/models/cluster-list-item.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +4 -0
- package/src/adminapi/apis/cluster-api.ts +62 -10
- package/src/adminapi/apis/load-balancer-api.ts +318 -0
- package/src/adminapi/apis/shared-api.ts +62 -10
- package/src/adminapi/models/cluster-list-item.ts +24 -0
- package/src/adminapi/models/index.ts +4 -0
- package/src/adminapi/models/load-balancer-annotations.ts +36 -0
- package/src/adminapi/models/load-balancer-config-update.ts +33 -0
- package/src/adminapi/models/load-balancer-config.ts +39 -0
- package/src/adminapi/models/scheduling-config.ts +18 -0
- package/src/adminapi/models/system-component-scheduler-policy.ts +31 -0
- package/src/adminapi.yaml +249 -82
- package/src/internalapi/.openapi-generator/FILES +1 -0
- package/src/internalapi/apis/cluster-api.ts +31 -5
- package/src/internalapi/models/cluster-list-item.ts +24 -0
- package/src/internalapi/models/index.ts +1 -0
- package/src/internalapi/models/tag.ts +42 -0
- package/src/internalapi.yaml +107 -66
- package/src/openapi/apis/cluster-api.ts +31 -5
- package/src/openapi/apis/shared-api.ts +31 -5
- package/src/openapi/models/cluster-list-item.ts +24 -0
- package/src/openapi.yaml +107 -82
package/src/adminapi.yaml
CHANGED
|
@@ -2263,6 +2263,19 @@ paths:
|
|
|
2263
2263
|
required: false
|
|
2264
2264
|
schema:
|
|
2265
2265
|
type: boolean
|
|
2266
|
+
- name: endpointHost
|
|
2267
|
+
in: query
|
|
2268
|
+
description: Case-insensitive substring to match against the host part of cached cluster endpoints
|
|
2269
|
+
required: false
|
|
2270
|
+
schema:
|
|
2271
|
+
type: string
|
|
2272
|
+
- name: includeEndpoints
|
|
2273
|
+
in: query
|
|
2274
|
+
description: Whether to include cached user-visible endpoints in each cluster item
|
|
2275
|
+
required: false
|
|
2276
|
+
schema:
|
|
2277
|
+
type: boolean
|
|
2278
|
+
default: false
|
|
2266
2279
|
responses:
|
|
2267
2280
|
'200':
|
|
2268
2281
|
description: OK
|
|
@@ -2339,6 +2352,17 @@ paths:
|
|
|
2339
2352
|
description: list clusters referenced by this cluster
|
|
2340
2353
|
schema:
|
|
2341
2354
|
type: string
|
|
2355
|
+
- name: endpointHost
|
|
2356
|
+
in: query
|
|
2357
|
+
description: Case-insensitive substring to match against the host part of cached cluster endpoints
|
|
2358
|
+
schema:
|
|
2359
|
+
type: string
|
|
2360
|
+
- name: includeEndpoints
|
|
2361
|
+
in: query
|
|
2362
|
+
description: Whether to include cached user-visible endpoints in each cluster item
|
|
2363
|
+
schema:
|
|
2364
|
+
type: boolean
|
|
2365
|
+
default: false
|
|
2342
2366
|
responses:
|
|
2343
2367
|
'200':
|
|
2344
2368
|
description: A successful response.
|
|
@@ -10792,6 +10816,85 @@ paths:
|
|
|
10792
10816
|
'404':
|
|
10793
10817
|
$ref: '#/components/responses/404'
|
|
10794
10818
|
x-codegen-request-body-name: body
|
|
10819
|
+
/admin/v1/environments/{environmentName}/loadbalancer/config:
|
|
10820
|
+
get:
|
|
10821
|
+
tags:
|
|
10822
|
+
- loadBalancer
|
|
10823
|
+
operationId: getLoadBalancerConfig
|
|
10824
|
+
summary: Get the effective load balancer configuration of an environment
|
|
10825
|
+
parameters:
|
|
10826
|
+
- name: environmentName
|
|
10827
|
+
in: path
|
|
10828
|
+
description: name of the environment
|
|
10829
|
+
required: true
|
|
10830
|
+
schema:
|
|
10831
|
+
type: string
|
|
10832
|
+
responses:
|
|
10833
|
+
'200':
|
|
10834
|
+
description: A successful response.
|
|
10835
|
+
content:
|
|
10836
|
+
application/json:
|
|
10837
|
+
schema:
|
|
10838
|
+
$ref: '#/components/schemas/loadBalancerConfig'
|
|
10839
|
+
'403':
|
|
10840
|
+
$ref: '#/components/responses/403'
|
|
10841
|
+
'404':
|
|
10842
|
+
$ref: '#/components/responses/404'
|
|
10843
|
+
put:
|
|
10844
|
+
tags:
|
|
10845
|
+
- loadBalancer
|
|
10846
|
+
operationId: updateLoadBalancerConfig
|
|
10847
|
+
summary: Save and immediately activate the load balancer configuration of an environment
|
|
10848
|
+
parameters:
|
|
10849
|
+
- name: environmentName
|
|
10850
|
+
in: path
|
|
10851
|
+
description: name of the environment
|
|
10852
|
+
required: true
|
|
10853
|
+
schema:
|
|
10854
|
+
type: string
|
|
10855
|
+
requestBody:
|
|
10856
|
+
required: true
|
|
10857
|
+
content:
|
|
10858
|
+
application/json:
|
|
10859
|
+
schema:
|
|
10860
|
+
$ref: '#/components/schemas/loadBalancerConfigUpdate'
|
|
10861
|
+
responses:
|
|
10862
|
+
'200':
|
|
10863
|
+
description: A successful response.
|
|
10864
|
+
content:
|
|
10865
|
+
application/json:
|
|
10866
|
+
schema:
|
|
10867
|
+
$ref: '#/components/schemas/loadBalancerConfig'
|
|
10868
|
+
'400':
|
|
10869
|
+
$ref: '#/components/responses/400'
|
|
10870
|
+
'403':
|
|
10871
|
+
$ref: '#/components/responses/403'
|
|
10872
|
+
'404':
|
|
10873
|
+
$ref: '#/components/responses/404'
|
|
10874
|
+
x-codegen-request-body-name: body
|
|
10875
|
+
delete:
|
|
10876
|
+
tags:
|
|
10877
|
+
- loadBalancer
|
|
10878
|
+
operationId: resetLoadBalancerConfig
|
|
10879
|
+
summary: Reset the environment load balancer configuration to the current provider defaults
|
|
10880
|
+
parameters:
|
|
10881
|
+
- name: environmentName
|
|
10882
|
+
in: path
|
|
10883
|
+
description: name of the environment
|
|
10884
|
+
required: true
|
|
10885
|
+
schema:
|
|
10886
|
+
type: string
|
|
10887
|
+
responses:
|
|
10888
|
+
'200':
|
|
10889
|
+
description: The effective provider defaults after reset.
|
|
10890
|
+
content:
|
|
10891
|
+
application/json:
|
|
10892
|
+
schema:
|
|
10893
|
+
$ref: '#/components/schemas/loadBalancerConfig'
|
|
10894
|
+
'403':
|
|
10895
|
+
$ref: '#/components/responses/403'
|
|
10896
|
+
'404':
|
|
10897
|
+
$ref: '#/components/responses/404'
|
|
10795
10898
|
/admin/v1/environments/{environmentName}/loadbalancer/vipPool:
|
|
10796
10899
|
get:
|
|
10797
10900
|
operationId: listVIPPool
|
|
@@ -25629,6 +25732,88 @@ components:
|
|
|
25629
25732
|
- Normal
|
|
25630
25733
|
- DisasterRecovery
|
|
25631
25734
|
- BlueGreenDeployment
|
|
25735
|
+
tag:
|
|
25736
|
+
description: tag info
|
|
25737
|
+
properties:
|
|
25738
|
+
id:
|
|
25739
|
+
description: The id of the tag
|
|
25740
|
+
format: int64
|
|
25741
|
+
type: string
|
|
25742
|
+
key:
|
|
25743
|
+
description: the key of the tag
|
|
25744
|
+
type: string
|
|
25745
|
+
value:
|
|
25746
|
+
description: The value corresponding to the key
|
|
25747
|
+
type: string
|
|
25748
|
+
required:
|
|
25749
|
+
- id
|
|
25750
|
+
type: object
|
|
25751
|
+
endpointType:
|
|
25752
|
+
description: Type of endpoint
|
|
25753
|
+
type: string
|
|
25754
|
+
enum:
|
|
25755
|
+
- ClusterIP
|
|
25756
|
+
- NodePort
|
|
25757
|
+
- LoadBalancer
|
|
25758
|
+
- PodIP
|
|
25759
|
+
- HostNetwork
|
|
25760
|
+
- PodFQDN
|
|
25761
|
+
endpointNetworkType:
|
|
25762
|
+
description: Network type of endpoint
|
|
25763
|
+
type: string
|
|
25764
|
+
enum:
|
|
25765
|
+
- Internet
|
|
25766
|
+
- Intranet
|
|
25767
|
+
endpoint:
|
|
25768
|
+
description: Endpoint is the information of cluster endpoints
|
|
25769
|
+
properties:
|
|
25770
|
+
title:
|
|
25771
|
+
description: title of the endpoint
|
|
25772
|
+
type: string
|
|
25773
|
+
component:
|
|
25774
|
+
description: Component type name
|
|
25775
|
+
type: string
|
|
25776
|
+
hosts:
|
|
25777
|
+
description: Endpoint hosts
|
|
25778
|
+
type: array
|
|
25779
|
+
items:
|
|
25780
|
+
type: string
|
|
25781
|
+
port:
|
|
25782
|
+
description: Endpoint port
|
|
25783
|
+
type: integer
|
|
25784
|
+
format: int32
|
|
25785
|
+
type:
|
|
25786
|
+
$ref: '#/components/schemas/endpointType'
|
|
25787
|
+
networkType:
|
|
25788
|
+
$ref: '#/components/schemas/endpointNetworkType'
|
|
25789
|
+
serviceName:
|
|
25790
|
+
description: Service name of endpoint
|
|
25791
|
+
type: string
|
|
25792
|
+
podService:
|
|
25793
|
+
description: Pod service name of endpoint
|
|
25794
|
+
type: boolean
|
|
25795
|
+
portName:
|
|
25796
|
+
description: Port name of endpoint
|
|
25797
|
+
type: string
|
|
25798
|
+
instances:
|
|
25799
|
+
description: Endpoint backend instances
|
|
25800
|
+
type: array
|
|
25801
|
+
items:
|
|
25802
|
+
type: string
|
|
25803
|
+
mutable:
|
|
25804
|
+
description: Whether the endpoint is mutable
|
|
25805
|
+
type: boolean
|
|
25806
|
+
required:
|
|
25807
|
+
- title
|
|
25808
|
+
- component
|
|
25809
|
+
- hosts
|
|
25810
|
+
- port
|
|
25811
|
+
- type
|
|
25812
|
+
- networkType
|
|
25813
|
+
- serviceName
|
|
25814
|
+
- portName
|
|
25815
|
+
- mutable
|
|
25816
|
+
type: object
|
|
25632
25817
|
clusterListItem:
|
|
25633
25818
|
description: KubeBlocks cluster information
|
|
25634
25819
|
properties:
|
|
@@ -25735,6 +25920,20 @@ components:
|
|
|
25735
25920
|
orgName:
|
|
25736
25921
|
description: Org Name
|
|
25737
25922
|
type: string
|
|
25923
|
+
project:
|
|
25924
|
+
description: Name of project, it is the alias of environment namespace
|
|
25925
|
+
type: string
|
|
25926
|
+
tags:
|
|
25927
|
+
description: Tags bound to the cluster
|
|
25928
|
+
items:
|
|
25929
|
+
$ref: '#/components/schemas/tag'
|
|
25930
|
+
type: array
|
|
25931
|
+
endpoints:
|
|
25932
|
+
description: Cached user-visible endpoints of the cluster; omitted unless includeEndpoints is true
|
|
25933
|
+
items:
|
|
25934
|
+
$ref: '#/components/schemas/endpoint'
|
|
25935
|
+
type: array
|
|
25936
|
+
x-omitempty: true
|
|
25738
25937
|
required:
|
|
25739
25938
|
- cloudProvider
|
|
25740
25939
|
- createdAt
|
|
@@ -26716,72 +26915,6 @@ components:
|
|
|
26716
26915
|
log:
|
|
26717
26916
|
type: string
|
|
26718
26917
|
description: log is the log of the specified container
|
|
26719
|
-
endpointType:
|
|
26720
|
-
description: Type of endpoint
|
|
26721
|
-
type: string
|
|
26722
|
-
enum:
|
|
26723
|
-
- ClusterIP
|
|
26724
|
-
- NodePort
|
|
26725
|
-
- LoadBalancer
|
|
26726
|
-
- PodIP
|
|
26727
|
-
- HostNetwork
|
|
26728
|
-
- PodFQDN
|
|
26729
|
-
endpointNetworkType:
|
|
26730
|
-
description: Network type of endpoint
|
|
26731
|
-
type: string
|
|
26732
|
-
enum:
|
|
26733
|
-
- Internet
|
|
26734
|
-
- Intranet
|
|
26735
|
-
endpoint:
|
|
26736
|
-
description: Endpoint is the information of cluster endpoints
|
|
26737
|
-
properties:
|
|
26738
|
-
title:
|
|
26739
|
-
description: title of the endpoint
|
|
26740
|
-
type: string
|
|
26741
|
-
component:
|
|
26742
|
-
description: Component type name
|
|
26743
|
-
type: string
|
|
26744
|
-
hosts:
|
|
26745
|
-
description: Endpoint hosts
|
|
26746
|
-
type: array
|
|
26747
|
-
items:
|
|
26748
|
-
type: string
|
|
26749
|
-
port:
|
|
26750
|
-
description: Endpoint port
|
|
26751
|
-
type: integer
|
|
26752
|
-
format: int32
|
|
26753
|
-
type:
|
|
26754
|
-
$ref: '#/components/schemas/endpointType'
|
|
26755
|
-
networkType:
|
|
26756
|
-
$ref: '#/components/schemas/endpointNetworkType'
|
|
26757
|
-
serviceName:
|
|
26758
|
-
description: Service name of endpoint
|
|
26759
|
-
type: string
|
|
26760
|
-
podService:
|
|
26761
|
-
description: Pod service name of endpoint
|
|
26762
|
-
type: boolean
|
|
26763
|
-
portName:
|
|
26764
|
-
description: Port name of endpoint
|
|
26765
|
-
type: string
|
|
26766
|
-
instances:
|
|
26767
|
-
description: Endpoint backend instances
|
|
26768
|
-
type: array
|
|
26769
|
-
items:
|
|
26770
|
-
type: string
|
|
26771
|
-
mutable:
|
|
26772
|
-
description: Whether the endpoint is mutable
|
|
26773
|
-
type: boolean
|
|
26774
|
-
required:
|
|
26775
|
-
- title
|
|
26776
|
-
- component
|
|
26777
|
-
- hosts
|
|
26778
|
-
- port
|
|
26779
|
-
- type
|
|
26780
|
-
- networkType
|
|
26781
|
-
- serviceName
|
|
26782
|
-
- portName
|
|
26783
|
-
- mutable
|
|
26784
|
-
type: object
|
|
26785
26918
|
endpointList:
|
|
26786
26919
|
required:
|
|
26787
26920
|
- items
|
|
@@ -26868,22 +27001,6 @@ components:
|
|
|
26868
27001
|
taskId:
|
|
26869
27002
|
type: string
|
|
26870
27003
|
description: Task ID if the operation is asynchronous (e.g. reconfigure)
|
|
26871
|
-
tag:
|
|
26872
|
-
description: tag info
|
|
26873
|
-
properties:
|
|
26874
|
-
id:
|
|
26875
|
-
description: The id of the tag
|
|
26876
|
-
format: int64
|
|
26877
|
-
type: string
|
|
26878
|
-
key:
|
|
26879
|
-
description: the key of the tag
|
|
26880
|
-
type: string
|
|
26881
|
-
value:
|
|
26882
|
-
description: The value corresponding to the key
|
|
26883
|
-
type: string
|
|
26884
|
-
required:
|
|
26885
|
-
- id
|
|
26886
|
-
type: object
|
|
26887
27004
|
clusterTags:
|
|
26888
27005
|
properties:
|
|
26889
27006
|
clusterId:
|
|
@@ -31719,6 +31836,12 @@ components:
|
|
|
31719
31836
|
type: array
|
|
31720
31837
|
items:
|
|
31721
31838
|
type: string
|
|
31839
|
+
systemComponentSchedulerPolicy:
|
|
31840
|
+
type: string
|
|
31841
|
+
enum:
|
|
31842
|
+
- default
|
|
31843
|
+
- koordinator
|
|
31844
|
+
default: default
|
|
31722
31845
|
schedulingConfig:
|
|
31723
31846
|
type: object
|
|
31724
31847
|
title: SchedulingConfig
|
|
@@ -31728,6 +31851,13 @@ components:
|
|
|
31728
31851
|
$ref: '#/components/schemas/clusterSchedulingPolicy'
|
|
31729
31852
|
tolerateDefaultTaints:
|
|
31730
31853
|
$ref: '#/components/schemas/tolerateDefaultTaints'
|
|
31854
|
+
systemComponentSchedulerPolicy:
|
|
31855
|
+
$ref: '#/components/schemas/systemComponentSchedulerPolicy'
|
|
31856
|
+
description: Scheduler policy used by internal system component clusters, including MinIO, VictoriaMetrics, and Victoria Logs. The persisted policy is resolved to the current scheduler name when a component is created.
|
|
31857
|
+
systemComponentReservationResourceClass:
|
|
31858
|
+
nullable: true
|
|
31859
|
+
$ref: '#/components/schemas/koordinatorReservationResourceClass'
|
|
31860
|
+
description: Optional Reservation resource class used by internal system component clusters when the Koordinator scheduler is selected. No Reservation label is added unless the user explicitly selects a resource class. The value is persisted on the environment.
|
|
31731
31861
|
networkConfig:
|
|
31732
31862
|
type: object
|
|
31733
31863
|
title: NetworkConfig
|
|
@@ -32905,6 +33035,43 @@ components:
|
|
|
32905
33035
|
required:
|
|
32906
33036
|
- status
|
|
32907
33037
|
type: object
|
|
33038
|
+
loadBalancerAnnotations:
|
|
33039
|
+
description: Provider-neutral annotations applied to load balancer Services by exposure type.
|
|
33040
|
+
type: object
|
|
33041
|
+
properties:
|
|
33042
|
+
vpc:
|
|
33043
|
+
description: Annotations used for load balancers exposed inside the VPC.
|
|
33044
|
+
type: object
|
|
33045
|
+
additionalProperties:
|
|
33046
|
+
type: string
|
|
33047
|
+
internet:
|
|
33048
|
+
description: Annotations used for load balancers exposed to the Internet.
|
|
33049
|
+
type: object
|
|
33050
|
+
additionalProperties:
|
|
33051
|
+
type: string
|
|
33052
|
+
required:
|
|
33053
|
+
- vpc
|
|
33054
|
+
- internet
|
|
33055
|
+
loadBalancerConfig:
|
|
33056
|
+
description: Effective load balancer annotations for an environment.
|
|
33057
|
+
type: object
|
|
33058
|
+
properties:
|
|
33059
|
+
provider:
|
|
33060
|
+
description: Current environment provider returned by the server.
|
|
33061
|
+
type: string
|
|
33062
|
+
annotations:
|
|
33063
|
+
$ref: '#/components/schemas/loadBalancerAnnotations'
|
|
33064
|
+
required:
|
|
33065
|
+
- provider
|
|
33066
|
+
- annotations
|
|
33067
|
+
loadBalancerConfigUpdate:
|
|
33068
|
+
description: Complete editable load balancer annotations for an environment.
|
|
33069
|
+
type: object
|
|
33070
|
+
properties:
|
|
33071
|
+
annotations:
|
|
33072
|
+
$ref: '#/components/schemas/loadBalancerAnnotations'
|
|
33073
|
+
required:
|
|
33074
|
+
- annotations
|
|
32908
33075
|
vipPool:
|
|
32909
33076
|
description: VIP Pool
|
|
32910
33077
|
properties:
|
|
@@ -342,10 +342,12 @@ export const ClusterApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
342
342
|
* @param {Array<string>} [tagKeys] A list of tags\' keys
|
|
343
343
|
* @param {Array<string>} [tagValues] A list of tags\' values corresponding to the tagKeys
|
|
344
344
|
* @param {number} [licenseId] license id
|
|
345
|
+
* @param {string} [endpointHost] Case-insensitive substring to match against the host part of cached cluster endpoints
|
|
346
|
+
* @param {boolean} [includeEndpoints] Whether to include cached user-visible endpoints in each cluster item
|
|
345
347
|
* @param {*} [options] Override http request option.
|
|
346
348
|
* @throws {RequiredError}
|
|
347
349
|
*/
|
|
348
|
-
listCluster: async (orgName: string, clusterDefinition?: string, environmentName?: string, environmentType?: EnvironmentType, tagKey?: string, tagValue?: string, tagKeys?: Array<string>, tagValues?: Array<string>, licenseId?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
350
|
+
listCluster: async (orgName: string, clusterDefinition?: string, environmentName?: string, environmentType?: EnvironmentType, tagKey?: string, tagValue?: string, tagKeys?: Array<string>, tagValues?: Array<string>, licenseId?: number, endpointHost?: string, includeEndpoints?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
349
351
|
// verify required parameter 'orgName' is not null or undefined
|
|
350
352
|
assertParamExists('listCluster', 'orgName', orgName)
|
|
351
353
|
const localVarPath = `/internal/v1/organizations/{orgName}/clusters`
|
|
@@ -397,6 +399,14 @@ export const ClusterApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
397
399
|
localVarQueryParameter['licenseId'] = licenseId;
|
|
398
400
|
}
|
|
399
401
|
|
|
402
|
+
if (endpointHost !== undefined) {
|
|
403
|
+
localVarQueryParameter['endpointHost'] = endpointHost;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
if (includeEndpoints !== undefined) {
|
|
407
|
+
localVarQueryParameter['includeEndpoints'] = includeEndpoints;
|
|
408
|
+
}
|
|
409
|
+
|
|
400
410
|
|
|
401
411
|
|
|
402
412
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -621,11 +631,13 @@ export const ClusterApiFp = function(configuration?: Configuration) {
|
|
|
621
631
|
* @param {Array<string>} [tagKeys] A list of tags\' keys
|
|
622
632
|
* @param {Array<string>} [tagValues] A list of tags\' values corresponding to the tagKeys
|
|
623
633
|
* @param {number} [licenseId] license id
|
|
634
|
+
* @param {string} [endpointHost] Case-insensitive substring to match against the host part of cached cluster endpoints
|
|
635
|
+
* @param {boolean} [includeEndpoints] Whether to include cached user-visible endpoints in each cluster item
|
|
624
636
|
* @param {*} [options] Override http request option.
|
|
625
637
|
* @throws {RequiredError}
|
|
626
638
|
*/
|
|
627
|
-
async listCluster(orgName: string, clusterDefinition?: string, environmentName?: string, environmentType?: EnvironmentType, tagKey?: string, tagValue?: string, tagKeys?: Array<string>, tagValues?: Array<string>, licenseId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterList>> {
|
|
628
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listCluster(orgName, clusterDefinition, environmentName, environmentType, tagKey, tagValue, tagKeys, tagValues, licenseId, options);
|
|
639
|
+
async listCluster(orgName: string, clusterDefinition?: string, environmentName?: string, environmentType?: EnvironmentType, tagKey?: string, tagValue?: string, tagKeys?: Array<string>, tagValues?: Array<string>, licenseId?: number, endpointHost?: string, includeEndpoints?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterList>> {
|
|
640
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCluster(orgName, clusterDefinition, environmentName, environmentType, tagKey, tagValue, tagKeys, tagValues, licenseId, endpointHost, includeEndpoints, options);
|
|
629
641
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
630
642
|
const localVarOperationServerBasePath = operationServerMap['ClusterApi.listCluster']?.[localVarOperationServerIndex]?.url;
|
|
631
643
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -748,7 +760,7 @@ export const ClusterApiFactory = function (configuration?: Configuration, basePa
|
|
|
748
760
|
* @throws {RequiredError}
|
|
749
761
|
*/
|
|
750
762
|
listCluster(requestParameters: ClusterApiListClusterRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterList> {
|
|
751
|
-
return localVarFp.listCluster(requestParameters.orgName, requestParameters.clusterDefinition, requestParameters.environmentName, requestParameters.environmentType, requestParameters.tagKey, requestParameters.tagValue, requestParameters.tagKeys, requestParameters.tagValues, requestParameters.licenseId, options).then((request) => request(axios, basePath));
|
|
763
|
+
return localVarFp.listCluster(requestParameters.orgName, requestParameters.clusterDefinition, requestParameters.environmentName, requestParameters.environmentType, requestParameters.tagKey, requestParameters.tagValue, requestParameters.tagKeys, requestParameters.tagValues, requestParameters.licenseId, requestParameters.endpointHost, requestParameters.includeEndpoints, options).then((request) => request(axios, basePath));
|
|
752
764
|
},
|
|
753
765
|
/**
|
|
754
766
|
*
|
|
@@ -1082,6 +1094,20 @@ export interface ClusterApiListClusterRequest {
|
|
|
1082
1094
|
* @memberof ClusterApiListCluster
|
|
1083
1095
|
*/
|
|
1084
1096
|
readonly licenseId?: number
|
|
1097
|
+
|
|
1098
|
+
/**
|
|
1099
|
+
* Case-insensitive substring to match against the host part of cached cluster endpoints
|
|
1100
|
+
* @type {string}
|
|
1101
|
+
* @memberof ClusterApiListCluster
|
|
1102
|
+
*/
|
|
1103
|
+
readonly endpointHost?: string
|
|
1104
|
+
|
|
1105
|
+
/**
|
|
1106
|
+
* Whether to include cached user-visible endpoints in each cluster item
|
|
1107
|
+
* @type {boolean}
|
|
1108
|
+
* @memberof ClusterApiListCluster
|
|
1109
|
+
*/
|
|
1110
|
+
readonly includeEndpoints?: boolean
|
|
1085
1111
|
}
|
|
1086
1112
|
|
|
1087
1113
|
/**
|
|
@@ -1240,7 +1266,7 @@ export class ClusterApi extends BaseAPI implements ClusterApiInterface {
|
|
|
1240
1266
|
* @memberof ClusterApi
|
|
1241
1267
|
*/
|
|
1242
1268
|
public listCluster(requestParameters: ClusterApiListClusterRequest, options?: RawAxiosRequestConfig) {
|
|
1243
|
-
return ClusterApiFp(this.configuration).listCluster(requestParameters.orgName, requestParameters.clusterDefinition, requestParameters.environmentName, requestParameters.environmentType, requestParameters.tagKey, requestParameters.tagValue, requestParameters.tagKeys, requestParameters.tagValues, requestParameters.licenseId, options).then((request) => request(this.axios, this.basePath));
|
|
1269
|
+
return ClusterApiFp(this.configuration).listCluster(requestParameters.orgName, requestParameters.clusterDefinition, requestParameters.environmentName, requestParameters.environmentType, requestParameters.tagKey, requestParameters.tagValue, requestParameters.tagKeys, requestParameters.tagValues, requestParameters.licenseId, requestParameters.endpointHost, requestParameters.includeEndpoints, options).then((request) => request(this.axios, this.basePath));
|
|
1244
1270
|
}
|
|
1245
1271
|
|
|
1246
1272
|
/**
|
|
@@ -16,6 +16,12 @@
|
|
|
16
16
|
// May contain unused imports in some cases
|
|
17
17
|
// @ts-ignore
|
|
18
18
|
import type { ClusterType } from './cluster-type';
|
|
19
|
+
// May contain unused imports in some cases
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import type { Endpoint } from './endpoint';
|
|
22
|
+
// May contain unused imports in some cases
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import type { Tag } from './tag';
|
|
19
25
|
|
|
20
26
|
/**
|
|
21
27
|
* KubeBlocks cluster information
|
|
@@ -179,6 +185,24 @@ export interface ClusterListItem {
|
|
|
179
185
|
* @memberof ClusterListItem
|
|
180
186
|
*/
|
|
181
187
|
'orgName'?: string;
|
|
188
|
+
/**
|
|
189
|
+
* Name of project, it is the alias of environment namespace
|
|
190
|
+
* @type {string}
|
|
191
|
+
* @memberof ClusterListItem
|
|
192
|
+
*/
|
|
193
|
+
'project'?: string;
|
|
194
|
+
/**
|
|
195
|
+
* Tags bound to the cluster
|
|
196
|
+
* @type {Array<Tag>}
|
|
197
|
+
* @memberof ClusterListItem
|
|
198
|
+
*/
|
|
199
|
+
'tags'?: Array<Tag>;
|
|
200
|
+
/**
|
|
201
|
+
* Cached user-visible endpoints of the cluster; omitted unless includeEndpoints is true
|
|
202
|
+
* @type {Array<Endpoint>}
|
|
203
|
+
* @memberof ClusterListItem
|
|
204
|
+
*/
|
|
205
|
+
'endpoints'?: Array<Endpoint>;
|
|
182
206
|
}
|
|
183
207
|
|
|
184
208
|
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KubeBlocks Cloud Internal API
|
|
5
|
+
* The Internal API is using for interaction of ApeCloud platform microservices.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* tag info
|
|
19
|
+
* @export
|
|
20
|
+
* @interface Tag
|
|
21
|
+
*/
|
|
22
|
+
export interface Tag {
|
|
23
|
+
/**
|
|
24
|
+
* The id of the tag
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof Tag
|
|
27
|
+
*/
|
|
28
|
+
'id': string;
|
|
29
|
+
/**
|
|
30
|
+
* the key of the tag
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof Tag
|
|
33
|
+
*/
|
|
34
|
+
'key'?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The value corresponding to the key
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof Tag
|
|
39
|
+
*/
|
|
40
|
+
'value'?: string;
|
|
41
|
+
}
|
|
42
|
+
|