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.
Files changed (83) hide show
  1. package/dist/adminapi/apis/cluster-api.d.ts +36 -4
  2. package/dist/adminapi/apis/cluster-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/cluster-api.js +30 -10
  4. package/dist/adminapi/apis/cluster-api.js.map +1 -1
  5. package/dist/adminapi/apis/load-balancer-api.d.ts +175 -0
  6. package/dist/adminapi/apis/load-balancer-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/load-balancer-api.js +213 -0
  8. package/dist/adminapi/apis/load-balancer-api.js.map +1 -1
  9. package/dist/adminapi/apis/shared-api.d.ts +36 -4
  10. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  11. package/dist/adminapi/apis/shared-api.js +30 -10
  12. package/dist/adminapi/apis/shared-api.js.map +1 -1
  13. package/dist/adminapi/models/cluster-list-item.d.ts +20 -0
  14. package/dist/adminapi/models/cluster-list-item.d.ts.map +1 -1
  15. package/dist/adminapi/models/index.d.ts +4 -0
  16. package/dist/adminapi/models/index.d.ts.map +1 -1
  17. package/dist/adminapi/models/index.js +4 -0
  18. package/dist/adminapi/models/index.js.map +1 -1
  19. package/dist/adminapi/models/load-balancer-annotations.d.ts +35 -0
  20. package/dist/adminapi/models/load-balancer-annotations.d.ts.map +1 -0
  21. package/dist/adminapi/models/load-balancer-annotations.js +16 -0
  22. package/dist/adminapi/models/load-balancer-annotations.js.map +1 -0
  23. package/dist/adminapi/models/load-balancer-config-update.d.ts +26 -0
  24. package/dist/adminapi/models/load-balancer-config-update.d.ts.map +1 -0
  25. package/dist/adminapi/models/load-balancer-config-update.js +16 -0
  26. package/dist/adminapi/models/load-balancer-config-update.js.map +1 -0
  27. package/dist/adminapi/models/load-balancer-config.d.ts +32 -0
  28. package/dist/adminapi/models/load-balancer-config.d.ts.map +1 -0
  29. package/dist/adminapi/models/load-balancer-config.js +16 -0
  30. package/dist/adminapi/models/load-balancer-config.js.map +1 -0
  31. package/dist/adminapi/models/scheduling-config.d.ts +14 -0
  32. package/dist/adminapi/models/scheduling-config.d.ts.map +1 -1
  33. package/dist/adminapi/models/system-component-scheduler-policy.d.ts +22 -0
  34. package/dist/adminapi/models/system-component-scheduler-policy.d.ts.map +1 -0
  35. package/dist/adminapi/models/system-component-scheduler-policy.js +26 -0
  36. package/dist/adminapi/models/system-component-scheduler-policy.js.map +1 -0
  37. package/dist/internalapi/apis/cluster-api.d.ts +18 -2
  38. package/dist/internalapi/apis/cluster-api.d.ts.map +1 -1
  39. package/dist/internalapi/apis/cluster-api.js +15 -5
  40. package/dist/internalapi/apis/cluster-api.js.map +1 -1
  41. package/dist/internalapi/models/cluster-list-item.d.ts +20 -0
  42. package/dist/internalapi/models/cluster-list-item.d.ts.map +1 -1
  43. package/dist/internalapi/models/index.d.ts +1 -0
  44. package/dist/internalapi/models/index.d.ts.map +1 -1
  45. package/dist/internalapi/models/index.js +1 -0
  46. package/dist/internalapi/models/index.js.map +1 -1
  47. package/dist/internalapi/models/tag.d.ts +37 -0
  48. package/dist/internalapi/models/tag.d.ts.map +1 -0
  49. package/dist/internalapi/models/tag.js +16 -0
  50. package/dist/internalapi/models/tag.js.map +1 -0
  51. package/dist/openapi/apis/cluster-api.d.ts +18 -2
  52. package/dist/openapi/apis/cluster-api.d.ts.map +1 -1
  53. package/dist/openapi/apis/cluster-api.js +15 -5
  54. package/dist/openapi/apis/cluster-api.js.map +1 -1
  55. package/dist/openapi/apis/shared-api.d.ts +18 -2
  56. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  57. package/dist/openapi/apis/shared-api.js +15 -5
  58. package/dist/openapi/apis/shared-api.js.map +1 -1
  59. package/dist/openapi/models/cluster-list-item.d.ts +20 -0
  60. package/dist/openapi/models/cluster-list-item.d.ts.map +1 -1
  61. package/package.json +1 -1
  62. package/src/adminapi/.openapi-generator/FILES +4 -0
  63. package/src/adminapi/apis/cluster-api.ts +62 -10
  64. package/src/adminapi/apis/load-balancer-api.ts +318 -0
  65. package/src/adminapi/apis/shared-api.ts +62 -10
  66. package/src/adminapi/models/cluster-list-item.ts +24 -0
  67. package/src/adminapi/models/index.ts +4 -0
  68. package/src/adminapi/models/load-balancer-annotations.ts +36 -0
  69. package/src/adminapi/models/load-balancer-config-update.ts +33 -0
  70. package/src/adminapi/models/load-balancer-config.ts +39 -0
  71. package/src/adminapi/models/scheduling-config.ts +18 -0
  72. package/src/adminapi/models/system-component-scheduler-policy.ts +31 -0
  73. package/src/adminapi.yaml +249 -82
  74. package/src/internalapi/.openapi-generator/FILES +1 -0
  75. package/src/internalapi/apis/cluster-api.ts +31 -5
  76. package/src/internalapi/models/cluster-list-item.ts +24 -0
  77. package/src/internalapi/models/index.ts +1 -0
  78. package/src/internalapi/models/tag.ts +42 -0
  79. package/src/internalapi.yaml +107 -66
  80. package/src/openapi/apis/cluster-api.ts +31 -5
  81. package/src/openapi/apis/shared-api.ts +31 -5
  82. package/src/openapi/models/cluster-list-item.ts +24 -0
  83. package/src/openapi.yaml +107 -82
