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
|
@@ -726,6 +726,92 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
726
726
|
options: localVarRequestOptions,
|
|
727
727
|
};
|
|
728
728
|
},
|
|
729
|
+
/**
|
|
730
|
+
*
|
|
731
|
+
* @summary Create a ClickHouse account with optional roles
|
|
732
|
+
* @param {string} orgName
|
|
733
|
+
* @param {string} clusterName
|
|
734
|
+
* @param {CreateClickhouseAccountRequest} body
|
|
735
|
+
* @param {*} [options] Override http request option.
|
|
736
|
+
* @throws {RequiredError}
|
|
737
|
+
*/
|
|
738
|
+
createClickhouseAccount: async (orgName, clusterName, body, options = {}) => {
|
|
739
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
740
|
+
(0, common_1.assertParamExists)('createClickhouseAccount', 'orgName', orgName);
|
|
741
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
742
|
+
(0, common_1.assertParamExists)('createClickhouseAccount', 'clusterName', clusterName);
|
|
743
|
+
// verify required parameter 'body' is not null or undefined
|
|
744
|
+
(0, common_1.assertParamExists)('createClickhouseAccount', 'body', body);
|
|
745
|
+
const localVarPath = `/api/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts`
|
|
746
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
747
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
748
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
749
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
750
|
+
let baseOptions;
|
|
751
|
+
if (configuration) {
|
|
752
|
+
baseOptions = configuration.baseOptions;
|
|
753
|
+
}
|
|
754
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
755
|
+
const localVarHeaderParameter = {};
|
|
756
|
+
const localVarQueryParameter = {};
|
|
757
|
+
// authentication BearerToken required
|
|
758
|
+
// http bearer authentication required
|
|
759
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
760
|
+
// authentication DigestAuth required
|
|
761
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
762
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
763
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
764
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
765
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
766
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
767
|
+
return {
|
|
768
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
769
|
+
options: localVarRequestOptions,
|
|
770
|
+
};
|
|
771
|
+
},
|
|
772
|
+
/**
|
|
773
|
+
*
|
|
774
|
+
* @summary Create a ClickHouse role with privileges
|
|
775
|
+
* @param {string} orgName
|
|
776
|
+
* @param {string} clusterName
|
|
777
|
+
* @param {ListClickhouseAccountRoles200Response} body
|
|
778
|
+
* @param {*} [options] Override http request option.
|
|
779
|
+
* @throws {RequiredError}
|
|
780
|
+
*/
|
|
781
|
+
createClickhouseRole: async (orgName, clusterName, body, options = {}) => {
|
|
782
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
783
|
+
(0, common_1.assertParamExists)('createClickhouseRole', 'orgName', orgName);
|
|
784
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
785
|
+
(0, common_1.assertParamExists)('createClickhouseRole', 'clusterName', clusterName);
|
|
786
|
+
// verify required parameter 'body' is not null or undefined
|
|
787
|
+
(0, common_1.assertParamExists)('createClickhouseRole', 'body', body);
|
|
788
|
+
const localVarPath = `/api/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/roles`
|
|
789
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
790
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
791
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
792
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
793
|
+
let baseOptions;
|
|
794
|
+
if (configuration) {
|
|
795
|
+
baseOptions = configuration.baseOptions;
|
|
796
|
+
}
|
|
797
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
798
|
+
const localVarHeaderParameter = {};
|
|
799
|
+
const localVarQueryParameter = {};
|
|
800
|
+
// authentication BearerToken required
|
|
801
|
+
// http bearer authentication required
|
|
802
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
803
|
+
// authentication DigestAuth required
|
|
804
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
805
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
806
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
807
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
808
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
809
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
810
|
+
return {
|
|
811
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
812
|
+
options: localVarRequestOptions,
|
|
813
|
+
};
|
|
814
|
+
},
|
|
729
815
|
/**
|
|
730
816
|
*
|
|
731
817
|
* @summary Create new cluster
|
|
@@ -1863,6 +1949,90 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
1863
1949
|
options: localVarRequestOptions,
|
|
1864
1950
|
};
|
|
1865
1951
|
},
|
|
1952
|
+
/**
|
|
1953
|
+
*
|
|
1954
|
+
* @summary Delete a ClickHouse account
|
|
1955
|
+
* @param {string} orgName
|
|
1956
|
+
* @param {string} clusterName
|
|
1957
|
+
* @param {string} accountName
|
|
1958
|
+
* @param {*} [options] Override http request option.
|
|
1959
|
+
* @throws {RequiredError}
|
|
1960
|
+
*/
|
|
1961
|
+
deleteClickhouseAccount: async (orgName, clusterName, accountName, options = {}) => {
|
|
1962
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1963
|
+
(0, common_1.assertParamExists)('deleteClickhouseAccount', 'orgName', orgName);
|
|
1964
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1965
|
+
(0, common_1.assertParamExists)('deleteClickhouseAccount', 'clusterName', clusterName);
|
|
1966
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
1967
|
+
(0, common_1.assertParamExists)('deleteClickhouseAccount', 'accountName', accountName);
|
|
1968
|
+
const localVarPath = `/api/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
|
|
1969
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1970
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
1971
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
1972
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1973
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1974
|
+
let baseOptions;
|
|
1975
|
+
if (configuration) {
|
|
1976
|
+
baseOptions = configuration.baseOptions;
|
|
1977
|
+
}
|
|
1978
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1979
|
+
const localVarHeaderParameter = {};
|
|
1980
|
+
const localVarQueryParameter = {};
|
|
1981
|
+
// authentication BearerToken required
|
|
1982
|
+
// http bearer authentication required
|
|
1983
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1984
|
+
// authentication DigestAuth required
|
|
1985
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1986
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1987
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1988
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1989
|
+
return {
|
|
1990
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1991
|
+
options: localVarRequestOptions,
|
|
1992
|
+
};
|
|
1993
|
+
},
|
|
1994
|
+
/**
|
|
1995
|
+
*
|
|
1996
|
+
* @summary Delete a ClickHouse role
|
|
1997
|
+
* @param {string} orgName
|
|
1998
|
+
* @param {string} clusterName
|
|
1999
|
+
* @param {string} roleName
|
|
2000
|
+
* @param {*} [options] Override http request option.
|
|
2001
|
+
* @throws {RequiredError}
|
|
2002
|
+
*/
|
|
2003
|
+
deleteClickhouseRole: async (orgName, clusterName, roleName, options = {}) => {
|
|
2004
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
2005
|
+
(0, common_1.assertParamExists)('deleteClickhouseRole', 'orgName', orgName);
|
|
2006
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
2007
|
+
(0, common_1.assertParamExists)('deleteClickhouseRole', 'clusterName', clusterName);
|
|
2008
|
+
// verify required parameter 'roleName' is not null or undefined
|
|
2009
|
+
(0, common_1.assertParamExists)('deleteClickhouseRole', 'roleName', roleName);
|
|
2010
|
+
const localVarPath = `/api/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
|
|
2011
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2012
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
2013
|
+
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
2014
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2015
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2016
|
+
let baseOptions;
|
|
2017
|
+
if (configuration) {
|
|
2018
|
+
baseOptions = configuration.baseOptions;
|
|
2019
|
+
}
|
|
2020
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
2021
|
+
const localVarHeaderParameter = {};
|
|
2022
|
+
const localVarQueryParameter = {};
|
|
2023
|
+
// authentication BearerToken required
|
|
2024
|
+
// http bearer authentication required
|
|
2025
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2026
|
+
// authentication DigestAuth required
|
|
2027
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
2028
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2029
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2030
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2031
|
+
return {
|
|
2032
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2033
|
+
options: localVarRequestOptions,
|
|
2034
|
+
};
|
|
2035
|
+
},
|
|
1866
2036
|
/**
|
|
1867
2037
|
*
|
|
1868
2038
|
* @summary Delete cluster
|
|
@@ -4095,6 +4265,48 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
4095
4265
|
options: localVarRequestOptions,
|
|
4096
4266
|
};
|
|
4097
4267
|
},
|
|
4268
|
+
/**
|
|
4269
|
+
*
|
|
4270
|
+
* @summary Get the grants (privileges) of a ClickHouse role
|
|
4271
|
+
* @param {string} orgName
|
|
4272
|
+
* @param {string} clusterName
|
|
4273
|
+
* @param {string} roleName
|
|
4274
|
+
* @param {*} [options] Override http request option.
|
|
4275
|
+
* @throws {RequiredError}
|
|
4276
|
+
*/
|
|
4277
|
+
getClickhouseRoleGrants: async (orgName, clusterName, roleName, options = {}) => {
|
|
4278
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
4279
|
+
(0, common_1.assertParamExists)('getClickhouseRoleGrants', 'orgName', orgName);
|
|
4280
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
4281
|
+
(0, common_1.assertParamExists)('getClickhouseRoleGrants', 'clusterName', clusterName);
|
|
4282
|
+
// verify required parameter 'roleName' is not null or undefined
|
|
4283
|
+
(0, common_1.assertParamExists)('getClickhouseRoleGrants', 'roleName', roleName);
|
|
4284
|
+
const localVarPath = `/api/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
|
|
4285
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
4286
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
4287
|
+
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
4288
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4289
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4290
|
+
let baseOptions;
|
|
4291
|
+
if (configuration) {
|
|
4292
|
+
baseOptions = configuration.baseOptions;
|
|
4293
|
+
}
|
|
4294
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4295
|
+
const localVarHeaderParameter = {};
|
|
4296
|
+
const localVarQueryParameter = {};
|
|
4297
|
+
// authentication BearerToken required
|
|
4298
|
+
// http bearer authentication required
|
|
4299
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4300
|
+
// authentication DigestAuth required
|
|
4301
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
4302
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4303
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4304
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4305
|
+
return {
|
|
4306
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4307
|
+
options: localVarRequestOptions,
|
|
4308
|
+
};
|
|
4309
|
+
},
|
|
4098
4310
|
/**
|
|
4099
4311
|
*
|
|
4100
4312
|
* @summary Get cluster details
|
|
@@ -6366,6 +6578,53 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
6366
6578
|
options: localVarRequestOptions,
|
|
6367
6579
|
};
|
|
6368
6580
|
},
|
|
6581
|
+
/**
|
|
6582
|
+
*
|
|
6583
|
+
* @summary Grant privileges to a ClickHouse role
|
|
6584
|
+
* @param {string} orgName
|
|
6585
|
+
* @param {string} clusterName
|
|
6586
|
+
* @param {string} roleName
|
|
6587
|
+
* @param {ListClickhouseAccountRoles200ResponsePrivilegesInner} body
|
|
6588
|
+
* @param {*} [options] Override http request option.
|
|
6589
|
+
* @throws {RequiredError}
|
|
6590
|
+
*/
|
|
6591
|
+
grantClickhouseRolePrivileges: async (orgName, clusterName, roleName, body, options = {}) => {
|
|
6592
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
6593
|
+
(0, common_1.assertParamExists)('grantClickhouseRolePrivileges', 'orgName', orgName);
|
|
6594
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
6595
|
+
(0, common_1.assertParamExists)('grantClickhouseRolePrivileges', 'clusterName', clusterName);
|
|
6596
|
+
// verify required parameter 'roleName' is not null or undefined
|
|
6597
|
+
(0, common_1.assertParamExists)('grantClickhouseRolePrivileges', 'roleName', roleName);
|
|
6598
|
+
// verify required parameter 'body' is not null or undefined
|
|
6599
|
+
(0, common_1.assertParamExists)('grantClickhouseRolePrivileges', 'body', body);
|
|
6600
|
+
const localVarPath = `/api/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}/privileges`
|
|
6601
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
6602
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
6603
|
+
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
6604
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6605
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6606
|
+
let baseOptions;
|
|
6607
|
+
if (configuration) {
|
|
6608
|
+
baseOptions = configuration.baseOptions;
|
|
6609
|
+
}
|
|
6610
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6611
|
+
const localVarHeaderParameter = {};
|
|
6612
|
+
const localVarQueryParameter = {};
|
|
6613
|
+
// authentication BearerToken required
|
|
6614
|
+
// http bearer authentication required
|
|
6615
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6616
|
+
// authentication DigestAuth required
|
|
6617
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
6618
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6619
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6620
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6621
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6622
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
6623
|
+
return {
|
|
6624
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6625
|
+
options: localVarRequestOptions,
|
|
6626
|
+
};
|
|
6627
|
+
},
|
|
6369
6628
|
/**
|
|
6370
6629
|
*
|
|
6371
6630
|
* @summary Horizontal scale cluster
|
|
@@ -6469,21 +6728,193 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
6469
6728
|
// verify required parameter 'orgName' is not null or undefined
|
|
6470
6729
|
(0, common_1.assertParamExists)('killSession', 'orgName', orgName);
|
|
6471
6730
|
// verify required parameter 'clusterName' is not null or undefined
|
|
6472
|
-
(0, common_1.assertParamExists)('killSession', 'clusterName', clusterName);
|
|
6473
|
-
// verify required parameter 'session' is not null or undefined
|
|
6474
|
-
(0, common_1.assertParamExists)('killSession', 'session', session);
|
|
6475
|
-
const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/sessions/{session}`
|
|
6476
|
-
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
6731
|
+
(0, common_1.assertParamExists)('killSession', 'clusterName', clusterName);
|
|
6732
|
+
// verify required parameter 'session' is not null or undefined
|
|
6733
|
+
(0, common_1.assertParamExists)('killSession', 'session', session);
|
|
6734
|
+
const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/sessions/{session}`
|
|
6735
|
+
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
6736
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
6737
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
6738
|
+
.replace(`{${"session"}}`, encodeURIComponent(String(session)));
|
|
6739
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6740
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6741
|
+
let baseOptions;
|
|
6742
|
+
if (configuration) {
|
|
6743
|
+
baseOptions = configuration.baseOptions;
|
|
6744
|
+
}
|
|
6745
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
6746
|
+
const localVarHeaderParameter = {};
|
|
6747
|
+
const localVarQueryParameter = {};
|
|
6748
|
+
// authentication BearerToken required
|
|
6749
|
+
// http bearer authentication required
|
|
6750
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6751
|
+
// authentication DigestAuth required
|
|
6752
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
6753
|
+
if (keep !== undefined) {
|
|
6754
|
+
localVarQueryParameter['keep'] = keep;
|
|
6755
|
+
}
|
|
6756
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6757
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6758
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6759
|
+
return {
|
|
6760
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6761
|
+
options: localVarRequestOptions,
|
|
6762
|
+
};
|
|
6763
|
+
},
|
|
6764
|
+
/**
|
|
6765
|
+
* list accounts in cluster
|
|
6766
|
+
* @summary List cluster accounts
|
|
6767
|
+
* @param {string} engineName name of the engine
|
|
6768
|
+
* @param {string} orgName name of the organization
|
|
6769
|
+
* @param {string} clusterName name of the cluster
|
|
6770
|
+
* @param {*} [options] Override http request option.
|
|
6771
|
+
* @throws {RequiredError}
|
|
6772
|
+
*/
|
|
6773
|
+
listAccounts: async (engineName, orgName, clusterName, options = {}) => {
|
|
6774
|
+
// verify required parameter 'engineName' is not null or undefined
|
|
6775
|
+
(0, common_1.assertParamExists)('listAccounts', 'engineName', engineName);
|
|
6776
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
6777
|
+
(0, common_1.assertParamExists)('listAccounts', 'orgName', orgName);
|
|
6778
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
6779
|
+
(0, common_1.assertParamExists)('listAccounts', 'clusterName', clusterName);
|
|
6780
|
+
const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts`
|
|
6781
|
+
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
6782
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
6783
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
6784
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6785
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6786
|
+
let baseOptions;
|
|
6787
|
+
if (configuration) {
|
|
6788
|
+
baseOptions = configuration.baseOptions;
|
|
6789
|
+
}
|
|
6790
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6791
|
+
const localVarHeaderParameter = {};
|
|
6792
|
+
const localVarQueryParameter = {};
|
|
6793
|
+
// authentication BearerToken required
|
|
6794
|
+
// http bearer authentication required
|
|
6795
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6796
|
+
// authentication DigestAuth required
|
|
6797
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
6798
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6799
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6800
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6801
|
+
return {
|
|
6802
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6803
|
+
options: localVarRequestOptions,
|
|
6804
|
+
};
|
|
6805
|
+
},
|
|
6806
|
+
/**
|
|
6807
|
+
*
|
|
6808
|
+
* @summary list the available clusters for the organization to create the a relation
|
|
6809
|
+
* @param {string} orgName
|
|
6810
|
+
* @param {string} clusterName
|
|
6811
|
+
* @param {string} targetType
|
|
6812
|
+
* @param {*} [options] Override http request option.
|
|
6813
|
+
* @throws {RequiredError}
|
|
6814
|
+
*/
|
|
6815
|
+
listAvailableClustersForRelation: async (orgName, clusterName, targetType, options = {}) => {
|
|
6816
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
6817
|
+
(0, common_1.assertParamExists)('listAvailableClustersForRelation', 'orgName', orgName);
|
|
6818
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
6819
|
+
(0, common_1.assertParamExists)('listAvailableClustersForRelation', 'clusterName', clusterName);
|
|
6820
|
+
// verify required parameter 'targetType' is not null or undefined
|
|
6821
|
+
(0, common_1.assertParamExists)('listAvailableClustersForRelation', 'targetType', targetType);
|
|
6822
|
+
const localVarPath = `/api/v1/organizations/{orgName}/cluster/{clusterName}/available-relations`
|
|
6823
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
6824
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
6825
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6826
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6827
|
+
let baseOptions;
|
|
6828
|
+
if (configuration) {
|
|
6829
|
+
baseOptions = configuration.baseOptions;
|
|
6830
|
+
}
|
|
6831
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6832
|
+
const localVarHeaderParameter = {};
|
|
6833
|
+
const localVarQueryParameter = {};
|
|
6834
|
+
// authentication BearerToken required
|
|
6835
|
+
// http bearer authentication required
|
|
6836
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6837
|
+
// authentication DigestAuth required
|
|
6838
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
6839
|
+
if (targetType !== undefined) {
|
|
6840
|
+
localVarQueryParameter['targetType'] = targetType;
|
|
6841
|
+
}
|
|
6842
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6843
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6844
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6845
|
+
return {
|
|
6846
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6847
|
+
options: localVarRequestOptions,
|
|
6848
|
+
};
|
|
6849
|
+
},
|
|
6850
|
+
/**
|
|
6851
|
+
*
|
|
6852
|
+
* @summary List available nodes for rebuilding instance
|
|
6853
|
+
* @param {string} orgName name of the Org
|
|
6854
|
+
* @param {string} clusterName name of the KubeBlocks cluster
|
|
6855
|
+
* @param {string} name name of the instance to be rebuilt
|
|
6856
|
+
* @param {*} [options] Override http request option.
|
|
6857
|
+
* @throws {RequiredError}
|
|
6858
|
+
*/
|
|
6859
|
+
listAvailableNodes: async (orgName, clusterName, name, options = {}) => {
|
|
6860
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
6861
|
+
(0, common_1.assertParamExists)('listAvailableNodes', 'orgName', orgName);
|
|
6862
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
6863
|
+
(0, common_1.assertParamExists)('listAvailableNodes', 'clusterName', clusterName);
|
|
6864
|
+
// verify required parameter 'name' is not null or undefined
|
|
6865
|
+
(0, common_1.assertParamExists)('listAvailableNodes', 'name', name);
|
|
6866
|
+
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/rebuildInstance/availableNodes`
|
|
6867
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
6868
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
6869
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6870
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6871
|
+
let baseOptions;
|
|
6872
|
+
if (configuration) {
|
|
6873
|
+
baseOptions = configuration.baseOptions;
|
|
6874
|
+
}
|
|
6875
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6876
|
+
const localVarHeaderParameter = {};
|
|
6877
|
+
const localVarQueryParameter = {};
|
|
6878
|
+
// authentication BearerToken required
|
|
6879
|
+
// http bearer authentication required
|
|
6880
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6881
|
+
// authentication DigestAuth required
|
|
6882
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
6883
|
+
if (name !== undefined) {
|
|
6884
|
+
localVarQueryParameter['name'] = name;
|
|
6885
|
+
}
|
|
6886
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6887
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6888
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6889
|
+
return {
|
|
6890
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6891
|
+
options: localVarRequestOptions,
|
|
6892
|
+
};
|
|
6893
|
+
},
|
|
6894
|
+
/**
|
|
6895
|
+
*
|
|
6896
|
+
* @summary List backup schedules
|
|
6897
|
+
* @param {string} orgName name of the org
|
|
6898
|
+
* @param {string} clusterName name of the cluster
|
|
6899
|
+
* @param {string} [backupMethod] filter by backup method
|
|
6900
|
+
* @param {*} [options] Override http request option.
|
|
6901
|
+
* @throws {RequiredError}
|
|
6902
|
+
*/
|
|
6903
|
+
listBackupSchedules: async (orgName, clusterName, backupMethod, options = {}) => {
|
|
6904
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
6905
|
+
(0, common_1.assertParamExists)('listBackupSchedules', 'orgName', orgName);
|
|
6906
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
6907
|
+
(0, common_1.assertParamExists)('listBackupSchedules', 'clusterName', clusterName);
|
|
6908
|
+
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/backupSchedules`
|
|
6477
6909
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
6478
|
-
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
6479
|
-
.replace(`{${"session"}}`, encodeURIComponent(String(session)));
|
|
6910
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
6480
6911
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6481
6912
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6482
6913
|
let baseOptions;
|
|
6483
6914
|
if (configuration) {
|
|
6484
6915
|
baseOptions = configuration.baseOptions;
|
|
6485
6916
|
}
|
|
6486
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
6917
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6487
6918
|
const localVarHeaderParameter = {};
|
|
6488
6919
|
const localVarQueryParameter = {};
|
|
6489
6920
|
// authentication BearerToken required
|
|
@@ -6491,8 +6922,8 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
6491
6922
|
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6492
6923
|
// authentication DigestAuth required
|
|
6493
6924
|
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
6494
|
-
if (
|
|
6495
|
-
localVarQueryParameter['
|
|
6925
|
+
if (backupMethod !== undefined) {
|
|
6926
|
+
localVarQueryParameter['backupMethod'] = backupMethod;
|
|
6496
6927
|
}
|
|
6497
6928
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6498
6929
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -6503,25 +6934,25 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
6503
6934
|
};
|
|
6504
6935
|
},
|
|
6505
6936
|
/**
|
|
6506
|
-
*
|
|
6507
|
-
* @summary List
|
|
6508
|
-
* @param {string}
|
|
6509
|
-
* @param {string}
|
|
6510
|
-
* @param {string}
|
|
6937
|
+
*
|
|
6938
|
+
* @summary List the roles granted to a ClickHouse account
|
|
6939
|
+
* @param {string} orgName
|
|
6940
|
+
* @param {string} clusterName
|
|
6941
|
+
* @param {string} accountName
|
|
6511
6942
|
* @param {*} [options] Override http request option.
|
|
6512
6943
|
* @throws {RequiredError}
|
|
6513
6944
|
*/
|
|
6514
|
-
|
|
6515
|
-
// verify required parameter 'engineName' is not null or undefined
|
|
6516
|
-
(0, common_1.assertParamExists)('listAccounts', 'engineName', engineName);
|
|
6945
|
+
listClickhouseAccountRoles: async (orgName, clusterName, accountName, options = {}) => {
|
|
6517
6946
|
// verify required parameter 'orgName' is not null or undefined
|
|
6518
|
-
(0, common_1.assertParamExists)('
|
|
6947
|
+
(0, common_1.assertParamExists)('listClickhouseAccountRoles', 'orgName', orgName);
|
|
6519
6948
|
// verify required parameter 'clusterName' is not null or undefined
|
|
6520
|
-
(0, common_1.assertParamExists)('
|
|
6521
|
-
|
|
6522
|
-
|
|
6949
|
+
(0, common_1.assertParamExists)('listClickhouseAccountRoles', 'clusterName', clusterName);
|
|
6950
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
6951
|
+
(0, common_1.assertParamExists)('listClickhouseAccountRoles', 'accountName', accountName);
|
|
6952
|
+
const localVarPath = `/api/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/roles`
|
|
6523
6953
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
6524
|
-
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
6954
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
6955
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
6525
6956
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6526
6957
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6527
6958
|
let baseOptions;
|
|
@@ -6546,21 +6977,18 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
6546
6977
|
},
|
|
6547
6978
|
/**
|
|
6548
6979
|
*
|
|
6549
|
-
* @summary
|
|
6980
|
+
* @summary List ClickHouse accounts
|
|
6550
6981
|
* @param {string} orgName
|
|
6551
6982
|
* @param {string} clusterName
|
|
6552
|
-
* @param {string} targetType
|
|
6553
6983
|
* @param {*} [options] Override http request option.
|
|
6554
6984
|
* @throws {RequiredError}
|
|
6555
6985
|
*/
|
|
6556
|
-
|
|
6986
|
+
listClickhouseAccounts: async (orgName, clusterName, options = {}) => {
|
|
6557
6987
|
// verify required parameter 'orgName' is not null or undefined
|
|
6558
|
-
(0, common_1.assertParamExists)('
|
|
6988
|
+
(0, common_1.assertParamExists)('listClickhouseAccounts', 'orgName', orgName);
|
|
6559
6989
|
// verify required parameter 'clusterName' is not null or undefined
|
|
6560
|
-
(0, common_1.assertParamExists)('
|
|
6561
|
-
|
|
6562
|
-
(0, common_1.assertParamExists)('listAvailableClustersForRelation', 'targetType', targetType);
|
|
6563
|
-
const localVarPath = `/api/v1/organizations/{orgName}/cluster/{clusterName}/available-relations`
|
|
6990
|
+
(0, common_1.assertParamExists)('listClickhouseAccounts', 'clusterName', clusterName);
|
|
6991
|
+
const localVarPath = `/api/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts`
|
|
6564
6992
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
6565
6993
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
6566
6994
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -6577,9 +7005,6 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
6577
7005
|
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6578
7006
|
// authentication DigestAuth required
|
|
6579
7007
|
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
6580
|
-
if (targetType !== undefined) {
|
|
6581
|
-
localVarQueryParameter['targetType'] = targetType;
|
|
6582
|
-
}
|
|
6583
7008
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6584
7009
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6585
7010
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -6590,21 +7015,18 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
6590
7015
|
},
|
|
6591
7016
|
/**
|
|
6592
7017
|
*
|
|
6593
|
-
* @summary List
|
|
6594
|
-
* @param {string} orgName
|
|
6595
|
-
* @param {string} clusterName
|
|
6596
|
-
* @param {string} name name of the instance to be rebuilt
|
|
7018
|
+
* @summary List privileges supported by the ClickHouse server
|
|
7019
|
+
* @param {string} orgName
|
|
7020
|
+
* @param {string} clusterName
|
|
6597
7021
|
* @param {*} [options] Override http request option.
|
|
6598
7022
|
* @throws {RequiredError}
|
|
6599
7023
|
*/
|
|
6600
|
-
|
|
7024
|
+
listClickhousePrivileges: async (orgName, clusterName, options = {}) => {
|
|
6601
7025
|
// verify required parameter 'orgName' is not null or undefined
|
|
6602
|
-
(0, common_1.assertParamExists)('
|
|
7026
|
+
(0, common_1.assertParamExists)('listClickhousePrivileges', 'orgName', orgName);
|
|
6603
7027
|
// verify required parameter 'clusterName' is not null or undefined
|
|
6604
|
-
(0, common_1.assertParamExists)('
|
|
6605
|
-
|
|
6606
|
-
(0, common_1.assertParamExists)('listAvailableNodes', 'name', name);
|
|
6607
|
-
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/rebuildInstance/availableNodes`
|
|
7028
|
+
(0, common_1.assertParamExists)('listClickhousePrivileges', 'clusterName', clusterName);
|
|
7029
|
+
const localVarPath = `/api/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/privileges`
|
|
6608
7030
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
6609
7031
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
6610
7032
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -6621,9 +7043,6 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
6621
7043
|
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6622
7044
|
// authentication DigestAuth required
|
|
6623
7045
|
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
6624
|
-
if (name !== undefined) {
|
|
6625
|
-
localVarQueryParameter['name'] = name;
|
|
6626
|
-
}
|
|
6627
7046
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6628
7047
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6629
7048
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -6634,19 +7053,19 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
6634
7053
|
},
|
|
6635
7054
|
/**
|
|
6636
7055
|
*
|
|
6637
|
-
* @summary List
|
|
6638
|
-
* @param {string} orgName
|
|
6639
|
-
* @param {string} clusterName
|
|
6640
|
-
* @param {
|
|
7056
|
+
* @summary List ClickHouse roles
|
|
7057
|
+
* @param {string} orgName
|
|
7058
|
+
* @param {string} clusterName
|
|
7059
|
+
* @param {boolean} [forCreateUser] Whether to include built-in privilege roles for creating an account.
|
|
6641
7060
|
* @param {*} [options] Override http request option.
|
|
6642
7061
|
* @throws {RequiredError}
|
|
6643
7062
|
*/
|
|
6644
|
-
|
|
7063
|
+
listClickhouseRoles: async (orgName, clusterName, forCreateUser, options = {}) => {
|
|
6645
7064
|
// verify required parameter 'orgName' is not null or undefined
|
|
6646
|
-
(0, common_1.assertParamExists)('
|
|
7065
|
+
(0, common_1.assertParamExists)('listClickhouseRoles', 'orgName', orgName);
|
|
6647
7066
|
// verify required parameter 'clusterName' is not null or undefined
|
|
6648
|
-
(0, common_1.assertParamExists)('
|
|
6649
|
-
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/
|
|
7067
|
+
(0, common_1.assertParamExists)('listClickhouseRoles', 'clusterName', clusterName);
|
|
7068
|
+
const localVarPath = `/api/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/roles`
|
|
6650
7069
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
6651
7070
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
6652
7071
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -6663,8 +7082,8 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
6663
7082
|
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6664
7083
|
// authentication DigestAuth required
|
|
6665
7084
|
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
6666
|
-
if (
|
|
6667
|
-
localVarQueryParameter['
|
|
7085
|
+
if (forCreateUser !== undefined) {
|
|
7086
|
+
localVarQueryParameter['forCreateUser'] = forCreateUser;
|
|
6668
7087
|
}
|
|
6669
7088
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6670
7089
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -6687,10 +7106,12 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
6687
7106
|
* @param {Array<string>} [tagValues] A list of tags\' values corresponding to the tagKeys
|
|
6688
7107
|
* @param {number} [licenseId] license id
|
|
6689
7108
|
* @param {string} [refClusterName] list clusters referenced by this cluster
|
|
7109
|
+
* @param {string} [endpointHost] Case-insensitive substring to match against the host part of cached cluster endpoints
|
|
7110
|
+
* @param {boolean} [includeEndpoints] Whether to include cached user-visible endpoints in each cluster item
|
|
6690
7111
|
* @param {*} [options] Override http request option.
|
|
6691
7112
|
* @throws {RequiredError}
|
|
6692
7113
|
*/
|
|
6693
|
-
listCluster: async (orgName, clusterDefinition, environmentName, environmentType, tagKey, tagValue, tagKeys, tagValues, licenseId, refClusterName, options = {}) => {
|
|
7114
|
+
listCluster: async (orgName, clusterDefinition, environmentName, environmentType, tagKey, tagValue, tagKeys, tagValues, licenseId, refClusterName, endpointHost, includeEndpoints, options = {}) => {
|
|
6694
7115
|
// verify required parameter 'orgName' is not null or undefined
|
|
6695
7116
|
(0, common_1.assertParamExists)('listCluster', 'orgName', orgName);
|
|
6696
7117
|
const localVarPath = `/api/v1/organizations/{orgName}/clusters`
|
|
@@ -6736,6 +7157,12 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
6736
7157
|
if (refClusterName !== undefined) {
|
|
6737
7158
|
localVarQueryParameter['refClusterName'] = refClusterName;
|
|
6738
7159
|
}
|
|
7160
|
+
if (endpointHost !== undefined) {
|
|
7161
|
+
localVarQueryParameter['endpointHost'] = endpointHost;
|
|
7162
|
+
}
|
|
7163
|
+
if (includeEndpoints !== undefined) {
|
|
7164
|
+
localVarQueryParameter['includeEndpoints'] = includeEndpoints;
|
|
7165
|
+
}
|
|
6739
7166
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6740
7167
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6741
7168
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -11207,6 +11634,53 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
11207
11634
|
options: localVarRequestOptions,
|
|
11208
11635
|
};
|
|
11209
11636
|
},
|
|
11637
|
+
/**
|
|
11638
|
+
*
|
|
11639
|
+
* @summary Revoke privileges from a ClickHouse role
|
|
11640
|
+
* @param {string} orgName
|
|
11641
|
+
* @param {string} clusterName
|
|
11642
|
+
* @param {string} roleName
|
|
11643
|
+
* @param {RevokeClickhouseRolePrivilegesRequest} body
|
|
11644
|
+
* @param {*} [options] Override http request option.
|
|
11645
|
+
* @throws {RequiredError}
|
|
11646
|
+
*/
|
|
11647
|
+
revokeClickhouseRolePrivileges: async (orgName, clusterName, roleName, body, options = {}) => {
|
|
11648
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
11649
|
+
(0, common_1.assertParamExists)('revokeClickhouseRolePrivileges', 'orgName', orgName);
|
|
11650
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
11651
|
+
(0, common_1.assertParamExists)('revokeClickhouseRolePrivileges', 'clusterName', clusterName);
|
|
11652
|
+
// verify required parameter 'roleName' is not null or undefined
|
|
11653
|
+
(0, common_1.assertParamExists)('revokeClickhouseRolePrivileges', 'roleName', roleName);
|
|
11654
|
+
// verify required parameter 'body' is not null or undefined
|
|
11655
|
+
(0, common_1.assertParamExists)('revokeClickhouseRolePrivileges', 'body', body);
|
|
11656
|
+
const localVarPath = `/api/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}/privileges`
|
|
11657
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
11658
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
11659
|
+
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
11660
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11661
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11662
|
+
let baseOptions;
|
|
11663
|
+
if (configuration) {
|
|
11664
|
+
baseOptions = configuration.baseOptions;
|
|
11665
|
+
}
|
|
11666
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
11667
|
+
const localVarHeaderParameter = {};
|
|
11668
|
+
const localVarQueryParameter = {};
|
|
11669
|
+
// authentication BearerToken required
|
|
11670
|
+
// http bearer authentication required
|
|
11671
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
11672
|
+
// authentication DigestAuth required
|
|
11673
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
11674
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11675
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11676
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11677
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11678
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
11679
|
+
return {
|
|
11680
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11681
|
+
options: localVarRequestOptions,
|
|
11682
|
+
};
|
|
11683
|
+
},
|
|
11210
11684
|
/**
|
|
11211
11685
|
*
|
|
11212
11686
|
* @summary Set alert config
|
|
@@ -12135,6 +12609,100 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
12135
12609
|
options: localVarRequestOptions,
|
|
12136
12610
|
};
|
|
12137
12611
|
},
|
|
12612
|
+
/**
|
|
12613
|
+
*
|
|
12614
|
+
* @summary Update a ClickHouse account password
|
|
12615
|
+
* @param {string} orgName
|
|
12616
|
+
* @param {string} clusterName
|
|
12617
|
+
* @param {string} accountName
|
|
12618
|
+
* @param {UpdateClickhouseAccountPasswordRequest} body
|
|
12619
|
+
* @param {*} [options] Override http request option.
|
|
12620
|
+
* @throws {RequiredError}
|
|
12621
|
+
*/
|
|
12622
|
+
updateClickhouseAccountPassword: async (orgName, clusterName, accountName, body, options = {}) => {
|
|
12623
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
12624
|
+
(0, common_1.assertParamExists)('updateClickhouseAccountPassword', 'orgName', orgName);
|
|
12625
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
12626
|
+
(0, common_1.assertParamExists)('updateClickhouseAccountPassword', 'clusterName', clusterName);
|
|
12627
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
12628
|
+
(0, common_1.assertParamExists)('updateClickhouseAccountPassword', 'accountName', accountName);
|
|
12629
|
+
// verify required parameter 'body' is not null or undefined
|
|
12630
|
+
(0, common_1.assertParamExists)('updateClickhouseAccountPassword', 'body', body);
|
|
12631
|
+
const localVarPath = `/api/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
|
|
12632
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
12633
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
12634
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
12635
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12636
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12637
|
+
let baseOptions;
|
|
12638
|
+
if (configuration) {
|
|
12639
|
+
baseOptions = configuration.baseOptions;
|
|
12640
|
+
}
|
|
12641
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
12642
|
+
const localVarHeaderParameter = {};
|
|
12643
|
+
const localVarQueryParameter = {};
|
|
12644
|
+
// authentication BearerToken required
|
|
12645
|
+
// http bearer authentication required
|
|
12646
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12647
|
+
// authentication DigestAuth required
|
|
12648
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
12649
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12650
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12651
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12652
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12653
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
12654
|
+
return {
|
|
12655
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12656
|
+
options: localVarRequestOptions,
|
|
12657
|
+
};
|
|
12658
|
+
},
|
|
12659
|
+
/**
|
|
12660
|
+
*
|
|
12661
|
+
* @summary Update the roles granted to a ClickHouse account
|
|
12662
|
+
* @param {string} orgName
|
|
12663
|
+
* @param {string} clusterName
|
|
12664
|
+
* @param {string} accountName
|
|
12665
|
+
* @param {UpdateClickhouseAccountRolesRequest} body
|
|
12666
|
+
* @param {*} [options] Override http request option.
|
|
12667
|
+
* @throws {RequiredError}
|
|
12668
|
+
*/
|
|
12669
|
+
updateClickhouseAccountRoles: async (orgName, clusterName, accountName, body, options = {}) => {
|
|
12670
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
12671
|
+
(0, common_1.assertParamExists)('updateClickhouseAccountRoles', 'orgName', orgName);
|
|
12672
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
12673
|
+
(0, common_1.assertParamExists)('updateClickhouseAccountRoles', 'clusterName', clusterName);
|
|
12674
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
12675
|
+
(0, common_1.assertParamExists)('updateClickhouseAccountRoles', 'accountName', accountName);
|
|
12676
|
+
// verify required parameter 'body' is not null or undefined
|
|
12677
|
+
(0, common_1.assertParamExists)('updateClickhouseAccountRoles', 'body', body);
|
|
12678
|
+
const localVarPath = `/api/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/roles`
|
|
12679
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
12680
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
12681
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
12682
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12683
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12684
|
+
let baseOptions;
|
|
12685
|
+
if (configuration) {
|
|
12686
|
+
baseOptions = configuration.baseOptions;
|
|
12687
|
+
}
|
|
12688
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
12689
|
+
const localVarHeaderParameter = {};
|
|
12690
|
+
const localVarQueryParameter = {};
|
|
12691
|
+
// authentication BearerToken required
|
|
12692
|
+
// http bearer authentication required
|
|
12693
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12694
|
+
// authentication DigestAuth required
|
|
12695
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
12696
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12697
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12698
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12699
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12700
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
12701
|
+
return {
|
|
12702
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12703
|
+
options: localVarRequestOptions,
|
|
12704
|
+
};
|
|
12705
|
+
},
|
|
12138
12706
|
/**
|
|
12139
12707
|
*
|
|
12140
12708
|
* @summary Update the cluster license
|
|
@@ -13514,6 +14082,38 @@ const SharedApiFp = function (configuration) {
|
|
|
13514
14082
|
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;
|
|
13515
14083
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13516
14084
|
},
|
|
14085
|
+
/**
|
|
14086
|
+
*
|
|
14087
|
+
* @summary Create a ClickHouse account with optional roles
|
|
14088
|
+
* @param {string} orgName
|
|
14089
|
+
* @param {string} clusterName
|
|
14090
|
+
* @param {CreateClickhouseAccountRequest} body
|
|
14091
|
+
* @param {*} [options] Override http request option.
|
|
14092
|
+
* @throws {RequiredError}
|
|
14093
|
+
*/
|
|
14094
|
+
async createClickhouseAccount(orgName, clusterName, body, options) {
|
|
14095
|
+
var _a, _b, _c;
|
|
14096
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createClickhouseAccount(orgName, clusterName, body, options);
|
|
14097
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14098
|
+
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;
|
|
14099
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14100
|
+
},
|
|
14101
|
+
/**
|
|
14102
|
+
*
|
|
14103
|
+
* @summary Create a ClickHouse role with privileges
|
|
14104
|
+
* @param {string} orgName
|
|
14105
|
+
* @param {string} clusterName
|
|
14106
|
+
* @param {ListClickhouseAccountRoles200Response} body
|
|
14107
|
+
* @param {*} [options] Override http request option.
|
|
14108
|
+
* @throws {RequiredError}
|
|
14109
|
+
*/
|
|
14110
|
+
async createClickhouseRole(orgName, clusterName, body, options) {
|
|
14111
|
+
var _a, _b, _c;
|
|
14112
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createClickhouseRole(orgName, clusterName, body, options);
|
|
14113
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14114
|
+
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;
|
|
14115
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14116
|
+
},
|
|
13517
14117
|
/**
|
|
13518
14118
|
*
|
|
13519
14119
|
* @summary Create new cluster
|
|
@@ -13942,6 +14542,38 @@ const SharedApiFp = function (configuration) {
|
|
|
13942
14542
|
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;
|
|
13943
14543
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13944
14544
|
},
|
|
14545
|
+
/**
|
|
14546
|
+
*
|
|
14547
|
+
* @summary Delete a ClickHouse account
|
|
14548
|
+
* @param {string} orgName
|
|
14549
|
+
* @param {string} clusterName
|
|
14550
|
+
* @param {string} accountName
|
|
14551
|
+
* @param {*} [options] Override http request option.
|
|
14552
|
+
* @throws {RequiredError}
|
|
14553
|
+
*/
|
|
14554
|
+
async deleteClickhouseAccount(orgName, clusterName, accountName, options) {
|
|
14555
|
+
var _a, _b, _c;
|
|
14556
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClickhouseAccount(orgName, clusterName, accountName, options);
|
|
14557
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14558
|
+
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;
|
|
14559
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14560
|
+
},
|
|
14561
|
+
/**
|
|
14562
|
+
*
|
|
14563
|
+
* @summary Delete a ClickHouse role
|
|
14564
|
+
* @param {string} orgName
|
|
14565
|
+
* @param {string} clusterName
|
|
14566
|
+
* @param {string} roleName
|
|
14567
|
+
* @param {*} [options] Override http request option.
|
|
14568
|
+
* @throws {RequiredError}
|
|
14569
|
+
*/
|
|
14570
|
+
async deleteClickhouseRole(orgName, clusterName, roleName, options) {
|
|
14571
|
+
var _a, _b, _c;
|
|
14572
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClickhouseRole(orgName, clusterName, roleName, options);
|
|
14573
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14574
|
+
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;
|
|
14575
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14576
|
+
},
|
|
13945
14577
|
/**
|
|
13946
14578
|
*
|
|
13947
14579
|
* @summary Delete cluster
|
|
@@ -14758,6 +15390,22 @@ const SharedApiFp = function (configuration) {
|
|
|
14758
15390
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.getBackupMethod']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14759
15391
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14760
15392
|
},
|
|
15393
|
+
/**
|
|
15394
|
+
*
|
|
15395
|
+
* @summary Get the grants (privileges) of a ClickHouse role
|
|
15396
|
+
* @param {string} orgName
|
|
15397
|
+
* @param {string} clusterName
|
|
15398
|
+
* @param {string} roleName
|
|
15399
|
+
* @param {*} [options] Override http request option.
|
|
15400
|
+
* @throws {RequiredError}
|
|
15401
|
+
*/
|
|
15402
|
+
async getClickhouseRoleGrants(orgName, clusterName, roleName, options) {
|
|
15403
|
+
var _a, _b, _c;
|
|
15404
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getClickhouseRoleGrants(orgName, clusterName, roleName, options);
|
|
15405
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15406
|
+
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;
|
|
15407
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15408
|
+
},
|
|
14761
15409
|
/**
|
|
14762
15410
|
*
|
|
14763
15411
|
* @summary Get cluster details
|
|
@@ -15581,11 +16229,28 @@ const SharedApiFp = function (configuration) {
|
|
|
15581
16229
|
* @param {*} [options] Override http request option.
|
|
15582
16230
|
* @throws {RequiredError}
|
|
15583
16231
|
*/
|
|
15584
|
-
async getTenant(orgName, clusterName, tenantId, options) {
|
|
16232
|
+
async getTenant(orgName, clusterName, tenantId, options) {
|
|
16233
|
+
var _a, _b, _c;
|
|
16234
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTenant(orgName, clusterName, tenantId, options);
|
|
16235
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16236
|
+
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;
|
|
16237
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16238
|
+
},
|
|
16239
|
+
/**
|
|
16240
|
+
*
|
|
16241
|
+
* @summary Grant privileges to a ClickHouse role
|
|
16242
|
+
* @param {string} orgName
|
|
16243
|
+
* @param {string} clusterName
|
|
16244
|
+
* @param {string} roleName
|
|
16245
|
+
* @param {ListClickhouseAccountRoles200ResponsePrivilegesInner} body
|
|
16246
|
+
* @param {*} [options] Override http request option.
|
|
16247
|
+
* @throws {RequiredError}
|
|
16248
|
+
*/
|
|
16249
|
+
async grantClickhouseRolePrivileges(orgName, clusterName, roleName, body, options) {
|
|
15585
16250
|
var _a, _b, _c;
|
|
15586
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
16251
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.grantClickhouseRolePrivileges(orgName, clusterName, roleName, body, options);
|
|
15587
16252
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15588
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.
|
|
16253
|
+
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;
|
|
15589
16254
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15590
16255
|
},
|
|
15591
16256
|
/**
|
|
@@ -15702,6 +16367,68 @@ const SharedApiFp = function (configuration) {
|
|
|
15702
16367
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listBackupSchedules']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15703
16368
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15704
16369
|
},
|
|
16370
|
+
/**
|
|
16371
|
+
*
|
|
16372
|
+
* @summary List the roles granted to a ClickHouse account
|
|
16373
|
+
* @param {string} orgName
|
|
16374
|
+
* @param {string} clusterName
|
|
16375
|
+
* @param {string} accountName
|
|
16376
|
+
* @param {*} [options] Override http request option.
|
|
16377
|
+
* @throws {RequiredError}
|
|
16378
|
+
*/
|
|
16379
|
+
async listClickhouseAccountRoles(orgName, clusterName, accountName, options) {
|
|
16380
|
+
var _a, _b, _c;
|
|
16381
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listClickhouseAccountRoles(orgName, clusterName, accountName, options);
|
|
16382
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16383
|
+
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;
|
|
16384
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16385
|
+
},
|
|
16386
|
+
/**
|
|
16387
|
+
*
|
|
16388
|
+
* @summary List ClickHouse accounts
|
|
16389
|
+
* @param {string} orgName
|
|
16390
|
+
* @param {string} clusterName
|
|
16391
|
+
* @param {*} [options] Override http request option.
|
|
16392
|
+
* @throws {RequiredError}
|
|
16393
|
+
*/
|
|
16394
|
+
async listClickhouseAccounts(orgName, clusterName, options) {
|
|
16395
|
+
var _a, _b, _c;
|
|
16396
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listClickhouseAccounts(orgName, clusterName, options);
|
|
16397
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16398
|
+
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;
|
|
16399
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16400
|
+
},
|
|
16401
|
+
/**
|
|
16402
|
+
*
|
|
16403
|
+
* @summary List privileges supported by the ClickHouse server
|
|
16404
|
+
* @param {string} orgName
|
|
16405
|
+
* @param {string} clusterName
|
|
16406
|
+
* @param {*} [options] Override http request option.
|
|
16407
|
+
* @throws {RequiredError}
|
|
16408
|
+
*/
|
|
16409
|
+
async listClickhousePrivileges(orgName, clusterName, options) {
|
|
16410
|
+
var _a, _b, _c;
|
|
16411
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listClickhousePrivileges(orgName, clusterName, options);
|
|
16412
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16413
|
+
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;
|
|
16414
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16415
|
+
},
|
|
16416
|
+
/**
|
|
16417
|
+
*
|
|
16418
|
+
* @summary List ClickHouse roles
|
|
16419
|
+
* @param {string} orgName
|
|
16420
|
+
* @param {string} clusterName
|
|
16421
|
+
* @param {boolean} [forCreateUser] Whether to include built-in privilege roles for creating an account.
|
|
16422
|
+
* @param {*} [options] Override http request option.
|
|
16423
|
+
* @throws {RequiredError}
|
|
16424
|
+
*/
|
|
16425
|
+
async listClickhouseRoles(orgName, clusterName, forCreateUser, options) {
|
|
16426
|
+
var _a, _b, _c;
|
|
16427
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listClickhouseRoles(orgName, clusterName, forCreateUser, options);
|
|
16428
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16429
|
+
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;
|
|
16430
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16431
|
+
},
|
|
15705
16432
|
/**
|
|
15706
16433
|
*
|
|
15707
16434
|
* @summary List clusters in the Org
|
|
@@ -15715,12 +16442,14 @@ const SharedApiFp = function (configuration) {
|
|
|
15715
16442
|
* @param {Array<string>} [tagValues] A list of tags\' values corresponding to the tagKeys
|
|
15716
16443
|
* @param {number} [licenseId] license id
|
|
15717
16444
|
* @param {string} [refClusterName] list clusters referenced by this cluster
|
|
16445
|
+
* @param {string} [endpointHost] Case-insensitive substring to match against the host part of cached cluster endpoints
|
|
16446
|
+
* @param {boolean} [includeEndpoints] Whether to include cached user-visible endpoints in each cluster item
|
|
15718
16447
|
* @param {*} [options] Override http request option.
|
|
15719
16448
|
* @throws {RequiredError}
|
|
15720
16449
|
*/
|
|
15721
|
-
async listCluster(orgName, clusterDefinition, environmentName, environmentType, tagKey, tagValue, tagKeys, tagValues, licenseId, refClusterName, options) {
|
|
16450
|
+
async listCluster(orgName, clusterDefinition, environmentName, environmentType, tagKey, tagValue, tagKeys, tagValues, licenseId, refClusterName, endpointHost, includeEndpoints, options) {
|
|
15722
16451
|
var _a, _b, _c;
|
|
15723
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listCluster(orgName, clusterDefinition, environmentName, environmentType, tagKey, tagValue, tagKeys, tagValues, licenseId, refClusterName, options);
|
|
16452
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCluster(orgName, clusterDefinition, environmentName, environmentType, tagKey, tagValue, tagKeys, tagValues, licenseId, refClusterName, endpointHost, includeEndpoints, options);
|
|
15724
16453
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15725
16454
|
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;
|
|
15726
16455
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -17323,6 +18052,23 @@ const SharedApiFp = function (configuration) {
|
|
|
17323
18052
|
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;
|
|
17324
18053
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17325
18054
|
},
|
|
18055
|
+
/**
|
|
18056
|
+
*
|
|
18057
|
+
* @summary Revoke privileges from a ClickHouse role
|
|
18058
|
+
* @param {string} orgName
|
|
18059
|
+
* @param {string} clusterName
|
|
18060
|
+
* @param {string} roleName
|
|
18061
|
+
* @param {RevokeClickhouseRolePrivilegesRequest} body
|
|
18062
|
+
* @param {*} [options] Override http request option.
|
|
18063
|
+
* @throws {RequiredError}
|
|
18064
|
+
*/
|
|
18065
|
+
async revokeClickhouseRolePrivileges(orgName, clusterName, roleName, body, options) {
|
|
18066
|
+
var _a, _b, _c;
|
|
18067
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.revokeClickhouseRolePrivileges(orgName, clusterName, roleName, body, options);
|
|
18068
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
18069
|
+
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;
|
|
18070
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18071
|
+
},
|
|
17326
18072
|
/**
|
|
17327
18073
|
*
|
|
17328
18074
|
* @summary Set alert config
|
|
@@ -17668,6 +18414,40 @@ const SharedApiFp = function (configuration) {
|
|
|
17668
18414
|
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;
|
|
17669
18415
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17670
18416
|
},
|
|
18417
|
+
/**
|
|
18418
|
+
*
|
|
18419
|
+
* @summary Update a ClickHouse account password
|
|
18420
|
+
* @param {string} orgName
|
|
18421
|
+
* @param {string} clusterName
|
|
18422
|
+
* @param {string} accountName
|
|
18423
|
+
* @param {UpdateClickhouseAccountPasswordRequest} body
|
|
18424
|
+
* @param {*} [options] Override http request option.
|
|
18425
|
+
* @throws {RequiredError}
|
|
18426
|
+
*/
|
|
18427
|
+
async updateClickhouseAccountPassword(orgName, clusterName, accountName, body, options) {
|
|
18428
|
+
var _a, _b, _c;
|
|
18429
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateClickhouseAccountPassword(orgName, clusterName, accountName, body, options);
|
|
18430
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
18431
|
+
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;
|
|
18432
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18433
|
+
},
|
|
18434
|
+
/**
|
|
18435
|
+
*
|
|
18436
|
+
* @summary Update the roles granted to a ClickHouse account
|
|
18437
|
+
* @param {string} orgName
|
|
18438
|
+
* @param {string} clusterName
|
|
18439
|
+
* @param {string} accountName
|
|
18440
|
+
* @param {UpdateClickhouseAccountRolesRequest} body
|
|
18441
|
+
* @param {*} [options] Override http request option.
|
|
18442
|
+
* @throws {RequiredError}
|
|
18443
|
+
*/
|
|
18444
|
+
async updateClickhouseAccountRoles(orgName, clusterName, accountName, body, options) {
|
|
18445
|
+
var _a, _b, _c;
|
|
18446
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateClickhouseAccountRoles(orgName, clusterName, accountName, body, options);
|
|
18447
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
18448
|
+
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;
|
|
18449
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18450
|
+
},
|
|
17671
18451
|
/**
|
|
17672
18452
|
*
|
|
17673
18453
|
* @summary Update the cluster license
|
|
@@ -18223,6 +19003,26 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
18223
19003
|
createBackupSchedule(requestParameters, options) {
|
|
18224
19004
|
return localVarFp.createBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
18225
19005
|
},
|
|
19006
|
+
/**
|
|
19007
|
+
*
|
|
19008
|
+
* @summary Create a ClickHouse account with optional roles
|
|
19009
|
+
* @param {SharedApiCreateClickhouseAccountRequest} requestParameters Request parameters.
|
|
19010
|
+
* @param {*} [options] Override http request option.
|
|
19011
|
+
* @throws {RequiredError}
|
|
19012
|
+
*/
|
|
19013
|
+
createClickhouseAccount(requestParameters, options) {
|
|
19014
|
+
return localVarFp.createClickhouseAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
19015
|
+
},
|
|
19016
|
+
/**
|
|
19017
|
+
*
|
|
19018
|
+
* @summary Create a ClickHouse role with privileges
|
|
19019
|
+
* @param {SharedApiCreateClickhouseRoleRequest} requestParameters Request parameters.
|
|
19020
|
+
* @param {*} [options] Override http request option.
|
|
19021
|
+
* @throws {RequiredError}
|
|
19022
|
+
*/
|
|
19023
|
+
createClickhouseRole(requestParameters, options) {
|
|
19024
|
+
return localVarFp.createClickhouseRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
19025
|
+
},
|
|
18226
19026
|
/**
|
|
18227
19027
|
*
|
|
18228
19028
|
* @summary Create new cluster
|
|
@@ -18493,6 +19293,26 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
18493
19293
|
deleteBackupSchedule(requestParameters, options) {
|
|
18494
19294
|
return localVarFp.deleteBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.scheduleName, options).then((request) => request(axios, basePath));
|
|
18495
19295
|
},
|
|
19296
|
+
/**
|
|
19297
|
+
*
|
|
19298
|
+
* @summary Delete a ClickHouse account
|
|
19299
|
+
* @param {SharedApiDeleteClickhouseAccountRequest} requestParameters Request parameters.
|
|
19300
|
+
* @param {*} [options] Override http request option.
|
|
19301
|
+
* @throws {RequiredError}
|
|
19302
|
+
*/
|
|
19303
|
+
deleteClickhouseAccount(requestParameters, options) {
|
|
19304
|
+
return localVarFp.deleteClickhouseAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
|
|
19305
|
+
},
|
|
19306
|
+
/**
|
|
19307
|
+
*
|
|
19308
|
+
* @summary Delete a ClickHouse role
|
|
19309
|
+
* @param {SharedApiDeleteClickhouseRoleRequest} requestParameters Request parameters.
|
|
19310
|
+
* @param {*} [options] Override http request option.
|
|
19311
|
+
* @throws {RequiredError}
|
|
19312
|
+
*/
|
|
19313
|
+
deleteClickhouseRole(requestParameters, options) {
|
|
19314
|
+
return localVarFp.deleteClickhouseRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, options).then((request) => request(axios, basePath));
|
|
19315
|
+
},
|
|
18496
19316
|
/**
|
|
18497
19317
|
*
|
|
18498
19318
|
* @summary Delete cluster
|
|
@@ -18973,6 +19793,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
18973
19793
|
getBackupMethod(requestParameters, options) {
|
|
18974
19794
|
return localVarFp.getBackupMethod(requestParameters.orgName, requestParameters.engineName, requestParameters.clusterID, requestParameters.enablePITR, requestParameters.withRebuildInstance, requestParameters.withRestoreCluster, requestParameters.withHScale, requestParameters.component, requestParameters.mode, options).then((request) => request(axios, basePath));
|
|
18975
19795
|
},
|
|
19796
|
+
/**
|
|
19797
|
+
*
|
|
19798
|
+
* @summary Get the grants (privileges) of a ClickHouse role
|
|
19799
|
+
* @param {SharedApiGetClickhouseRoleGrantsRequest} requestParameters Request parameters.
|
|
19800
|
+
* @param {*} [options] Override http request option.
|
|
19801
|
+
* @throws {RequiredError}
|
|
19802
|
+
*/
|
|
19803
|
+
getClickhouseRoleGrants(requestParameters, options) {
|
|
19804
|
+
return localVarFp.getClickhouseRoleGrants(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, options).then((request) => request(axios, basePath));
|
|
19805
|
+
},
|
|
18976
19806
|
/**
|
|
18977
19807
|
*
|
|
18978
19808
|
* @summary Get cluster details
|
|
@@ -19462,6 +20292,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
19462
20292
|
getTenant(requestParameters, options) {
|
|
19463
20293
|
return localVarFp.getTenant(requestParameters.orgName, requestParameters.clusterName, requestParameters.tenantId, options).then((request) => request(axios, basePath));
|
|
19464
20294
|
},
|
|
20295
|
+
/**
|
|
20296
|
+
*
|
|
20297
|
+
* @summary Grant privileges to a ClickHouse role
|
|
20298
|
+
* @param {SharedApiGrantClickhouseRolePrivilegesRequest} requestParameters Request parameters.
|
|
20299
|
+
* @param {*} [options] Override http request option.
|
|
20300
|
+
* @throws {RequiredError}
|
|
20301
|
+
*/
|
|
20302
|
+
grantClickhouseRolePrivileges(requestParameters, options) {
|
|
20303
|
+
return localVarFp.grantClickhouseRolePrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
20304
|
+
},
|
|
19465
20305
|
/**
|
|
19466
20306
|
*
|
|
19467
20307
|
* @summary Horizontal scale cluster
|
|
@@ -19532,6 +20372,46 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
19532
20372
|
listBackupSchedules(requestParameters, options) {
|
|
19533
20373
|
return localVarFp.listBackupSchedules(requestParameters.orgName, requestParameters.clusterName, requestParameters.backupMethod, options).then((request) => request(axios, basePath));
|
|
19534
20374
|
},
|
|
20375
|
+
/**
|
|
20376
|
+
*
|
|
20377
|
+
* @summary List the roles granted to a ClickHouse account
|
|
20378
|
+
* @param {SharedApiListClickhouseAccountRolesRequest} requestParameters Request parameters.
|
|
20379
|
+
* @param {*} [options] Override http request option.
|
|
20380
|
+
* @throws {RequiredError}
|
|
20381
|
+
*/
|
|
20382
|
+
listClickhouseAccountRoles(requestParameters, options) {
|
|
20383
|
+
return localVarFp.listClickhouseAccountRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
|
|
20384
|
+
},
|
|
20385
|
+
/**
|
|
20386
|
+
*
|
|
20387
|
+
* @summary List ClickHouse accounts
|
|
20388
|
+
* @param {SharedApiListClickhouseAccountsRequest} requestParameters Request parameters.
|
|
20389
|
+
* @param {*} [options] Override http request option.
|
|
20390
|
+
* @throws {RequiredError}
|
|
20391
|
+
*/
|
|
20392
|
+
listClickhouseAccounts(requestParameters, options) {
|
|
20393
|
+
return localVarFp.listClickhouseAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
20394
|
+
},
|
|
20395
|
+
/**
|
|
20396
|
+
*
|
|
20397
|
+
* @summary List privileges supported by the ClickHouse server
|
|
20398
|
+
* @param {SharedApiListClickhousePrivilegesRequest} requestParameters Request parameters.
|
|
20399
|
+
* @param {*} [options] Override http request option.
|
|
20400
|
+
* @throws {RequiredError}
|
|
20401
|
+
*/
|
|
20402
|
+
listClickhousePrivileges(requestParameters, options) {
|
|
20403
|
+
return localVarFp.listClickhousePrivileges(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
20404
|
+
},
|
|
20405
|
+
/**
|
|
20406
|
+
*
|
|
20407
|
+
* @summary List ClickHouse roles
|
|
20408
|
+
* @param {SharedApiListClickhouseRolesRequest} requestParameters Request parameters.
|
|
20409
|
+
* @param {*} [options] Override http request option.
|
|
20410
|
+
* @throws {RequiredError}
|
|
20411
|
+
*/
|
|
20412
|
+
listClickhouseRoles(requestParameters, options) {
|
|
20413
|
+
return localVarFp.listClickhouseRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.forCreateUser, options).then((request) => request(axios, basePath));
|
|
20414
|
+
},
|
|
19535
20415
|
/**
|
|
19536
20416
|
*
|
|
19537
20417
|
* @summary List clusters in the Org
|
|
@@ -19540,7 +20420,7 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
19540
20420
|
* @throws {RequiredError}
|
|
19541
20421
|
*/
|
|
19542
20422
|
listCluster(requestParameters, options) {
|
|
19543
|
-
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));
|
|
20423
|
+
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));
|
|
19544
20424
|
},
|
|
19545
20425
|
/**
|
|
19546
20426
|
*
|
|
@@ -20459,6 +21339,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
20459
21339
|
restoreRecycleBinCluster(requestParameters, options) {
|
|
20460
21340
|
return localVarFp.restoreRecycleBinCluster(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
20461
21341
|
},
|
|
21342
|
+
/**
|
|
21343
|
+
*
|
|
21344
|
+
* @summary Revoke privileges from a ClickHouse role
|
|
21345
|
+
* @param {SharedApiRevokeClickhouseRolePrivilegesRequest} requestParameters Request parameters.
|
|
21346
|
+
* @param {*} [options] Override http request option.
|
|
21347
|
+
* @throws {RequiredError}
|
|
21348
|
+
*/
|
|
21349
|
+
revokeClickhouseRolePrivileges(requestParameters, options) {
|
|
21350
|
+
return localVarFp.revokeClickhouseRolePrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
21351
|
+
},
|
|
20462
21352
|
/**
|
|
20463
21353
|
*
|
|
20464
21354
|
* @summary Set alert config
|
|
@@ -20669,6 +21559,26 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
20669
21559
|
updateBackupSchedule(requestParameters, options) {
|
|
20670
21560
|
return localVarFp.updateBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.scheduleName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
20671
21561
|
},
|
|
21562
|
+
/**
|
|
21563
|
+
*
|
|
21564
|
+
* @summary Update a ClickHouse account password
|
|
21565
|
+
* @param {SharedApiUpdateClickhouseAccountPasswordRequest} requestParameters Request parameters.
|
|
21566
|
+
* @param {*} [options] Override http request option.
|
|
21567
|
+
* @throws {RequiredError}
|
|
21568
|
+
*/
|
|
21569
|
+
updateClickhouseAccountPassword(requestParameters, options) {
|
|
21570
|
+
return localVarFp.updateClickhouseAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
21571
|
+
},
|
|
21572
|
+
/**
|
|
21573
|
+
*
|
|
21574
|
+
* @summary Update the roles granted to a ClickHouse account
|
|
21575
|
+
* @param {SharedApiUpdateClickhouseAccountRolesRequest} requestParameters Request parameters.
|
|
21576
|
+
* @param {*} [options] Override http request option.
|
|
21577
|
+
* @throws {RequiredError}
|
|
21578
|
+
*/
|
|
21579
|
+
updateClickhouseAccountRoles(requestParameters, options) {
|
|
21580
|
+
return localVarFp.updateClickhouseAccountRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
21581
|
+
},
|
|
20672
21582
|
/**
|
|
20673
21583
|
*
|
|
20674
21584
|
* @summary Update the cluster license
|
|
@@ -21072,6 +21982,28 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
21072
21982
|
createBackupSchedule(requestParameters, options) {
|
|
21073
21983
|
return (0, exports.SharedApiFp)(this.configuration).createBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
21074
21984
|
}
|
|
21985
|
+
/**
|
|
21986
|
+
*
|
|
21987
|
+
* @summary Create a ClickHouse account with optional roles
|
|
21988
|
+
* @param {SharedApiCreateClickhouseAccountRequest} requestParameters Request parameters.
|
|
21989
|
+
* @param {*} [options] Override http request option.
|
|
21990
|
+
* @throws {RequiredError}
|
|
21991
|
+
* @memberof SharedApi
|
|
21992
|
+
*/
|
|
21993
|
+
createClickhouseAccount(requestParameters, options) {
|
|
21994
|
+
return (0, exports.SharedApiFp)(this.configuration).createClickhouseAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
21995
|
+
}
|
|
21996
|
+
/**
|
|
21997
|
+
*
|
|
21998
|
+
* @summary Create a ClickHouse role with privileges
|
|
21999
|
+
* @param {SharedApiCreateClickhouseRoleRequest} requestParameters Request parameters.
|
|
22000
|
+
* @param {*} [options] Override http request option.
|
|
22001
|
+
* @throws {RequiredError}
|
|
22002
|
+
* @memberof SharedApi
|
|
22003
|
+
*/
|
|
22004
|
+
createClickhouseRole(requestParameters, options) {
|
|
22005
|
+
return (0, exports.SharedApiFp)(this.configuration).createClickhouseRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
22006
|
+
}
|
|
21075
22007
|
/**
|
|
21076
22008
|
*
|
|
21077
22009
|
* @summary Create new cluster
|
|
@@ -21369,6 +22301,28 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
21369
22301
|
deleteBackupSchedule(requestParameters, options) {
|
|
21370
22302
|
return (0, exports.SharedApiFp)(this.configuration).deleteBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.scheduleName, options).then((request) => request(this.axios, this.basePath));
|
|
21371
22303
|
}
|
|
22304
|
+
/**
|
|
22305
|
+
*
|
|
22306
|
+
* @summary Delete a ClickHouse account
|
|
22307
|
+
* @param {SharedApiDeleteClickhouseAccountRequest} requestParameters Request parameters.
|
|
22308
|
+
* @param {*} [options] Override http request option.
|
|
22309
|
+
* @throws {RequiredError}
|
|
22310
|
+
* @memberof SharedApi
|
|
22311
|
+
*/
|
|
22312
|
+
deleteClickhouseAccount(requestParameters, options) {
|
|
22313
|
+
return (0, exports.SharedApiFp)(this.configuration).deleteClickhouseAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
|
|
22314
|
+
}
|
|
22315
|
+
/**
|
|
22316
|
+
*
|
|
22317
|
+
* @summary Delete a ClickHouse role
|
|
22318
|
+
* @param {SharedApiDeleteClickhouseRoleRequest} requestParameters Request parameters.
|
|
22319
|
+
* @param {*} [options] Override http request option.
|
|
22320
|
+
* @throws {RequiredError}
|
|
22321
|
+
* @memberof SharedApi
|
|
22322
|
+
*/
|
|
22323
|
+
deleteClickhouseRole(requestParameters, options) {
|
|
22324
|
+
return (0, exports.SharedApiFp)(this.configuration).deleteClickhouseRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, options).then((request) => request(this.axios, this.basePath));
|
|
22325
|
+
}
|
|
21372
22326
|
/**
|
|
21373
22327
|
*
|
|
21374
22328
|
* @summary Delete cluster
|
|
@@ -21897,6 +22851,17 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
21897
22851
|
getBackupMethod(requestParameters, options) {
|
|
21898
22852
|
return (0, exports.SharedApiFp)(this.configuration).getBackupMethod(requestParameters.orgName, requestParameters.engineName, requestParameters.clusterID, requestParameters.enablePITR, requestParameters.withRebuildInstance, requestParameters.withRestoreCluster, requestParameters.withHScale, requestParameters.component, requestParameters.mode, options).then((request) => request(this.axios, this.basePath));
|
|
21899
22853
|
}
|
|
22854
|
+
/**
|
|
22855
|
+
*
|
|
22856
|
+
* @summary Get the grants (privileges) of a ClickHouse role
|
|
22857
|
+
* @param {SharedApiGetClickhouseRoleGrantsRequest} requestParameters Request parameters.
|
|
22858
|
+
* @param {*} [options] Override http request option.
|
|
22859
|
+
* @throws {RequiredError}
|
|
22860
|
+
* @memberof SharedApi
|
|
22861
|
+
*/
|
|
22862
|
+
getClickhouseRoleGrants(requestParameters, options) {
|
|
22863
|
+
return (0, exports.SharedApiFp)(this.configuration).getClickhouseRoleGrants(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, options).then((request) => request(this.axios, this.basePath));
|
|
22864
|
+
}
|
|
21900
22865
|
/**
|
|
21901
22866
|
*
|
|
21902
22867
|
* @summary Get cluster details
|
|
@@ -22435,6 +23400,17 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
22435
23400
|
getTenant(requestParameters, options) {
|
|
22436
23401
|
return (0, exports.SharedApiFp)(this.configuration).getTenant(requestParameters.orgName, requestParameters.clusterName, requestParameters.tenantId, options).then((request) => request(this.axios, this.basePath));
|
|
22437
23402
|
}
|
|
23403
|
+
/**
|
|
23404
|
+
*
|
|
23405
|
+
* @summary Grant privileges to a ClickHouse role
|
|
23406
|
+
* @param {SharedApiGrantClickhouseRolePrivilegesRequest} requestParameters Request parameters.
|
|
23407
|
+
* @param {*} [options] Override http request option.
|
|
23408
|
+
* @throws {RequiredError}
|
|
23409
|
+
* @memberof SharedApi
|
|
23410
|
+
*/
|
|
23411
|
+
grantClickhouseRolePrivileges(requestParameters, options) {
|
|
23412
|
+
return (0, exports.SharedApiFp)(this.configuration).grantClickhouseRolePrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
23413
|
+
}
|
|
22438
23414
|
/**
|
|
22439
23415
|
*
|
|
22440
23416
|
* @summary Horizontal scale cluster
|
|
@@ -22512,6 +23488,50 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
22512
23488
|
listBackupSchedules(requestParameters, options) {
|
|
22513
23489
|
return (0, exports.SharedApiFp)(this.configuration).listBackupSchedules(requestParameters.orgName, requestParameters.clusterName, requestParameters.backupMethod, options).then((request) => request(this.axios, this.basePath));
|
|
22514
23490
|
}
|
|
23491
|
+
/**
|
|
23492
|
+
*
|
|
23493
|
+
* @summary List the roles granted to a ClickHouse account
|
|
23494
|
+
* @param {SharedApiListClickhouseAccountRolesRequest} requestParameters Request parameters.
|
|
23495
|
+
* @param {*} [options] Override http request option.
|
|
23496
|
+
* @throws {RequiredError}
|
|
23497
|
+
* @memberof SharedApi
|
|
23498
|
+
*/
|
|
23499
|
+
listClickhouseAccountRoles(requestParameters, options) {
|
|
23500
|
+
return (0, exports.SharedApiFp)(this.configuration).listClickhouseAccountRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
|
|
23501
|
+
}
|
|
23502
|
+
/**
|
|
23503
|
+
*
|
|
23504
|
+
* @summary List ClickHouse accounts
|
|
23505
|
+
* @param {SharedApiListClickhouseAccountsRequest} requestParameters Request parameters.
|
|
23506
|
+
* @param {*} [options] Override http request option.
|
|
23507
|
+
* @throws {RequiredError}
|
|
23508
|
+
* @memberof SharedApi
|
|
23509
|
+
*/
|
|
23510
|
+
listClickhouseAccounts(requestParameters, options) {
|
|
23511
|
+
return (0, exports.SharedApiFp)(this.configuration).listClickhouseAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
23512
|
+
}
|
|
23513
|
+
/**
|
|
23514
|
+
*
|
|
23515
|
+
* @summary List privileges supported by the ClickHouse server
|
|
23516
|
+
* @param {SharedApiListClickhousePrivilegesRequest} requestParameters Request parameters.
|
|
23517
|
+
* @param {*} [options] Override http request option.
|
|
23518
|
+
* @throws {RequiredError}
|
|
23519
|
+
* @memberof SharedApi
|
|
23520
|
+
*/
|
|
23521
|
+
listClickhousePrivileges(requestParameters, options) {
|
|
23522
|
+
return (0, exports.SharedApiFp)(this.configuration).listClickhousePrivileges(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
23523
|
+
}
|
|
23524
|
+
/**
|
|
23525
|
+
*
|
|
23526
|
+
* @summary List ClickHouse roles
|
|
23527
|
+
* @param {SharedApiListClickhouseRolesRequest} requestParameters Request parameters.
|
|
23528
|
+
* @param {*} [options] Override http request option.
|
|
23529
|
+
* @throws {RequiredError}
|
|
23530
|
+
* @memberof SharedApi
|
|
23531
|
+
*/
|
|
23532
|
+
listClickhouseRoles(requestParameters, options) {
|
|
23533
|
+
return (0, exports.SharedApiFp)(this.configuration).listClickhouseRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.forCreateUser, options).then((request) => request(this.axios, this.basePath));
|
|
23534
|
+
}
|
|
22515
23535
|
/**
|
|
22516
23536
|
*
|
|
22517
23537
|
* @summary List clusters in the Org
|
|
@@ -22521,7 +23541,7 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
22521
23541
|
* @memberof SharedApi
|
|
22522
23542
|
*/
|
|
22523
23543
|
listCluster(requestParameters, options) {
|
|
22524
|
-
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));
|
|
23544
|
+
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));
|
|
22525
23545
|
}
|
|
22526
23546
|
/**
|
|
22527
23547
|
*
|
|
@@ -23532,6 +24552,17 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
23532
24552
|
restoreRecycleBinCluster(requestParameters, options) {
|
|
23533
24553
|
return (0, exports.SharedApiFp)(this.configuration).restoreRecycleBinCluster(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
23534
24554
|
}
|
|
24555
|
+
/**
|
|
24556
|
+
*
|
|
24557
|
+
* @summary Revoke privileges from a ClickHouse role
|
|
24558
|
+
* @param {SharedApiRevokeClickhouseRolePrivilegesRequest} requestParameters Request parameters.
|
|
24559
|
+
* @param {*} [options] Override http request option.
|
|
24560
|
+
* @throws {RequiredError}
|
|
24561
|
+
* @memberof SharedApi
|
|
24562
|
+
*/
|
|
24563
|
+
revokeClickhouseRolePrivileges(requestParameters, options) {
|
|
24564
|
+
return (0, exports.SharedApiFp)(this.configuration).revokeClickhouseRolePrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
24565
|
+
}
|
|
23535
24566
|
/**
|
|
23536
24567
|
*
|
|
23537
24568
|
* @summary Set alert config
|
|
@@ -23763,6 +24794,28 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
23763
24794
|
updateBackupSchedule(requestParameters, options) {
|
|
23764
24795
|
return (0, exports.SharedApiFp)(this.configuration).updateBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.scheduleName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
23765
24796
|
}
|
|
24797
|
+
/**
|
|
24798
|
+
*
|
|
24799
|
+
* @summary Update a ClickHouse account password
|
|
24800
|
+
* @param {SharedApiUpdateClickhouseAccountPasswordRequest} requestParameters Request parameters.
|
|
24801
|
+
* @param {*} [options] Override http request option.
|
|
24802
|
+
* @throws {RequiredError}
|
|
24803
|
+
* @memberof SharedApi
|
|
24804
|
+
*/
|
|
24805
|
+
updateClickhouseAccountPassword(requestParameters, options) {
|
|
24806
|
+
return (0, exports.SharedApiFp)(this.configuration).updateClickhouseAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
24807
|
+
}
|
|
24808
|
+
/**
|
|
24809
|
+
*
|
|
24810
|
+
* @summary Update the roles granted to a ClickHouse account
|
|
24811
|
+
* @param {SharedApiUpdateClickhouseAccountRolesRequest} requestParameters Request parameters.
|
|
24812
|
+
* @param {*} [options] Override http request option.
|
|
24813
|
+
* @throws {RequiredError}
|
|
24814
|
+
* @memberof SharedApi
|
|
24815
|
+
*/
|
|
24816
|
+
updateClickhouseAccountRoles(requestParameters, options) {
|
|
24817
|
+
return (0, exports.SharedApiFp)(this.configuration).updateClickhouseAccountRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
24818
|
+
}
|
|
23766
24819
|
/**
|
|
23767
24820
|
*
|
|
23768
24821
|
* @summary Update the cluster license
|