kb-cloud-client-typescript 2.4.0-alpha.92 → 2.4.0-alpha.94

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 (125) hide show
  1. package/dist/adminapi/apis/account-api.d.ts +207 -0
  2. package/dist/adminapi/apis/account-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/account-api.js +198 -0
  4. package/dist/adminapi/apis/account-api.js.map +1 -1
  5. package/dist/adminapi/apis/rdbms-api.d.ts +207 -0
  6. package/dist/adminapi/apis/rdbms-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/rdbms-api.js +198 -0
  8. package/dist/adminapi/apis/rdbms-api.js.map +1 -1
  9. package/dist/adminapi/apis/shared-api.d.ts +207 -0
  10. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  11. package/dist/adminapi/apis/shared-api.js +198 -0
  12. package/dist/adminapi/apis/shared-api.js.map +1 -1
  13. package/dist/adminapi/models/component-item-create.d.ts +12 -0
  14. package/dist/adminapi/models/component-item-create.d.ts.map +1 -1
  15. package/dist/adminapi/models/component-item.d.ts +19 -0
  16. package/dist/adminapi/models/component-item.d.ts.map +1 -1
  17. package/dist/adminapi/models/index.d.ts +2 -0
  18. package/dist/adminapi/models/index.d.ts.map +1 -1
  19. package/dist/adminapi/models/index.js +2 -0
  20. package/dist/adminapi/models/index.js.map +1 -1
  21. package/dist/adminapi/models/instance-template-attribute.d.ts +0 -1
  22. package/dist/adminapi/models/instance-template-attribute.d.ts.map +1 -1
  23. package/dist/adminapi/models/instance-template-attribute.js +0 -1
  24. package/dist/adminapi/models/instance-template-attribute.js.map +1 -1
  25. package/dist/adminapi/models/instance-template-create.d.ts +9 -3
  26. package/dist/adminapi/models/instance-template-create.d.ts.map +1 -1
  27. package/dist/adminapi/models/instance.d.ts +6 -0
  28. package/dist/adminapi/models/instance.d.ts.map +1 -1
  29. package/dist/adminapi/models/mode-option.d.ts +7 -0
  30. package/dist/adminapi/models/mode-option.d.ts.map +1 -1
  31. package/dist/adminapi/models/object-privilege-reset-step.d.ts +31 -0
  32. package/dist/adminapi/models/object-privilege-reset-step.d.ts.map +1 -0
  33. package/dist/adminapi/models/object-privilege-reset-step.js +16 -0
  34. package/dist/adminapi/models/object-privilege-reset-step.js.map +1 -0
  35. package/dist/adminapi/models/placement-scope.d.ts +22 -0
  36. package/dist/adminapi/models/placement-scope.d.ts.map +1 -0
  37. package/dist/adminapi/models/placement-scope.js +26 -0
  38. package/dist/adminapi/models/placement-scope.js.map +1 -0
  39. package/dist/internalapi/models/component-item.d.ts +19 -0
  40. package/dist/internalapi/models/component-item.d.ts.map +1 -1
  41. package/dist/internalapi/models/index.d.ts +2 -0
  42. package/dist/internalapi/models/index.d.ts.map +1 -1
  43. package/dist/internalapi/models/index.js +2 -0
  44. package/dist/internalapi/models/index.js.map +1 -1
  45. package/dist/internalapi/models/instance-template-create-env-inner.d.ts +31 -0
  46. package/dist/internalapi/models/instance-template-create-env-inner.d.ts.map +1 -0
  47. package/dist/internalapi/models/instance-template-create-env-inner.js +16 -0
  48. package/dist/internalapi/models/instance-template-create-env-inner.js.map +1 -0
  49. package/dist/internalapi/models/instance-template-create.d.ts +72 -0
  50. package/dist/internalapi/models/instance-template-create.d.ts.map +1 -0
  51. package/dist/internalapi/models/instance-template-create.js +16 -0
  52. package/dist/internalapi/models/instance-template-create.js.map +1 -0
  53. package/dist/openapi/apis/account-api.d.ts +207 -0
  54. package/dist/openapi/apis/account-api.d.ts.map +1 -1
  55. package/dist/openapi/apis/account-api.js +198 -0
  56. package/dist/openapi/apis/account-api.js.map +1 -1
  57. package/dist/openapi/apis/rdbms-api.d.ts +207 -0
  58. package/dist/openapi/apis/rdbms-api.d.ts.map +1 -1
  59. package/dist/openapi/apis/rdbms-api.js +198 -0
  60. package/dist/openapi/apis/rdbms-api.js.map +1 -1
  61. package/dist/openapi/apis/shared-api.d.ts +207 -0
  62. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  63. package/dist/openapi/apis/shared-api.js +198 -0
  64. package/dist/openapi/apis/shared-api.js.map +1 -1
  65. package/dist/openapi/models/component-item-create.d.ts +12 -0
  66. package/dist/openapi/models/component-item-create.d.ts.map +1 -1
  67. package/dist/openapi/models/component-item.d.ts +19 -0
  68. package/dist/openapi/models/component-item.d.ts.map +1 -1
  69. package/dist/openapi/models/index.d.ts +2 -0
  70. package/dist/openapi/models/index.d.ts.map +1 -1
  71. package/dist/openapi/models/index.js +2 -0
  72. package/dist/openapi/models/index.js.map +1 -1
  73. package/dist/openapi/models/instance-template-attribute.d.ts +0 -1
  74. package/dist/openapi/models/instance-template-attribute.d.ts.map +1 -1
  75. package/dist/openapi/models/instance-template-attribute.js +0 -1
  76. package/dist/openapi/models/instance-template-attribute.js.map +1 -1
  77. package/dist/openapi/models/instance-template-create.d.ts +9 -3
  78. package/dist/openapi/models/instance-template-create.d.ts.map +1 -1
  79. package/dist/openapi/models/instance.d.ts +6 -0
  80. package/dist/openapi/models/instance.d.ts.map +1 -1
  81. package/dist/openapi/models/mode-option.d.ts +7 -0
  82. package/dist/openapi/models/mode-option.d.ts.map +1 -1
  83. package/dist/openapi/models/object-privilege-reset-step.d.ts +31 -0
  84. package/dist/openapi/models/object-privilege-reset-step.d.ts.map +1 -0
  85. package/dist/openapi/models/object-privilege-reset-step.js +16 -0
  86. package/dist/openapi/models/object-privilege-reset-step.js.map +1 -0
  87. package/dist/openapi/models/placement-scope.d.ts +22 -0
  88. package/dist/openapi/models/placement-scope.d.ts.map +1 -0
  89. package/dist/openapi/models/placement-scope.js +26 -0
  90. package/dist/openapi/models/placement-scope.js.map +1 -0
  91. package/package.json +1 -1
  92. package/src/adminapi/.openapi-generator/FILES +2 -0
  93. package/src/adminapi/apis/account-api.ts +352 -0
  94. package/src/adminapi/apis/rdbms-api.ts +352 -0
  95. package/src/adminapi/apis/shared-api.ts +352 -0
  96. package/src/adminapi/models/component-item-create.ts +12 -0
  97. package/src/adminapi/models/component-item.ts +21 -0
  98. package/src/adminapi/models/index.ts +2 -0
  99. package/src/adminapi/models/instance-template-attribute.ts +0 -1
  100. package/src/adminapi/models/instance-template-create.ts +9 -3
  101. package/src/adminapi/models/instance.ts +6 -0
  102. package/src/adminapi/models/mode-option.ts +9 -0
  103. package/src/adminapi/models/object-privilege-reset-step.ts +36 -0
  104. package/src/adminapi/models/placement-scope.ts +31 -0
  105. package/src/adminapi.yaml +174 -5
  106. package/src/internalapi/.openapi-generator/FILES +2 -0
  107. package/src/internalapi/models/component-item.ts +21 -0
  108. package/src/internalapi/models/index.ts +2 -0
  109. package/src/internalapi/models/instance-template-create-env-inner.ts +36 -0
  110. package/src/internalapi/models/instance-template-create.ts +75 -0
  111. package/src/internalapi.yaml +62 -0
  112. package/src/openapi/.openapi-generator/FILES +2 -0
  113. package/src/openapi/apis/account-api.ts +352 -0
  114. package/src/openapi/apis/rdbms-api.ts +352 -0
  115. package/src/openapi/apis/shared-api.ts +352 -0
  116. package/src/openapi/models/component-item-create.ts +12 -0
  117. package/src/openapi/models/component-item.ts +21 -0
  118. package/src/openapi/models/index.ts +2 -0
  119. package/src/openapi/models/instance-template-attribute.ts +0 -1
  120. package/src/openapi/models/instance-template-create.ts +9 -3
  121. package/src/openapi/models/instance.ts +6 -0
  122. package/src/openapi/models/mode-option.ts +9 -0
  123. package/src/openapi/models/object-privilege-reset-step.ts +36 -0
  124. package/src/openapi/models/placement-scope.ts +31 -0
  125. package/src/openapi.yaml +174 -5