@@ -486,6 +486,17 @@ paths:
486
486
  description: license id
487
487
  schema:
488
488
  type: integer
489
+ - name: endpointHost
490
+ in: query
491
+ description: Case-insensitive substring to match against the host part of cached cluster endpoints
492
+ schema:
493
+ type: string
494
+ - name: includeEndpoints
495
+ in: query
496
+ description: Whether to include cached user-visible endpoints in each cluster item
497
+ schema:
498
+ type: boolean
499
+ default: false
489
500
  responses:
490
501
  '200':
491
502
  description: A successful response.
@@ -1789,6 +1800,88 @@ components:
1789
1800
  - public
1790
1801
  - private
1791
1802
  default: public
1803
+ tag:
1804
+ description: tag info
1805
+ properties:
1806
+ id:
1807
+ description: The id of the tag
1808
+ format: int64
1809
+ type: string
1810
+ key:
1811
+ description: the key of the tag
1812
+ type: string
1813
+ value:
1814
+ description: The value corresponding to the key
1815
+ type: string
1816
+ required:
1817
+ - id
1818
+ type: object
1819
+ endpointType:
1820
+ description: Type of endpoint
1821
+ type: string
1822
+ enum:
1823
+ - ClusterIP
1824
+ - NodePort
1825
+ - LoadBalancer
1826
+ - PodIP
1827
+ - HostNetwork
1828
+ - PodFQDN
1829
+ endpointNetworkType:
1830
+ description: Network type of endpoint
1831
+ type: string
1832
+ enum:
1833
+ - Internet
1834
+ - Intranet
1835
+ endpoint:
1836
+ description: Endpoint is the information of cluster endpoints
1837
+ properties:
1838
+ title:
1839
+ description: title of the endpoint
1840
+ type: string
1841
+ component:
1842
+ description: Component type name
1843
+ type: string
1844
+ hosts:
1845
+ description: Endpoint hosts
1846
+ type: array
1847
+ items:
1848
+ type: string
1849
+ port:
1850
+ description: Endpoint port
1851
+ type: integer
1852
+ format: int32
1853
+ type:
1854
+ $ref: '#/components/schemas/endpointType'
1855
+ networkType:
1856
+ $ref: '#/components/schemas/endpointNetworkType'
1857
+ serviceName:
1858
+ description: Service name of endpoint
1859
+ type: string
1860
+ podService:
1861
+ description: Pod service name of endpoint
1862
+ type: boolean
1863
+ portName:
1864
+ description: Port name of endpoint
1865
+ type: string
1866
+ instances:
1867
+ description: Endpoint backend instances
1868
+ type: array
1869
+ items:
1870
+ type: string
1871
+ mutable:
1872
+ description: Whether the endpoint is mutable
1873
+ type: boolean
1874
+ required:
1875
+ - title
1876
+ - component
1877
+ - hosts
1878
+ - port
1879
+ - type
1880
+ - networkType
1881
+ - serviceName
1882
+ - portName
1883
+ - mutable
1884
+ type: object
1792
1885
  clusterListItem:
