kb-cloud-client-typescript 2.3.0-beta.0 → 2.3.0-beta.10
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/api.d.ts +1 -0
- package/dist/adminapi/api.d.ts.map +1 -1
- package/dist/adminapi/api.js +1 -0
- package/dist/adminapi/api.js.map +1 -1
- package/dist/adminapi/apis/clickhouse-api.d.ts +995 -0
- package/dist/adminapi/apis/clickhouse-api.d.ts.map +1 -0
- package/dist/adminapi/apis/clickhouse-api.js +1107 -0
- package/dist/adminapi/apis/clickhouse-api.js.map +1 -0
- package/dist/adminapi/apis/cluster-api.d.ts +36 -4
- package/dist/adminapi/apis/cluster-api.d.ts.map +1 -1
- package/dist/adminapi/apis/cluster-api.js +30 -10
- package/dist/adminapi/apis/cluster-api.js.map +1 -1
- package/dist/adminapi/apis/load-balancer-api.d.ts +175 -0
- package/dist/adminapi/apis/load-balancer-api.d.ts.map +1 -1
- package/dist/adminapi/apis/load-balancer-api.js +213 -0
- package/dist/adminapi/apis/load-balancer-api.js.map +1 -1
- package/dist/adminapi/apis/shared-api.d.ts +989 -10
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +1121 -58
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- package/dist/adminapi/models/ck-account-type.d.ts +23 -0
- package/dist/adminapi/models/ck-account-type.d.ts.map +1 -0
- package/dist/adminapi/models/ck-account-type.js +27 -0
- package/dist/adminapi/models/ck-account-type.js.map +1 -0
- package/dist/adminapi/models/ck-account.d.ts +50 -0
- package/dist/adminapi/models/ck-account.d.ts.map +1 -0
- package/dist/adminapi/models/ck-account.js +16 -0
- package/dist/adminapi/models/ck-account.js.map +1 -0
- package/dist/adminapi/models/cluster-list-item.d.ts +20 -0
- package/dist/adminapi/models/cluster-list-item.d.ts.map +1 -1
- package/dist/adminapi/models/cluster-metrics.d.ts +4 -2
- package/dist/adminapi/models/cluster-metrics.d.ts.map +1 -1
- package/dist/adminapi/models/create-clickhouse-account-request.d.ts +37 -0
- package/dist/adminapi/models/create-clickhouse-account-request.d.ts.map +1 -0
- package/dist/adminapi/models/create-clickhouse-account-request.js +16 -0
- package/dist/adminapi/models/create-clickhouse-account-request.js.map +1 -0
- package/dist/adminapi/models/dms-ob-parameter.d.ts +4 -2
- package/dist/adminapi/models/dms-ob-parameter.d.ts.map +1 -1
- package/dist/adminapi/models/engine-mapping.d.ts +7 -0
- package/dist/adminapi/models/engine-mapping.d.ts.map +1 -1
- package/dist/adminapi/models/get-clickhouse-role-grants200-response-inner.d.ts +49 -0
- package/dist/adminapi/models/get-clickhouse-role-grants200-response-inner.d.ts.map +1 -0
- package/dist/adminapi/models/get-clickhouse-role-grants200-response-inner.js +16 -0
- package/dist/adminapi/models/get-clickhouse-role-grants200-response-inner.js.map +1 -0
- package/dist/adminapi/models/index.d.ts +15 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +15 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/list-clickhouse-account-roles200-response-privileges-inner.d.ts +31 -0
- package/dist/adminapi/models/list-clickhouse-account-roles200-response-privileges-inner.d.ts.map +1 -0
- package/dist/adminapi/models/list-clickhouse-account-roles200-response-privileges-inner.js +16 -0
- package/dist/adminapi/models/list-clickhouse-account-roles200-response-privileges-inner.js.map +1 -0
- package/dist/adminapi/models/list-clickhouse-account-roles200-response.d.ts +32 -0
- package/dist/adminapi/models/list-clickhouse-account-roles200-response.d.ts.map +1 -0
- package/dist/adminapi/models/list-clickhouse-account-roles200-response.js +16 -0
- package/dist/adminapi/models/list-clickhouse-account-roles200-response.js.map +1 -0
- package/dist/adminapi/models/load-balancer-annotations.d.ts +35 -0
- package/dist/adminapi/models/load-balancer-annotations.d.ts.map +1 -0
- package/dist/adminapi/models/load-balancer-annotations.js +16 -0
- package/dist/adminapi/models/load-balancer-annotations.js.map +1 -0
- package/dist/adminapi/models/load-balancer-config-update.d.ts +26 -0
- package/dist/adminapi/models/load-balancer-config-update.d.ts.map +1 -0
- package/dist/adminapi/models/load-balancer-config-update.js +16 -0
- package/dist/adminapi/models/load-balancer-config-update.js.map +1 -0
- package/dist/adminapi/models/load-balancer-config.d.ts +32 -0
- package/dist/adminapi/models/load-balancer-config.d.ts.map +1 -0
- package/dist/adminapi/models/load-balancer-config.js +16 -0
- package/dist/adminapi/models/load-balancer-config.js.map +1 -0
- package/dist/adminapi/models/provision-config.d.ts +13 -0
- package/dist/adminapi/models/provision-config.d.ts.map +1 -1
- package/dist/adminapi/models/replication-check-option.d.ts +25 -0
- package/dist/adminapi/models/replication-check-option.d.ts.map +1 -0
- package/dist/adminapi/models/replication-check-option.js +16 -0
- package/dist/adminapi/models/replication-check-option.js.map +1 -0
- package/dist/adminapi/models/revoke-clickhouse-role-privileges-request-privileges-inner.d.ts +31 -0
- package/dist/adminapi/models/revoke-clickhouse-role-privileges-request-privileges-inner.d.ts.map +1 -0
- package/dist/adminapi/models/revoke-clickhouse-role-privileges-request-privileges-inner.js +16 -0
- package/dist/adminapi/models/revoke-clickhouse-role-privileges-request-privileges-inner.js.map +1 -0
- package/dist/adminapi/models/revoke-clickhouse-role-privileges-request.d.ts +26 -0
- package/dist/adminapi/models/revoke-clickhouse-role-privileges-request.d.ts.map +1 -0
- package/dist/adminapi/models/revoke-clickhouse-role-privileges-request.js +16 -0
- package/dist/adminapi/models/revoke-clickhouse-role-privileges-request.js.map +1 -0
- package/dist/adminapi/models/scheduling-config.d.ts +14 -0
- package/dist/adminapi/models/scheduling-config.d.ts.map +1 -1
- package/dist/adminapi/models/system-component-scheduler-policy.d.ts +22 -0
- package/dist/adminapi/models/system-component-scheduler-policy.d.ts.map +1 -0
- package/dist/adminapi/models/system-component-scheduler-policy.js +26 -0
- package/dist/adminapi/models/system-component-scheduler-policy.js.map +1 -0
- package/dist/adminapi/models/update-clickhouse-account-password-request.d.ts +25 -0
- package/dist/adminapi/models/update-clickhouse-account-password-request.d.ts.map +1 -0
- package/dist/adminapi/models/update-clickhouse-account-password-request.js +16 -0
- package/dist/adminapi/models/update-clickhouse-account-password-request.js.map +1 -0
- package/dist/adminapi/models/update-clickhouse-account-roles-request.d.ts +25 -0
- package/dist/adminapi/models/update-clickhouse-account-roles-request.d.ts.map +1 -0
- package/dist/adminapi/models/update-clickhouse-account-roles-request.js +16 -0
- package/dist/adminapi/models/update-clickhouse-account-roles-request.js.map +1 -0
- package/dist/internalapi/apis/cluster-api.d.ts +18 -2
- package/dist/internalapi/apis/cluster-api.d.ts.map +1 -1
- package/dist/internalapi/apis/cluster-api.js +15 -5
- package/dist/internalapi/apis/cluster-api.js.map +1 -1
- package/dist/internalapi/models/cluster-list-item.d.ts +20 -0
- package/dist/internalapi/models/cluster-list-item.d.ts.map +1 -1
- package/dist/internalapi/models/index.d.ts +1 -0
- package/dist/internalapi/models/index.d.ts.map +1 -1
- package/dist/internalapi/models/index.js +1 -0
- package/dist/internalapi/models/index.js.map +1 -1
- package/dist/internalapi/models/tag.d.ts +37 -0
- package/dist/internalapi/models/tag.d.ts.map +1 -0
- package/dist/internalapi/models/tag.js +16 -0
- package/dist/internalapi/models/tag.js.map +1 -0
- package/dist/openapi/api.d.ts +1 -0
- package/dist/openapi/api.d.ts.map +1 -1
- package/dist/openapi/api.js +1 -0
- package/dist/openapi/api.js.map +1 -1
- package/dist/openapi/apis/clickhouse-api.d.ts +995 -0
- package/dist/openapi/apis/clickhouse-api.d.ts.map +1 -0
- package/dist/openapi/apis/clickhouse-api.js +1107 -0
- package/dist/openapi/apis/clickhouse-api.js.map +1 -0
- package/dist/openapi/apis/cluster-api.d.ts +18 -2
- package/dist/openapi/apis/cluster-api.d.ts.map +1 -1
- package/dist/openapi/apis/cluster-api.js +15 -5
- package/dist/openapi/apis/cluster-api.js.map +1 -1
- package/dist/openapi/apis/shared-api.d.ts +966 -3
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +1118 -65
- package/dist/openapi/apis/shared-api.js.map +1 -1
- package/dist/openapi/models/ck-account-type.d.ts +23 -0
- package/dist/openapi/models/ck-account-type.d.ts.map +1 -0
- package/dist/openapi/models/ck-account-type.js +27 -0
- package/dist/openapi/models/ck-account-type.js.map +1 -0
- package/dist/openapi/models/ck-account.d.ts +50 -0
- package/dist/openapi/models/ck-account.d.ts.map +1 -0
- package/dist/openapi/models/ck-account.js +16 -0
- package/dist/openapi/models/ck-account.js.map +1 -0
- package/dist/openapi/models/cluster-list-item.d.ts +20 -0
- package/dist/openapi/models/cluster-list-item.d.ts.map +1 -1
- package/dist/openapi/models/cluster-metrics.d.ts +4 -2
- package/dist/openapi/models/cluster-metrics.d.ts.map +1 -1
- package/dist/openapi/models/create-clickhouse-account-request.d.ts +37 -0
- package/dist/openapi/models/create-clickhouse-account-request.d.ts.map +1 -0
- package/dist/openapi/models/create-clickhouse-account-request.js +16 -0
- package/dist/openapi/models/create-clickhouse-account-request.js.map +1 -0
- package/dist/openapi/models/data-check-create.d.ts +6 -0
- package/dist/openapi/models/data-check-create.d.ts.map +1 -1
- package/dist/openapi/models/dms-ob-parameter.d.ts +4 -2
- package/dist/openapi/models/dms-ob-parameter.d.ts.map +1 -1
- package/dist/openapi/models/engine-mapping.d.ts +7 -0
- package/dist/openapi/models/engine-mapping.d.ts.map +1 -1
- package/dist/openapi/models/get-clickhouse-role-grants200-response-inner.d.ts +49 -0
- package/dist/openapi/models/get-clickhouse-role-grants200-response-inner.d.ts.map +1 -0
- package/dist/openapi/models/get-clickhouse-role-grants200-response-inner.js +16 -0
- package/dist/openapi/models/get-clickhouse-role-grants200-response-inner.js.map +1 -0
- package/dist/openapi/models/index.d.ts +11 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +11 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/list-clickhouse-account-roles200-response-privileges-inner.d.ts +31 -0
- package/dist/openapi/models/list-clickhouse-account-roles200-response-privileges-inner.d.ts.map +1 -0
- package/dist/openapi/models/list-clickhouse-account-roles200-response-privileges-inner.js +16 -0
- package/dist/openapi/models/list-clickhouse-account-roles200-response-privileges-inner.js.map +1 -0
- package/dist/openapi/models/list-clickhouse-account-roles200-response.d.ts +32 -0
- package/dist/openapi/models/list-clickhouse-account-roles200-response.d.ts.map +1 -0
- package/dist/openapi/models/list-clickhouse-account-roles200-response.js +16 -0
- package/dist/openapi/models/list-clickhouse-account-roles200-response.js.map +1 -0
- package/dist/openapi/models/replication-check-option.d.ts +25 -0
- package/dist/openapi/models/replication-check-option.d.ts.map +1 -0
- package/dist/openapi/models/replication-check-option.js +16 -0
- package/dist/openapi/models/replication-check-option.js.map +1 -0
- package/dist/openapi/models/revoke-clickhouse-role-privileges-request-privileges-inner.d.ts +31 -0
- package/dist/openapi/models/revoke-clickhouse-role-privileges-request-privileges-inner.d.ts.map +1 -0
- package/dist/openapi/models/revoke-clickhouse-role-privileges-request-privileges-inner.js +16 -0
- package/dist/openapi/models/revoke-clickhouse-role-privileges-request-privileges-inner.js.map +1 -0
- package/dist/openapi/models/revoke-clickhouse-role-privileges-request.d.ts +26 -0
- package/dist/openapi/models/revoke-clickhouse-role-privileges-request.d.ts.map +1 -0
- package/dist/openapi/models/revoke-clickhouse-role-privileges-request.js +16 -0
- package/dist/openapi/models/revoke-clickhouse-role-privileges-request.js.map +1 -0
- package/dist/openapi/models/update-clickhouse-account-password-request.d.ts +25 -0
- package/dist/openapi/models/update-clickhouse-account-password-request.d.ts.map +1 -0
- package/dist/openapi/models/update-clickhouse-account-password-request.js +16 -0
- package/dist/openapi/models/update-clickhouse-account-password-request.js.map +1 -0
- package/dist/openapi/models/update-clickhouse-account-roles-request.d.ts +25 -0
- package/dist/openapi/models/update-clickhouse-account-roles-request.d.ts.map +1 -0
- package/dist/openapi/models/update-clickhouse-account-roles-request.js +16 -0
- package/dist/openapi/models/update-clickhouse-account-roles-request.js.map +1 -0
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +16 -0
- package/src/adminapi/api.ts +1 -0
- package/src/adminapi/apis/clickhouse-api.ts +1735 -0
- package/src/adminapi/apis/cluster-api.ts +62 -10
- package/src/adminapi/apis/load-balancer-api.ts +318 -0
- package/src/adminapi/apis/shared-api.ts +1971 -254
- package/src/adminapi/models/ck-account-type.ts +32 -0
- package/src/adminapi/models/ck-account.ts +59 -0
- package/src/adminapi/models/cluster-list-item.ts +24 -0
- package/src/adminapi/models/cluster-metrics.ts +2 -2
- package/src/adminapi/models/create-clickhouse-account-request.ts +42 -0
- package/src/adminapi/models/dms-ob-parameter.ts +2 -2
- package/src/adminapi/models/engine-mapping.ts +9 -0
- package/src/adminapi/models/get-clickhouse-role-grants200-response-inner.ts +54 -0
- package/src/adminapi/models/index.ts +15 -0
- package/src/adminapi/models/list-clickhouse-account-roles200-response-privileges-inner.ts +36 -0
- package/src/adminapi/models/list-clickhouse-account-roles200-response.ts +39 -0
- package/src/adminapi/models/load-balancer-annotations.ts +36 -0
- package/src/adminapi/models/load-balancer-config-update.ts +33 -0
- package/src/adminapi/models/load-balancer-config.ts +39 -0
- package/src/adminapi/models/provision-config.ts +15 -0
- package/src/adminapi/models/replication-check-option.ts +30 -0
- package/src/adminapi/models/revoke-clickhouse-role-privileges-request-privileges-inner.ts +36 -0
- package/src/adminapi/models/revoke-clickhouse-role-privileges-request.ts +33 -0
- package/src/adminapi/models/scheduling-config.ts +18 -0
- package/src/adminapi/models/system-component-scheduler-policy.ts +31 -0
- package/src/adminapi/models/update-clickhouse-account-password-request.ts +30 -0
- package/src/adminapi/models/update-clickhouse-account-roles-request.ts +30 -0
- package/src/adminapi.yaml +1109 -244
- package/src/internalapi/.openapi-generator/FILES +1 -0
- package/src/internalapi/apis/cluster-api.ts +31 -5
- package/src/internalapi/models/cluster-list-item.ts +24 -0
- package/src/internalapi/models/index.ts +1 -0
- package/src/internalapi/models/tag.ts +42 -0
- package/src/internalapi.yaml +107 -66
- package/src/openapi/.openapi-generator/FILES +12 -0
- package/src/openapi/api.ts +1 -0
- package/src/openapi/apis/clickhouse-api.ts +1735 -0
- package/src/openapi/apis/cluster-api.ts +31 -5
- package/src/openapi/apis/shared-api.ts +2251 -560
- package/src/openapi/models/ck-account-type.ts +32 -0
- package/src/openapi/models/ck-account.ts +59 -0
- package/src/openapi/models/cluster-list-item.ts +24 -0
- package/src/openapi/models/cluster-metrics.ts +2 -2
- package/src/openapi/models/create-clickhouse-account-request.ts +42 -0
- package/src/openapi/models/data-check-create.ts +6 -0
- package/src/openapi/models/dms-ob-parameter.ts +2 -2
- package/src/openapi/models/engine-mapping.ts +9 -0
- package/src/openapi/models/get-clickhouse-role-grants200-response-inner.ts +54 -0
- package/src/openapi/models/index.ts +11 -0
- package/src/openapi/models/list-clickhouse-account-roles200-response-privileges-inner.ts +36 -0
- package/src/openapi/models/list-clickhouse-account-roles200-response.ts +39 -0
- package/src/openapi/models/replication-check-option.ts +30 -0
- package/src/openapi/models/revoke-clickhouse-role-privileges-request-privileges-inner.ts +36 -0
- package/src/openapi/models/revoke-clickhouse-role-privileges-request.ts +33 -0
- package/src/openapi/models/update-clickhouse-account-password-request.ts +30 -0
- package/src/openapi/models/update-clickhouse-account-roles-request.ts +30 -0
- package/src/openapi.yaml +806 -84
|
@@ -790,6 +790,92 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
790
790
|
options: localVarRequestOptions,
|
|
791
791
|
};
|
|
792
792
|
},
|
|
793
|
+
/**
|
|
794
|
+
*
|
|
795
|
+
* @summary Create a ClickHouse account with optional roles
|
|
796
|
+
* @param {string} orgName
|
|
797
|
+
* @param {string} clusterName
|
|
798
|
+
* @param {CreateClickhouseAccountRequest} body
|
|
799
|
+
* @param {*} [options] Override http request option.
|
|
800
|
+
* @throws {RequiredError}
|
|
801
|
+
*/
|
|
802
|
+
createClickhouseAccount: async (orgName, clusterName, body, options = {}) => {
|
|
803
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
804
|
+
(0, common_1.assertParamExists)('createClickhouseAccount', 'orgName', orgName);
|
|
805
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
806
|
+
(0, common_1.assertParamExists)('createClickhouseAccount', 'clusterName', clusterName);
|
|
807
|
+
// verify required parameter 'body' is not null or undefined
|
|
808
|
+
(0, common_1.assertParamExists)('createClickhouseAccount', 'body', body);
|
|
809
|
+
const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts`
|
|
810
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
811
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
812
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
813
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
814
|
+
let baseOptions;
|
|
815
|
+
if (configuration) {
|
|
816
|
+
baseOptions = configuration.baseOptions;
|
|
817
|
+
}
|
|
818
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
819
|
+
const localVarHeaderParameter = {};
|
|
820
|
+
const localVarQueryParameter = {};
|
|
821
|
+
// authentication BearerToken required
|
|
822
|
+
// http bearer authentication required
|
|
823
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
824
|
+
// authentication DigestAuth required
|
|
825
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
826
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
827
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
828
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
829
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
830
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
831
|
+
return {
|
|
832
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
833
|
+
options: localVarRequestOptions,
|
|
834
|
+
};
|
|
835
|
+
},
|
|
836
|
+
/**
|
|
837
|
+
*
|
|
838
|
+
* @summary Create a ClickHouse role with privileges
|
|
839
|
+
* @param {string} orgName
|
|
840
|
+
* @param {string} clusterName
|
|
841
|
+
* @param {ListClickhouseAccountRoles200Response} body
|
|
842
|
+
* @param {*} [options] Override http request option.
|
|
843
|
+
* @throws {RequiredError}
|
|
844
|
+
*/
|
|
845
|
+
createClickhouseRole: async (orgName, clusterName, body, options = {}) => {
|
|
846
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
847
|
+
(0, common_1.assertParamExists)('createClickhouseRole', 'orgName', orgName);
|
|
848
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
849
|
+
(0, common_1.assertParamExists)('createClickhouseRole', 'clusterName', clusterName);
|
|
850
|
+
// verify required parameter 'body' is not null or undefined
|
|
851
|
+
(0, common_1.assertParamExists)('createClickhouseRole', 'body', body);
|
|
852
|
+
const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/roles`
|
|
853
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
854
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
855
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
856
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
857
|
+
let baseOptions;
|
|
858
|
+
if (configuration) {
|
|
859
|
+
baseOptions = configuration.baseOptions;
|
|
860
|
+
}
|
|
861
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
862
|
+
const localVarHeaderParameter = {};
|
|
863
|
+
const localVarQueryParameter = {};
|
|
864
|
+
// authentication BearerToken required
|
|
865
|
+
// http bearer authentication required
|
|
866
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
867
|
+
// authentication DigestAuth required
|
|
868
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
869
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
870
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
871
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
872
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
873
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
874
|
+
return {
|
|
875
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
876
|
+
options: localVarRequestOptions,
|
|
877
|
+
};
|
|
878
|
+
},
|
|
793
879
|
/**
|
|
794
880
|
*
|
|
795
881
|
* @summary Create new cluster
|
|
@@ -1813,6 +1899,90 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
1813
1899
|
options: localVarRequestOptions,
|
|
1814
1900
|
};
|
|
1815
1901
|
},
|
|
1902
|
+
/**
|
|
1903
|
+
*
|
|
1904
|
+
* @summary Delete a ClickHouse account
|
|
1905
|
+
* @param {string} orgName
|
|
1906
|
+
* @param {string} clusterName
|
|
1907
|
+
* @param {string} accountName
|
|
1908
|
+
* @param {*} [options] Override http request option.
|
|
1909
|
+
* @throws {RequiredError}
|
|
1910
|
+
*/
|
|
1911
|
+
deleteClickhouseAccount: async (orgName, clusterName, accountName, options = {}) => {
|
|
1912
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1913
|
+
(0, common_1.assertParamExists)('deleteClickhouseAccount', 'orgName', orgName);
|
|
1914
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1915
|
+
(0, common_1.assertParamExists)('deleteClickhouseAccount', 'clusterName', clusterName);
|
|
1916
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
1917
|
+
(0, common_1.assertParamExists)('deleteClickhouseAccount', 'accountName', accountName);
|
|
1918
|
+
const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
|
|
1919
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1920
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
1921
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
1922
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1923
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1924
|
+
let baseOptions;
|
|
1925
|
+
if (configuration) {
|
|
1926
|
+
baseOptions = configuration.baseOptions;
|
|
1927
|
+
}
|
|
1928
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1929
|
+
const localVarHeaderParameter = {};
|
|
1930
|
+
const localVarQueryParameter = {};
|
|
1931
|
+
// authentication BearerToken required
|
|
1932
|
+
// http bearer authentication required
|
|
1933
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1934
|
+
// authentication DigestAuth required
|
|
1935
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1936
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1937
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1938
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1939
|
+
return {
|
|
1940
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1941
|
+
options: localVarRequestOptions,
|
|
1942
|
+
};
|
|
1943
|
+
},
|
|
1944
|
+
/**
|
|
1945
|
+
*
|
|
1946
|
+
* @summary Delete a ClickHouse role
|
|
1947
|
+
* @param {string} orgName
|
|
1948
|
+
* @param {string} clusterName
|
|
1949
|
+
* @param {string} roleName
|
|
1950
|
+
* @param {*} [options] Override http request option.
|
|
1951
|
+
* @throws {RequiredError}
|
|
1952
|
+
*/
|
|
1953
|
+
deleteClickhouseRole: async (orgName, clusterName, roleName, options = {}) => {
|
|
1954
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1955
|
+
(0, common_1.assertParamExists)('deleteClickhouseRole', 'orgName', orgName);
|
|
1956
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1957
|
+
(0, common_1.assertParamExists)('deleteClickhouseRole', 'clusterName', clusterName);
|
|
1958
|
+
// verify required parameter 'roleName' is not null or undefined
|
|
1959
|
+
(0, common_1.assertParamExists)('deleteClickhouseRole', 'roleName', roleName);
|
|
1960
|
+
const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
|
|
1961
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1962
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
1963
|
+
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
1964
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1965
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1966
|
+
let baseOptions;
|
|
1967
|
+
if (configuration) {
|
|
1968
|
+
baseOptions = configuration.baseOptions;
|
|
1969
|
+
}
|
|
1970
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1971
|
+
const localVarHeaderParameter = {};
|
|
1972
|
+
const localVarQueryParameter = {};
|
|
1973
|
+
// authentication BearerToken required
|
|
1974
|
+
// http bearer authentication required
|
|
1975
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1976
|
+
// authentication DigestAuth required
|
|
1977
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1978
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1979
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1980
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1981
|
+
return {
|
|
1982
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1983
|
+
options: localVarRequestOptions,
|
|
1984
|
+
};
|
|
1985
|
+
},
|
|
1816
1986
|
/**
|
|
1817
1987
|
*
|
|
1818
1988
|
* @summary Delete cluster
|
|
@@ -3846,6 +4016,48 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
3846
4016
|
options: localVarRequestOptions,
|
|
3847
4017
|
};
|
|
3848
4018
|
},
|
|
4019
|
+
/**
|
|
4020
|
+
*
|
|
4021
|
+
* @summary Get the grants (privileges) of a ClickHouse role
|
|
4022
|
+
* @param {string} orgName
|
|
4023
|
+
* @param {string} clusterName
|
|
4024
|
+
* @param {string} roleName
|
|
4025
|
+
* @param {*} [options] Override http request option.
|
|
4026
|
+
* @throws {RequiredError}
|
|
4027
|
+
*/
|
|
4028
|
+
getClickhouseRoleGrants: async (orgName, clusterName, roleName, options = {}) => {
|
|
4029
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
4030
|
+
(0, common_1.assertParamExists)('getClickhouseRoleGrants', 'orgName', orgName);
|
|
4031
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
4032
|
+
(0, common_1.assertParamExists)('getClickhouseRoleGrants', 'clusterName', clusterName);
|
|
4033
|
+
// verify required parameter 'roleName' is not null or undefined
|
|
4034
|
+
(0, common_1.assertParamExists)('getClickhouseRoleGrants', 'roleName', roleName);
|
|
4035
|
+
const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
|
|
4036
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
4037
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
4038
|
+
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
4039
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4040
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4041
|
+
let baseOptions;
|
|
4042
|
+
if (configuration) {
|
|
4043
|
+
baseOptions = configuration.baseOptions;
|
|
4044
|
+
}
|
|
4045
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4046
|
+
const localVarHeaderParameter = {};
|
|
4047
|
+
const localVarQueryParameter = {};
|
|
4048
|
+
// authentication BearerToken required
|
|
4049
|
+
// http bearer authentication required
|
|
4050
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4051
|
+
// authentication DigestAuth required
|
|
4052
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
4053
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4054
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4055
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4056
|
+
return {
|
|
4057
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4058
|
+
options: localVarRequestOptions,
|
|
4059
|
+
};
|
|
4060
|
+
},
|
|
3849
4061
|
/**
|
|
3850
4062
|
*
|
|
3851
4063
|
* @summary Get cluster details
|
|
@@ -6155,6 +6367,53 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
6155
6367
|
options: localVarRequestOptions,
|
|
6156
6368
|
};
|
|
6157
6369
|
},
|
|
6370
|
+
/**
|
|
6371
|
+
*
|
|
6372
|
+
* @summary Grant privileges to a ClickHouse role
|
|
6373
|
+
* @param {string} orgName
|
|
6374
|
+
* @param {string} clusterName
|
|
6375
|
+
* @param {string} roleName
|
|
6376
|
+
* @param {ListClickhouseAccountRoles200ResponsePrivilegesInner} body
|
|
6377
|
+
* @param {*} [options] Override http request option.
|
|
6378
|
+
* @throws {RequiredError}
|
|
6379
|
+
*/
|
|
6380
|
+
grantClickhouseRolePrivileges: async (orgName, clusterName, roleName, body, options = {}) => {
|
|
6381
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
6382
|
+
(0, common_1.assertParamExists)('grantClickhouseRolePrivileges', 'orgName', orgName);
|
|
6383
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
6384
|
+
(0, common_1.assertParamExists)('grantClickhouseRolePrivileges', 'clusterName', clusterName);
|
|
6385
|
+
// verify required parameter 'roleName' is not null or undefined
|
|
6386
|
+
(0, common_1.assertParamExists)('grantClickhouseRolePrivileges', 'roleName', roleName);
|
|
6387
|
+
// verify required parameter 'body' is not null or undefined
|
|
6388
|
+
(0, common_1.assertParamExists)('grantClickhouseRolePrivileges', 'body', body);
|
|
6389
|
+
const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}/privileges`
|
|
6390
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
6391
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
6392
|
+
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
6393
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6394
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6395
|
+
let baseOptions;
|
|
6396
|
+
if (configuration) {
|
|
6397
|
+
baseOptions = configuration.baseOptions;
|
|
6398
|
+
}
|
|
6399
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6400
|
+
const localVarHeaderParameter = {};
|
|
6401
|
+
const localVarQueryParameter = {};
|
|
6402
|
+
// authentication BearerToken required
|
|
6403
|
+
// http bearer authentication required
|
|
6404
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6405
|
+
// authentication DigestAuth required
|
|
6406
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
6407
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6408
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6409
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6410
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6411
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
6412
|
+
return {
|
|
6413
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6414
|
+
options: localVarRequestOptions,
|
|
6415
|
+
};
|
|
6416
|
+
},
|
|
6158
6417
|
/**
|
|
6159
6418
|
*
|
|
6160
6419
|
* @summary Horizontal scale cluster
|
|
@@ -6342,16 +6601,166 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
6342
6601
|
* @param {*} [options] Override http request option.
|
|
6343
6602
|
* @throws {RequiredError}
|
|
6344
6603
|
*/
|
|
6345
|
-
listAvailableClustersForRelation: async (orgName, clusterName, targetType, options = {}) => {
|
|
6346
|
-
// verify required parameter 'orgName' is not null or undefined
|
|
6347
|
-
(0, common_1.assertParamExists)('listAvailableClustersForRelation', 'orgName', orgName);
|
|
6348
|
-
// verify required parameter 'clusterName' is not null or undefined
|
|
6349
|
-
(0, common_1.assertParamExists)('listAvailableClustersForRelation', 'clusterName', clusterName);
|
|
6350
|
-
// verify required parameter 'targetType' is not null or undefined
|
|
6351
|
-
(0, common_1.assertParamExists)('listAvailableClustersForRelation', 'targetType', targetType);
|
|
6352
|
-
const localVarPath = `/admin/v1/organizations/{orgName}/cluster/{clusterName}/available-relations`
|
|
6353
|
-
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
6354
|
-
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
6604
|
+
listAvailableClustersForRelation: async (orgName, clusterName, targetType, options = {}) => {
|
|
6605
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
6606
|
+
(0, common_1.assertParamExists)('listAvailableClustersForRelation', 'orgName', orgName);
|
|
6607
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
6608
|
+
(0, common_1.assertParamExists)('listAvailableClustersForRelation', 'clusterName', clusterName);
|
|
6609
|
+
// verify required parameter 'targetType' is not null or undefined
|
|
6610
|
+
(0, common_1.assertParamExists)('listAvailableClustersForRelation', 'targetType', targetType);
|
|
6611
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/cluster/{clusterName}/available-relations`
|
|
6612
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
6613
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
6614
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6615
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6616
|
+
let baseOptions;
|
|
6617
|
+
if (configuration) {
|
|
6618
|
+
baseOptions = configuration.baseOptions;
|
|
6619
|
+
}
|
|
6620
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6621
|
+
const localVarHeaderParameter = {};
|
|
6622
|
+
const localVarQueryParameter = {};
|
|
6623
|
+
// authentication BearerToken required
|
|
6624
|
+
// http bearer authentication required
|
|
6625
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6626
|
+
// authentication DigestAuth required
|
|
6627
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
6628
|
+
if (targetType !== undefined) {
|
|
6629
|
+
localVarQueryParameter['targetType'] = targetType;
|
|
6630
|
+
}
|
|
6631
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6632
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6633
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6634
|
+
return {
|
|
6635
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6636
|
+
options: localVarRequestOptions,
|
|
6637
|
+
};
|
|
6638
|
+
},
|
|
6639
|
+
/**
|
|
6640
|
+
*
|
|
6641
|
+
* @summary List available model
|
|
6642
|
+
* @param {*} [options] Override http request option.
|
|
6643
|
+
* @throws {RequiredError}
|
|
6644
|
+
*/
|
|
6645
|
+
listAvailableModel: async (options = {}) => {
|
|
6646
|
+
const localVarPath = `/admin/v1/llm/models`;
|
|
6647
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6648
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6649
|
+
let baseOptions;
|
|
6650
|
+
if (configuration) {
|
|
6651
|
+
baseOptions = configuration.baseOptions;
|
|
6652
|
+
}
|
|
6653
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6654
|
+
const localVarHeaderParameter = {};
|
|
6655
|
+
const localVarQueryParameter = {};
|
|
6656
|
+
// authentication BearerToken required
|
|
6657
|
+
// http bearer authentication required
|
|
6658
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6659
|
+
// authentication DigestAuth required
|
|
6660
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
6661
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6662
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6663
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6664
|
+
return {
|
|
6665
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6666
|
+
options: localVarRequestOptions,
|
|
6667
|
+
};
|
|
6668
|
+
},
|
|
6669
|
+
/**
|
|
6670
|
+
*
|
|
6671
|
+
* @summary List available nodes for rebuilding instance
|
|
6672
|
+
* @param {string} orgName name of the Org
|
|
6673
|
+
* @param {string} clusterName name of the KubeBlocks cluster
|
|
6674
|
+
* @param {string} name name of the instance to be rebuilt
|
|
6675
|
+
* @param {*} [options] Override http request option.
|
|
6676
|
+
* @throws {RequiredError}
|
|
6677
|
+
*/
|
|
6678
|
+
listAvailableNodes: async (orgName, clusterName, name, options = {}) => {
|
|
6679
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
6680
|
+
(0, common_1.assertParamExists)('listAvailableNodes', 'orgName', orgName);
|
|
6681
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
6682
|
+
(0, common_1.assertParamExists)('listAvailableNodes', 'clusterName', clusterName);
|
|
6683
|
+
// verify required parameter 'name' is not null or undefined
|
|
6684
|
+
(0, common_1.assertParamExists)('listAvailableNodes', 'name', name);
|
|
6685
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/rebuildInstance/availableNodes`
|
|
6686
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
6687
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
6688
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6689
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6690
|
+
let baseOptions;
|
|
6691
|
+
if (configuration) {
|
|
6692
|
+
baseOptions = configuration.baseOptions;
|
|
6693
|
+
}
|
|
6694
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6695
|
+
const localVarHeaderParameter = {};
|
|
6696
|
+
const localVarQueryParameter = {};
|
|
6697
|
+
// authentication BearerToken required
|
|
6698
|
+
// http bearer authentication required
|
|
6699
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6700
|
+
// authentication DigestAuth required
|
|
6701
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
6702
|
+
if (name !== undefined) {
|
|
6703
|
+
localVarQueryParameter['name'] = name;
|
|
6704
|
+
}
|
|
6705
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6706
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6707
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6708
|
+
return {
|
|
6709
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6710
|
+
options: localVarRequestOptions,
|
|
6711
|
+
};
|
|
6712
|
+
},
|
|
6713
|
+
/**
|
|
6714
|
+
*
|
|
6715
|
+
* @summary List backup schedules
|
|
6716
|
+
* @param {string} orgName name of the org
|
|
6717
|
+
* @param {string} clusterName name of the cluster
|
|
6718
|
+
* @param {string} [backupMethod] filter by backup method
|
|
6719
|
+
* @param {*} [options] Override http request option.
|
|
6720
|
+
* @throws {RequiredError}
|
|
6721
|
+
*/
|
|
6722
|
+
listBackupSchedules: async (orgName, clusterName, backupMethod, options = {}) => {
|
|
6723
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
6724
|
+
(0, common_1.assertParamExists)('listBackupSchedules', 'orgName', orgName);
|
|
6725
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
6726
|
+
(0, common_1.assertParamExists)('listBackupSchedules', 'clusterName', clusterName);
|
|
6727
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/backupSchedules`
|
|
6728
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
6729
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
6730
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6731
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6732
|
+
let baseOptions;
|
|
6733
|
+
if (configuration) {
|
|
6734
|
+
baseOptions = configuration.baseOptions;
|
|
6735
|
+
}
|
|
6736
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6737
|
+
const localVarHeaderParameter = {};
|
|
6738
|
+
const localVarQueryParameter = {};
|
|
6739
|
+
// authentication BearerToken required
|
|
6740
|
+
// http bearer authentication required
|
|
6741
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6742
|
+
// authentication DigestAuth required
|
|
6743
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
6744
|
+
if (backupMethod !== undefined) {
|
|
6745
|
+
localVarQueryParameter['backupMethod'] = backupMethod;
|
|
6746
|
+
}
|
|
6747
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6748
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6749
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6750
|
+
return {
|
|
6751
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6752
|
+
options: localVarRequestOptions,
|
|
6753
|
+
};
|
|
6754
|
+
},
|
|
6755
|
+
/**
|
|
6756
|
+
*
|
|
6757
|
+
* @summary List classes
|
|
6758
|
+
* @param {string} [engineName] filter by engine name
|
|
6759
|
+
* @param {*} [options] Override http request option.
|
|
6760
|
+
* @throws {RequiredError}
|
|
6761
|
+
*/
|
|
6762
|
+
listClasses: async (engineName, options = {}) => {
|
|
6763
|
+
const localVarPath = `/admin/v1/classes`;
|
|
6355
6764
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6356
6765
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6357
6766
|
let baseOptions;
|
|
@@ -6366,8 +6775,8 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
6366
6775
|
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6367
6776
|
// authentication DigestAuth required
|
|
6368
6777
|
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
6369
|
-
if (
|
|
6370
|
-
localVarQueryParameter['
|
|
6778
|
+
if (engineName !== undefined) {
|
|
6779
|
+
localVarQueryParameter['engineName'] = engineName;
|
|
6371
6780
|
}
|
|
6372
6781
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6373
6782
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -6379,12 +6788,24 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
6379
6788
|
},
|
|
6380
6789
|
/**
|
|
6381
6790
|
*
|
|
6382
|
-
* @summary List
|
|
6791
|
+
* @summary List the roles granted to a ClickHouse account
|
|
6792
|
+
* @param {string} orgName
|
|
6793
|
+
* @param {string} clusterName
|
|
6794
|
+
* @param {string} accountName
|
|
6383
6795
|
* @param {*} [options] Override http request option.
|
|
6384
6796
|
* @throws {RequiredError}
|
|
6385
6797
|
*/
|
|
6386
|
-
|
|
6387
|
-
|
|
6798
|
+
listClickhouseAccountRoles: async (orgName, clusterName, accountName, options = {}) => {
|
|
6799
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
6800
|
+
(0, common_1.assertParamExists)('listClickhouseAccountRoles', 'orgName', orgName);
|
|
6801
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
6802
|
+
(0, common_1.assertParamExists)('listClickhouseAccountRoles', 'clusterName', clusterName);
|
|
6803
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
6804
|
+
(0, common_1.assertParamExists)('listClickhouseAccountRoles', 'accountName', accountName);
|
|
6805
|
+
const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/roles`
|
|
6806
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
6807
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
6808
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
6388
6809
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6389
6810
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6390
6811
|
let baseOptions;
|
|
@@ -6409,21 +6830,18 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
6409
6830
|
},
|
|
6410
6831
|
/**
|
|
6411
6832
|
*
|
|
6412
|
-
* @summary List
|
|
6413
|
-
* @param {string} orgName
|
|
6414
|
-
* @param {string} clusterName
|
|
6415
|
-
* @param {string} name name of the instance to be rebuilt
|
|
6833
|
+
* @summary List ClickHouse accounts
|
|
6834
|
+
* @param {string} orgName
|
|
6835
|
+
* @param {string} clusterName
|
|
6416
6836
|
* @param {*} [options] Override http request option.
|
|
6417
6837
|
* @throws {RequiredError}
|
|
6418
6838
|
*/
|
|
6419
|
-
|
|
6839
|
+
listClickhouseAccounts: async (orgName, clusterName, options = {}) => {
|
|
6420
6840
|
// verify required parameter 'orgName' is not null or undefined
|
|
6421
|
-
(0, common_1.assertParamExists)('
|
|
6841
|
+
(0, common_1.assertParamExists)('listClickhouseAccounts', 'orgName', orgName);
|
|
6422
6842
|
// verify required parameter 'clusterName' is not null or undefined
|
|
6423
|
-
(0, common_1.assertParamExists)('
|
|
6424
|
-
|
|
6425
|
-
(0, common_1.assertParamExists)('listAvailableNodes', 'name', name);
|
|
6426
|
-
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/rebuildInstance/availableNodes`
|
|
6843
|
+
(0, common_1.assertParamExists)('listClickhouseAccounts', 'clusterName', clusterName);
|
|
6844
|
+
const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts`
|
|
6427
6845
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
6428
6846
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
6429
6847
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -6440,9 +6858,6 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
6440
6858
|
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6441
6859
|
// authentication DigestAuth required
|
|
6442
6860
|
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
6443
|
-
if (name !== undefined) {
|
|
6444
|
-
localVarQueryParameter['name'] = name;
|
|
6445
|
-
}
|
|
6446
6861
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6447
6862
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6448
6863
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -6453,19 +6868,18 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
6453
6868
|
},
|
|
6454
6869
|
/**
|
|
6455
6870
|
*
|
|
6456
|
-
* @summary List
|
|
6457
|
-
* @param {string} orgName
|
|
6458
|
-
* @param {string} clusterName
|
|
6459
|
-
* @param {string} [backupMethod] filter by backup method
|
|
6871
|
+
* @summary List privileges supported by the ClickHouse server
|
|
6872
|
+
* @param {string} orgName
|
|
6873
|
+
* @param {string} clusterName
|
|
6460
6874
|
* @param {*} [options] Override http request option.
|
|
6461
6875
|
* @throws {RequiredError}
|
|
6462
6876
|
*/
|
|
6463
|
-
|
|
6877
|
+
listClickhousePrivileges: async (orgName, clusterName, options = {}) => {
|
|
6464
6878
|
// verify required parameter 'orgName' is not null or undefined
|
|
6465
|
-
(0, common_1.assertParamExists)('
|
|
6879
|
+
(0, common_1.assertParamExists)('listClickhousePrivileges', 'orgName', orgName);
|
|
6466
6880
|
// verify required parameter 'clusterName' is not null or undefined
|
|
6467
|
-
(0, common_1.assertParamExists)('
|
|
6468
|
-
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/
|
|
6881
|
+
(0, common_1.assertParamExists)('listClickhousePrivileges', 'clusterName', clusterName);
|
|
6882
|
+
const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/privileges`
|
|
6469
6883
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
6470
6884
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
6471
6885
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -6482,9 +6896,6 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
6482
6896
|
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6483
6897
|
// authentication DigestAuth required
|
|
6484
6898
|
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
6485
|
-
if (backupMethod !== undefined) {
|
|
6486
|
-
localVarQueryParameter['backupMethod'] = backupMethod;
|
|
6487
|
-
}
|
|
6488
6899
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6489
6900
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6490
6901
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -6495,13 +6906,21 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
6495
6906
|
},
|
|
6496
6907
|
/**
|
|
6497
6908
|
*
|
|
6498
|
-
* @summary List
|
|
6499
|
-
* @param {string}
|
|
6909
|
+
* @summary List ClickHouse roles
|
|
6910
|
+
* @param {string} orgName
|
|
6911
|
+
* @param {string} clusterName
|
|
6912
|
+
* @param {boolean} [forCreateUser] Whether to include built-in privilege roles for creating an account.
|
|
6500
6913
|
* @param {*} [options] Override http request option.
|
|
6501
6914
|
* @throws {RequiredError}
|
|
6502
6915
|
*/
|
|
6503
|
-
|
|
6504
|
-
|
|
6916
|
+
listClickhouseRoles: async (orgName, clusterName, forCreateUser, options = {}) => {
|
|
6917
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
6918
|
+
(0, common_1.assertParamExists)('listClickhouseRoles', 'orgName', orgName);
|
|
6919
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
6920
|
+
(0, common_1.assertParamExists)('listClickhouseRoles', 'clusterName', clusterName);
|
|
6921
|
+
const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/roles`
|
|
6922
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
6923
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
6505
6924
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6506
6925
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6507
6926
|
let baseOptions;
|
|
@@ -6516,8 +6935,8 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
6516
6935
|
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6517
6936
|
// authentication DigestAuth required
|
|
6518
6937
|
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
6519
|
-
if (
|
|
6520
|
-
localVarQueryParameter['
|
|
6938
|
+
if (forCreateUser !== undefined) {
|
|
6939
|
+
localVarQueryParameter['forCreateUser'] = forCreateUser;
|
|
6521
6940
|
}
|
|
6522
6941
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6523
6942
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -6540,10 +6959,12 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
6540
6959
|
* @param {Array<string>} [tagValues] A list of tags\' values corresponding to the tagKeys
|
|
6541
6960
|
* @param {number} [licenseId] license id
|
|
6542
6961
|
* @param {string} [refClusterName] list clusters referenced by this cluster
|
|
6962
|
+
* @param {string} [endpointHost] Case-insensitive substring to match against the host part of cached cluster endpoints
|
|
6963
|
+
* @param {boolean} [includeEndpoints] Whether to include cached user-visible endpoints in each cluster item
|
|
6543
6964
|
* @param {*} [options] Override http request option.
|
|
6544
6965
|
* @throws {RequiredError}
|
|
6545
6966
|
*/
|
|
6546
|
-
listCluster: async (orgName, clusterDefinition, environmentName, environmentType, tagKey, tagValue, tagKeys, tagValues, licenseId, refClusterName, options = {}) => {
|
|
6967
|
+
listCluster: async (orgName, clusterDefinition, environmentName, environmentType, tagKey, tagValue, tagKeys, tagValues, licenseId, refClusterName, endpointHost, includeEndpoints, options = {}) => {
|
|
6547
6968
|
// verify required parameter 'orgName' is not null or undefined
|
|
6548
6969
|
(0, common_1.assertParamExists)('listCluster', 'orgName', orgName);
|
|
6549
6970
|
const localVarPath = `/admin/v1/organizations/{orgName}/clusters`
|
|
@@ -6589,6 +7010,12 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
6589
7010
|
if (refClusterName !== undefined) {
|
|
6590
7011
|
localVarQueryParameter['refClusterName'] = refClusterName;
|
|
6591
7012
|
}
|
|
7013
|
+
if (endpointHost !== undefined) {
|
|
7014
|
+
localVarQueryParameter['endpointHost'] = endpointHost;
|
|
7015
|
+
}
|
|
7016
|
+
if (includeEndpoints !== undefined) {
|
|
7017
|
+
localVarQueryParameter['includeEndpoints'] = includeEndpoints;
|
|
7018
|
+
}
|
|
6592
7019
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6593
7020
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6594
7021
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -6641,10 +7068,12 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
6641
7068
|
* @param {string} [orgName] Organization name, if envName is provided, orgName is required
|
|
6642
7069
|
* @param {string} [envName] Environment name
|
|
6643
7070
|
* @param {boolean} [withStatic] Whether to include static clusters
|
|
7071
|
+
* @param {string} [endpointHost] Case-insensitive substring to match against the host part of cached cluster endpoints
|
|
7072
|
+
* @param {boolean} [includeEndpoints] Whether to include cached user-visible endpoints in each cluster item
|
|
6644
7073
|
* @param {*} [options] Override http request option.
|
|
6645
7074
|
* @throws {RequiredError}
|
|
6646
7075
|
*/
|
|
6647
|
-
listClusters: async (orgName, envName, withStatic, options = {}) => {
|
|
7076
|
+
listClusters: async (orgName, envName, withStatic, endpointHost, includeEndpoints, options = {}) => {
|
|
6648
7077
|
const localVarPath = `/admin/v1/clusters`;
|
|
6649
7078
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6650
7079
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -6669,6 +7098,12 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
6669
7098
|
if (withStatic !== undefined) {
|
|
6670
7099
|
localVarQueryParameter['withStatic'] = withStatic;
|
|
6671
7100
|
}
|
|
7101
|
+
if (endpointHost !== undefined) {
|
|
7102
|
+
localVarQueryParameter['endpointHost'] = endpointHost;
|
|
7103
|
+
}
|
|
7104
|
+
if (includeEndpoints !== undefined) {
|
|
7105
|
+
localVarQueryParameter['includeEndpoints'] = includeEndpoints;
|
|
7106
|
+
}
|
|
6672
7107
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6673
7108
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6674
7109
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -11246,6 +11681,53 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
11246
11681
|
options: localVarRequestOptions,
|
|
11247
11682
|
};
|
|
11248
11683
|
},
|
|
11684
|
+
/**
|
|
11685
|
+
*
|
|
11686
|
+
* @summary Revoke privileges from a ClickHouse role
|
|
11687
|
+
* @param {string} orgName
|
|
11688
|
+
* @param {string} clusterName
|
|
11689
|
+
* @param {string} roleName
|
|
11690
|
+
* @param {RevokeClickhouseRolePrivilegesRequest} body
|
|
11691
|
+
* @param {*} [options] Override http request option.
|
|
11692
|
+
* @throws {RequiredError}
|
|
11693
|
+
*/
|
|
11694
|
+
revokeClickhouseRolePrivileges: async (orgName, clusterName, roleName, body, options = {}) => {
|
|
11695
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
11696
|
+
(0, common_1.assertParamExists)('revokeClickhouseRolePrivileges', 'orgName', orgName);
|
|
11697
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
11698
|
+
(0, common_1.assertParamExists)('revokeClickhouseRolePrivileges', 'clusterName', clusterName);
|
|
11699
|
+
// verify required parameter 'roleName' is not null or undefined
|
|
11700
|
+
(0, common_1.assertParamExists)('revokeClickhouseRolePrivileges', 'roleName', roleName);
|
|
11701
|
+
// verify required parameter 'body' is not null or undefined
|
|
11702
|
+
(0, common_1.assertParamExists)('revokeClickhouseRolePrivileges', 'body', body);
|
|
11703
|
+
const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}/privileges`
|
|
11704
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
11705
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
11706
|
+
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
11707
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11708
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11709
|
+
let baseOptions;
|
|
11710
|
+
if (configuration) {
|
|
11711
|
+
baseOptions = configuration.baseOptions;
|
|
11712
|
+
}
|
|
11713
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
11714
|
+
const localVarHeaderParameter = {};
|
|
11715
|
+
const localVarQueryParameter = {};
|
|
11716
|
+
// authentication BearerToken required
|
|
11717
|
+
// http bearer authentication required
|
|
11718
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
11719
|
+
// authentication DigestAuth required
|
|
11720
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
11721
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11722
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11723
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11724
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11725
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
11726
|
+
return {
|
|
11727
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11728
|
+
options: localVarRequestOptions,
|
|
11729
|
+
};
|
|
11730
|
+
},
|
|
11249
11731
|
/**
|
|
11250
11732
|
*
|
|
11251
11733
|
* @summary Set cluster alert disabled or enabled
|
|
@@ -12050,6 +12532,100 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
12050
12532
|
options: localVarRequestOptions,
|
|
12051
12533
|
};
|
|
12052
12534
|
},
|
|
12535
|
+
/**
|
|
12536
|
+
*
|
|
12537
|
+
* @summary Update a ClickHouse account password
|
|
12538
|
+
* @param {string} orgName
|
|
12539
|
+
* @param {string} clusterName
|
|
12540
|
+
* @param {string} accountName
|
|
12541
|
+
* @param {UpdateClickhouseAccountPasswordRequest} body
|
|
12542
|
+
* @param {*} [options] Override http request option.
|
|
12543
|
+
* @throws {RequiredError}
|
|
12544
|
+
*/
|
|
12545
|
+
updateClickhouseAccountPassword: async (orgName, clusterName, accountName, body, options = {}) => {
|
|
12546
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
12547
|
+
(0, common_1.assertParamExists)('updateClickhouseAccountPassword', 'orgName', orgName);
|
|
12548
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
12549
|
+
(0, common_1.assertParamExists)('updateClickhouseAccountPassword', 'clusterName', clusterName);
|
|
12550
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
12551
|
+
(0, common_1.assertParamExists)('updateClickhouseAccountPassword', 'accountName', accountName);
|
|
12552
|
+
// verify required parameter 'body' is not null or undefined
|
|
12553
|
+
(0, common_1.assertParamExists)('updateClickhouseAccountPassword', 'body', body);
|
|
12554
|
+
const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
|
|
12555
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
12556
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
12557
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
12558
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12559
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12560
|
+
let baseOptions;
|
|
12561
|
+
if (configuration) {
|
|
12562
|
+
baseOptions = configuration.baseOptions;
|
|
12563
|
+
}
|
|
12564
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
12565
|
+
const localVarHeaderParameter = {};
|
|
12566
|
+
const localVarQueryParameter = {};
|
|
12567
|
+
// authentication BearerToken required
|
|
12568
|
+
// http bearer authentication required
|
|
12569
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12570
|
+
// authentication DigestAuth required
|
|
12571
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
12572
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12573
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12574
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12575
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12576
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
12577
|
+
return {
|
|
12578
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12579
|
+
options: localVarRequestOptions,
|
|
12580
|
+
};
|
|
12581
|
+
},
|
|
12582
|
+
/**
|
|
12583
|
+
*
|
|
12584
|
+
* @summary Update the roles granted to a ClickHouse account
|
|
12585
|
+
* @param {string} orgName
|
|
12586
|
+
* @param {string} clusterName
|
|
12587
|
+
* @param {string} accountName
|
|
12588
|
+
* @param {UpdateClickhouseAccountRolesRequest} body
|
|
12589
|
+
* @param {*} [options] Override http request option.
|
|
12590
|
+
* @throws {RequiredError}
|
|
12591
|
+
*/
|
|
12592
|
+
updateClickhouseAccountRoles: async (orgName, clusterName, accountName, body, options = {}) => {
|
|
12593
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
12594
|
+
(0, common_1.assertParamExists)('updateClickhouseAccountRoles', 'orgName', orgName);
|
|
12595
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
12596
|
+
(0, common_1.assertParamExists)('updateClickhouseAccountRoles', 'clusterName', clusterName);
|
|
12597
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
12598
|
+
(0, common_1.assertParamExists)('updateClickhouseAccountRoles', 'accountName', accountName);
|
|
12599
|
+
// verify required parameter 'body' is not null or undefined
|
|
12600
|
+
(0, common_1.assertParamExists)('updateClickhouseAccountRoles', 'body', body);
|
|
12601
|
+
const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/roles`
|
|
12602
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
12603
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
12604
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
12605
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12606
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12607
|
+
let baseOptions;
|
|
12608
|
+
if (configuration) {
|
|
12609
|
+
baseOptions = configuration.baseOptions;
|
|
12610
|
+
}
|
|
12611
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
12612
|
+
const localVarHeaderParameter = {};
|
|
12613
|
+
const localVarQueryParameter = {};
|
|
12614
|
+
// authentication BearerToken required
|
|
12615
|
+
// http bearer authentication required
|
|
12616
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12617
|
+
// authentication DigestAuth required
|
|
12618
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
12619
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12620
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12621
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12622
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12623
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
12624
|
+
return {
|
|
12625
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12626
|
+
options: localVarRequestOptions,
|
|
12627
|
+
};
|
|
12628
|
+
},
|
|
12053
12629
|
/**
|
|
12054
12630
|
*
|
|
12055
12631
|
* @summary Update the cluster license
|
|
@@ -13462,6 +14038,38 @@ const SharedApiFp = function (configuration) {
|
|
|
13462
14038
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.createBackupSchedule']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13463
14039
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13464
14040
|
},
|
|
14041
|
+
/**
|
|
14042
|
+
*
|
|
14043
|
+
* @summary Create a ClickHouse account with optional roles
|
|
14044
|
+
* @param {string} orgName
|
|
14045
|
+
* @param {string} clusterName
|
|
14046
|
+
* @param {CreateClickhouseAccountRequest} body
|
|
14047
|
+
* @param {*} [options] Override http request option.
|
|
14048
|
+
* @throws {RequiredError}
|
|
14049
|
+
*/
|
|
14050
|
+
async createClickhouseAccount(orgName, clusterName, body, options) {
|
|
14051
|
+
var _a, _b, _c;
|
|
14052
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createClickhouseAccount(orgName, clusterName, body, options);
|
|
14053
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14054
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.createClickhouseAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14055
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14056
|
+
},
|
|
14057
|
+
/**
|
|
14058
|
+
*
|
|
14059
|
+
* @summary Create a ClickHouse role with privileges
|
|
14060
|
+
* @param {string} orgName
|
|
14061
|
+
* @param {string} clusterName
|
|
14062
|
+
* @param {ListClickhouseAccountRoles200Response} body
|
|
14063
|
+
* @param {*} [options] Override http request option.
|
|
14064
|
+
* @throws {RequiredError}
|
|
14065
|
+
*/
|
|
14066
|
+
async createClickhouseRole(orgName, clusterName, body, options) {
|
|
14067
|
+
var _a, _b, _c;
|
|
14068
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createClickhouseRole(orgName, clusterName, body, options);
|
|
14069
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14070
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.createClickhouseRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14071
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14072
|
+
},
|
|
13465
14073
|
/**
|
|
13466
14074
|
*
|
|
13467
14075
|
* @summary Create new cluster
|
|
@@ -13845,6 +14453,38 @@ const SharedApiFp = function (configuration) {
|
|
|
13845
14453
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.deleteBackupSchedule']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13846
14454
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13847
14455
|
},
|
|
14456
|
+
/**
|
|
14457
|
+
*
|
|
14458
|
+
* @summary Delete a ClickHouse account
|
|
14459
|
+
* @param {string} orgName
|
|
14460
|
+
* @param {string} clusterName
|
|
14461
|
+
* @param {string} accountName
|
|
14462
|
+
* @param {*} [options] Override http request option.
|
|
14463
|
+
* @throws {RequiredError}
|
|
14464
|
+
*/
|
|
14465
|
+
async deleteClickhouseAccount(orgName, clusterName, accountName, options) {
|
|
14466
|
+
var _a, _b, _c;
|
|
14467
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClickhouseAccount(orgName, clusterName, accountName, options);
|
|
14468
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14469
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.deleteClickhouseAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14470
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14471
|
+
},
|
|
14472
|
+
/**
|
|
14473
|
+
*
|
|
14474
|
+
* @summary Delete a ClickHouse role
|
|
14475
|
+
* @param {string} orgName
|
|
14476
|
+
* @param {string} clusterName
|
|
14477
|
+
* @param {string} roleName
|
|
14478
|
+
* @param {*} [options] Override http request option.
|
|
14479
|
+
* @throws {RequiredError}
|
|
14480
|
+
*/
|
|
14481
|
+
async deleteClickhouseRole(orgName, clusterName, roleName, options) {
|
|
14482
|
+
var _a, _b, _c;
|
|
14483
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClickhouseRole(orgName, clusterName, roleName, options);
|
|
14484
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14485
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.deleteClickhouseRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14486
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14487
|
+
},
|
|
13848
14488
|
/**
|
|
13849
14489
|
*
|
|
13850
14490
|
* @summary Delete cluster
|
|
@@ -14596,6 +15236,22 @@ const SharedApiFp = function (configuration) {
|
|
|
14596
15236
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.getBackupRepo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14597
15237
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14598
15238
|
},
|
|
15239
|
+
/**
|
|
15240
|
+
*
|
|
15241
|
+
* @summary Get the grants (privileges) of a ClickHouse role
|
|
15242
|
+
* @param {string} orgName
|
|
15243
|
+
* @param {string} clusterName
|
|
15244
|
+
* @param {string} roleName
|
|
15245
|
+
* @param {*} [options] Override http request option.
|
|
15246
|
+
* @throws {RequiredError}
|
|
15247
|
+
*/
|
|
15248
|
+
async getClickhouseRoleGrants(orgName, clusterName, roleName, options) {
|
|
15249
|
+
var _a, _b, _c;
|
|
15250
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getClickhouseRoleGrants(orgName, clusterName, roleName, options);
|
|
15251
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15252
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.getClickhouseRoleGrants']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15253
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15254
|
+
},
|
|
14599
15255
|
/**
|
|
14600
15256
|
*
|
|
14601
15257
|
* @summary Get cluster details
|
|
@@ -15434,11 +16090,28 @@ const SharedApiFp = function (configuration) {
|
|
|
15434
16090
|
* @param {*} [options] Override http request option.
|
|
15435
16091
|
* @throws {RequiredError}
|
|
15436
16092
|
*/
|
|
15437
|
-
async getTenant(orgName, clusterName, tenantId, options) {
|
|
16093
|
+
async getTenant(orgName, clusterName, tenantId, options) {
|
|
16094
|
+
var _a, _b, _c;
|
|
16095
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTenant(orgName, clusterName, tenantId, options);
|
|
16096
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16097
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.getTenant']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16098
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16099
|
+
},
|
|
16100
|
+
/**
|
|
16101
|
+
*
|
|
16102
|
+
* @summary Grant privileges to a ClickHouse role
|
|
16103
|
+
* @param {string} orgName
|
|
16104
|
+
* @param {string} clusterName
|
|
16105
|
+
* @param {string} roleName
|
|
16106
|
+
* @param {ListClickhouseAccountRoles200ResponsePrivilegesInner} body
|
|
16107
|
+
* @param {*} [options] Override http request option.
|
|
16108
|
+
* @throws {RequiredError}
|
|
16109
|
+
*/
|
|
16110
|
+
async grantClickhouseRolePrivileges(orgName, clusterName, roleName, body, options) {
|
|
15438
16111
|
var _a, _b, _c;
|
|
15439
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
16112
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.grantClickhouseRolePrivileges(orgName, clusterName, roleName, body, options);
|
|
15440
16113
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15441
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.
|
|
16114
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.grantClickhouseRolePrivileges']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15442
16115
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15443
16116
|
},
|
|
15444
16117
|
/**
|
|
@@ -15582,6 +16255,68 @@ const SharedApiFp = function (configuration) {
|
|
|
15582
16255
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listClasses']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15583
16256
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15584
16257
|
},
|
|
16258
|
+
/**
|
|
16259
|
+
*
|
|
16260
|
+
* @summary List the roles granted to a ClickHouse account
|
|
16261
|
+
* @param {string} orgName
|
|
16262
|
+
* @param {string} clusterName
|
|
16263
|
+
* @param {string} accountName
|
|
16264
|
+
* @param {*} [options] Override http request option.
|
|
16265
|
+
* @throws {RequiredError}
|
|
16266
|
+
*/
|
|
16267
|
+
async listClickhouseAccountRoles(orgName, clusterName, accountName, options) {
|
|
16268
|
+
var _a, _b, _c;
|
|
16269
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listClickhouseAccountRoles(orgName, clusterName, accountName, options);
|
|
16270
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16271
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listClickhouseAccountRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16272
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16273
|
+
},
|
|
16274
|
+
/**
|
|
16275
|
+
*
|
|
16276
|
+
* @summary List ClickHouse accounts
|
|
16277
|
+
* @param {string} orgName
|
|
16278
|
+
* @param {string} clusterName
|
|
16279
|
+
* @param {*} [options] Override http request option.
|
|
16280
|
+
* @throws {RequiredError}
|
|
16281
|
+
*/
|
|
16282
|
+
async listClickhouseAccounts(orgName, clusterName, options) {
|
|
16283
|
+
var _a, _b, _c;
|
|
16284
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listClickhouseAccounts(orgName, clusterName, options);
|
|
16285
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16286
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listClickhouseAccounts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16287
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16288
|
+
},
|
|
16289
|
+
/**
|
|
16290
|
+
*
|
|
16291
|
+
* @summary List privileges supported by the ClickHouse server
|
|
16292
|
+
* @param {string} orgName
|
|
16293
|
+
* @param {string} clusterName
|
|
16294
|
+
* @param {*} [options] Override http request option.
|
|
16295
|
+
* @throws {RequiredError}
|
|
16296
|
+
*/
|
|
16297
|
+
async listClickhousePrivileges(orgName, clusterName, options) {
|
|
16298
|
+
var _a, _b, _c;
|
|
16299
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listClickhousePrivileges(orgName, clusterName, options);
|
|
16300
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16301
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listClickhousePrivileges']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16302
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16303
|
+
},
|
|
16304
|
+
/**
|
|
16305
|
+
*
|
|
16306
|
+
* @summary List ClickHouse roles
|
|
16307
|
+
* @param {string} orgName
|
|
16308
|
+
* @param {string} clusterName
|
|
16309
|
+
* @param {boolean} [forCreateUser] Whether to include built-in privilege roles for creating an account.
|
|
16310
|
+
* @param {*} [options] Override http request option.
|
|
16311
|
+
* @throws {RequiredError}
|
|
16312
|
+
*/
|
|
16313
|
+
async listClickhouseRoles(orgName, clusterName, forCreateUser, options) {
|
|
16314
|
+
var _a, _b, _c;
|
|
16315
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listClickhouseRoles(orgName, clusterName, forCreateUser, options);
|
|
16316
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16317
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listClickhouseRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16318
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16319
|
+
},
|
|
15585
16320
|
/**
|
|
15586
16321
|
*
|
|
15587
16322
|
* @summary List clusters in the Org
|
|
@@ -15595,12 +16330,14 @@ const SharedApiFp = function (configuration) {
|
|
|
15595
16330
|
* @param {Array<string>} [tagValues] A list of tags\' values corresponding to the tagKeys
|
|
15596
16331
|
* @param {number} [licenseId] license id
|
|
15597
16332
|
* @param {string} [refClusterName] list clusters referenced by this cluster
|
|
16333
|
+
* @param {string} [endpointHost] Case-insensitive substring to match against the host part of cached cluster endpoints
|
|
16334
|
+
* @param {boolean} [includeEndpoints] Whether to include cached user-visible endpoints in each cluster item
|
|
15598
16335
|
* @param {*} [options] Override http request option.
|
|
15599
16336
|
* @throws {RequiredError}
|
|
15600
16337
|
*/
|
|
15601
|
-
async listCluster(orgName, clusterDefinition, environmentName, environmentType, tagKey, tagValue, tagKeys, tagValues, licenseId, refClusterName, options) {
|
|
16338
|
+
async listCluster(orgName, clusterDefinition, environmentName, environmentType, tagKey, tagValue, tagKeys, tagValues, licenseId, refClusterName, endpointHost, includeEndpoints, options) {
|
|
15602
16339
|
var _a, _b, _c;
|
|
15603
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listCluster(orgName, clusterDefinition, environmentName, environmentType, tagKey, tagValue, tagKeys, tagValues, licenseId, refClusterName, options);
|
|
16340
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCluster(orgName, clusterDefinition, environmentName, environmentType, tagKey, tagValue, tagKeys, tagValues, licenseId, refClusterName, endpointHost, includeEndpoints, options);
|
|
15604
16341
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15605
16342
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listCluster']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15606
16343
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -15626,12 +16363,14 @@ const SharedApiFp = function (configuration) {
|
|
|
15626
16363
|
* @param {string} [orgName] Organization name, if envName is provided, orgName is required
|
|
15627
16364
|
* @param {string} [envName] Environment name
|
|
15628
16365
|
* @param {boolean} [withStatic] Whether to include static clusters
|
|
16366
|
+
* @param {string} [endpointHost] Case-insensitive substring to match against the host part of cached cluster endpoints
|
|
16367
|
+
* @param {boolean} [includeEndpoints] Whether to include cached user-visible endpoints in each cluster item
|
|
15629
16368
|
* @param {*} [options] Override http request option.
|
|
15630
16369
|
* @throws {RequiredError}
|
|
15631
16370
|
*/
|
|
15632
|
-
async listClusters(orgName, envName, withStatic, options) {
|
|
16371
|
+
async listClusters(orgName, envName, withStatic, endpointHost, includeEndpoints, options) {
|
|
15633
16372
|
var _a, _b, _c;
|
|
15634
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listClusters(orgName, envName, withStatic, options);
|
|
16373
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listClusters(orgName, envName, withStatic, endpointHost, includeEndpoints, options);
|
|
15635
16374
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15636
16375
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listClusters']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15637
16376
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -17277,6 +18016,23 @@ const SharedApiFp = function (configuration) {
|
|
|
17277
18016
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.restoreRecycleBinCluster']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17278
18017
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17279
18018
|
},
|
|
18019
|
+
/**
|
|
18020
|
+
*
|
|
18021
|
+
* @summary Revoke privileges from a ClickHouse role
|
|
18022
|
+
* @param {string} orgName
|
|
18023
|
+
* @param {string} clusterName
|
|
18024
|
+
* @param {string} roleName
|
|
18025
|
+
* @param {RevokeClickhouseRolePrivilegesRequest} body
|
|
18026
|
+
* @param {*} [options] Override http request option.
|
|
18027
|
+
* @throws {RequiredError}
|
|
18028
|
+
*/
|
|
18029
|
+
async revokeClickhouseRolePrivileges(orgName, clusterName, roleName, body, options) {
|
|
18030
|
+
var _a, _b, _c;
|
|
18031
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.revokeClickhouseRolePrivileges(orgName, clusterName, roleName, body, options);
|
|
18032
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
18033
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.revokeClickhouseRolePrivileges']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
18034
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18035
|
+
},
|
|
17280
18036
|
/**
|
|
17281
18037
|
*
|
|
17282
18038
|
* @summary Set cluster alert disabled or enabled
|
|
@@ -17575,6 +18331,40 @@ const SharedApiFp = function (configuration) {
|
|
|
17575
18331
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.updateBackupSchedule']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17576
18332
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17577
18333
|
},
|
|
18334
|
+
/**
|
|
18335
|
+
*
|
|
18336
|
+
* @summary Update a ClickHouse account password
|
|
18337
|
+
* @param {string} orgName
|
|
18338
|
+
* @param {string} clusterName
|
|
18339
|
+
* @param {string} accountName
|
|
18340
|
+
* @param {UpdateClickhouseAccountPasswordRequest} body
|
|
18341
|
+
* @param {*} [options] Override http request option.
|
|
18342
|
+
* @throws {RequiredError}
|
|
18343
|
+
*/
|
|
18344
|
+
async updateClickhouseAccountPassword(orgName, clusterName, accountName, body, options) {
|
|
18345
|
+
var _a, _b, _c;
|
|
18346
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateClickhouseAccountPassword(orgName, clusterName, accountName, body, options);
|
|
18347
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
18348
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.updateClickhouseAccountPassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
18349
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18350
|
+
},
|
|
18351
|
+
/**
|
|
18352
|
+
*
|
|
18353
|
+
* @summary Update the roles granted to a ClickHouse account
|
|
18354
|
+
* @param {string} orgName
|
|
18355
|
+
* @param {string} clusterName
|
|
18356
|
+
* @param {string} accountName
|
|
18357
|
+
* @param {UpdateClickhouseAccountRolesRequest} body
|
|
18358
|
+
* @param {*} [options] Override http request option.
|
|
18359
|
+
* @throws {RequiredError}
|
|
18360
|
+
*/
|
|
18361
|
+
async updateClickhouseAccountRoles(orgName, clusterName, accountName, body, options) {
|
|
18362
|
+
var _a, _b, _c;
|
|
18363
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateClickhouseAccountRoles(orgName, clusterName, accountName, body, options);
|
|
18364
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
18365
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.updateClickhouseAccountRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
18366
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18367
|
+
},
|
|
17578
18368
|
/**
|
|
17579
18369
|
*
|
|
17580
18370
|
* @summary Update the cluster license
|
|
@@ -18159,6 +18949,26 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
18159
18949
|
createBackupSchedule(requestParameters, options) {
|
|
18160
18950
|
return localVarFp.createBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
18161
18951
|
},
|
|
18952
|
+
/**
|
|
18953
|
+
*
|
|
18954
|
+
* @summary Create a ClickHouse account with optional roles
|
|
18955
|
+
* @param {SharedApiCreateClickhouseAccountRequest} requestParameters Request parameters.
|
|
18956
|
+
* @param {*} [options] Override http request option.
|
|
18957
|
+
* @throws {RequiredError}
|
|
18958
|
+
*/
|
|
18959
|
+
createClickhouseAccount(requestParameters, options) {
|
|
18960
|
+
return localVarFp.createClickhouseAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
18961
|
+
},
|
|
18962
|
+
/**
|
|
18963
|
+
*
|
|
18964
|
+
* @summary Create a ClickHouse role with privileges
|
|
18965
|
+
* @param {SharedApiCreateClickhouseRoleRequest} requestParameters Request parameters.
|
|
18966
|
+
* @param {*} [options] Override http request option.
|
|
18967
|
+
* @throws {RequiredError}
|
|
18968
|
+
*/
|
|
18969
|
+
createClickhouseRole(requestParameters, options) {
|
|
18970
|
+
return localVarFp.createClickhouseRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
18971
|
+
},
|
|
18162
18972
|
/**
|
|
18163
18973
|
*
|
|
18164
18974
|
* @summary Create new cluster
|
|
@@ -18399,6 +19209,26 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
18399
19209
|
deleteBackupSchedule(requestParameters, options) {
|
|
18400
19210
|
return localVarFp.deleteBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.scheduleName, options).then((request) => request(axios, basePath));
|
|
18401
19211
|
},
|
|
19212
|
+
/**
|
|
19213
|
+
*
|
|
19214
|
+
* @summary Delete a ClickHouse account
|
|
19215
|
+
* @param {SharedApiDeleteClickhouseAccountRequest} requestParameters Request parameters.
|
|
19216
|
+
* @param {*} [options] Override http request option.
|
|
19217
|
+
* @throws {RequiredError}
|
|
19218
|
+
*/
|
|
19219
|
+
deleteClickhouseAccount(requestParameters, options) {
|
|
19220
|
+
return localVarFp.deleteClickhouseAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
|
|
19221
|
+
},
|
|
19222
|
+
/**
|
|
19223
|
+
*
|
|
19224
|
+
* @summary Delete a ClickHouse role
|
|
19225
|
+
* @param {SharedApiDeleteClickhouseRoleRequest} requestParameters Request parameters.
|
|
19226
|
+
* @param {*} [options] Override http request option.
|
|
19227
|
+
* @throws {RequiredError}
|
|
19228
|
+
*/
|
|
19229
|
+
deleteClickhouseRole(requestParameters, options) {
|
|
19230
|
+
return localVarFp.deleteClickhouseRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, options).then((request) => request(axios, basePath));
|
|
19231
|
+
},
|
|
18402
19232
|
/**
|
|
18403
19233
|
*
|
|
18404
19234
|
* @summary Delete cluster
|
|
@@ -18850,6 +19680,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
18850
19680
|
getBackupRepo(requestParameters, options) {
|
|
18851
19681
|
return localVarFp.getBackupRepo(requestParameters.environmentName, requestParameters.backupRepoName, requestParameters.orgName, options).then((request) => request(axios, basePath));
|
|
18852
19682
|
},
|
|
19683
|
+
/**
|
|
19684
|
+
*
|
|
19685
|
+
* @summary Get the grants (privileges) of a ClickHouse role
|
|
19686
|
+
* @param {SharedApiGetClickhouseRoleGrantsRequest} requestParameters Request parameters.
|
|
19687
|
+
* @param {*} [options] Override http request option.
|
|
19688
|
+
* @throws {RequiredError}
|
|
19689
|
+
*/
|
|
19690
|
+
getClickhouseRoleGrants(requestParameters, options) {
|
|
19691
|
+
return localVarFp.getClickhouseRoleGrants(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, options).then((request) => request(axios, basePath));
|
|
19692
|
+
},
|
|
18853
19693
|
/**
|
|
18854
19694
|
*
|
|
18855
19695
|
* @summary Get cluster details
|
|
@@ -19349,6 +20189,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
19349
20189
|
getTenant(requestParameters, options) {
|
|
19350
20190
|
return localVarFp.getTenant(requestParameters.orgName, requestParameters.clusterName, requestParameters.tenantId, options).then((request) => request(axios, basePath));
|
|
19351
20191
|
},
|
|
20192
|
+
/**
|
|
20193
|
+
*
|
|
20194
|
+
* @summary Grant privileges to a ClickHouse role
|
|
20195
|
+
* @param {SharedApiGrantClickhouseRolePrivilegesRequest} requestParameters Request parameters.
|
|
20196
|
+
* @param {*} [options] Override http request option.
|
|
20197
|
+
* @throws {RequiredError}
|
|
20198
|
+
*/
|
|
20199
|
+
grantClickhouseRolePrivileges(requestParameters, options) {
|
|
20200
|
+
return localVarFp.grantClickhouseRolePrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
20201
|
+
},
|
|
19352
20202
|
/**
|
|
19353
20203
|
*
|
|
19354
20204
|
* @summary Horizontal scale cluster
|
|
@@ -19438,6 +20288,46 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
19438
20288
|
listClasses(requestParameters = {}, options) {
|
|
19439
20289
|
return localVarFp.listClasses(requestParameters.engineName, options).then((request) => request(axios, basePath));
|
|
19440
20290
|
},
|
|
20291
|
+
/**
|
|
20292
|
+
*
|
|
20293
|
+
* @summary List the roles granted to a ClickHouse account
|
|
20294
|
+
* @param {SharedApiListClickhouseAccountRolesRequest} requestParameters Request parameters.
|
|
20295
|
+
* @param {*} [options] Override http request option.
|
|
20296
|
+
* @throws {RequiredError}
|
|
20297
|
+
*/
|
|
20298
|
+
listClickhouseAccountRoles(requestParameters, options) {
|
|
20299
|
+
return localVarFp.listClickhouseAccountRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
|
|
20300
|
+
},
|
|
20301
|
+
/**
|
|
20302
|
+
*
|
|
20303
|
+
* @summary List ClickHouse accounts
|
|
20304
|
+
* @param {SharedApiListClickhouseAccountsRequest} requestParameters Request parameters.
|
|
20305
|
+
* @param {*} [options] Override http request option.
|
|
20306
|
+
* @throws {RequiredError}
|
|
20307
|
+
*/
|
|
20308
|
+
listClickhouseAccounts(requestParameters, options) {
|
|
20309
|
+
return localVarFp.listClickhouseAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
20310
|
+
},
|
|
20311
|
+
/**
|
|
20312
|
+
*
|
|
20313
|
+
* @summary List privileges supported by the ClickHouse server
|
|
20314
|
+
* @param {SharedApiListClickhousePrivilegesRequest} requestParameters Request parameters.
|
|
20315
|
+
* @param {*} [options] Override http request option.
|
|
20316
|
+
* @throws {RequiredError}
|
|
20317
|
+
*/
|
|
20318
|
+
listClickhousePrivileges(requestParameters, options) {
|
|
20319
|
+
return localVarFp.listClickhousePrivileges(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
20320
|
+
},
|
|
20321
|
+
/**
|
|
20322
|
+
*
|
|
20323
|
+
* @summary List ClickHouse roles
|
|
20324
|
+
* @param {SharedApiListClickhouseRolesRequest} requestParameters Request parameters.
|
|
20325
|
+
* @param {*} [options] Override http request option.
|
|
20326
|
+
* @throws {RequiredError}
|
|
20327
|
+
*/
|
|
20328
|
+
listClickhouseRoles(requestParameters, options) {
|
|
20329
|
+
return localVarFp.listClickhouseRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.forCreateUser, options).then((request) => request(axios, basePath));
|
|
20330
|
+
},
|
|
19441
20331
|
/**
|
|
19442
20332
|
*
|
|
19443
20333
|
* @summary List clusters in the Org
|
|
@@ -19446,7 +20336,7 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
19446
20336
|
* @throws {RequiredError}
|
|
19447
20337
|
*/
|
|
19448
20338
|
listCluster(requestParameters, options) {
|
|
19449
|
-
return localVarFp.listCluster(requestParameters.orgName, requestParameters.clusterDefinition, requestParameters.environmentName, requestParameters.environmentType, requestParameters.tagKey, requestParameters.tagValue, requestParameters.tagKeys, requestParameters.tagValues, requestParameters.licenseId, requestParameters.refClusterName, options).then((request) => request(axios, basePath));
|
|
20339
|
+
return localVarFp.listCluster(requestParameters.orgName, requestParameters.clusterDefinition, requestParameters.environmentName, requestParameters.environmentType, requestParameters.tagKey, requestParameters.tagValue, requestParameters.tagKeys, requestParameters.tagValues, requestParameters.licenseId, requestParameters.refClusterName, requestParameters.endpointHost, requestParameters.includeEndpoints, options).then((request) => request(axios, basePath));
|
|
19450
20340
|
},
|
|
19451
20341
|
/**
|
|
19452
20342
|
*
|
|
@@ -19466,7 +20356,7 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
19466
20356
|
* @throws {RequiredError}
|
|
19467
20357
|
*/
|
|
19468
20358
|
listClusters(requestParameters = {}, options) {
|
|
19469
|
-
return localVarFp.listClusters(requestParameters.orgName, requestParameters.envName, requestParameters.withStatic, options).then((request) => request(axios, basePath));
|
|
20359
|
+
return localVarFp.listClusters(requestParameters.orgName, requestParameters.envName, requestParameters.withStatic, requestParameters.endpointHost, requestParameters.includeEndpoints, options).then((request) => request(axios, basePath));
|
|
19470
20360
|
},
|
|
19471
20361
|
/**
|
|
19472
20362
|
*
|
|
@@ -20414,6 +21304,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
20414
21304
|
restoreRecycleBinCluster(requestParameters, options) {
|
|
20415
21305
|
return localVarFp.restoreRecycleBinCluster(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
20416
21306
|
},
|
|
21307
|
+
/**
|
|
21308
|
+
*
|
|
21309
|
+
* @summary Revoke privileges from a ClickHouse role
|
|
21310
|
+
* @param {SharedApiRevokeClickhouseRolePrivilegesRequest} requestParameters Request parameters.
|
|
21311
|
+
* @param {*} [options] Override http request option.
|
|
21312
|
+
* @throws {RequiredError}
|
|
21313
|
+
*/
|
|
21314
|
+
revokeClickhouseRolePrivileges(requestParameters, options) {
|
|
21315
|
+
return localVarFp.revokeClickhouseRolePrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
21316
|
+
},
|
|
20417
21317
|
/**
|
|
20418
21318
|
*
|
|
20419
21319
|
* @summary Set cluster alert disabled or enabled
|
|
@@ -20594,6 +21494,26 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
20594
21494
|
updateBackupSchedule(requestParameters, options) {
|
|
20595
21495
|
return localVarFp.updateBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.scheduleName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
20596
21496
|
},
|
|
21497
|
+
/**
|
|
21498
|
+
*
|
|
21499
|
+
* @summary Update a ClickHouse account password
|
|
21500
|
+
* @param {SharedApiUpdateClickhouseAccountPasswordRequest} requestParameters Request parameters.
|
|
21501
|
+
* @param {*} [options] Override http request option.
|
|
21502
|
+
* @throws {RequiredError}
|
|
21503
|
+
*/
|
|
21504
|
+
updateClickhouseAccountPassword(requestParameters, options) {
|
|
21505
|
+
return localVarFp.updateClickhouseAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
21506
|
+
},
|
|
21507
|
+
/**
|
|
21508
|
+
*
|
|
21509
|
+
* @summary Update the roles granted to a ClickHouse account
|
|
21510
|
+
* @param {SharedApiUpdateClickhouseAccountRolesRequest} requestParameters Request parameters.
|
|
21511
|
+
* @param {*} [options] Override http request option.
|
|
21512
|
+
* @throws {RequiredError}
|
|
21513
|
+
*/
|
|
21514
|
+
updateClickhouseAccountRoles(requestParameters, options) {
|
|
21515
|
+
return localVarFp.updateClickhouseAccountRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
21516
|
+
},
|
|
20597
21517
|
/**
|
|
20598
21518
|
*
|
|
20599
21519
|
* @summary Update the cluster license
|
|
@@ -21029,6 +21949,28 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
21029
21949
|
createBackupSchedule(requestParameters, options) {
|
|
21030
21950
|
return (0, exports.SharedApiFp)(this.configuration).createBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
21031
21951
|
}
|
|
21952
|
+
/**
|
|
21953
|
+
*
|
|
21954
|
+
* @summary Create a ClickHouse account with optional roles
|
|
21955
|
+
* @param {SharedApiCreateClickhouseAccountRequest} requestParameters Request parameters.
|
|
21956
|
+
* @param {*} [options] Override http request option.
|
|
21957
|
+
* @throws {RequiredError}
|
|
21958
|
+
* @memberof SharedApi
|
|
21959
|
+
*/
|
|
21960
|
+
createClickhouseAccount(requestParameters, options) {
|
|
21961
|
+
return (0, exports.SharedApiFp)(this.configuration).createClickhouseAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
21962
|
+
}
|
|
21963
|
+
/**
|
|
21964
|
+
*
|
|
21965
|
+
* @summary Create a ClickHouse role with privileges
|
|
21966
|
+
* @param {SharedApiCreateClickhouseRoleRequest} requestParameters Request parameters.
|
|
21967
|
+
* @param {*} [options] Override http request option.
|
|
21968
|
+
* @throws {RequiredError}
|
|
21969
|
+
* @memberof SharedApi
|
|
21970
|
+
*/
|
|
21971
|
+
createClickhouseRole(requestParameters, options) {
|
|
21972
|
+
return (0, exports.SharedApiFp)(this.configuration).createClickhouseRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
21973
|
+
}
|
|
21032
21974
|
/**
|
|
21033
21975
|
*
|
|
21034
21976
|
* @summary Create new cluster
|
|
@@ -21293,6 +22235,28 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
21293
22235
|
deleteBackupSchedule(requestParameters, options) {
|
|
21294
22236
|
return (0, exports.SharedApiFp)(this.configuration).deleteBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.scheduleName, options).then((request) => request(this.axios, this.basePath));
|
|
21295
22237
|
}
|
|
22238
|
+
/**
|
|
22239
|
+
*
|
|
22240
|
+
* @summary Delete a ClickHouse account
|
|
22241
|
+
* @param {SharedApiDeleteClickhouseAccountRequest} requestParameters Request parameters.
|
|
22242
|
+
* @param {*} [options] Override http request option.
|
|
22243
|
+
* @throws {RequiredError}
|
|
22244
|
+
* @memberof SharedApi
|
|
22245
|
+
*/
|
|
22246
|
+
deleteClickhouseAccount(requestParameters, options) {
|
|
22247
|
+
return (0, exports.SharedApiFp)(this.configuration).deleteClickhouseAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
|
|
22248
|
+
}
|
|
22249
|
+
/**
|
|
22250
|
+
*
|
|
22251
|
+
* @summary Delete a ClickHouse role
|
|
22252
|
+
* @param {SharedApiDeleteClickhouseRoleRequest} requestParameters Request parameters.
|
|
22253
|
+
* @param {*} [options] Override http request option.
|
|
22254
|
+
* @throws {RequiredError}
|
|
22255
|
+
* @memberof SharedApi
|
|
22256
|
+
*/
|
|
22257
|
+
deleteClickhouseRole(requestParameters, options) {
|
|
22258
|
+
return (0, exports.SharedApiFp)(this.configuration).deleteClickhouseRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, options).then((request) => request(this.axios, this.basePath));
|
|
22259
|
+
}
|
|
21296
22260
|
/**
|
|
21297
22261
|
*
|
|
21298
22262
|
* @summary Delete cluster
|
|
@@ -21789,6 +22753,17 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
21789
22753
|
getBackupRepo(requestParameters, options) {
|
|
21790
22754
|
return (0, exports.SharedApiFp)(this.configuration).getBackupRepo(requestParameters.environmentName, requestParameters.backupRepoName, requestParameters.orgName, options).then((request) => request(this.axios, this.basePath));
|
|
21791
22755
|
}
|
|
22756
|
+
/**
|
|
22757
|
+
*
|
|
22758
|
+
* @summary Get the grants (privileges) of a ClickHouse role
|
|
22759
|
+
* @param {SharedApiGetClickhouseRoleGrantsRequest} requestParameters Request parameters.
|
|
22760
|
+
* @param {*} [options] Override http request option.
|
|
22761
|
+
* @throws {RequiredError}
|
|
22762
|
+
* @memberof SharedApi
|
|
22763
|
+
*/
|
|
22764
|
+
getClickhouseRoleGrants(requestParameters, options) {
|
|
22765
|
+
return (0, exports.SharedApiFp)(this.configuration).getClickhouseRoleGrants(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, options).then((request) => request(this.axios, this.basePath));
|
|
22766
|
+
}
|
|
21792
22767
|
/**
|
|
21793
22768
|
*
|
|
21794
22769
|
* @summary Get cluster details
|
|
@@ -22338,6 +23313,17 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
22338
23313
|
getTenant(requestParameters, options) {
|
|
22339
23314
|
return (0, exports.SharedApiFp)(this.configuration).getTenant(requestParameters.orgName, requestParameters.clusterName, requestParameters.tenantId, options).then((request) => request(this.axios, this.basePath));
|
|
22340
23315
|
}
|
|
23316
|
+
/**
|
|
23317
|
+
*
|
|
23318
|
+
* @summary Grant privileges to a ClickHouse role
|
|
23319
|
+
* @param {SharedApiGrantClickhouseRolePrivilegesRequest} requestParameters Request parameters.
|
|
23320
|
+
* @param {*} [options] Override http request option.
|
|
23321
|
+
* @throws {RequiredError}
|
|
23322
|
+
* @memberof SharedApi
|
|
23323
|
+
*/
|
|
23324
|
+
grantClickhouseRolePrivileges(requestParameters, options) {
|
|
23325
|
+
return (0, exports.SharedApiFp)(this.configuration).grantClickhouseRolePrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
23326
|
+
}
|
|
22341
23327
|
/**
|
|
22342
23328
|
*
|
|
22343
23329
|
* @summary Horizontal scale cluster
|
|
@@ -22436,6 +23422,50 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
22436
23422
|
listClasses(requestParameters = {}, options) {
|
|
22437
23423
|
return (0, exports.SharedApiFp)(this.configuration).listClasses(requestParameters.engineName, options).then((request) => request(this.axios, this.basePath));
|
|
22438
23424
|
}
|
|
23425
|
+
/**
|
|
23426
|
+
*
|
|
23427
|
+
* @summary List the roles granted to a ClickHouse account
|
|
23428
|
+
* @param {SharedApiListClickhouseAccountRolesRequest} requestParameters Request parameters.
|
|
23429
|
+
* @param {*} [options] Override http request option.
|
|
23430
|
+
* @throws {RequiredError}
|
|
23431
|
+
* @memberof SharedApi
|
|
23432
|
+
*/
|
|
23433
|
+
listClickhouseAccountRoles(requestParameters, options) {
|
|
23434
|
+
return (0, exports.SharedApiFp)(this.configuration).listClickhouseAccountRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
|
|
23435
|
+
}
|
|
23436
|
+
/**
|
|
23437
|
+
*
|
|
23438
|
+
* @summary List ClickHouse accounts
|
|
23439
|
+
* @param {SharedApiListClickhouseAccountsRequest} requestParameters Request parameters.
|
|
23440
|
+
* @param {*} [options] Override http request option.
|
|
23441
|
+
* @throws {RequiredError}
|
|
23442
|
+
* @memberof SharedApi
|
|
23443
|
+
*/
|
|
23444
|
+
listClickhouseAccounts(requestParameters, options) {
|
|
23445
|
+
return (0, exports.SharedApiFp)(this.configuration).listClickhouseAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
23446
|
+
}
|
|
23447
|
+
/**
|
|
23448
|
+
*
|
|
23449
|
+
* @summary List privileges supported by the ClickHouse server
|
|
23450
|
+
* @param {SharedApiListClickhousePrivilegesRequest} requestParameters Request parameters.
|
|
23451
|
+
* @param {*} [options] Override http request option.
|
|
23452
|
+
* @throws {RequiredError}
|
|
23453
|
+
* @memberof SharedApi
|
|
23454
|
+
*/
|
|
23455
|
+
listClickhousePrivileges(requestParameters, options) {
|
|
23456
|
+
return (0, exports.SharedApiFp)(this.configuration).listClickhousePrivileges(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
23457
|
+
}
|
|
23458
|
+
/**
|
|
23459
|
+
*
|
|
23460
|
+
* @summary List ClickHouse roles
|
|
23461
|
+
* @param {SharedApiListClickhouseRolesRequest} requestParameters Request parameters.
|
|
23462
|
+
* @param {*} [options] Override http request option.
|
|
23463
|
+
* @throws {RequiredError}
|
|
23464
|
+
* @memberof SharedApi
|
|
23465
|
+
*/
|
|
23466
|
+
listClickhouseRoles(requestParameters, options) {
|
|
23467
|
+
return (0, exports.SharedApiFp)(this.configuration).listClickhouseRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.forCreateUser, options).then((request) => request(this.axios, this.basePath));
|
|
23468
|
+
}
|
|
22439
23469
|
/**
|
|
22440
23470
|
*
|
|
22441
23471
|
* @summary List clusters in the Org
|
|
@@ -22445,7 +23475,7 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
22445
23475
|
* @memberof SharedApi
|
|
22446
23476
|
*/
|
|
22447
23477
|
listCluster(requestParameters, options) {
|
|
22448
|
-
return (0, exports.SharedApiFp)(this.configuration).listCluster(requestParameters.orgName, requestParameters.clusterDefinition, requestParameters.environmentName, requestParameters.environmentType, requestParameters.tagKey, requestParameters.tagValue, requestParameters.tagKeys, requestParameters.tagValues, requestParameters.licenseId, requestParameters.refClusterName, options).then((request) => request(this.axios, this.basePath));
|
|
23478
|
+
return (0, exports.SharedApiFp)(this.configuration).listCluster(requestParameters.orgName, requestParameters.clusterDefinition, requestParameters.environmentName, requestParameters.environmentType, requestParameters.tagKey, requestParameters.tagValue, requestParameters.tagKeys, requestParameters.tagValues, requestParameters.licenseId, requestParameters.refClusterName, requestParameters.endpointHost, requestParameters.includeEndpoints, options).then((request) => request(this.axios, this.basePath));
|
|
22449
23479
|
}
|
|
22450
23480
|
/**
|
|
22451
23481
|
*
|
|
@@ -22467,7 +23497,7 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
22467
23497
|
* @memberof SharedApi
|
|
22468
23498
|
*/
|
|
22469
23499
|
listClusters(requestParameters = {}, options) {
|
|
22470
|
-
return (0, exports.SharedApiFp)(this.configuration).listClusters(requestParameters.orgName, requestParameters.envName, requestParameters.withStatic, options).then((request) => request(this.axios, this.basePath));
|
|
23500
|
+
return (0, exports.SharedApiFp)(this.configuration).listClusters(requestParameters.orgName, requestParameters.envName, requestParameters.withStatic, requestParameters.endpointHost, requestParameters.includeEndpoints, options).then((request) => request(this.axios, this.basePath));
|
|
22471
23501
|
}
|
|
22472
23502
|
/**
|
|
22473
23503
|
*
|
|
@@ -23510,6 +24540,17 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
23510
24540
|
restoreRecycleBinCluster(requestParameters, options) {
|
|
23511
24541
|
return (0, exports.SharedApiFp)(this.configuration).restoreRecycleBinCluster(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
23512
24542
|
}
|
|
24543
|
+
/**
|
|
24544
|
+
*
|
|
24545
|
+
* @summary Revoke privileges from a ClickHouse role
|
|
24546
|
+
* @param {SharedApiRevokeClickhouseRolePrivilegesRequest} requestParameters Request parameters.
|
|
24547
|
+
* @param {*} [options] Override http request option.
|
|
24548
|
+
* @throws {RequiredError}
|
|
24549
|
+
* @memberof SharedApi
|
|
24550
|
+
*/
|
|
24551
|
+
revokeClickhouseRolePrivileges(requestParameters, options) {
|
|
24552
|
+
return (0, exports.SharedApiFp)(this.configuration).revokeClickhouseRolePrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
24553
|
+
}
|
|
23513
24554
|
/**
|
|
23514
24555
|
*
|
|
23515
24556
|
* @summary Set cluster alert disabled or enabled
|
|
@@ -23708,6 +24749,28 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
23708
24749
|
updateBackupSchedule(requestParameters, options) {
|
|
23709
24750
|
return (0, exports.SharedApiFp)(this.configuration).updateBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.scheduleName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
23710
24751
|
}
|
|
24752
|
+
/**
|
|
24753
|
+
*
|
|
24754
|
+
* @summary Update a ClickHouse account password
|
|
24755
|
+
* @param {SharedApiUpdateClickhouseAccountPasswordRequest} requestParameters Request parameters.
|
|
24756
|
+
* @param {*} [options] Override http request option.
|
|
24757
|
+
* @throws {RequiredError}
|
|
24758
|
+
* @memberof SharedApi
|
|
24759
|
+
*/
|
|
24760
|
+
updateClickhouseAccountPassword(requestParameters, options) {
|
|
24761
|
+
return (0, exports.SharedApiFp)(this.configuration).updateClickhouseAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
24762
|
+
}
|
|
24763
|
+
/**
|
|
24764
|
+
*
|
|
24765
|
+
* @summary Update the roles granted to a ClickHouse account
|
|
24766
|
+
* @param {SharedApiUpdateClickhouseAccountRolesRequest} requestParameters Request parameters.
|
|
24767
|
+
* @param {*} [options] Override http request option.
|
|
24768
|
+
* @throws {RequiredError}
|
|
24769
|
+
* @memberof SharedApi
|
|
24770
|
+
*/
|
|
24771
|
+
updateClickhouseAccountRoles(requestParameters, options) {
|
|
24772
|
+
return (0, exports.SharedApiFp)(this.configuration).updateClickhouseAccountRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
24773
|
+
}
|
|
23711
24774
|
/**
|
|
23712
24775
|
*
|
|
23713
24776
|
* @summary Update the cluster license
|