@@ -282,6 +282,8 @@ import type { ObjectPrivilegeChange } from '../models';
282
282
  // @ts-ignore
283
283
  import type { ObjectPrivilegeObjectList } from '../models';
284
284
  // @ts-ignore
285
+ import type { ObjectPrivilegeResetStep } from '../models';
286
+ // @ts-ignore
285
287
  import type { ObjectPrivilegeSnapshot } from '../models';
286
288
  // @ts-ignore
287
289
  import type { ObjectPrivilegeSubjectType } from '../models';
@@ -12919,6 +12921,74 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
12919
12921
  options: localVarRequestOptions,
12920
12922
  };
12921
12923
  },
12924
+ /**
12925
+ * MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
12926
+ * @summary Preview clearing all MySQL account privileges
12927
+ * @param {string} engineName
12928
+ * @param {string} orgName
12929
+ * @param {string} clusterName
12930
+ * @param {string} accountName
12931
+ * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
12932
+ * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
12933
+ * @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
12934
+ * @param {*} [options] Override http request option.
12935
+ * @throws {RequiredError}
12936
+ */
12937
+ previewAccountPrivilegeReset: async (engineName: string, orgName: string, clusterName: string, accountName: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12938
+ // verify required parameter 'engineName' is not null or undefined
12939
+ assertParamExists('previewAccountPrivilegeReset', 'engineName', engineName)
12940
+ // verify required parameter 'orgName' is not null or undefined
12941
+ assertParamExists('previewAccountPrivilegeReset', 'orgName', orgName)
12942
+ // verify required parameter 'clusterName' is not null or undefined
12943
+ assertParamExists('previewAccountPrivilegeReset', 'clusterName', clusterName)
12944
+ // verify required parameter 'accountName' is not null or undefined
12945
+ assertParamExists('previewAccountPrivilegeReset', 'accountName', accountName)
12946
+ const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/reset`
12947
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
12948
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
12949
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
12950
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
12951
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12952
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12953
+ let baseOptions;
12954
+ if (configuration) {
12955
+ baseOptions = configuration.baseOptions;
12956
+ }
12957
+
12958
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12959
+ const localVarHeaderParameter = {} as any;
12960
+ const localVarQueryParameter = {} as any;
12961
+
12962
+ // authentication BearerToken required
12963
+ // http bearer authentication required
12964
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12965
+
12966
+ // authentication DigestAuth required
12967
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
12968
+
12969
+ if (subjectType !== undefined) {
12970
+ localVarQueryParameter['subjectType'] = subjectType;
12971
+ }
12972
+
12973
+ if (host !== undefined) {
12974
+ localVarQueryParameter['host'] = host;
12975
+ }
12976
+
12977
+ if (subjectQualifiers !== undefined) {
12978
+ localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
12979
+ }
12980
+
12981
+
12982
+
12983
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12984
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12985
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12986
+
12987
+ return {
12988
+ url: toPathString(localVarUrlObj),
12989
+ options: localVarRequestOptions,
12990
+ };
12991
+ },
12922
12992
  /**
12923
12993
  *
12924
12994
  * @summary Produce message to topic
@@ -15090,6 +15160,74 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
15090
15160
  options: localVarRequestOptions,
15091
15161
  };
15092
15162
  },
15163
+ /**
15164
+ * MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
15165
+ * @summary Clear all MySQL account privileges
15166
+ * @param {string} engineName
15167
+ * @param {string} orgName
15168
+ * @param {string} clusterName
15169
+ * @param {string} accountName
15170
+ * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
15171
+ * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
15172
+ * @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
15173
+ * @param {*} [options] Override http request option.
15174
+ * @throws {RequiredError}
15175
+ */
15176
+ resetAccountPrivileges: async (engineName: string, orgName: string, clusterName: string, accountName: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15177
+ // verify required parameter 'engineName' is not null or undefined
15178
+ assertParamExists('resetAccountPrivileges', 'engineName', engineName)
15179
+ // verify required parameter 'orgName' is not null or undefined
15180
+ assertParamExists('resetAccountPrivileges', 'orgName', orgName)
15181
+ // verify required parameter 'clusterName' is not null or undefined
15182
+ assertParamExists('resetAccountPrivileges', 'clusterName', clusterName)
15183
+ // verify required parameter 'accountName' is not null or undefined
15184
+ assertParamExists('resetAccountPrivileges', 'accountName', accountName)
15185
+ const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/reset`
15186
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
15187
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
15188
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
15189
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
15190
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15191
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15192
+ let baseOptions;
15193
+ if (configuration) {
15194
+ baseOptions = configuration.baseOptions;
15195
+ }
15196
+
15197
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
15198
+ const localVarHeaderParameter = {} as any;
15199
+ const localVarQueryParameter = {} as any;
15200
+
15201
+ // authentication BearerToken required
15202
+ // http bearer authentication required
15203
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
15204
+
15205
+ // authentication DigestAuth required
15206
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
15207
+
15208
+ if (subjectType !== undefined) {
15209
+ localVarQueryParameter['subjectType'] = subjectType;
15210
+ }
15211
+
15212
+ if (host !== undefined) {
15213
+ localVarQueryParameter['host'] = host;
15214
+ }
15215
+
15216
+ if (subjectQualifiers !== undefined) {
15217
+ localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
15218
+ }
15219
+
15220
+
15221
+
15222
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15223
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15224
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15225
+
15226
+ return {
15227
+ url: toPathString(localVarUrlObj),
15228
+ options: localVarRequestOptions,
15229
+ };
15230
+ },
15093
15231
  /**
15094
15232
  *
15095
15233
  * @summary Reset consumer offset of topic
@@ -21837,6 +21975,25 @@ export const SharedApiFp = function(configuration?: Configuration) {
21837
21975
  const localVarOperationServerBasePath = operationServerMap['SharedApi.patchOrgParameter']?.[localVarOperationServerIndex]?.url;
21838
21976
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21839
21977
  },
21978
+ /**
21979
+ * MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
21980
+ * @summary Preview clearing all MySQL account privileges
21981
+ * @param {string} engineName
21982
+ * @param {string} orgName
21983
+ * @param {string} clusterName
21984
+ * @param {string} accountName
21985
+ * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
21986
+ * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
21987
+ * @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
21988
+ * @param {*} [options] Override http request option.
21989
+ * @throws {RequiredError}
21990
+ */
21991
+ async previewAccountPrivilegeReset(engineName: string, orgName: string, clusterName: string, accountName: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ObjectPrivilegeResetStep>>> {
21992
+ const localVarAxiosArgs = await localVarAxiosParamCreator.previewAccountPrivilegeReset(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options);
21993
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21994
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.previewAccountPrivilegeReset']?.[localVarOperationServerIndex]?.url;
21995
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21996
+ },
21840
21997
  /**
21841
21998
  *
21842
21999
  * @summary Produce message to topic
@@ -22397,6 +22554,25 @@ export const SharedApiFp = function(configuration?: Configuration) {
22397
22554
  const localVarOperationServerBasePath = operationServerMap['SharedApi.reconfigureCluster']?.[localVarOperationServerIndex]?.url;
22398
22555
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22399
22556
  },
22557
+ /**
22558
+ * MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
22559
+ * @summary Clear all MySQL account privileges
22560
+ * @param {string} engineName
22561
+ * @param {string} orgName
22562
+ * @param {string} clusterName
22563
+ * @param {string} accountName
22564
+ * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
22565
+ * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
22566
+ * @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
22567
+ * @param {*} [options] Override http request option.
22568
+ * @throws {RequiredError}
22569
+ */
22570
+ async resetAccountPrivileges(engineName: string, orgName: string, clusterName: string, accountName: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
22571
+ const localVarAxiosArgs = await localVarAxiosParamCreator.resetAccountPrivileges(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options);
22572
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
22573
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.resetAccountPrivileges']?.[localVarOperationServerIndex]?.url;
22574
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22575
+ },
22400
22576
  /**
22401
22577
  *
22402
22578
  * @summary Reset consumer offset of topic
@@ -25639,6 +25815,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
25639
25815
  patchOrgParameter(requestParameters: SharedApiPatchOrgParameterRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrgParameter> {
25640
25816
  return localVarFp.patchOrgParameter(requestParameters.orgName, requestParameters.parameterName, requestParameters.orgParameter, options).then((request) => request(axios, basePath));
25641
25817
  },
25818
+ /**
25819
+ * MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
25820
+ * @summary Preview clearing all MySQL account privileges
25821
+ * @param {SharedApiPreviewAccountPrivilegeResetRequest} requestParameters Request parameters.
25822
+ * @param {*} [options] Override http request option.
25823
+ * @throws {RequiredError}
25824
+ */
25825
+ previewAccountPrivilegeReset(requestParameters: SharedApiPreviewAccountPrivilegeResetRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ObjectPrivilegeResetStep>> {
25826
+ return localVarFp.previewAccountPrivilegeReset(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(axios, basePath));
25827
+ },
25642
25828
  /**
25643
25829
  *
25644
25830
  * @summary Produce message to topic
@@ -25918,6 +26104,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
25918
26104
  reconfigureCluster(requestParameters: SharedApiReconfigureClusterRequest, options?: RawAxiosRequestConfig): AxiosPromise<OpsRequestName> {
25919
26105
  return localVarFp.reconfigureCluster(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
25920
26106
  },
26107
+ /**
26108
+ * MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
26109
+ * @summary Clear all MySQL account privileges
26110
+ * @param {SharedApiResetAccountPrivilegesRequest} requestParameters Request parameters.
26111
+ * @param {*} [options] Override http request option.
26112
+ * @throws {RequiredError}
26113
+ */
26114
+ resetAccountPrivileges(requestParameters: SharedApiResetAccountPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
26115
+ return localVarFp.resetAccountPrivileges(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(axios, basePath));
26116
+ },
25921
26117
  /**
25922
26118
  *
25923
26119
  * @summary Reset consumer offset of topic
@@ -28833,6 +29029,16 @@ export interface SharedApiInterface {
28833
29029
  */
28834
29030
  patchOrgParameter(requestParameters: SharedApiPatchOrgParameterRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrgParameter>;
28835
29031
 
29032
+ /**
29033
+ * MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
29034
+ * @summary Preview clearing all MySQL account privileges
29035
+ * @param {SharedApiPreviewAccountPrivilegeResetRequest} requestParameters Request parameters.
29036
+ * @param {*} [options] Override http request option.
29037
+ * @throws {RequiredError}
29038
+ * @memberof SharedApiInterface
29039
+ */
29040
+ previewAccountPrivilegeReset(requestParameters: SharedApiPreviewAccountPrivilegeResetRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ObjectPrivilegeResetStep>>;
29041
+
28836
29042
  /**
28837
29043
  *
28838
29044
  * @summary Produce message to topic
@@ -29112,6 +29318,16 @@ export interface SharedApiInterface {
29112
29318
  */
29113
29319
  reconfigureCluster(requestParameters: SharedApiReconfigureClusterRequest, options?: RawAxiosRequestConfig): AxiosPromise<OpsRequestName>;
29114
29320
 
29321
+ /**
29322
+ * MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
29323
+ * @summary Clear all MySQL account privileges
29324
+ * @param {SharedApiResetAccountPrivilegesRequest} requestParameters Request parameters.
29325
+ * @param {*} [options] Override http request option.
29326
+ * @throws {RequiredError}
29327
+ * @memberof SharedApiInterface
29328
+ */
29329
+ resetAccountPrivileges(requestParameters: SharedApiResetAccountPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
29330
+
29115
29331
  /**
29116
29332
  *
29117
29333
  * @summary Reset consumer offset of topic
@@ -37274,6 +37490,62 @@ export interface SharedApiPatchOrgParameterRequest {
37274
37490
  readonly orgParameter: OrgParameter
37275
37491
  }
37276
37492
 
37493
+ /**
37494
+ * Request parameters for previewAccountPrivilegeReset operation in SharedApi.
37495
+ * @export
37496
+ * @interface SharedApiPreviewAccountPrivilegeResetRequest
37497
+ */
37498
+ export interface SharedApiPreviewAccountPrivilegeResetRequest {
37499
+ /**
37500
+ *
37501
+ * @type {string}
37502
+ * @memberof SharedApiPreviewAccountPrivilegeReset
37503
+ */
37504
+ readonly engineName: string
37505
+
37506
+ /**
37507
+ *
37508
+ * @type {string}
37509
+ * @memberof SharedApiPreviewAccountPrivilegeReset
37510
+ */
37511
+ readonly orgName: string
37512
+
37513
+ /**
37514
+ *
37515
+ * @type {string}
37516
+ * @memberof SharedApiPreviewAccountPrivilegeReset
37517
+ */
37518
+ readonly clusterName: string
37519
+
37520
+ /**
37521
+ *
37522
+ * @type {string}
37523
+ * @memberof SharedApiPreviewAccountPrivilegeReset
37524
+ */
37525
+ readonly accountName: string
37526
+
37527
+ /**
37528
+ * Native subject kind; path account name identifies the subject.
37529
+ * @type {ObjectPrivilegeSubjectType}
37530
+ * @memberof SharedApiPreviewAccountPrivilegeReset
37531
+ */
37532
+ readonly subjectType?: ObjectPrivilegeSubjectType
37533
+
37534
+ /**
37535
+ * Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
37536
+ * @type {string}
37537
+ * @memberof SharedApiPreviewAccountPrivilegeReset
37538
+ */
37539
+ readonly host?: string
37540
+
37541
+ /**
37542
+ * JSON identity qualifiers; MySQL host defaults to %.
37543
+ * @type {string}
37544
+ * @memberof SharedApiPreviewAccountPrivilegeReset
37545
+ */
37546
+ readonly subjectQualifiers?: string
37547
+ }
37548
+
37277
37549
  /**
37278
37550
  * Request parameters for produceKafkaTopicMessage operation in SharedApi.
37279
37551
  * @export
@@ -39031,6 +39303,62 @@ export interface SharedApiReconfigureClusterRequest {
39031
39303
  readonly body: ReconfigureCreate
39032
39304
  }
39033
39305
 
39306
+ /**
39307
+ * Request parameters for resetAccountPrivileges operation in SharedApi.
39308
+ * @export
39309
+ * @interface SharedApiResetAccountPrivilegesRequest
39310
+ */
39311
+ export interface SharedApiResetAccountPrivilegesRequest {
39312
+ /**
39313
+ *
39314
+ * @type {string}
39315
+ * @memberof SharedApiResetAccountPrivileges
39316
+ */
39317
+ readonly engineName: string
39318
+
39319
+ /**
39320
+ *
39321
+ * @type {string}
39322
+ * @memberof SharedApiResetAccountPrivileges
39323
+ */
39324
+ readonly orgName: string
39325
+
39326
+ /**
39327
+ *
39328
+ * @type {string}
39329
+ * @memberof SharedApiResetAccountPrivileges
39330
+ */
39331
+ readonly clusterName: string
39332
+
39333
+ /**
39334
+ *
39335
+ * @type {string}
39336
+ * @memberof SharedApiResetAccountPrivileges
39337
+ */
39338
+ readonly accountName: string
39339
+
39340
+ /**
39341
+ * Native subject kind; path account name identifies the subject.
39342
+ * @type {ObjectPrivilegeSubjectType}
39343
+ * @memberof SharedApiResetAccountPrivileges
39344
+ */
39345
+ readonly subjectType?: ObjectPrivilegeSubjectType
39346
+
39347
+ /**
39348
+ * Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
39349
+ * @type {string}
39350
+ * @memberof SharedApiResetAccountPrivileges
39351
+ */
39352
+ readonly host?: string
39353
+
39354
+ /**
39355
+ * JSON identity qualifiers; MySQL host defaults to %.
39356
+ * @type {string}
39357
+ * @memberof SharedApiResetAccountPrivileges
39358
+ */
39359
+ readonly subjectQualifiers?: string
39360
+ }
39361
+
39034
39362
  /**
39035
39363
  * Request parameters for resetKafkaTopicConsumerOffset operation in SharedApi.
39036
39364
  * @export
@@ -43707,6 +44035,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
43707
44035
  return SharedApiFp(this.configuration).patchOrgParameter(requestParameters.orgName, requestParameters.parameterName, requestParameters.orgParameter, options).then((request) => request(this.axios, this.basePath));
43708
44036
  }
43709
44037
 
44038
+ /**
44039
+ * MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
44040
+ * @summary Preview clearing all MySQL account privileges
44041
+ * @param {SharedApiPreviewAccountPrivilegeResetRequest} requestParameters Request parameters.
44042
+ * @param {*} [options] Override http request option.
44043
+ * @throws {RequiredError}
44044
+ * @memberof SharedApi
44045
+ */
44046
+ public previewAccountPrivilegeReset(requestParameters: SharedApiPreviewAccountPrivilegeResetRequest, options?: RawAxiosRequestConfig) {
44047
+ return SharedApiFp(this.configuration).previewAccountPrivilegeReset(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(this.axios, this.basePath));
44048
+ }
44049
+
43710
44050
  /**
43711
44051
  *
43712
44052
  * @summary Produce message to topic
@@ -44042,6 +44382,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
44042
44382
  return SharedApiFp(this.configuration).reconfigureCluster(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
44043
44383
  }
44044
44384
 
44385
+ /**
44386
+ * MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
44387
+ * @summary Clear all MySQL account privileges
44388
+ * @param {SharedApiResetAccountPrivilegesRequest} requestParameters Request parameters.
44389
+ * @param {*} [options] Override http request option.
44390
+ * @throws {RequiredError}
44391
+ * @memberof SharedApi
44392
+ */
44393
+ public resetAccountPrivileges(requestParameters: SharedApiResetAccountPrivilegesRequest, options?: RawAxiosRequestConfig) {
44394
+ return SharedApiFp(this.configuration).resetAccountPrivileges(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(this.axios, this.basePath));
44395
+ }
44396
+
44045
44397
  /**
44046
44398
  *
44047
44399
  * @summary Reset consumer offset of topic
@@ -29,6 +29,18 @@ import type { InstanceTemplateCreate } from './instance-template-create';
29
29
  * @interface ComponentItemCreate
30
30
  */
31
31
  export interface ComponentItemCreate {
32
+ /**
33
+ * Optional host group in this environment and the explicitly selected availabilityZone. Requires availabilityZone; no upper-level host group is inherited.
34
+ * @type {string}
35
+ * @memberof ComponentItemCreate
36
+ */
37
+ 'nodeGroup'?: string;
38
+ /**
39
+ * Single AZ for explicit component placement. Must be enabled in the environment and is required when nodeGroup is specified. An omitted nodeGroup does not inherit the cluster host group. Omitting both retains cluster scheduling.
40
+ * @type {string}
41
+ * @memberof ComponentItemCreate
42
+ */
43
+ 'availabilityZone'?: string;
32
44
  /**
33
45
  * component type, refer to componentDef and support NamePrefix
34
46
  * @type {string}
@@ -19,6 +19,9 @@ import type { ComponentNetwork } from './component-network';
19
19
  // May contain unused imports in some cases
20
20
  // @ts-ignore
21
21
  import type { ComponentVolumeItem } from './component-volume-item';
22
+ // May contain unused imports in some cases
23
+ // @ts-ignore
24
+ import type { InstanceTemplateCreate } from './instance-template-create';
22
25
 
23
26
  /**
24
27
  * ComponentItem is the information of a component
@@ -26,6 +29,24 @@ import type { ComponentVolumeItem } from './component-volume-item';
26
29
  * @interface ComponentItem
27
30
  */
28
31
  export interface ComponentItem {
32
+ /**
33
+ * Optional host group in this environment. Explicit placement does not inherit an upper-level host group.
34
+ * @type {string}
35
+ * @memberof ComponentItem
36
+ */
37
+ 'nodeGroup'?: string;
38
+ /**
39
+ * Explicit component AZ selection, if configured.
40
+ * @type {string}
41
+ * @memberof ComponentItem
42
+ */
43
+ 'availabilityZone'?: string;
44
+ /**
45
+ * Instance template assignments with effective replicas, placement and storage class, and user-provided env, labels and annotations.
46
+ * @type {Array<InstanceTemplateCreate>}
47
+ * @memberof ComponentItem
48
+ */
49
+ 'instanceTemplates'?: Array<InstanceTemplateCreate>;
29
50
  /**
30
51
  * component name
31
52
  * @type {string}
@@ -669,6 +669,7 @@ export * from './object-privilege-object-list';
669
669
  export * from './object-privilege-prerequisite-check';
670
670
  export * from './object-privilege-prerequisite-status';
671
671
  export * from './object-privilege-qualifier';
672
+ export * from './object-privilege-reset-step';
672
673
  export * from './object-privilege-snapshot';
673
674
  export * from './object-privilege-spec';
674
675
  export * from './object-privilege-subject';
@@ -757,6 +758,7 @@ export * from './pg-extension';
757
758
  export * from './pg-extension-available-database-schema';
758
759
  export * from './pgbench';
759
760
  export * from './phone-verification-request';
761
+ export * from './placement-scope';
760
762
  export * from './platform-parameter';
761
763
  export * from './platform-parameter-constraints';
762
764
  export * from './platform-parameter-list';
@@ -24,7 +24,6 @@ export const InstanceTemplateAttribute = {
24
24
  env: 'env',
25
25
  annotations: 'annotations',
26
26
  labels: 'labels',
27
- availabilityZone: 'availabilityZone',
28
27
  storageClass: 'storageClass'
29
28
  } as const;
30
29
 
@@ -18,11 +18,17 @@
18
18
  import type { InstanceTemplateCreateEnvInner } from './instance-template-create-env-inner';
19
19
 
20
20
  /**
21
- * Create assignment for one instance template. name and replicas are required. env, annotations, labels, availabilityZone, and storageClass are optional overlays onto the chart-rendered instance. The request must include every chart-rendered instance template exactly once. A template with an explicit zone uses single-zone scheduling: hostname anti-affinity follows the scheduling policy, while explicit rules and additional topology keys are preserved. Component scheduling remains unchanged; templates without a zone inherit it, including its zone anti-affinity constraints. Chart instance scheduling policies are cleared; an omitted or empty availabilityZone leaves the instance policy unset to inherit the component policy.
21
+ * Create assignment for one instance template. name and replicas are required. env, annotations, labels, availabilityZone, nodeGroup and storageClass are optional overlays. The request must include every chart-rendered instance template exactly once. Explicit placement requires availabilityZone and optionally accepts nodeGroup, without inheriting upper-level AZ or NodeGroup. Omitting both leaves SchedulingPolicy unset for KubeBlocks default inheritance. Hostname, user scheduling rules and additional topology keys are preserved.
22
22
  * @export
23
23
  * @interface InstanceTemplateCreate
24
24
  */
25
25
  export interface InstanceTemplateCreate {
26
+ /**
27
+ * Optional host group in this environment and the explicitly selected availabilityZone. Requires availabilityZone; no upper-level host group is inherited.
28
+ * @type {string}
29
+ * @memberof InstanceTemplateCreate
30
+ */
31
+ 'nodeGroup'?: string;
26
32
  /**
27
33
  * Instance template name; must match a chart-rendered instance.
28
34
  * @type {string}
@@ -36,7 +42,7 @@ export interface InstanceTemplateCreate {
36
42
  */
37
43
  'replicas': number;
38
44
  /**
39
- * Availability zone for this template (topology.kubernetes.io/zone); omitted or empty inherits the component zone selection. Must be enabled in the environment. If the request explicitly supplies a non-empty cluster availabilityZones list, the template zone must also belong to that list.
45
+ * Single AZ for explicit template placement (topology.kubernetes.io/zone). Must be enabled in the environment and is required when nodeGroup is specified. An omitted nodeGroup does not inherit the component or cluster host group. Omitting both leaves SchedulingPolicy unset for KubeBlocks inheritance.
40
46
  * @type {string}
41
47
  * @memberof InstanceTemplateCreate
42
48
  */
@@ -60,7 +66,7 @@ export interface InstanceTemplateCreate {
60
66
  */
61
67
  'annotations'?: { [key: string]: string; };
62
68
  /**
63
- * Label map (string key to string value). Merged into this template; same-name keys overwritten. Chart keys are not deleted.
69
+ * Label map (string key to string value). Merged into this template; same-name keys overwritten. Chart keys are not deleted. The apps.kubeblocks.io/instance-template label is managed by the system and must equal the template name if supplied.
64
70
  * @type {{ [key: string]: string; }}
65
71
  * @memberof InstanceTemplateCreate
66
72
  */
@@ -62,6 +62,12 @@ export interface Instance {
62
62
  * @memberof Instance
63
63
  */
64
64
  'componentDef'?: string;
65
+ /**
66
+ * Instance template name within the actual component. Omitted when no template identity is available.
67
+ * @type {string}
68
+ * @memberof Instance
69
+ */
70
+ 'instanceTemplate'?: string;
65
71
  /**
66
72
  * component type, refer to componentDef and support NamePrefix
67
73
  * @type {string}
@@ -40,6 +40,9 @@ import type { ModeOptionValuesMappings } from './mode-option-values-mappings';
40
40
  // May contain unused imports in some cases
41
41
  // @ts-ignore
42
42
  import type { ModeServiceRef } from './mode-service-ref';
43
+ // May contain unused imports in some cases
44
+ // @ts-ignore
45
+ import type { PlacementScope } from './placement-scope';
43
46
 
44
47
  /**
45
48
  *
@@ -47,6 +50,12 @@ import type { ModeServiceRef } from './mode-service-ref';
47
50
  * @interface ModeOption
48
51
  */
49
52
  export interface ModeOption {
53
+ /**
54
+ *
55
+ * @type {PlacementScope}
56
+ * @memberof ModeOption
57
+ */
58
+ 'placementScope'?: PlacementScope;
50
59
  /**
51
60
  *
52
61
  * @type {string}
@@ -0,0 +1,36 @@
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
+ * One ordered, engine-generated step of an account privilege reset.
19
+ * @export
20
+ * @interface ObjectPrivilegeResetStep
21
+ */
22
+ export interface ObjectPrivilegeResetStep {
23
+ /**
24
+ * Connection database in which this statement must run. Omitted when no particular database is required, as with MySQL account-wide REVOKE. This is execution context, not the scope of objects affected by the SQL.
25
+ * @type {string}
26
+ * @memberof ObjectPrivilegeResetStep
27
+ */
28
+ 'databaseName'?: string;
29
+ /**
30
+ * Engine-generated SQL for display. Callers cannot submit or modify these steps for execution; reset rebuilds the plan from current grants.
31
+ * @type {string}
32
+ * @memberof ObjectPrivilegeResetStep
33
+ */
34
+ 'sql': string;
35
+ }
36
+