1793
1886
  description: KubeBlocks cluster information
1794
1887
  properties:
@@ -1895,6 +1988,20 @@ components:
1895
1988
  orgName:
1896
1989
  description: Org Name
1897
1990
  type: string
1991
+ project:
1992
+ description: Name of project, it is the alias of environment namespace
1993
+ type: string
1994
+ tags:
1995
+ description: Tags bound to the cluster
1996
+ items:
1997
+ $ref: '#/components/schemas/tag'
1998
+ type: array
1999
+ endpoints:
2000
+ description: Cached user-visible endpoints of the cluster; omitted unless includeEndpoints is true
2001
+ items:
2002
+ $ref: '#/components/schemas/endpoint'
2003
+ type: array
2004
+ x-omitempty: true
1898
2005
  required:
1899
2006
  - cloudProvider
1900
2007
  - createdAt
@@ -1960,72 +2067,6 @@ components:
1960
2067
  items:
1961
2068
  $ref: '#/components/schemas/serviceRef'
1962
2069
  description: ClusterUpdate is the payload to update a KubeBlocks cluster
1963
- endpointType:
1964
- description: Type of endpoint
1965
- type: string
1966
- enum:
1967
- - ClusterIP
1968
- - NodePort
1969
- - LoadBalancer
1970
- - PodIP
1971
- - HostNetwork
1972
- - PodFQDN
1973
- endpointNetworkType:
1974
- description: Network type of endpoint
1975
- type: string
1976
- enum:
1977
- - Internet
1978
- - Intranet
1979
- endpoint:
1980
- description: Endpoint is the information of cluster endpoints
1981
- properties:
1982
- title:
1983
- description: title of the endpoint
1984
- type: string
1985
- component:
1986
- description: Component type name
1987
- type: string
1988
- hosts:
1989
- description: Endpoint hosts
1990
- type: array
1991
- items:
1992
- type: string
1993
- port:
1994
- description: Endpoint port
1995
- type: integer
1996
- format: int32
1997
- type:
1998
- $ref: '#/components/schemas/endpointType'
1999
- networkType:
2000
- $ref: '#/components/schemas/endpointNetworkType'
2001
- serviceName:
2002
- description: Service name of endpoint
2003
- type: string
2004
- podService:
2005
- description: Pod service name of endpoint
2006
- type: boolean
2007
- portName:
2008
- description: Port name of endpoint
2009
- type: string
2010
- instances:
2011
- description: Endpoint backend instances
2012
- type: array
2013
- items:
2014
- type: string
2015
- mutable:
2016
- description: Whether the endpoint is mutable
2017
- type: boolean
2018
- required:
2019
- - title
2020
- - component
2021
- - hosts
2022
- - port
2023
- - type
2024
- - networkType
2025
- - serviceName
2026
- - portName
2027
- - mutable
2028
- type: object
2029
2070
  endpointList:
2030
2071
  required:
2031
2072
  - items
