kb-cloud-client-typescript 2.2.106 → 2.2.108

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 (77) hide show
  1. package/dist/adminapi/apis/account-api.d.ts +7 -7
  2. package/dist/adminapi/apis/account-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/account-api.js +10 -10
  4. package/dist/adminapi/apis/account-api.js.map +1 -1
  5. package/dist/adminapi/apis/rabbit-mqapi.d.ts +7 -7
  6. package/dist/adminapi/apis/rabbit-mqapi.d.ts.map +1 -1
  7. package/dist/adminapi/apis/rabbit-mqapi.js +10 -10
  8. package/dist/adminapi/apis/rabbit-mqapi.js.map +1 -1
  9. package/dist/adminapi/apis/shared-api.d.ts +7 -7
  10. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  11. package/dist/adminapi/apis/shared-api.js +10 -10
  12. package/dist/adminapi/apis/shared-api.js.map +1 -1
  13. package/dist/adminapi/models/index.d.ts +1 -0
  14. package/dist/adminapi/models/index.d.ts.map +1 -1
  15. package/dist/adminapi/models/index.js +1 -0
  16. package/dist/adminapi/models/index.js.map +1 -1
  17. package/dist/adminapi/models/mode-service-ref-helm-value-path.d.ts +6 -0
  18. package/dist/adminapi/models/mode-service-ref-helm-value-path.d.ts.map +1 -1
  19. package/dist/adminapi/models/mode-service-ref.d.ts +28 -0
  20. package/dist/adminapi/models/mode-service-ref.d.ts.map +1 -1
  21. package/dist/adminapi/models/rbmq-password-update-request.d.ts +25 -0
  22. package/dist/adminapi/models/rbmq-password-update-request.d.ts.map +1 -0
  23. package/dist/adminapi/models/rbmq-password-update-request.js +16 -0
  24. package/dist/adminapi/models/rbmq-password-update-request.js.map +1 -0
  25. package/dist/adminapi/models/service-ref.d.ts +8 -0
  26. package/dist/adminapi/models/service-ref.d.ts.map +1 -1
  27. package/dist/internalapi/models/service-ref.d.ts +8 -0
  28. package/dist/internalapi/models/service-ref.d.ts.map +1 -1
  29. package/dist/openapi/apis/account-api.d.ts +7 -7
  30. package/dist/openapi/apis/account-api.d.ts.map +1 -1
  31. package/dist/openapi/apis/account-api.js +10 -10
  32. package/dist/openapi/apis/account-api.js.map +1 -1
  33. package/dist/openapi/apis/rabbit-mqapi.d.ts +7 -7
  34. package/dist/openapi/apis/rabbit-mqapi.d.ts.map +1 -1
  35. package/dist/openapi/apis/rabbit-mqapi.js +10 -10
  36. package/dist/openapi/apis/rabbit-mqapi.js.map +1 -1
  37. package/dist/openapi/apis/shared-api.d.ts +7 -7
  38. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  39. package/dist/openapi/apis/shared-api.js +10 -10
  40. package/dist/openapi/apis/shared-api.js.map +1 -1
  41. package/dist/openapi/models/index.d.ts +1 -0
  42. package/dist/openapi/models/index.d.ts.map +1 -1
  43. package/dist/openapi/models/index.js +1 -0
  44. package/dist/openapi/models/index.js.map +1 -1
  45. package/dist/openapi/models/mode-service-ref-helm-value-path.d.ts +6 -0
  46. package/dist/openapi/models/mode-service-ref-helm-value-path.d.ts.map +1 -1
  47. package/dist/openapi/models/mode-service-ref.d.ts +28 -0
  48. package/dist/openapi/models/mode-service-ref.d.ts.map +1 -1
  49. package/dist/openapi/models/rbmq-password-update-request.d.ts +25 -0
  50. package/dist/openapi/models/rbmq-password-update-request.d.ts.map +1 -0
  51. package/dist/openapi/models/rbmq-password-update-request.js +16 -0
  52. package/dist/openapi/models/rbmq-password-update-request.js.map +1 -0
  53. package/dist/openapi/models/service-ref.d.ts +8 -0
  54. package/dist/openapi/models/service-ref.d.ts.map +1 -1
  55. package/package.json +1 -1
  56. package/src/adminapi/.openapi-generator/FILES +1 -0
  57. package/src/adminapi/apis/account-api.ts +14 -14
  58. package/src/adminapi/apis/rabbit-mqapi.ts +14 -14
  59. package/src/adminapi/apis/shared-api.ts +14 -14
  60. package/src/adminapi/models/index.ts +1 -0
  61. package/src/adminapi/models/mode-service-ref-helm-value-path.ts +6 -0
  62. package/src/adminapi/models/mode-service-ref.ts +24 -0
  63. package/src/adminapi/models/rbmq-password-update-request.ts +30 -0
  64. package/src/adminapi/models/service-ref.ts +6 -0
  65. package/src/adminapi.yaml +51 -1
  66. package/src/internalapi/models/service-ref.ts +6 -0
  67. package/src/internalapi.yaml +8 -0
  68. package/src/openapi/.openapi-generator/FILES +1 -0
  69. package/src/openapi/apis/account-api.ts +14 -14
  70. package/src/openapi/apis/rabbit-mqapi.ts +14 -14
  71. package/src/openapi/apis/shared-api.ts +14 -14
  72. package/src/openapi/models/index.ts +1 -0
  73. package/src/openapi/models/mode-service-ref-helm-value-path.ts +6 -0
  74. package/src/openapi/models/mode-service-ref.ts +24 -0
  75. package/src/openapi/models/rbmq-password-update-request.ts +30 -0
  76. package/src/openapi/models/service-ref.ts +6 -0
  77. package/src/openapi.yaml +51 -1
