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.
- package/dist/adminapi/apis/account-api.d.ts +207 -0
- package/dist/adminapi/apis/account-api.d.ts.map +1 -1
- package/dist/adminapi/apis/account-api.js +198 -0
- package/dist/adminapi/apis/account-api.js.map +1 -1
- package/dist/adminapi/apis/rdbms-api.d.ts +207 -0
- package/dist/adminapi/apis/rdbms-api.d.ts.map +1 -1
- package/dist/adminapi/apis/rdbms-api.js +198 -0
- package/dist/adminapi/apis/rdbms-api.js.map +1 -1
- package/dist/adminapi/apis/shared-api.d.ts +207 -0
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +198 -0
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- package/dist/adminapi/models/component-item-create.d.ts +12 -0
- package/dist/adminapi/models/component-item-create.d.ts.map +1 -1
- package/dist/adminapi/models/component-item.d.ts +19 -0
- package/dist/adminapi/models/component-item.d.ts.map +1 -1
- package/dist/adminapi/models/index.d.ts +2 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +2 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/instance-template-attribute.d.ts +0 -1
- package/dist/adminapi/models/instance-template-attribute.d.ts.map +1 -1
- package/dist/adminapi/models/instance-template-attribute.js +0 -1
- package/dist/adminapi/models/instance-template-attribute.js.map +1 -1
- package/dist/adminapi/models/instance-template-create.d.ts +9 -3
- package/dist/adminapi/models/instance-template-create.d.ts.map +1 -1
- package/dist/adminapi/models/instance.d.ts +6 -0
- package/dist/adminapi/models/instance.d.ts.map +1 -1
- package/dist/adminapi/models/mode-option.d.ts +7 -0
- package/dist/adminapi/models/mode-option.d.ts.map +1 -1
- package/dist/adminapi/models/object-privilege-reset-step.d.ts +31 -0
- package/dist/adminapi/models/object-privilege-reset-step.d.ts.map +1 -0
- package/dist/adminapi/models/object-privilege-reset-step.js +16 -0
- package/dist/adminapi/models/object-privilege-reset-step.js.map +1 -0
- package/dist/adminapi/models/placement-scope.d.ts +22 -0
- package/dist/adminapi/models/placement-scope.d.ts.map +1 -0
- package/dist/adminapi/models/placement-scope.js +26 -0
- package/dist/adminapi/models/placement-scope.js.map +1 -0
- package/dist/internalapi/models/component-item.d.ts +19 -0
- package/dist/internalapi/models/component-item.d.ts.map +1 -1
- package/dist/internalapi/models/index.d.ts +2 -0
- package/dist/internalapi/models/index.d.ts.map +1 -1
- package/dist/internalapi/models/index.js +2 -0
- package/dist/internalapi/models/index.js.map +1 -1
- package/dist/internalapi/models/instance-template-create-env-inner.d.ts +31 -0
- package/dist/internalapi/models/instance-template-create-env-inner.d.ts.map +1 -0
- package/dist/internalapi/models/instance-template-create-env-inner.js +16 -0
- package/dist/internalapi/models/instance-template-create-env-inner.js.map +1 -0
- package/dist/internalapi/models/instance-template-create.d.ts +72 -0
- package/dist/internalapi/models/instance-template-create.d.ts.map +1 -0
- package/dist/internalapi/models/instance-template-create.js +16 -0
- package/dist/internalapi/models/instance-template-create.js.map +1 -0
- package/dist/openapi/apis/account-api.d.ts +207 -0
- package/dist/openapi/apis/account-api.d.ts.map +1 -1
- package/dist/openapi/apis/account-api.js +198 -0
- package/dist/openapi/apis/account-api.js.map +1 -1
- package/dist/openapi/apis/rdbms-api.d.ts +207 -0
- package/dist/openapi/apis/rdbms-api.d.ts.map +1 -1
- package/dist/openapi/apis/rdbms-api.js +198 -0
- package/dist/openapi/apis/rdbms-api.js.map +1 -1
- package/dist/openapi/apis/shared-api.d.ts +207 -0
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +198 -0
- package/dist/openapi/apis/shared-api.js.map +1 -1
- package/dist/openapi/models/component-item-create.d.ts +12 -0
- package/dist/openapi/models/component-item-create.d.ts.map +1 -1
- package/dist/openapi/models/component-item.d.ts +19 -0
- package/dist/openapi/models/component-item.d.ts.map +1 -1
- package/dist/openapi/models/index.d.ts +2 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +2 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/instance-template-attribute.d.ts +0 -1
- package/dist/openapi/models/instance-template-attribute.d.ts.map +1 -1
- package/dist/openapi/models/instance-template-attribute.js +0 -1
- package/dist/openapi/models/instance-template-attribute.js.map +1 -1
- package/dist/openapi/models/instance-template-create.d.ts +9 -3
- package/dist/openapi/models/instance-template-create.d.ts.map +1 -1
- package/dist/openapi/models/instance.d.ts +6 -0
- package/dist/openapi/models/instance.d.ts.map +1 -1
- package/dist/openapi/models/mode-option.d.ts +7 -0
- package/dist/openapi/models/mode-option.d.ts.map +1 -1
- package/dist/openapi/models/object-privilege-reset-step.d.ts +31 -0
- package/dist/openapi/models/object-privilege-reset-step.d.ts.map +1 -0
- package/dist/openapi/models/object-privilege-reset-step.js +16 -0
- package/dist/openapi/models/object-privilege-reset-step.js.map +1 -0
- package/dist/openapi/models/placement-scope.d.ts +22 -0
- package/dist/openapi/models/placement-scope.d.ts.map +1 -0
- package/dist/openapi/models/placement-scope.js +26 -0
- package/dist/openapi/models/placement-scope.js.map +1 -0
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +2 -0
- package/src/adminapi/apis/account-api.ts +352 -0
- package/src/adminapi/apis/rdbms-api.ts +352 -0
- package/src/adminapi/apis/shared-api.ts +352 -0
- package/src/adminapi/models/component-item-create.ts +12 -0
- package/src/adminapi/models/component-item.ts +21 -0
- package/src/adminapi/models/index.ts +2 -0
- package/src/adminapi/models/instance-template-attribute.ts +0 -1
- package/src/adminapi/models/instance-template-create.ts +9 -3
- package/src/adminapi/models/instance.ts +6 -0
- package/src/adminapi/models/mode-option.ts +9 -0
- package/src/adminapi/models/object-privilege-reset-step.ts +36 -0
- package/src/adminapi/models/placement-scope.ts +31 -0
- package/src/adminapi.yaml +174 -5
- package/src/internalapi/.openapi-generator/FILES +2 -0
- package/src/internalapi/models/component-item.ts +21 -0
- package/src/internalapi/models/index.ts +2 -0
- package/src/internalapi/models/instance-template-create-env-inner.ts +36 -0
- package/src/internalapi/models/instance-template-create.ts +75 -0
- package/src/internalapi.yaml +62 -0
- package/src/openapi/.openapi-generator/FILES +2 -0
- package/src/openapi/apis/account-api.ts +352 -0
- package/src/openapi/apis/rdbms-api.ts +352 -0
- package/src/openapi/apis/shared-api.ts +352 -0
- package/src/openapi/models/component-item-create.ts +12 -0
- package/src/openapi/models/component-item.ts +21 -0
- package/src/openapi/models/index.ts +2 -0
- package/src/openapi/models/instance-template-attribute.ts +0 -1
- package/src/openapi/models/instance-template-create.ts +9 -3
- package/src/openapi/models/instance.ts +6 -0
- package/src/openapi/models/mode-option.ts +9 -0
- package/src/openapi/models/object-privilege-reset-step.ts +36 -0
- package/src/openapi/models/placement-scope.ts +31 -0
- package/src/openapi.yaml +174 -5
|
@@ -294,6 +294,8 @@ import type { ObjectPrivilegeChange } from '../models';
|
|
|
294
294
|
// @ts-ignore
|
|
295
295
|
import type { ObjectPrivilegeObjectList } from '../models';
|
|
296
296
|
// @ts-ignore
|
|
297
|
+
import type { ObjectPrivilegeResetStep } from '../models';
|
|
298
|
+
// @ts-ignore
|
|
297
299
|
import type { ObjectPrivilegeSnapshot } from '../models';
|
|
298
300
|
// @ts-ignore
|
|
299
301
|
import type { ObjectPrivilegeSubjectType } from '../models';
|
|
@@ -13002,6 +13004,74 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
13002
13004
|
options: localVarRequestOptions,
|
|
13003
13005
|
};
|
|
13004
13006
|
},
|
|
13007
|
+
/**
|
|
13008
|
+
* 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.
|
|
13009
|
+
* @summary Preview clearing all MySQL account privileges
|
|
13010
|
+
* @param {string} engineName
|
|
13011
|
+
* @param {string} orgName
|
|
13012
|
+
* @param {string} clusterName
|
|
13013
|
+
* @param {string} accountName
|
|
13014
|
+
* @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
|
|
13015
|
+
* @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
13016
|
+
* @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
|
|
13017
|
+
* @param {*} [options] Override http request option.
|
|
13018
|
+
* @throws {RequiredError}
|
|
13019
|
+
*/
|
|
13020
|
+
previewAccountPrivilegeReset: async (engineName: string, orgName: string, clusterName: string, accountName: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13021
|
+
// verify required parameter 'engineName' is not null or undefined
|
|
13022
|
+
assertParamExists('previewAccountPrivilegeReset', 'engineName', engineName)
|
|
13023
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
13024
|
+
assertParamExists('previewAccountPrivilegeReset', 'orgName', orgName)
|
|
13025
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
13026
|
+
assertParamExists('previewAccountPrivilegeReset', 'clusterName', clusterName)
|
|
13027
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
13028
|
+
assertParamExists('previewAccountPrivilegeReset', 'accountName', accountName)
|
|
13029
|
+
const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/reset`
|
|
13030
|
+
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
13031
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
13032
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
13033
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
13034
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13035
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13036
|
+
let baseOptions;
|
|
13037
|
+
if (configuration) {
|
|
13038
|
+
baseOptions = configuration.baseOptions;
|
|
13039
|
+
}
|
|
13040
|
+
|
|
13041
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
13042
|
+
const localVarHeaderParameter = {} as any;
|
|
13043
|
+
const localVarQueryParameter = {} as any;
|
|
13044
|
+
|
|
13045
|
+
// authentication BearerToken required
|
|
13046
|
+
// http bearer authentication required
|
|
13047
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
13048
|
+
|
|
13049
|
+
// authentication DigestAuth required
|
|
13050
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
13051
|
+
|
|
13052
|
+
if (subjectType !== undefined) {
|
|
13053
|
+
localVarQueryParameter['subjectType'] = subjectType;
|
|
13054
|
+
}
|
|
13055
|
+
|
|
13056
|
+
if (host !== undefined) {
|
|
13057
|
+
localVarQueryParameter['host'] = host;
|
|
13058
|
+
}
|
|
13059
|
+
|
|
13060
|
+
if (subjectQualifiers !== undefined) {
|
|
13061
|
+
localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
|
|
13062
|
+
}
|
|
13063
|
+
|
|
13064
|
+
|
|
13065
|
+
|
|
13066
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13067
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13068
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13069
|
+
|
|
13070
|
+
return {
|
|
13071
|
+
url: toPathString(localVarUrlObj),
|
|
13072
|
+
options: localVarRequestOptions,
|
|
13073
|
+
};
|
|
13074
|
+
},
|
|
13005
13075
|
/**
|
|
13006
13076
|
*
|
|
13007
13077
|
* @summary Produce message to topic
|
|
@@ -15173,6 +15243,74 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
15173
15243
|
options: localVarRequestOptions,
|
|
15174
15244
|
};
|
|
15175
15245
|
},
|
|
15246
|
+
/**
|
|
15247
|
+
* 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.
|
|
15248
|
+
* @summary Clear all MySQL account privileges
|
|
15249
|
+
* @param {string} engineName
|
|
15250
|
+
* @param {string} orgName
|
|
15251
|
+
* @param {string} clusterName
|
|
15252
|
+
* @param {string} accountName
|
|
15253
|
+
* @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
|
|
15254
|
+
* @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
15255
|
+
* @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
|
|
15256
|
+
* @param {*} [options] Override http request option.
|
|
15257
|
+
* @throws {RequiredError}
|
|
15258
|
+
*/
|
|
15259
|
+
resetAccountPrivileges: async (engineName: string, orgName: string, clusterName: string, accountName: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15260
|
+
// verify required parameter 'engineName' is not null or undefined
|
|
15261
|
+
assertParamExists('resetAccountPrivileges', 'engineName', engineName)
|
|
15262
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
15263
|
+
assertParamExists('resetAccountPrivileges', 'orgName', orgName)
|
|
15264
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
15265
|
+
assertParamExists('resetAccountPrivileges', 'clusterName', clusterName)
|
|
15266
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
15267
|
+
assertParamExists('resetAccountPrivileges', 'accountName', accountName)
|
|
15268
|
+
const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/reset`
|
|
15269
|
+
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
15270
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
15271
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
15272
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
15273
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15274
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15275
|
+
let baseOptions;
|
|
15276
|
+
if (configuration) {
|
|
15277
|
+
baseOptions = configuration.baseOptions;
|
|
15278
|
+
}
|
|
15279
|
+
|
|
15280
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
15281
|
+
const localVarHeaderParameter = {} as any;
|
|
15282
|
+
const localVarQueryParameter = {} as any;
|
|
15283
|
+
|
|
15284
|
+
// authentication BearerToken required
|
|
15285
|
+
// http bearer authentication required
|
|
15286
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
15287
|
+
|
|
15288
|
+
// authentication DigestAuth required
|
|
15289
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
15290
|
+
|
|
15291
|
+
if (subjectType !== undefined) {
|
|
15292
|
+
localVarQueryParameter['subjectType'] = subjectType;
|
|
15293
|
+
}
|
|
15294
|
+
|
|
15295
|
+
if (host !== undefined) {
|
|
15296
|
+
localVarQueryParameter['host'] = host;
|
|
15297
|
+
}
|
|
15298
|
+
|
|
15299
|
+
if (subjectQualifiers !== undefined) {
|
|
15300
|
+
localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
|
|
15301
|
+
}
|
|
15302
|
+
|
|
15303
|
+
|
|
15304
|
+
|
|
15305
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15306
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15307
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15308
|
+
|
|
15309
|
+
return {
|
|
15310
|
+
url: toPathString(localVarUrlObj),
|
|
15311
|
+
options: localVarRequestOptions,
|
|
15312
|
+
};
|
|
15313
|
+
},
|
|
15176
15314
|
/**
|
|
15177
15315
|
*
|
|
15178
15316
|
* @summary Reset consumer offset of topic
|
|
@@ -21808,6 +21946,25 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
21808
21946
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.patchOrgParameter']?.[localVarOperationServerIndex]?.url;
|
|
21809
21947
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
21810
21948
|
},
|
|
21949
|
+
/**
|
|
21950
|
+
* 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.
|
|
21951
|
+
* @summary Preview clearing all MySQL account privileges
|
|
21952
|
+
* @param {string} engineName
|
|
21953
|
+
* @param {string} orgName
|
|
21954
|
+
* @param {string} clusterName
|
|
21955
|
+
* @param {string} accountName
|
|
21956
|
+
* @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
|
|
21957
|
+
* @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
21958
|
+
* @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
|
|
21959
|
+
* @param {*} [options] Override http request option.
|
|
21960
|
+
* @throws {RequiredError}
|
|
21961
|
+
*/
|
|
21962
|
+
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>>> {
|
|
21963
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.previewAccountPrivilegeReset(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options);
|
|
21964
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
21965
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.previewAccountPrivilegeReset']?.[localVarOperationServerIndex]?.url;
|
|
21966
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
21967
|
+
},
|
|
21811
21968
|
/**
|
|
21812
21969
|
*
|
|
21813
21970
|
* @summary Produce message to topic
|
|
@@ -22368,6 +22525,25 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
22368
22525
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.reconfigureCluster']?.[localVarOperationServerIndex]?.url;
|
|
22369
22526
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
22370
22527
|
},
|
|
22528
|
+
/**
|
|
22529
|
+
* 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.
|
|
22530
|
+
* @summary Clear all MySQL account privileges
|
|
22531
|
+
* @param {string} engineName
|
|
22532
|
+
* @param {string} orgName
|
|
22533
|
+
* @param {string} clusterName
|
|
22534
|
+
* @param {string} accountName
|
|
22535
|
+
* @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
|
|
22536
|
+
* @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
22537
|
+
* @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
|
|
22538
|
+
* @param {*} [options] Override http request option.
|
|
22539
|
+
* @throws {RequiredError}
|
|
22540
|
+
*/
|
|
22541
|
+
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>> {
|
|
22542
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.resetAccountPrivileges(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options);
|
|
22543
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
22544
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.resetAccountPrivileges']?.[localVarOperationServerIndex]?.url;
|
|
22545
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
22546
|
+
},
|
|
22371
22547
|
/**
|
|
22372
22548
|
*
|
|
22373
22549
|
* @summary Reset consumer offset of topic
|
|
@@ -25614,6 +25790,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
25614
25790
|
patchOrgParameter(requestParameters: SharedApiPatchOrgParameterRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrgParameter> {
|
|
25615
25791
|
return localVarFp.patchOrgParameter(requestParameters.orgName, requestParameters.parameterName, requestParameters.orgParameter, options).then((request) => request(axios, basePath));
|
|
25616
25792
|
},
|
|
25793
|
+
/**
|
|
25794
|
+
* 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.
|
|
25795
|
+
* @summary Preview clearing all MySQL account privileges
|
|
25796
|
+
* @param {SharedApiPreviewAccountPrivilegeResetRequest} requestParameters Request parameters.
|
|
25797
|
+
* @param {*} [options] Override http request option.
|
|
25798
|
+
* @throws {RequiredError}
|
|
25799
|
+
*/
|
|
25800
|
+
previewAccountPrivilegeReset(requestParameters: SharedApiPreviewAccountPrivilegeResetRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ObjectPrivilegeResetStep>> {
|
|
25801
|
+
return localVarFp.previewAccountPrivilegeReset(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(axios, basePath));
|
|
25802
|
+
},
|
|
25617
25803
|
/**
|
|
25618
25804
|
*
|
|
25619
25805
|
* @summary Produce message to topic
|
|
@@ -25893,6 +26079,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
25893
26079
|
reconfigureCluster(requestParameters: SharedApiReconfigureClusterRequest, options?: RawAxiosRequestConfig): AxiosPromise<OpsRequestName> {
|
|
25894
26080
|
return localVarFp.reconfigureCluster(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
25895
26081
|
},
|
|
26082
|
+
/**
|
|
26083
|
+
* 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.
|
|
26084
|
+
* @summary Clear all MySQL account privileges
|
|
26085
|
+
* @param {SharedApiResetAccountPrivilegesRequest} requestParameters Request parameters.
|
|
26086
|
+
* @param {*} [options] Override http request option.
|
|
26087
|
+
* @throws {RequiredError}
|
|
26088
|
+
*/
|
|
26089
|
+
resetAccountPrivileges(requestParameters: SharedApiResetAccountPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
26090
|
+
return localVarFp.resetAccountPrivileges(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(axios, basePath));
|
|
26091
|
+
},
|
|
25896
26092
|
/**
|
|
25897
26093
|
*
|
|
25898
26094
|
* @summary Reset consumer offset of topic
|
|
@@ -28826,6 +29022,16 @@ export interface SharedApiInterface {
|
|
|
28826
29022
|
*/
|
|
28827
29023
|
patchOrgParameter(requestParameters: SharedApiPatchOrgParameterRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrgParameter>;
|
|
28828
29024
|
|
|
29025
|
+
/**
|
|
29026
|
+
* 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.
|
|
29027
|
+
* @summary Preview clearing all MySQL account privileges
|
|
29028
|
+
* @param {SharedApiPreviewAccountPrivilegeResetRequest} requestParameters Request parameters.
|
|
29029
|
+
* @param {*} [options] Override http request option.
|
|
29030
|
+
* @throws {RequiredError}
|
|
29031
|
+
* @memberof SharedApiInterface
|
|
29032
|
+
*/
|
|
29033
|
+
previewAccountPrivilegeReset(requestParameters: SharedApiPreviewAccountPrivilegeResetRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ObjectPrivilegeResetStep>>;
|
|
29034
|
+
|
|
28829
29035
|
/**
|
|
28830
29036
|
*
|
|
28831
29037
|
* @summary Produce message to topic
|
|
@@ -29105,6 +29311,16 @@ export interface SharedApiInterface {
|
|
|
29105
29311
|
*/
|
|
29106
29312
|
reconfigureCluster(requestParameters: SharedApiReconfigureClusterRequest, options?: RawAxiosRequestConfig): AxiosPromise<OpsRequestName>;
|
|
29107
29313
|
|
|
29314
|
+
/**
|
|
29315
|
+
* 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.
|
|
29316
|
+
* @summary Clear all MySQL account privileges
|
|
29317
|
+
* @param {SharedApiResetAccountPrivilegesRequest} requestParameters Request parameters.
|
|
29318
|
+
* @param {*} [options] Override http request option.
|
|
29319
|
+
* @throws {RequiredError}
|
|
29320
|
+
* @memberof SharedApiInterface
|
|
29321
|
+
*/
|
|
29322
|
+
resetAccountPrivileges(requestParameters: SharedApiResetAccountPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
29323
|
+
|
|
29108
29324
|
/**
|
|
29109
29325
|
*
|
|
29110
29326
|
* @summary Reset consumer offset of topic
|
|
@@ -37076,6 +37292,62 @@ export interface SharedApiPatchOrgParameterRequest {
|
|
|
37076
37292
|
readonly orgParameter: OrgParameter
|
|
37077
37293
|
}
|
|
37078
37294
|
|
|
37295
|
+
/**
|
|
37296
|
+
* Request parameters for previewAccountPrivilegeReset operation in SharedApi.
|
|
37297
|
+
* @export
|
|
37298
|
+
* @interface SharedApiPreviewAccountPrivilegeResetRequest
|
|
37299
|
+
*/
|
|
37300
|
+
export interface SharedApiPreviewAccountPrivilegeResetRequest {
|
|
37301
|
+
/**
|
|
37302
|
+
*
|
|
37303
|
+
* @type {string}
|
|
37304
|
+
* @memberof SharedApiPreviewAccountPrivilegeReset
|
|
37305
|
+
*/
|
|
37306
|
+
readonly engineName: string
|
|
37307
|
+
|
|
37308
|
+
/**
|
|
37309
|
+
*
|
|
37310
|
+
* @type {string}
|
|
37311
|
+
* @memberof SharedApiPreviewAccountPrivilegeReset
|
|
37312
|
+
*/
|
|
37313
|
+
readonly orgName: string
|
|
37314
|
+
|
|
37315
|
+
/**
|
|
37316
|
+
*
|
|
37317
|
+
* @type {string}
|
|
37318
|
+
* @memberof SharedApiPreviewAccountPrivilegeReset
|
|
37319
|
+
*/
|
|
37320
|
+
readonly clusterName: string
|
|
37321
|
+
|
|
37322
|
+
/**
|
|
37323
|
+
*
|
|
37324
|
+
* @type {string}
|
|
37325
|
+
* @memberof SharedApiPreviewAccountPrivilegeReset
|
|
37326
|
+
*/
|
|
37327
|
+
readonly accountName: string
|
|
37328
|
+
|
|
37329
|
+
/**
|
|
37330
|
+
* Native subject kind; path account name identifies the subject.
|
|
37331
|
+
* @type {ObjectPrivilegeSubjectType}
|
|
37332
|
+
* @memberof SharedApiPreviewAccountPrivilegeReset
|
|
37333
|
+
*/
|
|
37334
|
+
readonly subjectType?: ObjectPrivilegeSubjectType
|
|
37335
|
+
|
|
37336
|
+
/**
|
|
37337
|
+
* Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
37338
|
+
* @type {string}
|
|
37339
|
+
* @memberof SharedApiPreviewAccountPrivilegeReset
|
|
37340
|
+
*/
|
|
37341
|
+
readonly host?: string
|
|
37342
|
+
|
|
37343
|
+
/**
|
|
37344
|
+
* JSON identity qualifiers; MySQL host defaults to %.
|
|
37345
|
+
* @type {string}
|
|
37346
|
+
* @memberof SharedApiPreviewAccountPrivilegeReset
|
|
37347
|
+
*/
|
|
37348
|
+
readonly subjectQualifiers?: string
|
|
37349
|
+
}
|
|
37350
|
+
|
|
37079
37351
|
/**
|
|
37080
37352
|
* Request parameters for produceKafkaTopicMessage operation in SharedApi.
|
|
37081
37353
|
* @export
|
|
@@ -38833,6 +39105,62 @@ export interface SharedApiReconfigureClusterRequest {
|
|
|
38833
39105
|
readonly body: ReconfigureCreate
|
|
38834
39106
|
}
|
|
38835
39107
|
|
|
39108
|
+
/**
|
|
39109
|
+
* Request parameters for resetAccountPrivileges operation in SharedApi.
|
|
39110
|
+
* @export
|
|
39111
|
+
* @interface SharedApiResetAccountPrivilegesRequest
|
|
39112
|
+
*/
|
|
39113
|
+
export interface SharedApiResetAccountPrivilegesRequest {
|
|
39114
|
+
/**
|
|
39115
|
+
*
|
|
39116
|
+
* @type {string}
|
|
39117
|
+
* @memberof SharedApiResetAccountPrivileges
|
|
39118
|
+
*/
|
|
39119
|
+
readonly engineName: string
|
|
39120
|
+
|
|
39121
|
+
/**
|
|
39122
|
+
*
|
|
39123
|
+
* @type {string}
|
|
39124
|
+
* @memberof SharedApiResetAccountPrivileges
|
|
39125
|
+
*/
|
|
39126
|
+
readonly orgName: string
|
|
39127
|
+
|
|
39128
|
+
/**
|
|
39129
|
+
*
|
|
39130
|
+
* @type {string}
|
|
39131
|
+
* @memberof SharedApiResetAccountPrivileges
|
|
39132
|
+
*/
|
|
39133
|
+
readonly clusterName: string
|
|
39134
|
+
|
|
39135
|
+
/**
|
|
39136
|
+
*
|
|
39137
|
+
* @type {string}
|
|
39138
|
+
* @memberof SharedApiResetAccountPrivileges
|
|
39139
|
+
*/
|
|
39140
|
+
readonly accountName: string
|
|
39141
|
+
|
|
39142
|
+
/**
|
|
39143
|
+
* Native subject kind; path account name identifies the subject.
|
|
39144
|
+
* @type {ObjectPrivilegeSubjectType}
|
|
39145
|
+
* @memberof SharedApiResetAccountPrivileges
|
|
39146
|
+
*/
|
|
39147
|
+
readonly subjectType?: ObjectPrivilegeSubjectType
|
|
39148
|
+
|
|
39149
|
+
/**
|
|
39150
|
+
* Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
39151
|
+
* @type {string}
|
|
39152
|
+
* @memberof SharedApiResetAccountPrivileges
|
|
39153
|
+
*/
|
|
39154
|
+
readonly host?: string
|
|
39155
|
+
|
|
39156
|
+
/**
|
|
39157
|
+
* JSON identity qualifiers; MySQL host defaults to %.
|
|
39158
|
+
* @type {string}
|
|
39159
|
+
* @memberof SharedApiResetAccountPrivileges
|
|
39160
|
+
*/
|
|
39161
|
+
readonly subjectQualifiers?: string
|
|
39162
|
+
}
|
|
39163
|
+
|
|
38836
39164
|
/**
|
|
38837
39165
|
* Request parameters for resetKafkaTopicConsumerOffset operation in SharedApi.
|
|
38838
39166
|
* @export
|
|
@@ -43490,6 +43818,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
43490
43818
|
return SharedApiFp(this.configuration).patchOrgParameter(requestParameters.orgName, requestParameters.parameterName, requestParameters.orgParameter, options).then((request) => request(this.axios, this.basePath));
|
|
43491
43819
|
}
|
|
43492
43820
|
|
|
43821
|
+
/**
|
|
43822
|
+
* 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.
|
|
43823
|
+
* @summary Preview clearing all MySQL account privileges
|
|
43824
|
+
* @param {SharedApiPreviewAccountPrivilegeResetRequest} requestParameters Request parameters.
|
|
43825
|
+
* @param {*} [options] Override http request option.
|
|
43826
|
+
* @throws {RequiredError}
|
|
43827
|
+
* @memberof SharedApi
|
|
43828
|
+
*/
|
|
43829
|
+
public previewAccountPrivilegeReset(requestParameters: SharedApiPreviewAccountPrivilegeResetRequest, options?: RawAxiosRequestConfig) {
|
|
43830
|
+
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));
|
|
43831
|
+
}
|
|
43832
|
+
|
|
43493
43833
|
/**
|
|
43494
43834
|
*
|
|
43495
43835
|
* @summary Produce message to topic
|
|
@@ -43825,6 +44165,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
43825
44165
|
return SharedApiFp(this.configuration).reconfigureCluster(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
43826
44166
|
}
|
|
43827
44167
|
|
|
44168
|
+
/**
|
|
44169
|
+
* 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.
|
|
44170
|
+
* @summary Clear all MySQL account privileges
|
|
44171
|
+
* @param {SharedApiResetAccountPrivilegesRequest} requestParameters Request parameters.
|
|
44172
|
+
* @param {*} [options] Override http request option.
|
|
44173
|
+
* @throws {RequiredError}
|
|
44174
|
+
* @memberof SharedApi
|
|
44175
|
+
*/
|
|
44176
|
+
public resetAccountPrivileges(requestParameters: SharedApiResetAccountPrivilegesRequest, options?: RawAxiosRequestConfig) {
|
|
44177
|
+
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));
|
|
44178
|
+
}
|
|
44179
|
+
|
|
43828
44180
|
/**
|
|
43829
44181
|
*
|
|
43830
44182
|
* @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}
|
|
@@ -763,6 +763,7 @@ export * from './object-privilege-object-list';
|
|
|
763
763
|
export * from './object-privilege-prerequisite-check';
|
|
764
764
|
export * from './object-privilege-prerequisite-status';
|
|
765
765
|
export * from './object-privilege-qualifier';
|
|
766
|
+
export * from './object-privilege-reset-step';
|
|
766
767
|
export * from './object-privilege-snapshot';
|
|
767
768
|
export * from './object-privilege-spec';
|
|
768
769
|
export * from './object-privilege-subject';
|
|
@@ -854,6 +855,7 @@ export * from './persistent-volume-claim-list';
|
|
|
854
855
|
export * from './pg-create-extension-opt';
|
|
855
856
|
export * from './pg-extension';
|
|
856
857
|
export * from './pg-extension-available-database-schema';
|
|
858
|
+
export * from './placement-scope';
|
|
857
859
|
export * from './platform-component';
|
|
858
860
|
export * from './platform-component-details';
|
|
859
861
|
export * from './platform-component-pod';
|
|
@@ -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
|
|
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
|
-
*
|
|
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
|
+
* 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
|
+
* 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
|
+
|