@@ -730,10 +730,12 @@ export const ClusterApiAxiosParamCreator = function (configuration?: Configurati
730
730
  * @param {Array<string>} [tagValues] A list of tags\&#39; values corresponding to the tagKeys
731
731
  * @param {number} [licenseId] license id
732
732
  * @param {string} [refClusterName] list clusters referenced by this cluster
733
+ * @param {string} [endpointHost] Case-insensitive substring to match against the host part of cached cluster endpoints
734
+ * @param {boolean} [includeEndpoints] Whether to include cached user-visible endpoints in each cluster item
733
735
  * @param {*} [options] Override http request option.
734
736
  * @throws {RequiredError}
735
737
  */
736
- listCluster: async (orgName: string, clusterDefinition?: string, environmentName?: string, environmentType?: EnvironmentType, tagKey?: string, tagValue?: string, tagKeys?: Array<string>, tagValues?: Array<string>, licenseId?: number, refClusterName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
738
+ listCluster: async (orgName: string, clusterDefinition?: string, environmentName?: string, environmentType?: EnvironmentType, tagKey?: string, tagValue?: string, tagKeys?: Array<string>, tagValues?: Array<string>, licenseId?: number, refClusterName?: string, endpointHost?: string, includeEndpoints?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
737
739
  // verify required parameter 'orgName' is not null or undefined
738
740
  assertParamExists('listCluster', 'orgName', orgName)
739
741
  const localVarPath = `/api/v1/organizations/{orgName}/clusters`
@@ -792,6 +794,14 @@ export const ClusterApiAxiosParamCreator = function (configuration?: Configurati
792
794
  localVarQueryParameter['refClusterName'] = refClusterName;
793
795
  }
794
796
 
797
+ if (endpointHost !== undefined) {
798
+ localVarQueryParameter['endpointHost'] = endpointHost;
799
+ }
800
+
801
+ if (includeEndpoints !== undefined) {
802
+ localVarQueryParameter['includeEndpoints'] = includeEndpoints;
803
+ }
804
+
795
805
 
796
806
 
797
807
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -1579,11 +1589,13 @@ export const ClusterApiFp = function(configuration?: Configuration) {
1579
1589
  * @param {Array<string>} [tagValues] A list of tags\&#39; values corresponding to the tagKeys
1580
1590
  * @param {number} [licenseId] license id
1581
1591
  * @param {string} [refClusterName] list clusters referenced by this cluster
1592
+ * @param {string} [endpointHost] Case-insensitive substring to match against the host part of cached cluster endpoints
1593
+ * @param {boolean} [includeEndpoints] Whether to include cached user-visible endpoints in each cluster item
1582
1594
  * @param {*} [options] Override http request option.
1583
1595
  * @throws {RequiredError}
1584
1596
  */
1585
- async listCluster(orgName: string, clusterDefinition?: string, environmentName?: string, environmentType?: EnvironmentType, tagKey?: string, tagValue?: string, tagKeys?: Array<string>, tagValues?: Array<string>, licenseId?: number, refClusterName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterList>> {
1586
- const localVarAxiosArgs = await localVarAxiosParamCreator.listCluster(orgName, clusterDefinition, environmentName, environmentType, tagKey, tagValue, tagKeys, tagValues, licenseId, refClusterName, options);
1597
+ async listCluster(orgName: string, clusterDefinition?: string, environmentName?: string, environmentType?: EnvironmentType, tagKey?: string, tagValue?: string, tagKeys?: Array<string>, tagValues?: Array<string>, licenseId?: number, refClusterName?: string, endpointHost?: string, includeEndpoints?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterList>> {
1598
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCluster(orgName, clusterDefinition, environmentName, environmentType, tagKey, tagValue, tagKeys, tagValues, licenseId, refClusterName, endpointHost, includeEndpoints, options);
1587
1599
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1588
1600
  const localVarOperationServerBasePath = operationServerMap['ClusterApi.listCluster']?.[localVarOperationServerIndex]?.url;
1589
1601
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1892,7 +1904,7 @@ export const ClusterApiFactory = function (configuration?: Configuration, basePa
1892
1904
  * @throws {RequiredError}
1893
1905
  */
1894
1906
  listCluster(requestParameters: ClusterApiListClusterRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterList> {
1895
- return localVarFp.listCluster(requestParameters.orgName, requestParameters.clusterDefinition, requestParameters.environmentName, requestParameters.environmentType, requestParameters.tagKey, requestParameters.tagValue, requestParameters.tagKeys, requestParameters.tagValues, requestParameters.licenseId, requestParameters.refClusterName, options).then((request) => request(axios, basePath));
1907
+ return localVarFp.listCluster(requestParameters.orgName, requestParameters.clusterDefinition, requestParameters.environmentName, requestParameters.environmentType, requestParameters.tagKey, requestParameters.tagValue, requestParameters.tagKeys, requestParameters.tagValues, requestParameters.licenseId, requestParameters.refClusterName, requestParameters.endpointHost, requestParameters.includeEndpoints, options).then((request) => request(axios, basePath));
1896
1908
  },
1897
1909
  /**
1898
1910
  *
@@ -2708,6 +2720,20 @@ export interface ClusterApiListClusterRequest {
2708
2720
  * @memberof ClusterApiListCluster
2709
2721
  */
2710
2722
  readonly refClusterName?: string
2723
+
2724
+ /**
2725
+ * Case-insensitive substring to match against the host part of cached cluster endpoints
2726
+ * @type {string}
2727
+ * @memberof ClusterApiListCluster
2728
+ */
2729
+ readonly endpointHost?: string
2730
+
2731
+ /**
2732
+ * Whether to include cached user-visible endpoints in each cluster item
2733
+ * @type {boolean}
2734
+ * @memberof ClusterApiListCluster
2735
+ */
2736
+ readonly includeEndpoints?: boolean
2711
2737
  }
2712
2738
 
2713
2739
  /**
@@ -3185,7 +3211,7 @@ export class ClusterApi extends BaseAPI implements ClusterApiInterface {
3185
3211
  * @memberof ClusterApi
3186
3212
  */
3187
3213
  public listCluster(requestParameters: ClusterApiListClusterRequest, options?: RawAxiosRequestConfig) {
3188
- return ClusterApiFp(this.configuration).listCluster(requestParameters.orgName, requestParameters.clusterDefinition, requestParameters.environmentName, requestParameters.environmentType, requestParameters.tagKey, requestParameters.tagValue, requestParameters.tagKeys, requestParameters.tagValues, requestParameters.licenseId, requestParameters.refClusterName, options).then((request) => request(this.axios, this.basePath));
3214
+ return ClusterApiFp(this.configuration).listCluster(requestParameters.orgName, requestParameters.clusterDefinition, requestParameters.environmentName, requestParameters.environmentType, requestParameters.tagKey, requestParameters.tagValue, requestParameters.tagKeys, requestParameters.tagValues, requestParameters.licenseId, requestParameters.refClusterName, requestParameters.endpointHost, requestParameters.includeEndpoints, options).then((request) => request(this.axios, this.basePath));
3189
3215
  }
3190
3216
 
3191
3217
  /**
@@ -8288,10 +8288,12 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
8288
8288
  * @param {Array<string>} [tagValues] A list of tags\&#39; values corresponding to the tagKeys
8289
8289
  * @param {number} [licenseId] license id
8290
8290
  * @param {string} [refClusterName] list clusters referenced by this cluster
8291
+ * @param {string} [endpointHost] Case-insensitive substring to match against the host part of cached cluster endpoints
8292
+ * @param {boolean} [includeEndpoints] Whether to include cached user-visible endpoints in each cluster item
8291
8293
  * @param {*} [options] Override http request option.
8292
8294
  * @throws {RequiredError}
8293
8295
  */
8294
- listCluster: async (orgName: string, clusterDefinition?: string, environmentName?: string, environmentType?: EnvironmentType, tagKey?: string, tagValue?: string, tagKeys?: Array<string>, tagValues?: Array<string>, licenseId?: number, refClusterName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8296
+ listCluster: async (orgName: string, clusterDefinition?: string, environmentName?: string, environmentType?: EnvironmentType, tagKey?: string, tagValue?: string, tagKeys?: Array<string>, tagValues?: Array<string>, licenseId?: number, refClusterName?: string, endpointHost?: string, includeEndpoints?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8295
8297
  // verify required parameter 'orgName' is not null or undefined
8296
8298
  assertParamExists('listCluster', 'orgName', orgName)
8297
8299
  const localVarPath = `/api/v1/organizations/{orgName}/clusters`
@@ -8350,6 +8352,14 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
8350
8352
  localVarQueryParameter['refClusterName'] = refClusterName;
8351
8353
  }
8352
8354
 
8355
+ if (endpointHost !== undefined) {
8356
+ localVarQueryParameter['endpointHost'] = endpointHost;
8357
+ }
8358
+
8359
+ if (includeEndpoints !== undefined) {
8360
+ localVarQueryParameter['includeEndpoints'] = includeEndpoints;
8361
+ }
8362
+
8353
8363
 
8354
8364
 
8355
8365
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -18408,11 +18418,13 @@ export const SharedApiFp = function(configuration?: Configuration) {
18408
18418
  * @param {Array<string>} [tagValues] A list of tags\&#39; values corresponding to the tagKeys
18409
18419
  * @param {number} [licenseId] license id
18410
18420
  * @param {string} [refClusterName] list clusters referenced by this cluster
18421
+ * @param {string} [endpointHost] Case-insensitive substring to match against the host part of cached cluster endpoints
18422
+ * @param {boolean} [includeEndpoints] Whether to include cached user-visible endpoints in each cluster item
18411
18423
  * @param {*} [options] Override http request option.
18412
18424
  * @throws {RequiredError}
18413
18425
  */
18414
- async listCluster(orgName: string, clusterDefinition?: string, environmentName?: string, environmentType?: EnvironmentType, tagKey?: string, tagValue?: string, tagKeys?: Array<string>, tagValues?: Array<string>, licenseId?: number, refClusterName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterList>> {
18415
- const localVarAxiosArgs = await localVarAxiosParamCreator.listCluster(orgName, clusterDefinition, environmentName, environmentType, tagKey, tagValue, tagKeys, tagValues, licenseId, refClusterName, options);
18426
+ async listCluster(orgName: string, clusterDefinition?: string, environmentName?: string, environmentType?: EnvironmentType, tagKey?: string, tagValue?: string, tagKeys?: Array<string>, tagValues?: Array<string>, licenseId?: number, refClusterName?: string, endpointHost?: string, includeEndpoints?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterList>> {
18427
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCluster(orgName, clusterDefinition, environmentName, environmentType, tagKey, tagValue, tagKeys, tagValues, licenseId, refClusterName, endpointHost, includeEndpoints, options);
18416
18428
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18417
18429
  const localVarOperationServerBasePath = operationServerMap['SharedApi.listCluster']?.[localVarOperationServerIndex]?.url;
18418
18430
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -22094,7 +22106,7 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
22094
22106
  * @throws {RequiredError}
22095
22107
  */
22096
22108
  listCluster(requestParameters: SharedApiListClusterRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterList> {
22097
- return localVarFp.listCluster(requestParameters.orgName, requestParameters.clusterDefinition, requestParameters.environmentName, requestParameters.environmentType, requestParameters.tagKey, requestParameters.tagValue, requestParameters.tagKeys, requestParameters.tagValues, requestParameters.licenseId, requestParameters.refClusterName, options).then((request) => request(axios, basePath));
22109
+ return localVarFp.listCluster(requestParameters.orgName, requestParameters.clusterDefinition, requestParameters.environmentName, requestParameters.environmentType, requestParameters.tagKey, requestParameters.tagValue, requestParameters.tagKeys, requestParameters.tagValues, requestParameters.licenseId, requestParameters.refClusterName, requestParameters.endpointHost, requestParameters.includeEndpoints, options).then((request) => request(axios, basePath));
22098
22110
  },
22099
22111
  /**
22100
22112
  *
@@ -31298,6 +31310,20 @@ export interface SharedApiListClusterRequest {
31298
31310
  * @memberof SharedApiListCluster
31299
31311
  */
31300
31312
  readonly refClusterName?: string
31313
+
31314
+ /**
31315
+ * Case-insensitive substring to match against the host part of cached cluster endpoints
31316
+ * @type {string}
31317
+ * @memberof SharedApiListCluster
31318
+ */
31319
+ readonly endpointHost?: string
31320
+
31321
+ /**
31322
+ * Whether to include cached user-visible endpoints in each cluster item
31323
+ * @type {boolean}
31324
+ * @memberof SharedApiListCluster
31325
+ */
31326
+ readonly includeEndpoints?: boolean
31301
31327
  }
31302
31328
 
31303
31329
  /**
@@ -37923,7 +37949,7 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
37923
37949
  * @memberof SharedApi
37924
37950
  */
37925
37951
  public listCluster(requestParameters: SharedApiListClusterRequest, options?: RawAxiosRequestConfig) {
37926
- return SharedApiFp(this.configuration).listCluster(requestParameters.orgName, requestParameters.clusterDefinition, requestParameters.environmentName, requestParameters.environmentType, requestParameters.tagKey, requestParameters.tagValue, requestParameters.tagKeys, requestParameters.tagValues, requestParameters.licenseId, requestParameters.refClusterName, options).then((request) => request(this.axios, this.basePath));
37952
+ return SharedApiFp(this.configuration).listCluster(requestParameters.orgName, requestParameters.clusterDefinition, requestParameters.environmentName, requestParameters.environmentType, requestParameters.tagKey, requestParameters.tagValue, requestParameters.tagKeys, requestParameters.tagValues, requestParameters.licenseId, requestParameters.refClusterName, requestParameters.endpointHost, requestParameters.includeEndpoints, options).then((request) => request(this.axios, this.basePath));
37927
37953
  }
37928
37954
 
37929
37955
  /**
@@ -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
 
package/src/openapi.yaml CHANGED
@@ -1629,6 +1629,17 @@ paths:
1629
1629
  description: list clusters referenced by this cluster
1630
1630
  schema:
1631
1631
  type: string
1632
+ - name: endpointHost
1633
+ in: query
1634
+ description: Case-insensitive substring to match against the host part of cached cluster endpoints
1635
+ schema:
1636
+ type: string
1637
+ - name: includeEndpoints
1638
+ in: query
1639
+ description: Whether to include cached user-visible endpoints in each cluster item
1640
+ schema:
1641
+ type: boolean
1642
+ default: false
1632
1643
  responses:
1633
1644
  '200':
1634
1645
  description: A successful response.
@@ -22201,6 +22212,88 @@ components:
22201
22212
  - Normal
22202
22213
  - DisasterRecovery
22203
22214
  - BlueGreenDeployment
22215
+ tag:
22216
+ description: tag info
22217
+ properties:
22218
+ id:
22219
+ description: The id of the tag
22220
+ format: int64
22221
+ type: string
22222
+ key:
22223
+ description: the key of the tag
22224
+ type: string
22225
+ value:
22226
+ description: The value corresponding to the key
22227
+ type: string
22228
+ required:
22229
+ - id
22230
+ type: object
22231
+ endpointType:
22232
+ description: Type of endpoint
22233
+ type: string
22234
+ enum:
22235
+ - ClusterIP
22236
+ - NodePort
22237
+ - LoadBalancer
22238
+ - PodIP
22239
+ - HostNetwork
22240
+ - PodFQDN
22241
+ endpointNetworkType:
22242
+ description: Network type of endpoint
22243
+ type: string
22244
+ enum:
22245
+ - Internet
22246
+ - Intranet
22247
+ endpoint:
22248
+ description: Endpoint is the information of cluster endpoints
22249
+ properties:
22250
+ title:
22251
+ description: title of the endpoint
22252
+ type: string
22253
+ component:
22254
+ description: Component type name
22255
+ type: string
22256
+ hosts:
22257
+ description: Endpoint hosts
22258
+ type: array
22259
+ items:
22260
+ type: string
22261
+ port:
22262
+ description: Endpoint port
22263
+ type: integer
22264
+ format: int32
22265
+ type:
22266
+ $ref: '#/components/schemas/endpointType'
22267
+ networkType:
22268
+ $ref: '#/components/schemas/endpointNetworkType'
22269
+ serviceName:
22270
+ description: Service name of endpoint
22271
+ type: string
22272
+ podService:
22273
+ description: Pod service name of endpoint
22274
+ type: boolean
22275
+ portName:
22276
+ description: Port name of endpoint
22277
+ type: string
22278
+ instances:
22279
+ description: Endpoint backend instances
22280
+ type: array
22281
+ items:
22282
+ type: string
22283
+ mutable:
22284
+ description: Whether the endpoint is mutable
22285
+ type: boolean
22286
+ required:
22287
+ - title
22288
+ - component
22289
+ - hosts
22290
+ - port
22291
+ - type
22292
+ - networkType
22293
+ - serviceName
22294
+ - portName
22295
+ - mutable
22296
+ type: object
22204
22297
  clusterListItem:
22205
22298
  description: KubeBlocks cluster information
22206
22299
  properties:
@@ -22307,6 +22400,20 @@ components:
22307
22400
  orgName:
22308
22401
  description: Org Name
22309
22402
  type: string
22403
+ project:
22404
+ description: Name of project, it is the alias of environment namespace
22405
+ type: string
22406
+ tags:
22407
+ description: Tags bound to the cluster
22408
+ items:
22409
+ $ref: '#/components/schemas/tag'
22410
+ type: array
22411
+ endpoints:
22412
+ description: Cached user-visible endpoints of the cluster; omitted unless includeEndpoints is true
22413
+ items:
22414
+ $ref: '#/components/schemas/endpoint'
22415
+ type: array
22416
+ x-omitempty: true
22310
22417
  required:
22311
22418
  - cloudProvider
22312
22419
  - createdAt
@@ -24512,22 +24619,6 @@ components:
24512
24619
  type: string
24513
24620
  rebuildInstanceOpsRequestName:
24514
24621
  type: string
24515
- tag:
24516
- description: tag info
24517
- properties:
24518
- id:
24519
- description: The id of the tag
24520
- format: int64
24521
- type: string
24522
- key:
24523
- description: the key of the tag
24524
- type: string
24525
- value:
24526
- description: The value corresponding to the key
24527
- type: string
24528
- required:
24529
- - id
24530
- type: object
24531
24622
  clusterTags:
24532
24623
  properties:
24533
24624
  clusterId:
@@ -24592,72 +24683,6 @@ components:
24592
24683
  - clusterId
24593
24684
  - items
24594
24685
  type: object
24595
- endpointType:
24596
- description: Type of endpoint
24597
- type: string
24598
- enum:
24599
- - ClusterIP
24600
- - NodePort
24601
- - LoadBalancer
24602
- - PodIP
24603
- - HostNetwork
24604
- - PodFQDN
24605
- endpointNetworkType:
24606
- description: Network type of endpoint
24607
- type: string
24608
- enum:
24609
- - Internet
24610
- - Intranet
24611
- endpoint:
24612
- description: Endpoint is the information of cluster endpoints
24613
- properties:
24614
- title:
24615
- description: title of the endpoint
24616
- type: string
24617
- component:
24618
- description: Component type name
24619
- type: string
24620
- hosts:
24621
- description: Endpoint hosts
24622
- type: array
24623
- items:
24624
- type: string
24625
- port:
24626
- description: Endpoint port
24627
- type: integer
24628
- format: int32
24629
- type:
24630
- $ref: '#/components/schemas/endpointType'
24631
- networkType:
24632
- $ref: '#/components/schemas/endpointNetworkType'
24633
- serviceName:
24634
- description: Service name of endpoint
24635
- type: string
24636
- podService:
24637
- description: Pod service name of endpoint
24638
- type: boolean
24639
- portName:
24640
- description: Port name of endpoint
24641
- type: string
24642
- instances:
24643
- description: Endpoint backend instances
24644
- type: array
24645
- items:
24646
- type: string
24647
- mutable:
24648
- description: Whether the endpoint is mutable
24649
- type: boolean
24650
- required:
24651
- - title
24652
- - component
24653
- - hosts
24654
- - port
24655
- - type
24656
- - networkType
24657
- - serviceName
24658
- - portName
24659
- - mutable
24660
- type: object
24661
24686
  endpointList:
24662
24687
  required:
24663
24688
  - items