@@ -38,6 +38,12 @@ export interface ModeServiceRef {
38
38
  * @memberof ModeServiceRef
39
39
  */
40
40
  'name': string;
41
+ /**
42
+ * The localized title of the serviceRef.
43
+ * @type {{ [key: string]: string; }}
44
+ * @memberof ModeServiceRef
45
+ */
46
+ 'title'?: { [key: string]: string; };
41
47
  /**
42
48
  * The engine to be used in serviceRef. This field is used to filter clusters.
43
49
  * @type {string}
@@ -62,6 +68,24 @@ export interface ModeServiceRef {
62
68
  * @memberof ModeServiceRef
63
69
  */
64
70
  'disableManualInput'?: boolean;
71
+ /**
72
+ * whether to disable auto creating the ServiceDescriptor object for this serviceRef. If set to false, the serviceDescriptor content (host/port/username/password) will be set directly into the helm values under the helmValuePath.serviceDescriptor path. If omitted, the generated ServiceDescriptor name will be set instead.
73
+ * @type {boolean}
74
+ * @memberof ModeServiceRef
75
+ */
76
+ 'disableAutoCreateServiceDescriptor'?: boolean | null;
77
+ /**
78
+ * whether to disable selecting a related cluster created in the platform for this serviceRef. If set to true, the frontend should only allow manual input instead of selecting from the clusters provided by the list clusters api.
79
+ * @type {boolean}
80
+ * @memberof ModeServiceRef
81
+ */
82
+ 'disableRelatedCluster'?: boolean;
83
+ /**
84
+ * Extra form field definitions for manual input of the serviceRef. The keys are the field names and the frontend renders them as input items. The user-entered values are passed in ClusterCreate serviceRefs[].extraForManualInput and mapped to helm values via helmValuePath.extraForManualInput.
85
+ * @type {{ [key: string]: any; }}
86
+ * @memberof ModeServiceRef
87
+ */
88
+ 'extraForManualInput'?: { [key: string]: any; };
65
89
  /**
66
90
  *
67
91
  * @type {ModeServiceRefHelmValuePath}
@@ -0,0 +1,30 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Admin API
5
+ * The Admin API is used to manage the ApeCloud platform.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@apecloud.com
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
+ * RabbitMQ account password update request.
19
+ * @export
20
+ * @interface RbmqPasswordUpdateRequest
21
+ */
22
+ export interface RbmqPasswordUpdateRequest {
23
+ /**
24
+ * New RabbitMQ account password.
25
+ * @type {string}
26
+ * @memberof RbmqPasswordUpdateRequest
27
+ */
28
+ 'password': string;
29
+ }
30
+
@@ -47,5 +47,11 @@ export interface ServiceRef {
47
47
  * @memberof ServiceRef
48
48
  */
49
49
  'serviceDescriptor'?: ServiceDescriptor;
50
+ /**
51
+ * extra fields for manual input of the serviceRef. The keys must be defined in the engineoption modeServiceRef.extraForManualInput. They are mapped to helm values via the corresponding helmValuePath.extraForManualInput.
52
+ * @type {{ [key: string]: string; }}
53
+ * @memberof ServiceRef
54
+ */
55
+ 'extraForManualInput'?: { [key: string]: string; };
50
56
  }
51
57
 
package/src/adminapi.yaml CHANGED
@@ -16082,7 +16082,7 @@ paths:
16082
16082
  content:
16083
16083
  application/json:
16084
16084
  schema:
16085
- $ref: '#/components/schemas/RbmqUser'
16085
+ $ref: '#/components/schemas/RbmqPasswordUpdateRequest'
16086
16086
  responses:
16087
16087
  '204':
16088
16088
  description: A successful response.
@@ -20712,6 +20712,14 @@ components:
20712
20712
  description: the cluster definition of the referenced cluster.
20713
20713
  serviceDescriptor:
20714
20714
  $ref: '#/components/schemas/serviceDescriptor'
20715
+ extraForManualInput:
20716
+ type: object
20717
+ additionalProperties:
20718
+ type: string
20719
+ description: |
20720
+ extra fields for manual input of the serviceRef. The keys must be defined in the
20721
+ engineoption modeServiceRef.extraForManualInput. They are mapped to helm values
20722
+ via the corresponding helmValuePath.extraForManualInput.
20715
20723
  clusterObjectStorageConfig:
20716
20724
  type: object
20717
20725
  description: Specify the object storage config for cluster like starrocks
@@ -27234,6 +27242,11 @@ components:
27234
27242
  description: |
27235
27243
  The name will be referenced in clusterCreate request. The name should also be defined in `.components`
27236
27244
  so that frontend can use it to get proper localized title.
27245
+ title:
27246
+ type: object
27247
+ additionalProperties:
27248
+ type: string
27249
+ description: The localized title of the serviceRef.
27237
27250
  engineName:
27238
27251
  type: string
27239
27252
  description: The engine to be used in serviceRef. This field is used to filter clusters.
@@ -27247,6 +27260,28 @@ components:
27247
27260
  disableManualInput:
27248
27261
  type: boolean
27249
27262
  description: whether to disable manual input of the service reference. If set to true, users can only select from the serviceRefs provided by list clusters api.
27263
+ disableAutoCreateServiceDescriptor:
27264
+ type: boolean
27265
+ x-nullable: true
27266
+ description: |
27267
+ whether to disable auto creating the ServiceDescriptor object for this serviceRef.
27268
+ If set to false, the serviceDescriptor content (host/port/username/password) will be
27269
+ set directly into the helm values under the helmValuePath.serviceDescriptor path.
27270
+ If omitted, the generated ServiceDescriptor name will be set instead.
27271
+ disableRelatedCluster:
27272
+ type: boolean
27273
+ description: |
27274
+ whether to disable selecting a related cluster created in the platform for this
27275
+ serviceRef. If set to true, the frontend should only allow manual input instead
27276
+ of selecting from the clusters provided by the list clusters api.
27277
+ extraForManualInput:
27278
+ type: object
27279
+ description: |
27280
+ Extra form field definitions for manual input of the serviceRef. The keys are the
27281
+ field names and the frontend renders them as input items. The user-entered values
27282
+ are passed in ClusterCreate serviceRefs[].extraForManualInput and mapped to helm
27283
+ values via helmValuePath.extraForManualInput.
27284
+ additionalProperties: true
27250
27285
  helmValuePath:
27251
27286
  type: object
27252
27287
  description: The path to be used in values. Separated with commas. ClusterCreate API will use these path to override values in the cluster chart.
@@ -27284,6 +27319,12 @@ components:
27284
27319
  description: |
27285
27320
  hints for addon to determine if we are using an integrated component or a serviceRef. Will be set to `serviceRef` or `component`.
27286
27321
  This field is required when a serviceRef can be replaced by a component.
27322
+ extraForManualInput:
27323
+ type: string
27324
+ description: |
27325
+ the helm value path prefix for the extraForManualInput fields of this serviceRef.
27326
+ ClusterCreate API will map each key of serviceRefs[].extraForManualInput to
27327
+ `<extraForManualInput>.<key>` in the cluster chart values.
27287
27328
  serviceSelectors:
27288
27329
  type: array
27289
27330
  description: |
@@ -32980,6 +33021,15 @@ components:
32980
33021
  userPermission:
32981
33022
  $ref: '#/components/schemas/RbmqPermission'
32982
33023
  description: RabbitMQ user permissions
33024
+ RbmqPasswordUpdateRequest:
33025
+ type: object
33026
+ description: RabbitMQ account password update request.
33027
+ required:
33028
+ - password
33029
+ properties:
33030
+ password:
33031
+ type: string
33032
+ description: New RabbitMQ account password.
32983
33033
  RbmqVHost:
32984
33034
  type: object
32985
33035
  properties:
@@ -47,5 +47,11 @@ export interface ServiceRef {
47
47
  * @memberof ServiceRef
48
48
  */
49
49
  'serviceDescriptor'?: ServiceDescriptor;
50
+ /**
51
+ * extra fields for manual input of the serviceRef. The keys must be defined in the engineoption modeServiceRef.extraForManualInput. They are mapped to helm values via the corresponding helmValuePath.extraForManualInput.
52
+ * @type {{ [key: string]: string; }}
53
+ * @memberof ServiceRef
54
+ */
55
+ 'extraForManualInput'?: { [key: string]: string; };
50
56
  }
51
57
 
@@ -1473,6 +1473,14 @@ components:
1473
1473
  description: the cluster definition of the referenced cluster.
1474
1474
  serviceDescriptor:
1475
1475
  $ref: '#/components/schemas/serviceDescriptor'
1476
+ extraForManualInput:
1477
+ type: object
1478
+ additionalProperties:
1479
+ type: string
1480
+ description: |
1481
+ extra fields for manual input of the serviceRef. The keys must be defined in the
1482
+ engineoption modeServiceRef.extraForManualInput. They are mapped to helm values
1483
+ via the corresponding helmValuePath.extraForManualInput.
1476
1484
  clusterObjectStorageConfig:
1477
1485
  type: object
1478
1486
  description: Specify the object storage config for cluster like starrocks
@@ -629,6 +629,7 @@ models/rbmq-accounts-list-items-inner.ts
629
629
  models/rbmq-accounts-list.ts
630
630
  models/rbmq-exchange.ts
631
631
  models/rbmq-message-stats.ts
632
+ models/rbmq-password-update-request.ts
632
633
  models/rbmq-permission.ts
633
634
  models/rbmq-topic-permission.ts
634
635
  models/rbmq-user.ts
@@ -50,9 +50,9 @@ import type { RbmqAccountRequest } from '../models';
50
50
  // @ts-ignore
51
51
  import type { RbmqAccountsList } from '../models';
52
52
  // @ts-ignore
53
- import type { RbmqPermission } from '../models';
53
+ import type { RbmqPasswordUpdateRequest } from '../models';
54
54
  // @ts-ignore
55
- import type { RbmqUser } from '../models';
55
+ import type { RbmqPermission } from '../models';
56
56
  /**
57
57
  * AccountApi - axios parameter creator
58
58
  * @export
@@ -1715,19 +1715,19 @@ export const AccountApiAxiosParamCreator = function (configuration?: Configurati
1715
1715
  * @param {string} orgName name of the Org
1716
1716
  * @param {string} clusterName name of the Cluster
1717
1717
  * @param {string} accountName name of the Account
1718
- * @param {RbmqUser} rbmqUser
1718
+ * @param {RbmqPasswordUpdateRequest} rbmqPasswordUpdateRequest
1719
1719
  * @param {*} [options] Override http request option.
1720
1720
  * @throws {RequiredError}
1721
1721
  */
1722
- updateRabbitAccountPassword: async (orgName: string, clusterName: string, accountName: string, rbmqUser: RbmqUser, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1722
+ updateRabbitAccountPassword: async (orgName: string, clusterName: string, accountName: string, rbmqPasswordUpdateRequest: RbmqPasswordUpdateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1723
1723
  // verify required parameter 'orgName' is not null or undefined
1724
1724
  assertParamExists('updateRabbitAccountPassword', 'orgName', orgName)
1725
1725
  // verify required parameter 'clusterName' is not null or undefined
1726
1726
  assertParamExists('updateRabbitAccountPassword', 'clusterName', clusterName)
1727
1727
  // verify required parameter 'accountName' is not null or undefined
1728
1728
  assertParamExists('updateRabbitAccountPassword', 'accountName', accountName)
1729
- // verify required parameter 'rbmqUser' is not null or undefined
1730
- assertParamExists('updateRabbitAccountPassword', 'rbmqUser', rbmqUser)
1729
+ // verify required parameter 'rbmqPasswordUpdateRequest' is not null or undefined
1730
+ assertParamExists('updateRabbitAccountPassword', 'rbmqPasswordUpdateRequest', rbmqPasswordUpdateRequest)
1731
1731
  const localVarPath = `/api/v1/data/rabbitmq/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
1732
1732
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1733
1733
  .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
@@ -1757,7 +1757,7 @@ export const AccountApiAxiosParamCreator = function (configuration?: Configurati
1757
1757
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1758
1758
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1759
1759
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1760
- localVarRequestOptions.data = serializeDataIfNeeded(rbmqUser, localVarRequestOptions, configuration)
1760
+ localVarRequestOptions.data = serializeDataIfNeeded(rbmqPasswordUpdateRequest, localVarRequestOptions, configuration)
1761
1761
 
1762
1762
  return {
1763
1763
  url: toPathString(localVarUrlObj),
@@ -2386,12 +2386,12 @@ export const AccountApiFp = function(configuration?: Configuration) {
2386
2386
  * @param {string} orgName name of the Org
2387
2387
  * @param {string} clusterName name of the Cluster
2388
2388
  * @param {string} accountName name of the Account
2389
- * @param {RbmqUser} rbmqUser
2389
+ * @param {RbmqPasswordUpdateRequest} rbmqPasswordUpdateRequest
2390
2390
  * @param {*} [options] Override http request option.
2391
2391
  * @throws {RequiredError}
2392
2392
  */
2393
- async updateRabbitAccountPassword(orgName: string, clusterName: string, accountName: string, rbmqUser: RbmqUser, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2394
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateRabbitAccountPassword(orgName, clusterName, accountName, rbmqUser, options);
2393
+ async updateRabbitAccountPassword(orgName: string, clusterName: string, accountName: string, rbmqPasswordUpdateRequest: RbmqPasswordUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2394
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateRabbitAccountPassword(orgName, clusterName, accountName, rbmqPasswordUpdateRequest, options);
2395
2395
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2396
2396
  const localVarOperationServerBasePath = operationServerMap['AccountApi.updateRabbitAccountPassword']?.[localVarOperationServerIndex]?.url;
2397
2397
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2767,7 +2767,7 @@ export const AccountApiFactory = function (configuration?: Configuration, basePa
2767
2767
  * @throws {RequiredError}
2768
2768
  */
2769
2769
  updateRabbitAccountPassword(requestParameters: AccountApiUpdateRabbitAccountPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
2770
- return localVarFp.updateRabbitAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.rbmqUser, options).then((request) => request(axios, basePath));
2770
+ return localVarFp.updateRabbitAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.rbmqPasswordUpdateRequest, options).then((request) => request(axios, basePath));
2771
2771
  },
2772
2772
  /**
2773
2773
  * Update a RabbitMQ account privileges
@@ -4159,10 +4159,10 @@ export interface AccountApiUpdateRabbitAccountPasswordRequest {
4159
4159
 
4160
4160
  /**
4161
4161
  *
4162
- * @type {RbmqUser}
4162
+ * @type {RbmqPasswordUpdateRequest}
4163
4163
  * @memberof AccountApiUpdateRabbitAccountPassword
4164
4164
  */
4165
- readonly rbmqUser: RbmqUser
4165
+ readonly rbmqPasswordUpdateRequest: RbmqPasswordUpdateRequest
4166
4166
  }
4167
4167
 
4168
4168
  /**
@@ -4642,7 +4642,7 @@ export class AccountApi extends BaseAPI implements AccountApiInterface {
4642
4642
  * @memberof AccountApi
4643
4643
  */
4644
4644
  public updateRabbitAccountPassword(requestParameters: AccountApiUpdateRabbitAccountPasswordRequest, options?: RawAxiosRequestConfig) {
4645
- return AccountApiFp(this.configuration).updateRabbitAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.rbmqUser, options).then((request) => request(this.axios, this.basePath));
4645
+ return AccountApiFp(this.configuration).updateRabbitAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.rbmqPasswordUpdateRequest, options).then((request) => request(this.axios, this.basePath));
4646
4646
  }
4647
4647
 
4648
4648
  /**
@@ -30,9 +30,9 @@ import type { RbmqAccountsList } from '../models';
30
30
  // @ts-ignore
31
31
  import type { RbmqExchange } from '../models';
32
32
  // @ts-ignore
33
- import type { RbmqPermission } from '../models';
33
+ import type { RbmqPasswordUpdateRequest } from '../models';
34
34
  // @ts-ignore
35
- import type { RbmqUser } from '../models';
35
+ import type { RbmqPermission } from '../models';
36
36
  // @ts-ignore
37
37
  import type { RbmqVHost } from '../models';
38
38
  /**
@@ -282,19 +282,19 @@ export const RabbitMQApiAxiosParamCreator = function (configuration?: Configurat
282
282
  * @param {string} orgName name of the Org
283
283
  * @param {string} clusterName name of the Cluster
284
284
  * @param {string} accountName name of the Account
285
- * @param {RbmqUser} rbmqUser
285
+ * @param {RbmqPasswordUpdateRequest} rbmqPasswordUpdateRequest
286
286
  * @param {*} [options] Override http request option.
287
287
  * @throws {RequiredError}
288
288
  */
289
- updateRabbitAccountPassword: async (orgName: string, clusterName: string, accountName: string, rbmqUser: RbmqUser, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
289
+ updateRabbitAccountPassword: async (orgName: string, clusterName: string, accountName: string, rbmqPasswordUpdateRequest: RbmqPasswordUpdateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
290
290
  // verify required parameter 'orgName' is not null or undefined
291
291
  assertParamExists('updateRabbitAccountPassword', 'orgName', orgName)
292
292
  // verify required parameter 'clusterName' is not null or undefined
293
293
  assertParamExists('updateRabbitAccountPassword', 'clusterName', clusterName)
294
294
  // verify required parameter 'accountName' is not null or undefined
295
295
  assertParamExists('updateRabbitAccountPassword', 'accountName', accountName)
296
- // verify required parameter 'rbmqUser' is not null or undefined
297
- assertParamExists('updateRabbitAccountPassword', 'rbmqUser', rbmqUser)
296
+ // verify required parameter 'rbmqPasswordUpdateRequest' is not null or undefined
297
+ assertParamExists('updateRabbitAccountPassword', 'rbmqPasswordUpdateRequest', rbmqPasswordUpdateRequest)
298
298
  const localVarPath = `/api/v1/data/rabbitmq/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
299
299
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
300
300
  .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
@@ -324,7 +324,7 @@ export const RabbitMQApiAxiosParamCreator = function (configuration?: Configurat
324
324
  setSearchParams(localVarUrlObj, localVarQueryParameter);
325
325
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
326
326
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
327
- localVarRequestOptions.data = serializeDataIfNeeded(rbmqUser, localVarRequestOptions, configuration)
327
+ localVarRequestOptions.data = serializeDataIfNeeded(rbmqPasswordUpdateRequest, localVarRequestOptions, configuration)
328
328
 
329
329
  return {
330
330
  url: toPathString(localVarUrlObj),
@@ -474,12 +474,12 @@ export const RabbitMQApiFp = function(configuration?: Configuration) {
474
474
  * @param {string} orgName name of the Org
475
475
  * @param {string} clusterName name of the Cluster
476
476
  * @param {string} accountName name of the Account
477
- * @param {RbmqUser} rbmqUser
477
+ * @param {RbmqPasswordUpdateRequest} rbmqPasswordUpdateRequest
478
478
  * @param {*} [options] Override http request option.
479
479
  * @throws {RequiredError}
480
480
  */
481
- async updateRabbitAccountPassword(orgName: string, clusterName: string, accountName: string, rbmqUser: RbmqUser, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
482
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateRabbitAccountPassword(orgName, clusterName, accountName, rbmqUser, options);
481
+ async updateRabbitAccountPassword(orgName: string, clusterName: string, accountName: string, rbmqPasswordUpdateRequest: RbmqPasswordUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
482
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateRabbitAccountPassword(orgName, clusterName, accountName, rbmqPasswordUpdateRequest, options);
483
483
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
484
484
  const localVarOperationServerBasePath = operationServerMap['RabbitMQApi.updateRabbitAccountPassword']?.[localVarOperationServerIndex]?.url;
485
485
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -568,7 +568,7 @@ export const RabbitMQApiFactory = function (configuration?: Configuration, baseP
568
568
  * @throws {RequiredError}
569
569
  */
570
570
  updateRabbitAccountPassword(requestParameters: RabbitMQApiUpdateRabbitAccountPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
571
- return localVarFp.updateRabbitAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.rbmqUser, options).then((request) => request(axios, basePath));
571
+ return localVarFp.updateRabbitAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.rbmqPasswordUpdateRequest, options).then((request) => request(axios, basePath));
572
572
  },
573
573
  /**
574
574
  * Update a RabbitMQ account privileges
@@ -809,10 +809,10 @@ export interface RabbitMQApiUpdateRabbitAccountPasswordRequest {
809
809
 
810
810
  /**
811
811
  *
812
- * @type {RbmqUser}
812
+ * @type {RbmqPasswordUpdateRequest}
813
813
  * @memberof RabbitMQApiUpdateRabbitAccountPassword
814
814
  */
815
- readonly rbmqUser: RbmqUser
815
+ readonly rbmqPasswordUpdateRequest: RbmqPasswordUpdateRequest
816
816
  }
817
817
 
818
818
  /**
@@ -926,7 +926,7 @@ export class RabbitMQApi extends BaseAPI implements RabbitMQApiInterface {
926
926
  * @memberof RabbitMQApi
927
927
  */
928
928
  public updateRabbitAccountPassword(requestParameters: RabbitMQApiUpdateRabbitAccountPasswordRequest, options?: RawAxiosRequestConfig) {
929
- return RabbitMQApiFp(this.configuration).updateRabbitAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.rbmqUser, options).then((request) => request(this.axios, this.basePath));
929
+ return RabbitMQApiFp(this.configuration).updateRabbitAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.rbmqPasswordUpdateRequest, options).then((request) => request(this.axios, this.basePath));
930
930
  }
931
931
 
932
932
  /**
@@ -314,9 +314,9 @@ import type { RbmqAccountsList } from '../models';
314
314
  // @ts-ignore
315
315
  import type { RbmqExchange } from '../models';
316
316
  // @ts-ignore
317
- import type { RbmqPermission } from '../models';
317
+ import type { RbmqPasswordUpdateRequest } from '../models';
318
318
  // @ts-ignore
319
- import type { RbmqUser } from '../models';
319
+ import type { RbmqPermission } from '../models';
320
320
  // @ts-ignore
321
321
  import type { RbmqVHost } from '../models';
322
322
  // @ts-ignore
@@ -13538,19 +13538,19 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
13538
13538
  * @param {string} orgName name of the Org
13539
13539
  * @param {string} clusterName name of the Cluster
13540
13540
  * @param {string} accountName name of the Account
13541
- * @param {RbmqUser} rbmqUser
13541
+ * @param {RbmqPasswordUpdateRequest} rbmqPasswordUpdateRequest
13542
13542
  * @param {*} [options] Override http request option.
13543
13543
  * @throws {RequiredError}
13544
13544
  */
13545
- updateRabbitAccountPassword: async (orgName: string, clusterName: string, accountName: string, rbmqUser: RbmqUser, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13545
+ updateRabbitAccountPassword: async (orgName: string, clusterName: string, accountName: string, rbmqPasswordUpdateRequest: RbmqPasswordUpdateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13546
13546
  // verify required parameter 'orgName' is not null or undefined
13547
13547
  assertParamExists('updateRabbitAccountPassword', 'orgName', orgName)
13548
13548
  // verify required parameter 'clusterName' is not null or undefined
13549
13549
  assertParamExists('updateRabbitAccountPassword', 'clusterName', clusterName)
13550
13550
  // verify required parameter 'accountName' is not null or undefined
13551
13551
  assertParamExists('updateRabbitAccountPassword', 'accountName', accountName)
13552
- // verify required parameter 'rbmqUser' is not null or undefined
13553
- assertParamExists('updateRabbitAccountPassword', 'rbmqUser', rbmqUser)
13552
+ // verify required parameter 'rbmqPasswordUpdateRequest' is not null or undefined
13553
+ assertParamExists('updateRabbitAccountPassword', 'rbmqPasswordUpdateRequest', rbmqPasswordUpdateRequest)
13554
13554
  const localVarPath = `/api/v1/data/rabbitmq/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
13555
13555
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
13556
13556
  .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
@@ -13580,7 +13580,7 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
13580
13580
  setSearchParams(localVarUrlObj, localVarQueryParameter);
13581
13581
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13582
13582
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13583
- localVarRequestOptions.data = serializeDataIfNeeded(rbmqUser, localVarRequestOptions, configuration)
13583
+ localVarRequestOptions.data = serializeDataIfNeeded(rbmqPasswordUpdateRequest, localVarRequestOptions, configuration)
13584
13584
 
13585
13585
  return {
13586
13586
  url: toPathString(localVarUrlObj),
@@ -18004,12 +18004,12 @@ export const SharedApiFp = function(configuration?: Configuration) {
18004
18004
  * @param {string} orgName name of the Org
18005
18005
  * @param {string} clusterName name of the Cluster
18006
18006
  * @param {string} accountName name of the Account
18007
- * @param {RbmqUser} rbmqUser
18007
+ * @param {RbmqPasswordUpdateRequest} rbmqPasswordUpdateRequest
18008
18008
  * @param {*} [options] Override http request option.
18009
18009
  * @throws {RequiredError}
18010
18010
  */
18011
- async updateRabbitAccountPassword(orgName: string, clusterName: string, accountName: string, rbmqUser: RbmqUser, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
18012
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateRabbitAccountPassword(orgName, clusterName, accountName, rbmqUser, options);
18011
+ async updateRabbitAccountPassword(orgName: string, clusterName: string, accountName: string, rbmqPasswordUpdateRequest: RbmqPasswordUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
18012
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateRabbitAccountPassword(orgName, clusterName, accountName, rbmqPasswordUpdateRequest, options);
18013
18013
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18014
18014
  const localVarOperationServerBasePath = operationServerMap['SharedApi.updateRabbitAccountPassword']?.[localVarOperationServerIndex]?.url;
18015
18015
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -20712,7 +20712,7 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
20712
20712
  * @throws {RequiredError}
20713
20713
  */
20714
20714
  updateRabbitAccountPassword(requestParameters: SharedApiUpdateRabbitAccountPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
20715
- return localVarFp.updateRabbitAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.rbmqUser, options).then((request) => request(axios, basePath));
20715
+ return localVarFp.updateRabbitAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.rbmqPasswordUpdateRequest, options).then((request) => request(axios, basePath));
20716
20716
  },
20717
20717
  /**
20718
20718
  * Update a RabbitMQ account privileges
@@ -31112,10 +31112,10 @@ export interface SharedApiUpdateRabbitAccountPasswordRequest {
31112
31112
 
31113
31113
  /**
31114
31114
  *
31115
- * @type {RbmqUser}
31115
+ * @type {RbmqPasswordUpdateRequest}
31116
31116
  * @memberof SharedApiUpdateRabbitAccountPassword
31117
31117
  */
31118
- readonly rbmqUser: RbmqUser
31118
+ readonly rbmqPasswordUpdateRequest: RbmqPasswordUpdateRequest
31119
31119
  }
31120
31120
 
31121
31121
  /**
@@ -34475,7 +34475,7 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
34475
34475
  * @memberof SharedApi
34476
34476
  */
34477
34477
  public updateRabbitAccountPassword(requestParameters: SharedApiUpdateRabbitAccountPasswordRequest, options?: RawAxiosRequestConfig) {
34478
- return SharedApiFp(this.configuration).updateRabbitAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.rbmqUser, options).then((request) => request(this.axios, this.basePath));
34478
+ return SharedApiFp(this.configuration).updateRabbitAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.rbmqPasswordUpdateRequest, options).then((request) => request(this.axios, this.basePath));
34479
34479
  }
34480
34480
 
34481
34481
  /**
@@ -541,6 +541,7 @@ export * from './rbmq-accounts-list';
541
541
  export * from './rbmq-accounts-list-items-inner';
542
542
  export * from './rbmq-exchange';
543
543
  export * from './rbmq-message-stats';
544
+ export * from './rbmq-password-update-request';
544
545
  export * from './rbmq-permission';
545
546
  export * from './rbmq-topic-permission';
546
547
  export * from './rbmq-user';
@@ -74,5 +74,11 @@ export interface ModeServiceRefHelmValuePath {
74
74
  * @memberof ModeServiceRefHelmValuePath
75
75
  */
76
76
  'mode'?: string;
77
+ /**
78
+ * the helm value path prefix for the extraForManualInput fields of this serviceRef. ClusterCreate API will map each key of serviceRefs[].extraForManualInput to `<extraForManualInput>.<key>` in the cluster chart values.
79
+ * @type {string}
80
+ * @memberof ModeServiceRefHelmValuePath
81
+ */
82
+ 'extraForManualInput'?: string;
77
83
  }
78
84
 
@@ -38,6 +38,12 @@ export interface ModeServiceRef {
38
38
  * @memberof ModeServiceRef
39
39
  */
40
40
  'name': string;
41
+ /**
42
+ * The localized title of the serviceRef.
43
+ * @type {{ [key: string]: string; }}
44
+ * @memberof ModeServiceRef
45
+ */
46
+ 'title'?: { [key: string]: string; };
41
47
  /**
42
48
  * The engine to be used in serviceRef. This field is used to filter clusters.
43
49
  * @type {string}
@@ -62,6 +68,24 @@ export interface ModeServiceRef {
62
68
  * @memberof ModeServiceRef
63
69
  */
64
70
  'disableManualInput'?: boolean;
71
+ /**
72
+ * whether to disable auto creating the ServiceDescriptor object for this serviceRef. If set to false, the serviceDescriptor content (host/port/username/password) will be set directly into the helm values under the helmValuePath.serviceDescriptor path. If omitted, the generated ServiceDescriptor name will be set instead.
73
+ * @type {boolean}
74
+ * @memberof ModeServiceRef
75
+ */
76
+ 'disableAutoCreateServiceDescriptor'?: boolean | null;
77
+ /**
78
+ * whether to disable selecting a related cluster created in the platform for this serviceRef. If set to true, the frontend should only allow manual input instead of selecting from the clusters provided by the list clusters api.
79
+ * @type {boolean}
80
+ * @memberof ModeServiceRef
81
+ */
82
+ 'disableRelatedCluster'?: boolean;
83
+ /**
84
+ * Extra form field definitions for manual input of the serviceRef. The keys are the field names and the frontend renders them as input items. The user-entered values are passed in ClusterCreate serviceRefs[].extraForManualInput and mapped to helm values via helmValuePath.extraForManualInput.
85
+ * @type {{ [key: string]: any; }}
86
+ * @memberof ModeServiceRef
87
+ */
88
+ 'extraForManualInput'?: { [key: string]: any; };
65
89
  /**
66
90
  *
67
91
  * @type {ModeServiceRefHelmValuePath}
@@ -0,0 +1,30 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * KubeBlocks Cloud API
5
+ * KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@apecloud.com
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
+ * RabbitMQ account password update request.
19
+ * @export
20
+ * @interface RbmqPasswordUpdateRequest
21
+ */
22
+ export interface RbmqPasswordUpdateRequest {
23
+ /**
24
+ * New RabbitMQ account password.
25
+ * @type {string}
26
+ * @memberof RbmqPasswordUpdateRequest
27
+ */
28
+ 'password': string;
29
+ }
30
+
@@ -47,5 +47,11 @@ export interface ServiceRef {
47
47
  * @memberof ServiceRef
48
48
  */
49
49
  'serviceDescriptor'?: ServiceDescriptor;
50
+ /**
51
+ * extra fields for manual input of the serviceRef. The keys must be defined in the engineoption modeServiceRef.extraForManualInput. They are mapped to helm values via the corresponding helmValuePath.extraForManualInput.
52
+ * @type {{ [key: string]: string; }}
53
+ * @memberof ServiceRef
54
+ */
55
+ 'extraForManualInput'?: { [key: string]: string; };
50
56
  }
51
57