kb-cloud-client-typescript 2.3.0-beta.1 → 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/shared-api.d.ts +951 -4
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +1095 -52
- 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-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 +12 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +12 -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/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/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/shared-api.d.ts +951 -4
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +1104 -61
- 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-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 +13 -0
- package/src/adminapi/api.ts +1 -0
- package/src/adminapi/apis/clickhouse-api.ts +1735 -0
- package/src/adminapi/apis/shared-api.ts +2059 -394
- package/src/adminapi/models/ck-account-type.ts +32 -0
- package/src/adminapi/models/ck-account.ts +59 -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 +12 -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/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 +713 -2
- 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/shared-api.ts +2059 -394
- package/src/openapi/models/ck-account-type.ts +32 -0
- package/src/openapi/models/ck-account.ts +59 -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 +699 -2
|
@@ -790,6 +790,92 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
790
790
|
options: localVarRequestOptions,
|
|
791
791
|
};
|
|
792
792
|
},
|
|
793
|
+
/**
|
|
794
|
+
*
|
|
795
|
+
* @summary Create a ClickHouse account with optional roles
|
|
796
|
+
* @param {string} orgName
|
|
797
|
+
* @param {string} clusterName
|
|
798
|
+
* @param {CreateClickhouseAccountRequest} body
|
|
799
|
+
* @param {*} [options] Override http request option.
|
|
800
|
+
* @throws {RequiredError}
|
|
801
|
+
*/
|
|
802
|
+
createClickhouseAccount: async (orgName, clusterName, body, options = {}) => {
|
|
803
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
804
|
+
(0, common_1.assertParamExists)('createClickhouseAccount', 'orgName', orgName);
|
|
805
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
806
|
+
(0, common_1.assertParamExists)('createClickhouseAccount', 'clusterName', clusterName);
|
|
807
|
+
// verify required parameter 'body' is not null or undefined
|
|
808
|
+
(0, common_1.assertParamExists)('createClickhouseAccount', 'body', body);
|
|
809
|
+
const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts`
|
|
810
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
811
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
812
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
813
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
814
|
+
let baseOptions;
|
|
815
|
+
if (configuration) {
|
|
816
|
+
baseOptions = configuration.baseOptions;
|
|
817
|
+
}
|
|
818
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
819
|
+
const localVarHeaderParameter = {};
|
|
820
|
+
const localVarQueryParameter = {};
|
|
821
|
+
// authentication BearerToken required
|
|
822
|
+
// http bearer authentication required
|
|
823
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
824
|
+
// authentication DigestAuth required
|
|
825
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
826
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
827
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
828
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
829
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
830
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
831
|
+
return {
|
|
832
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
833
|
+
options: localVarRequestOptions,
|
|
834
|
+
};
|
|
835
|
+
},
|
|
836
|
+
/**
|
|
837
|
+
*
|
|
838
|
+
* @summary Create a ClickHouse role with privileges
|
|
839
|
+
* @param {string} orgName
|
|
840
|
+
* @param {string} clusterName
|
|
841
|
+
* @param {ListClickhouseAccountRoles200Response} body
|
|
842
|
+
* @param {*} [options] Override http request option.
|
|
843
|
+
* @throws {RequiredError}
|
|
844
|
+
*/
|
|
845
|
+
createClickhouseRole: async (orgName, clusterName, body, options = {}) => {
|
|
846
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
847
|
+
(0, common_1.assertParamExists)('createClickhouseRole', 'orgName', orgName);
|
|
848
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
849
|
+
(0, common_1.assertParamExists)('createClickhouseRole', 'clusterName', clusterName);
|
|
850
|
+
// verify required parameter 'body' is not null or undefined
|
|
851
|
+
(0, common_1.assertParamExists)('createClickhouseRole', 'body', body);
|
|
852
|
+
const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/roles`
|
|
853
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
854
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
855
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
856
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
857
|
+
let baseOptions;
|
|
858
|
+
if (configuration) {
|
|
859
|
+
baseOptions = configuration.baseOptions;
|
|
860
|
+
}
|
|
861
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
862
|
+
const localVarHeaderParameter = {};
|
|
863
|
+
const localVarQueryParameter = {};
|
|
864
|
+
// authentication BearerToken required
|
|
865
|
+
// http bearer authentication required
|
|
866
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
867
|
+
// authentication DigestAuth required
|
|
868
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
869
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
870
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
871
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
872
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
873
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
874
|
+
return {
|
|
875
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
876
|
+
options: localVarRequestOptions,
|
|
877
|
+
};
|
|
878
|
+
},
|
|
793
879
|
/**
|
|
794
880
|
*
|
|
795
881
|
* @summary Create new cluster
|
|
@@ -1813,6 +1899,90 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
1813
1899
|
options: localVarRequestOptions,
|
|
1814
1900
|
};
|
|
1815
1901
|
},
|
|
1902
|
+
/**
|
|
1903
|
+
*
|
|
1904
|
+
* @summary Delete a ClickHouse account
|
|
1905
|
+
* @param {string} orgName
|
|
1906
|
+
* @param {string} clusterName
|
|
1907
|
+
* @param {string} accountName
|
|
1908
|
+
* @param {*} [options] Override http request option.
|
|
1909
|
+
* @throws {RequiredError}
|
|
1910
|
+
*/
|
|
1911
|
+
deleteClickhouseAccount: async (orgName, clusterName, accountName, options = {}) => {
|
|
1912
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1913
|
+
(0, common_1.assertParamExists)('deleteClickhouseAccount', 'orgName', orgName);
|
|
1914
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1915
|
+
(0, common_1.assertParamExists)('deleteClickhouseAccount', 'clusterName', clusterName);
|
|
1916
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
1917
|
+
(0, common_1.assertParamExists)('deleteClickhouseAccount', 'accountName', accountName);
|
|
1918
|
+
const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
|
|
1919
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1920
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
1921
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
1922
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1923
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1924
|
+
let baseOptions;
|
|
1925
|
+
if (configuration) {
|
|
1926
|
+
baseOptions = configuration.baseOptions;
|
|
1927
|
+
}
|
|
1928
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1929
|
+
const localVarHeaderParameter = {};
|
|
1930
|
+
const localVarQueryParameter = {};
|
|
1931
|
+
// authentication BearerToken required
|
|
1932
|
+
// http bearer authentication required
|
|
1933
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1934
|
+
// authentication DigestAuth required
|
|
1935
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1936
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1937
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1938
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1939
|
+
return {
|
|
1940
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1941
|
+
options: localVarRequestOptions,
|
|
1942
|
+
};
|
|
1943
|
+
},
|
|
1944
|
+
/**
|
|
1945
|
+
*
|
|
1946
|
+
* @summary Delete a ClickHouse role
|
|
1947
|
+
* @param {string} orgName
|
|
1948
|
+
* @param {string} clusterName
|
|
1949
|
+
* @param {string} roleName
|
|
1950
|
+
* @param {*} [options] Override http request option.
|
|
1951
|
+
* @throws {RequiredError}
|
|
1952
|
+
*/
|
|
1953
|
+
deleteClickhouseRole: async (orgName, clusterName, roleName, options = {}) => {
|
|
1954
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1955
|
+
(0, common_1.assertParamExists)('deleteClickhouseRole', 'orgName', orgName);
|
|
1956
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1957
|
+
(0, common_1.assertParamExists)('deleteClickhouseRole', 'clusterName', clusterName);
|
|
1958
|
+
// verify required parameter 'roleName' is not null or undefined
|
|
1959
|
+
(0, common_1.assertParamExists)('deleteClickhouseRole', 'roleName', roleName);
|
|
1960
|
+
const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
|
|
1961
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1962
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
1963
|
+
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
1964
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1965
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1966
|
+
let baseOptions;
|
|
1967
|
+
if (configuration) {
|
|
1968
|
+
baseOptions = configuration.baseOptions;
|
|
1969
|
+
}
|
|
1970
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1971
|
+
const localVarHeaderParameter = {};
|
|
1972
|
+
const localVarQueryParameter = {};
|
|
1973
|
+
// authentication BearerToken required
|
|
1974
|
+
// http bearer authentication required
|
|
1975
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1976
|
+
// authentication DigestAuth required
|
|
1977
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1978
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1979
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1980
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1981
|
+
return {
|
|
1982
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1983
|
+
options: localVarRequestOptions,
|
|
1984
|
+
};
|
|
1985
|
+
},
|
|
1816
1986
|
/**
|
|
1817
1987
|
*
|
|
1818
1988
|
* @summary Delete cluster
|
|
@@ -3846,6 +4016,48 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
3846
4016
|
options: localVarRequestOptions,
|
|
3847
4017
|
};
|
|
3848
4018
|
},
|
|
4019
|
+
/**
|
|
4020
|
+
*
|
|
4021
|
+
* @summary Get the grants (privileges) of a ClickHouse role
|
|
4022
|
+
* @param {string} orgName
|
|
4023
|
+
* @param {string} clusterName
|
|
4024
|
+
* @param {string} roleName
|
|
4025
|
+
* @param {*} [options] Override http request option.
|
|
4026
|
+
* @throws {RequiredError}
|
|
4027
|
+
*/
|
|
4028
|
+
getClickhouseRoleGrants: async (orgName, clusterName, roleName, options = {}) => {
|
|
4029
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
4030
|
+
(0, common_1.assertParamExists)('getClickhouseRoleGrants', 'orgName', orgName);
|
|
4031
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
4032
|
+
(0, common_1.assertParamExists)('getClickhouseRoleGrants', 'clusterName', clusterName);
|
|
4033
|
+
// verify required parameter 'roleName' is not null or undefined
|
|
4034
|
+
(0, common_1.assertParamExists)('getClickhouseRoleGrants', 'roleName', roleName);
|
|
4035
|
+
const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
|
|
4036
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
4037
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
4038
|
+
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
4039
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4040
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4041
|
+
let baseOptions;
|
|
4042
|
+
if (configuration) {
|
|
4043
|
+
baseOptions = configuration.baseOptions;
|
|
4044
|
+
}
|
|
4045
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4046
|
+
const localVarHeaderParameter = {};
|
|
4047
|
+
const localVarQueryParameter = {};
|
|
4048
|
+
// authentication BearerToken required
|
|
4049
|
+
// http bearer authentication required
|
|
4050
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4051
|
+
// authentication DigestAuth required
|
|
4052
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
4053
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4054
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4055
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4056
|
+
return {
|
|
4057
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4058
|
+
options: localVarRequestOptions,
|
|
4059
|
+
};
|
|
4060
|
+
},
|
|
3849
4061
|
/**
|
|
3850
4062
|
*
|
|
3851
4063
|
* @summary Get cluster details
|
|
@@ -6155,6 +6367,53 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
6155
6367
|
options: localVarRequestOptions,
|
|
6156
6368
|
};
|
|
6157
6369
|
},
|
|
6370
|
+
/**
|
|
6371
|
+
*
|
|
6372
|
+
* @summary Grant privileges to a ClickHouse role
|
|
6373
|
+
* @param {string} orgName
|
|
6374
|
+
* @param {string} clusterName
|
|
6375
|
+
* @param {string} roleName
|
|
6376
|
+
* @param {ListClickhouseAccountRoles200ResponsePrivilegesInner} body
|
|
6377
|
+
* @param {*} [options] Override http request option.
|
|
6378
|
+
* @throws {RequiredError}
|
|
6379
|
+
*/
|
|
6380
|
+
grantClickhouseRolePrivileges: async (orgName, clusterName, roleName, body, options = {}) => {
|
|
6381
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
6382
|
+
(0, common_1.assertParamExists)('grantClickhouseRolePrivileges', 'orgName', orgName);
|
|
6383
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
6384
|
+
(0, common_1.assertParamExists)('grantClickhouseRolePrivileges', 'clusterName', clusterName);
|
|
6385
|
+
// verify required parameter 'roleName' is not null or undefined
|
|
6386
|
+
(0, common_1.assertParamExists)('grantClickhouseRolePrivileges', 'roleName', roleName);
|
|
6387
|
+
// verify required parameter 'body' is not null or undefined
|
|
6388
|
+
(0, common_1.assertParamExists)('grantClickhouseRolePrivileges', 'body', body);
|
|
6389
|
+
const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}/privileges`
|
|
6390
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
6391
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
6392
|
+
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
6393
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6394
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6395
|
+
let baseOptions;
|
|
6396
|
+
if (configuration) {
|
|
6397
|
+
baseOptions = configuration.baseOptions;
|
|
6398
|
+
}
|
|
6399
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6400
|
+
const localVarHeaderParameter = {};
|
|
6401
|
+
const localVarQueryParameter = {};
|
|
6402
|
+
// authentication BearerToken required
|
|
6403
|
+
// http bearer authentication required
|
|
6404
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6405
|
+
// authentication DigestAuth required
|
|
6406
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
6407
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6408
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6409
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6410
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6411
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
6412
|
+
return {
|
|
6413
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6414
|
+
options: localVarRequestOptions,
|
|
6415
|
+
};
|
|
6416
|
+
},
|
|
6158
6417
|
/**
|
|
6159
6418
|
*
|
|
6160
6419
|
* @summary Horizontal scale cluster
|
|
@@ -6335,23 +6594,173 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
6335
6594
|
},
|
|
6336
6595
|
/**
|
|
6337
6596
|
*
|
|
6338
|
-
* @summary list the available clusters for the organization to create the a relation
|
|
6339
|
-
* @param {string} orgName
|
|
6340
|
-
* @param {string} clusterName
|
|
6341
|
-
* @param {string} targetType
|
|
6597
|
+
* @summary list the available clusters for the organization to create the a relation
|
|
6598
|
+
* @param {string} orgName
|
|
6599
|
+
* @param {string} clusterName
|
|
6600
|
+
* @param {string} targetType
|
|
6601
|
+
* @param {*} [options] Override http request option.
|
|
6602
|
+
* @throws {RequiredError}
|
|
6603
|
+
*/
|
|
6604
|
+
listAvailableClustersForRelation: async (orgName, clusterName, targetType, options = {}) => {
|
|
6605
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
6606
|
+
(0, common_1.assertParamExists)('listAvailableClustersForRelation', 'orgName', orgName);
|
|
6607
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
6608
|
+
(0, common_1.assertParamExists)('listAvailableClustersForRelation', 'clusterName', clusterName);
|
|
6609
|
+
// verify required parameter 'targetType' is not null or undefined
|
|
6610
|
+
(0, common_1.assertParamExists)('listAvailableClustersForRelation', 'targetType', targetType);
|
|
6611
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/cluster/{clusterName}/available-relations`
|
|
6612
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
6613
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
6614
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6615
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6616
|
+
let baseOptions;
|
|
6617
|
+
if (configuration) {
|
|
6618
|
+
baseOptions = configuration.baseOptions;
|
|
6619
|
+
}
|
|
6620
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6621
|
+
const localVarHeaderParameter = {};
|
|
6622
|
+
const localVarQueryParameter = {};
|
|
6623
|
+
// authentication BearerToken required
|
|
6624
|
+
// http bearer authentication required
|
|
6625
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6626
|
+
// authentication DigestAuth required
|
|
6627
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
6628
|
+
if (targetType !== undefined) {
|
|
6629
|
+
localVarQueryParameter['targetType'] = targetType;
|
|
6630
|
+
}
|
|
6631
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6632
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6633
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6634
|
+
return {
|
|
6635
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6636
|
+
options: localVarRequestOptions,
|
|
6637
|
+
};
|
|
6638
|
+
},
|
|
6639
|
+
/**
|
|
6640
|
+
*
|
|
6641
|
+
* @summary List available model
|
|
6642
|
+
* @param {*} [options] Override http request option.
|
|
6643
|
+
* @throws {RequiredError}
|
|
6644
|
+
*/
|
|
6645
|
+
listAvailableModel: async (options = {}) => {
|
|
6646
|
+
const localVarPath = `/admin/v1/llm/models`;
|
|
6647
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6648
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6649
|
+
let baseOptions;
|
|
6650
|
+
if (configuration) {
|
|
6651
|
+
baseOptions = configuration.baseOptions;
|
|
6652
|
+
}
|
|
6653
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6654
|
+
const localVarHeaderParameter = {};
|
|
6655
|
+
const localVarQueryParameter = {};
|
|
6656
|
+
// authentication BearerToken required
|
|
6657
|
+
// http bearer authentication required
|
|
6658
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6659
|
+
// authentication DigestAuth required
|
|
6660
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
6661
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6662
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6663
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6664
|
+
return {
|
|
6665
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6666
|
+
options: localVarRequestOptions,
|
|
6667
|
+
};
|
|
6668
|
+
},
|
|
6669
|
+
/**
|
|
6670
|
+
*
|
|
6671
|
+
* @summary List available nodes for rebuilding instance
|
|
6672
|
+
* @param {string} orgName name of the Org
|
|
6673
|
+
* @param {string} clusterName name of the KubeBlocks cluster
|
|
6674
|
+
* @param {string} name name of the instance to be rebuilt
|
|
6675
|
+
* @param {*} [options] Override http request option.
|
|
6676
|
+
* @throws {RequiredError}
|
|
6677
|
+
*/
|
|
6678
|
+
listAvailableNodes: async (orgName, clusterName, name, options = {}) => {
|
|
6679
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
6680
|
+
(0, common_1.assertParamExists)('listAvailableNodes', 'orgName', orgName);
|
|
6681
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
6682
|
+
(0, common_1.assertParamExists)('listAvailableNodes', 'clusterName', clusterName);
|
|
6683
|
+
// verify required parameter 'name' is not null or undefined
|
|
6684
|
+
(0, common_1.assertParamExists)('listAvailableNodes', 'name', name);
|
|
6685
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/rebuildInstance/availableNodes`
|
|
6686
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
6687
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
6688
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6689
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6690
|
+
let baseOptions;
|
|
6691
|
+
if (configuration) {
|
|
6692
|
+
baseOptions = configuration.baseOptions;
|
|
6693
|
+
}
|
|
6694
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6695
|
+
const localVarHeaderParameter = {};
|
|
6696
|
+
const localVarQueryParameter = {};
|
|
6697
|
+
// authentication BearerToken required
|
|
6698
|
+
// http bearer authentication required
|
|
6699
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6700
|
+
// authentication DigestAuth required
|
|
6701
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
6702
|
+
if (name !== undefined) {
|
|
6703
|
+
localVarQueryParameter['name'] = name;
|
|
6704
|
+
}
|
|
6705
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6706
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6707
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6708
|
+
return {
|
|
6709
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6710
|
+
options: localVarRequestOptions,
|
|
6711
|
+
};
|
|
6712
|
+
},
|
|
6713
|
+
/**
|
|
6714
|
+
*
|
|
6715
|
+
* @summary List backup schedules
|
|
6716
|
+
* @param {string} orgName name of the org
|
|
6717
|
+
* @param {string} clusterName name of the cluster
|
|
6718
|
+
* @param {string} [backupMethod] filter by backup method
|
|
6719
|
+
* @param {*} [options] Override http request option.
|
|
6720
|
+
* @throws {RequiredError}
|
|
6721
|
+
*/
|
|
6722
|
+
listBackupSchedules: async (orgName, clusterName, backupMethod, options = {}) => {
|
|
6723
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
6724
|
+
(0, common_1.assertParamExists)('listBackupSchedules', 'orgName', orgName);
|
|
6725
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
6726
|
+
(0, common_1.assertParamExists)('listBackupSchedules', 'clusterName', clusterName);
|
|
6727
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/backupSchedules`
|
|
6728
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
6729
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
6730
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6731
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6732
|
+
let baseOptions;
|
|
6733
|
+
if (configuration) {
|
|
6734
|
+
baseOptions = configuration.baseOptions;
|
|
6735
|
+
}
|
|
6736
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6737
|
+
const localVarHeaderParameter = {};
|
|
6738
|
+
const localVarQueryParameter = {};
|
|
6739
|
+
// authentication BearerToken required
|
|
6740
|
+
// http bearer authentication required
|
|
6741
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6742
|
+
// authentication DigestAuth required
|
|
6743
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
6744
|
+
if (backupMethod !== undefined) {
|
|
6745
|
+
localVarQueryParameter['backupMethod'] = backupMethod;
|
|
6746
|
+
}
|
|
6747
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6748
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6749
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6750
|
+
return {
|
|
6751
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6752
|
+
options: localVarRequestOptions,
|
|
6753
|
+
};
|
|
6754
|
+
},
|
|
6755
|
+
/**
|
|
6756
|
+
*
|
|
6757
|
+
* @summary List classes
|
|
6758
|
+
* @param {string} [engineName] filter by engine name
|
|
6342
6759
|
* @param {*} [options] Override http request option.
|
|
6343
6760
|
* @throws {RequiredError}
|
|
6344
6761
|
*/
|
|
6345
|
-
|
|
6346
|
-
|
|
6347
|
-
(0, common_1.assertParamExists)('listAvailableClustersForRelation', 'orgName', orgName);
|
|
6348
|
-
// verify required parameter 'clusterName' is not null or undefined
|
|
6349
|
-
(0, common_1.assertParamExists)('listAvailableClustersForRelation', 'clusterName', clusterName);
|
|
6350
|
-
// verify required parameter 'targetType' is not null or undefined
|
|
6351
|
-
(0, common_1.assertParamExists)('listAvailableClustersForRelation', 'targetType', targetType);
|
|
6352
|
-
const localVarPath = `/admin/v1/organizations/{orgName}/cluster/{clusterName}/available-relations`
|
|
6353
|
-
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
6354
|
-
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
6762
|
+
listClasses: async (engineName, options = {}) => {
|
|
6763
|
+
const localVarPath = `/admin/v1/classes`;
|
|
6355
6764
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6356
6765
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6357
6766
|
let baseOptions;
|
|
@@ -6366,8 +6775,8 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
6366
6775
|
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6367
6776
|
// authentication DigestAuth required
|
|
6368
6777
|
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
6369
|
-
if (
|
|
6370
|
-
localVarQueryParameter['
|
|
6778
|
+
if (engineName !== undefined) {
|
|
6779
|
+
localVarQueryParameter['engineName'] = engineName;
|
|
6371
6780
|
}
|
|
6372
6781
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6373
6782
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -6379,12 +6788,24 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
6379
6788
|
},
|
|
6380
6789
|
/**
|
|
6381
6790
|
*
|
|
6382
|
-
* @summary List
|
|
6791
|
+
* @summary List the roles granted to a ClickHouse account
|
|
6792
|
+
* @param {string} orgName
|
|
6793
|
+
* @param {string} clusterName
|
|
6794
|
+
* @param {string} accountName
|
|
6383
6795
|
* @param {*} [options] Override http request option.
|
|
6384
6796
|
* @throws {RequiredError}
|
|
6385
6797
|
*/
|
|
6386
|
-
|
|
6387
|
-
|
|
6798
|
+
listClickhouseAccountRoles: async (orgName, clusterName, accountName, options = {}) => {
|
|
6799
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
6800
|
+
(0, common_1.assertParamExists)('listClickhouseAccountRoles', 'orgName', orgName);
|
|
6801
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
6802
|
+
(0, common_1.assertParamExists)('listClickhouseAccountRoles', 'clusterName', clusterName);
|
|
6803
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
6804
|
+
(0, common_1.assertParamExists)('listClickhouseAccountRoles', 'accountName', accountName);
|
|
6805
|
+
const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/roles`
|
|
6806
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
6807
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
6808
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
6388
6809
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6389
6810
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6390
6811
|
let baseOptions;
|
|
@@ -6409,21 +6830,18 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
6409
6830
|
},
|
|
6410
6831
|
/**
|
|
6411
6832
|
*
|
|
6412
|
-
* @summary List
|
|
6413
|
-
* @param {string} orgName
|
|
6414
|
-
* @param {string} clusterName
|
|
6415
|
-
* @param {string} name name of the instance to be rebuilt
|
|
6833
|
+
* @summary List ClickHouse accounts
|
|
6834
|
+
* @param {string} orgName
|
|
6835
|
+
* @param {string} clusterName
|
|
6416
6836
|
* @param {*} [options] Override http request option.
|
|
6417
6837
|
* @throws {RequiredError}
|
|
6418
6838
|
*/
|
|
6419
|
-
|
|
6839
|
+
listClickhouseAccounts: async (orgName, clusterName, options = {}) => {
|
|
6420
6840
|
// verify required parameter 'orgName' is not null or undefined
|
|
6421
|
-
(0, common_1.assertParamExists)('
|
|
6841
|
+
(0, common_1.assertParamExists)('listClickhouseAccounts', 'orgName', orgName);
|
|
6422
6842
|
// verify required parameter 'clusterName' is not null or undefined
|
|
6423
|
-
(0, common_1.assertParamExists)('
|
|
6424
|
-
|
|
6425
|
-
(0, common_1.assertParamExists)('listAvailableNodes', 'name', name);
|
|
6426
|
-
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/rebuildInstance/availableNodes`
|
|
6843
|
+
(0, common_1.assertParamExists)('listClickhouseAccounts', 'clusterName', clusterName);
|
|
6844
|
+
const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts`
|
|
6427
6845
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
6428
6846
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
6429
6847
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -6440,9 +6858,6 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
6440
6858
|
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6441
6859
|
// authentication DigestAuth required
|
|
6442
6860
|
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
6443
|
-
if (name !== undefined) {
|
|
6444
|
-
localVarQueryParameter['name'] = name;
|
|
6445
|
-
}
|
|
6446
6861
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6447
6862
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6448
6863
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -6453,19 +6868,18 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
6453
6868
|
},
|
|
6454
6869
|
/**
|
|
6455
6870
|
*
|
|
6456
|
-
* @summary List
|
|
6457
|
-
* @param {string} orgName
|
|
6458
|
-
* @param {string} clusterName
|
|
6459
|
-
* @param {string} [backupMethod] filter by backup method
|
|
6871
|
+
* @summary List privileges supported by the ClickHouse server
|
|
6872
|
+
* @param {string} orgName
|
|
6873
|
+
* @param {string} clusterName
|
|
6460
6874
|
* @param {*} [options] Override http request option.
|
|
6461
6875
|
* @throws {RequiredError}
|
|
6462
6876
|
*/
|
|
6463
|
-
|
|
6877
|
+
listClickhousePrivileges: async (orgName, clusterName, options = {}) => {
|
|
6464
6878
|
// verify required parameter 'orgName' is not null or undefined
|
|
6465
|
-
(0, common_1.assertParamExists)('
|
|
6879
|
+
(0, common_1.assertParamExists)('listClickhousePrivileges', 'orgName', orgName);
|
|
6466
6880
|
// verify required parameter 'clusterName' is not null or undefined
|
|
6467
|
-
(0, common_1.assertParamExists)('
|
|
6468
|
-
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/
|
|
6881
|
+
(0, common_1.assertParamExists)('listClickhousePrivileges', 'clusterName', clusterName);
|
|
6882
|
+
const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/privileges`
|
|
6469
6883
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
6470
6884
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
6471
6885
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -6482,9 +6896,6 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
6482
6896
|
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6483
6897
|
// authentication DigestAuth required
|
|
6484
6898
|
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
6485
|
-
if (backupMethod !== undefined) {
|
|
6486
|
-
localVarQueryParameter['backupMethod'] = backupMethod;
|
|
6487
|
-
}
|
|
6488
6899
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6489
6900
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6490
6901
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -6495,13 +6906,21 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
6495
6906
|
},
|
|
6496
6907
|
/**
|
|
6497
6908
|
*
|
|
6498
|
-
* @summary List
|
|
6499
|
-
* @param {string}
|
|
6909
|
+
* @summary List ClickHouse roles
|
|
6910
|
+
* @param {string} orgName
|
|
6911
|
+
* @param {string} clusterName
|
|
6912
|
+
* @param {boolean} [forCreateUser] Whether to include built-in privilege roles for creating an account.
|
|
6500
6913
|
* @param {*} [options] Override http request option.
|
|
6501
6914
|
* @throws {RequiredError}
|
|
6502
6915
|
*/
|
|
6503
|
-
|
|
6504
|
-
|
|
6916
|
+
listClickhouseRoles: async (orgName, clusterName, forCreateUser, options = {}) => {
|
|
6917
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
6918
|
+
(0, common_1.assertParamExists)('listClickhouseRoles', 'orgName', orgName);
|
|
6919
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
6920
|
+
(0, common_1.assertParamExists)('listClickhouseRoles', 'clusterName', clusterName);
|
|
6921
|
+
const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/roles`
|
|
6922
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
6923
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
6505
6924
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6506
6925
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6507
6926
|
let baseOptions;
|
|
@@ -6516,8 +6935,8 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
6516
6935
|
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6517
6936
|
// authentication DigestAuth required
|
|
6518
6937
|
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
6519
|
-
if (
|
|
6520
|
-
localVarQueryParameter['
|
|
6938
|
+
if (forCreateUser !== undefined) {
|
|
6939
|
+
localVarQueryParameter['forCreateUser'] = forCreateUser;
|
|
6521
6940
|
}
|
|
6522
6941
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6523
6942
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -11262,6 +11681,53 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
11262
11681
|
options: localVarRequestOptions,
|
|
11263
11682
|
};
|
|
11264
11683
|
},
|
|
11684
|
+
/**
|
|
11685
|
+
*
|
|
11686
|
+
* @summary Revoke privileges from a ClickHouse role
|
|
11687
|
+
* @param {string} orgName
|
|
11688
|
+
* @param {string} clusterName
|
|
11689
|
+
* @param {string} roleName
|
|
11690
|
+
* @param {RevokeClickhouseRolePrivilegesRequest} body
|
|
11691
|
+
* @param {*} [options] Override http request option.
|
|
11692
|
+
* @throws {RequiredError}
|
|
11693
|
+
*/
|
|
11694
|
+
revokeClickhouseRolePrivileges: async (orgName, clusterName, roleName, body, options = {}) => {
|
|
11695
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
11696
|
+
(0, common_1.assertParamExists)('revokeClickhouseRolePrivileges', 'orgName', orgName);
|
|
11697
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
11698
|
+
(0, common_1.assertParamExists)('revokeClickhouseRolePrivileges', 'clusterName', clusterName);
|
|
11699
|
+
// verify required parameter 'roleName' is not null or undefined
|
|
11700
|
+
(0, common_1.assertParamExists)('revokeClickhouseRolePrivileges', 'roleName', roleName);
|
|
11701
|
+
// verify required parameter 'body' is not null or undefined
|
|
11702
|
+
(0, common_1.assertParamExists)('revokeClickhouseRolePrivileges', 'body', body);
|
|
11703
|
+
const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}/privileges`
|
|
11704
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
11705
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
11706
|
+
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
11707
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11708
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11709
|
+
let baseOptions;
|
|
11710
|
+
if (configuration) {
|
|
11711
|
+
baseOptions = configuration.baseOptions;
|
|
11712
|
+
}
|
|
11713
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
11714
|
+
const localVarHeaderParameter = {};
|
|
11715
|
+
const localVarQueryParameter = {};
|
|
11716
|
+
// authentication BearerToken required
|
|
11717
|
+
// http bearer authentication required
|
|
11718
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
11719
|
+
// authentication DigestAuth required
|
|
11720
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
11721
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11722
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11723
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11724
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11725
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
11726
|
+
return {
|
|
11727
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11728
|
+
options: localVarRequestOptions,
|
|
11729
|
+
};
|
|
11730
|
+
},
|
|
11265
11731
|
/**
|
|
11266
11732
|
*
|
|
11267
11733
|
* @summary Set cluster alert disabled or enabled
|
|
@@ -12066,6 +12532,100 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
12066
12532
|
options: localVarRequestOptions,
|
|
12067
12533
|
};
|
|
12068
12534
|
},
|
|
12535
|
+
/**
|
|
12536
|
+
*
|
|
12537
|
+
* @summary Update a ClickHouse account password
|
|
12538
|
+
* @param {string} orgName
|
|
12539
|
+
* @param {string} clusterName
|
|
12540
|
+
* @param {string} accountName
|
|
12541
|
+
* @param {UpdateClickhouseAccountPasswordRequest} body
|
|
12542
|
+
* @param {*} [options] Override http request option.
|
|
12543
|
+
* @throws {RequiredError}
|
|
12544
|
+
*/
|
|
12545
|
+
updateClickhouseAccountPassword: async (orgName, clusterName, accountName, body, options = {}) => {
|
|
12546
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
12547
|
+
(0, common_1.assertParamExists)('updateClickhouseAccountPassword', 'orgName', orgName);
|
|
12548
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
12549
|
+
(0, common_1.assertParamExists)('updateClickhouseAccountPassword', 'clusterName', clusterName);
|
|
12550
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
12551
|
+
(0, common_1.assertParamExists)('updateClickhouseAccountPassword', 'accountName', accountName);
|
|
12552
|
+
// verify required parameter 'body' is not null or undefined
|
|
12553
|
+
(0, common_1.assertParamExists)('updateClickhouseAccountPassword', 'body', body);
|
|
12554
|
+
const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
|
|
12555
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
12556
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
12557
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
12558
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12559
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12560
|
+
let baseOptions;
|
|
12561
|
+
if (configuration) {
|
|
12562
|
+
baseOptions = configuration.baseOptions;
|
|
12563
|
+
}
|
|
12564
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
12565
|
+
const localVarHeaderParameter = {};
|
|
12566
|
+
const localVarQueryParameter = {};
|
|
12567
|
+
// authentication BearerToken required
|
|
12568
|
+
// http bearer authentication required
|
|
12569
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12570
|
+
// authentication DigestAuth required
|
|
12571
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
12572
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12573
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12574
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12575
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12576
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
12577
|
+
return {
|
|
12578
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12579
|
+
options: localVarRequestOptions,
|
|
12580
|
+
};
|
|
12581
|
+
},
|
|
12582
|
+
/**
|
|
12583
|
+
*
|
|
12584
|
+
* @summary Update the roles granted to a ClickHouse account
|
|
12585
|
+
* @param {string} orgName
|
|
12586
|
+
* @param {string} clusterName
|
|
12587
|
+
* @param {string} accountName
|
|
12588
|
+
* @param {UpdateClickhouseAccountRolesRequest} body
|
|
12589
|
+
* @param {*} [options] Override http request option.
|
|
12590
|
+
* @throws {RequiredError}
|
|
12591
|
+
*/
|
|
12592
|
+
updateClickhouseAccountRoles: async (orgName, clusterName, accountName, body, options = {}) => {
|
|
12593
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
12594
|
+
(0, common_1.assertParamExists)('updateClickhouseAccountRoles', 'orgName', orgName);
|
|
12595
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
12596
|
+
(0, common_1.assertParamExists)('updateClickhouseAccountRoles', 'clusterName', clusterName);
|
|
12597
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
12598
|
+
(0, common_1.assertParamExists)('updateClickhouseAccountRoles', 'accountName', accountName);
|
|
12599
|
+
// verify required parameter 'body' is not null or undefined
|
|
12600
|
+
(0, common_1.assertParamExists)('updateClickhouseAccountRoles', 'body', body);
|
|
12601
|
+
const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/roles`
|
|
12602
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
12603
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
12604
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
12605
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12606
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12607
|
+
let baseOptions;
|
|
12608
|
+
if (configuration) {
|
|
12609
|
+
baseOptions = configuration.baseOptions;
|
|
12610
|
+
}
|
|
12611
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
12612
|
+
const localVarHeaderParameter = {};
|
|
12613
|
+
const localVarQueryParameter = {};
|
|
12614
|
+
// authentication BearerToken required
|
|
12615
|
+
// http bearer authentication required
|
|
12616
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12617
|
+
// authentication DigestAuth required
|
|
12618
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
12619
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12620
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12621
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12622
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12623
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
12624
|
+
return {
|
|
12625
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12626
|
+
options: localVarRequestOptions,
|
|
12627
|
+
};
|
|
12628
|
+
},
|
|
12069
12629
|
/**
|
|
12070
12630
|
*
|
|
12071
12631
|
* @summary Update the cluster license
|
|
@@ -13478,6 +14038,38 @@ const SharedApiFp = function (configuration) {
|
|
|
13478
14038
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.createBackupSchedule']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13479
14039
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13480
14040
|
},
|
|
14041
|
+
/**
|
|
14042
|
+
*
|
|
14043
|
+
* @summary Create a ClickHouse account with optional roles
|
|
14044
|
+
* @param {string} orgName
|
|
14045
|
+
* @param {string} clusterName
|
|
14046
|
+
* @param {CreateClickhouseAccountRequest} body
|
|
14047
|
+
* @param {*} [options] Override http request option.
|
|
14048
|
+
* @throws {RequiredError}
|
|
14049
|
+
*/
|
|
14050
|
+
async createClickhouseAccount(orgName, clusterName, body, options) {
|
|
14051
|
+
var _a, _b, _c;
|
|
14052
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createClickhouseAccount(orgName, clusterName, body, options);
|
|
14053
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14054
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.createClickhouseAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14055
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14056
|
+
},
|
|
14057
|
+
/**
|
|
14058
|
+
*
|
|
14059
|
+
* @summary Create a ClickHouse role with privileges
|
|
14060
|
+
* @param {string} orgName
|
|
14061
|
+
* @param {string} clusterName
|
|
14062
|
+
* @param {ListClickhouseAccountRoles200Response} body
|
|
14063
|
+
* @param {*} [options] Override http request option.
|
|
14064
|
+
* @throws {RequiredError}
|
|
14065
|
+
*/
|
|
14066
|
+
async createClickhouseRole(orgName, clusterName, body, options) {
|
|
14067
|
+
var _a, _b, _c;
|
|
14068
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createClickhouseRole(orgName, clusterName, body, options);
|
|
14069
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14070
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.createClickhouseRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14071
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14072
|
+
},
|
|
13481
14073
|
/**
|
|
13482
14074
|
*
|
|
13483
14075
|
* @summary Create new cluster
|
|
@@ -13861,6 +14453,38 @@ const SharedApiFp = function (configuration) {
|
|
|
13861
14453
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.deleteBackupSchedule']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13862
14454
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13863
14455
|
},
|
|
14456
|
+
/**
|
|
14457
|
+
*
|
|
14458
|
+
* @summary Delete a ClickHouse account
|
|
14459
|
+
* @param {string} orgName
|
|
14460
|
+
* @param {string} clusterName
|
|
14461
|
+
* @param {string} accountName
|
|
14462
|
+
* @param {*} [options] Override http request option.
|
|
14463
|
+
* @throws {RequiredError}
|
|
14464
|
+
*/
|
|
14465
|
+
async deleteClickhouseAccount(orgName, clusterName, accountName, options) {
|
|
14466
|
+
var _a, _b, _c;
|
|
14467
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClickhouseAccount(orgName, clusterName, accountName, options);
|
|
14468
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14469
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.deleteClickhouseAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14470
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14471
|
+
},
|
|
14472
|
+
/**
|
|
14473
|
+
*
|
|
14474
|
+
* @summary Delete a ClickHouse role
|
|
14475
|
+
* @param {string} orgName
|
|
14476
|
+
* @param {string} clusterName
|
|
14477
|
+
* @param {string} roleName
|
|
14478
|
+
* @param {*} [options] Override http request option.
|
|
14479
|
+
* @throws {RequiredError}
|
|
14480
|
+
*/
|
|
14481
|
+
async deleteClickhouseRole(orgName, clusterName, roleName, options) {
|
|
14482
|
+
var _a, _b, _c;
|
|
14483
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClickhouseRole(orgName, clusterName, roleName, options);
|
|
14484
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14485
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.deleteClickhouseRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14486
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14487
|
+
},
|
|
13864
14488
|
/**
|
|
13865
14489
|
*
|
|
13866
14490
|
* @summary Delete cluster
|
|
@@ -14612,6 +15236,22 @@ const SharedApiFp = function (configuration) {
|
|
|
14612
15236
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.getBackupRepo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14613
15237
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14614
15238
|
},
|
|
15239
|
+
/**
|
|
15240
|
+
*
|
|
15241
|
+
* @summary Get the grants (privileges) of a ClickHouse role
|
|
15242
|
+
* @param {string} orgName
|
|
15243
|
+
* @param {string} clusterName
|
|
15244
|
+
* @param {string} roleName
|
|
15245
|
+
* @param {*} [options] Override http request option.
|
|
15246
|
+
* @throws {RequiredError}
|
|
15247
|
+
*/
|
|
15248
|
+
async getClickhouseRoleGrants(orgName, clusterName, roleName, options) {
|
|
15249
|
+
var _a, _b, _c;
|
|
15250
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getClickhouseRoleGrants(orgName, clusterName, roleName, options);
|
|
15251
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15252
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.getClickhouseRoleGrants']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15253
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15254
|
+
},
|
|
14615
15255
|
/**
|
|
14616
15256
|
*
|
|
14617
15257
|
* @summary Get cluster details
|
|
@@ -15450,11 +16090,28 @@ const SharedApiFp = function (configuration) {
|
|
|
15450
16090
|
* @param {*} [options] Override http request option.
|
|
15451
16091
|
* @throws {RequiredError}
|
|
15452
16092
|
*/
|
|
15453
|
-
async getTenant(orgName, clusterName, tenantId, options) {
|
|
16093
|
+
async getTenant(orgName, clusterName, tenantId, options) {
|
|
16094
|
+
var _a, _b, _c;
|
|
16095
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTenant(orgName, clusterName, tenantId, options);
|
|
16096
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16097
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.getTenant']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16098
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16099
|
+
},
|
|
16100
|
+
/**
|
|
16101
|
+
*
|
|
16102
|
+
* @summary Grant privileges to a ClickHouse role
|
|
16103
|
+
* @param {string} orgName
|
|
16104
|
+
* @param {string} clusterName
|
|
16105
|
+
* @param {string} roleName
|
|
16106
|
+
* @param {ListClickhouseAccountRoles200ResponsePrivilegesInner} body
|
|
16107
|
+
* @param {*} [options] Override http request option.
|
|
16108
|
+
* @throws {RequiredError}
|
|
16109
|
+
*/
|
|
16110
|
+
async grantClickhouseRolePrivileges(orgName, clusterName, roleName, body, options) {
|
|
15454
16111
|
var _a, _b, _c;
|
|
15455
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
16112
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.grantClickhouseRolePrivileges(orgName, clusterName, roleName, body, options);
|
|
15456
16113
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15457
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.
|
|
16114
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.grantClickhouseRolePrivileges']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15458
16115
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15459
16116
|
},
|
|
15460
16117
|
/**
|
|
@@ -15598,6 +16255,68 @@ const SharedApiFp = function (configuration) {
|
|
|
15598
16255
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listClasses']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15599
16256
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15600
16257
|
},
|
|
16258
|
+
/**
|
|
16259
|
+
*
|
|
16260
|
+
* @summary List the roles granted to a ClickHouse account
|
|
16261
|
+
* @param {string} orgName
|
|
16262
|
+
* @param {string} clusterName
|
|
16263
|
+
* @param {string} accountName
|
|
16264
|
+
* @param {*} [options] Override http request option.
|
|
16265
|
+
* @throws {RequiredError}
|
|
16266
|
+
*/
|
|
16267
|
+
async listClickhouseAccountRoles(orgName, clusterName, accountName, options) {
|
|
16268
|
+
var _a, _b, _c;
|
|
16269
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listClickhouseAccountRoles(orgName, clusterName, accountName, options);
|
|
16270
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16271
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listClickhouseAccountRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16272
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16273
|
+
},
|
|
16274
|
+
/**
|
|
16275
|
+
*
|
|
16276
|
+
* @summary List ClickHouse accounts
|
|
16277
|
+
* @param {string} orgName
|
|
16278
|
+
* @param {string} clusterName
|
|
16279
|
+
* @param {*} [options] Override http request option.
|
|
16280
|
+
* @throws {RequiredError}
|
|
16281
|
+
*/
|
|
16282
|
+
async listClickhouseAccounts(orgName, clusterName, options) {
|
|
16283
|
+
var _a, _b, _c;
|
|
16284
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listClickhouseAccounts(orgName, clusterName, options);
|
|
16285
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16286
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listClickhouseAccounts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16287
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16288
|
+
},
|
|
16289
|
+
/**
|
|
16290
|
+
*
|
|
16291
|
+
* @summary List privileges supported by the ClickHouse server
|
|
16292
|
+
* @param {string} orgName
|
|
16293
|
+
* @param {string} clusterName
|
|
16294
|
+
* @param {*} [options] Override http request option.
|
|
16295
|
+
* @throws {RequiredError}
|
|
16296
|
+
*/
|
|
16297
|
+
async listClickhousePrivileges(orgName, clusterName, options) {
|
|
16298
|
+
var _a, _b, _c;
|
|
16299
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listClickhousePrivileges(orgName, clusterName, options);
|
|
16300
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16301
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listClickhousePrivileges']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16302
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16303
|
+
},
|
|
16304
|
+
/**
|
|
16305
|
+
*
|
|
16306
|
+
* @summary List ClickHouse roles
|
|
16307
|
+
* @param {string} orgName
|
|
16308
|
+
* @param {string} clusterName
|
|
16309
|
+
* @param {boolean} [forCreateUser] Whether to include built-in privilege roles for creating an account.
|
|
16310
|
+
* @param {*} [options] Override http request option.
|
|
16311
|
+
* @throws {RequiredError}
|
|
16312
|
+
*/
|
|
16313
|
+
async listClickhouseRoles(orgName, clusterName, forCreateUser, options) {
|
|
16314
|
+
var _a, _b, _c;
|
|
16315
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listClickhouseRoles(orgName, clusterName, forCreateUser, options);
|
|
16316
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16317
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listClickhouseRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16318
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16319
|
+
},
|
|
15601
16320
|
/**
|
|
15602
16321
|
*
|
|
15603
16322
|
* @summary List clusters in the Org
|
|
@@ -17297,6 +18016,23 @@ const SharedApiFp = function (configuration) {
|
|
|
17297
18016
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.restoreRecycleBinCluster']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17298
18017
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17299
18018
|
},
|
|
18019
|
+
/**
|
|
18020
|
+
*
|
|
18021
|
+
* @summary Revoke privileges from a ClickHouse role
|
|
18022
|
+
* @param {string} orgName
|
|
18023
|
+
* @param {string} clusterName
|
|
18024
|
+
* @param {string} roleName
|
|
18025
|
+
* @param {RevokeClickhouseRolePrivilegesRequest} body
|
|
18026
|
+
* @param {*} [options] Override http request option.
|
|
18027
|
+
* @throws {RequiredError}
|
|
18028
|
+
*/
|
|
18029
|
+
async revokeClickhouseRolePrivileges(orgName, clusterName, roleName, body, options) {
|
|
18030
|
+
var _a, _b, _c;
|
|
18031
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.revokeClickhouseRolePrivileges(orgName, clusterName, roleName, body, options);
|
|
18032
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
18033
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.revokeClickhouseRolePrivileges']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
18034
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18035
|
+
},
|
|
17300
18036
|
/**
|
|
17301
18037
|
*
|
|
17302
18038
|
* @summary Set cluster alert disabled or enabled
|
|
@@ -17595,6 +18331,40 @@ const SharedApiFp = function (configuration) {
|
|
|
17595
18331
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.updateBackupSchedule']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17596
18332
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17597
18333
|
},
|
|
18334
|
+
/**
|
|
18335
|
+
*
|
|
18336
|
+
* @summary Update a ClickHouse account password
|
|
18337
|
+
* @param {string} orgName
|
|
18338
|
+
* @param {string} clusterName
|
|
18339
|
+
* @param {string} accountName
|
|
18340
|
+
* @param {UpdateClickhouseAccountPasswordRequest} body
|
|
18341
|
+
* @param {*} [options] Override http request option.
|
|
18342
|
+
* @throws {RequiredError}
|
|
18343
|
+
*/
|
|
18344
|
+
async updateClickhouseAccountPassword(orgName, clusterName, accountName, body, options) {
|
|
18345
|
+
var _a, _b, _c;
|
|
18346
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateClickhouseAccountPassword(orgName, clusterName, accountName, body, options);
|
|
18347
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
18348
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.updateClickhouseAccountPassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
18349
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18350
|
+
},
|
|
18351
|
+
/**
|
|
18352
|
+
*
|
|
18353
|
+
* @summary Update the roles granted to a ClickHouse account
|
|
18354
|
+
* @param {string} orgName
|
|
18355
|
+
* @param {string} clusterName
|
|
18356
|
+
* @param {string} accountName
|
|
18357
|
+
* @param {UpdateClickhouseAccountRolesRequest} body
|
|
18358
|
+
* @param {*} [options] Override http request option.
|
|
18359
|
+
* @throws {RequiredError}
|
|
18360
|
+
*/
|
|
18361
|
+
async updateClickhouseAccountRoles(orgName, clusterName, accountName, body, options) {
|
|
18362
|
+
var _a, _b, _c;
|
|
18363
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateClickhouseAccountRoles(orgName, clusterName, accountName, body, options);
|
|
18364
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
18365
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.updateClickhouseAccountRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
18366
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18367
|
+
},
|
|
17598
18368
|
/**
|
|
17599
18369
|
*
|
|
17600
18370
|
* @summary Update the cluster license
|
|
@@ -18179,6 +18949,26 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
18179
18949
|
createBackupSchedule(requestParameters, options) {
|
|
18180
18950
|
return localVarFp.createBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
18181
18951
|
},
|
|
18952
|
+
/**
|
|
18953
|
+
*
|
|
18954
|
+
* @summary Create a ClickHouse account with optional roles
|
|
18955
|
+
* @param {SharedApiCreateClickhouseAccountRequest} requestParameters Request parameters.
|
|
18956
|
+
* @param {*} [options] Override http request option.
|
|
18957
|
+
* @throws {RequiredError}
|
|
18958
|
+
*/
|
|
18959
|
+
createClickhouseAccount(requestParameters, options) {
|
|
18960
|
+
return localVarFp.createClickhouseAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
18961
|
+
},
|
|
18962
|
+
/**
|
|
18963
|
+
*
|
|
18964
|
+
* @summary Create a ClickHouse role with privileges
|
|
18965
|
+
* @param {SharedApiCreateClickhouseRoleRequest} requestParameters Request parameters.
|
|
18966
|
+
* @param {*} [options] Override http request option.
|
|
18967
|
+
* @throws {RequiredError}
|
|
18968
|
+
*/
|
|
18969
|
+
createClickhouseRole(requestParameters, options) {
|
|
18970
|
+
return localVarFp.createClickhouseRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
18971
|
+
},
|
|
18182
18972
|
/**
|
|
18183
18973
|
*
|
|
18184
18974
|
* @summary Create new cluster
|
|
@@ -18419,6 +19209,26 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
18419
19209
|
deleteBackupSchedule(requestParameters, options) {
|
|
18420
19210
|
return localVarFp.deleteBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.scheduleName, options).then((request) => request(axios, basePath));
|
|
18421
19211
|
},
|
|
19212
|
+
/**
|
|
19213
|
+
*
|
|
19214
|
+
* @summary Delete a ClickHouse account
|
|
19215
|
+
* @param {SharedApiDeleteClickhouseAccountRequest} requestParameters Request parameters.
|
|
19216
|
+
* @param {*} [options] Override http request option.
|
|
19217
|
+
* @throws {RequiredError}
|
|
19218
|
+
*/
|
|
19219
|
+
deleteClickhouseAccount(requestParameters, options) {
|
|
19220
|
+
return localVarFp.deleteClickhouseAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
|
|
19221
|
+
},
|
|
19222
|
+
/**
|
|
19223
|
+
*
|
|
19224
|
+
* @summary Delete a ClickHouse role
|
|
19225
|
+
* @param {SharedApiDeleteClickhouseRoleRequest} requestParameters Request parameters.
|
|
19226
|
+
* @param {*} [options] Override http request option.
|
|
19227
|
+
* @throws {RequiredError}
|
|
19228
|
+
*/
|
|
19229
|
+
deleteClickhouseRole(requestParameters, options) {
|
|
19230
|
+
return localVarFp.deleteClickhouseRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, options).then((request) => request(axios, basePath));
|
|
19231
|
+
},
|
|
18422
19232
|
/**
|
|
18423
19233
|
*
|
|
18424
19234
|
* @summary Delete cluster
|
|
@@ -18870,6 +19680,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
18870
19680
|
getBackupRepo(requestParameters, options) {
|
|
18871
19681
|
return localVarFp.getBackupRepo(requestParameters.environmentName, requestParameters.backupRepoName, requestParameters.orgName, options).then((request) => request(axios, basePath));
|
|
18872
19682
|
},
|
|
19683
|
+
/**
|
|
19684
|
+
*
|
|
19685
|
+
* @summary Get the grants (privileges) of a ClickHouse role
|
|
19686
|
+
* @param {SharedApiGetClickhouseRoleGrantsRequest} requestParameters Request parameters.
|
|
19687
|
+
* @param {*} [options] Override http request option.
|
|
19688
|
+
* @throws {RequiredError}
|
|
19689
|
+
*/
|
|
19690
|
+
getClickhouseRoleGrants(requestParameters, options) {
|
|
19691
|
+
return localVarFp.getClickhouseRoleGrants(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, options).then((request) => request(axios, basePath));
|
|
19692
|
+
},
|
|
18873
19693
|
/**
|
|
18874
19694
|
*
|
|
18875
19695
|
* @summary Get cluster details
|
|
@@ -19369,6 +20189,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
19369
20189
|
getTenant(requestParameters, options) {
|
|
19370
20190
|
return localVarFp.getTenant(requestParameters.orgName, requestParameters.clusterName, requestParameters.tenantId, options).then((request) => request(axios, basePath));
|
|
19371
20191
|
},
|
|
20192
|
+
/**
|
|
20193
|
+
*
|
|
20194
|
+
* @summary Grant privileges to a ClickHouse role
|
|
20195
|
+
* @param {SharedApiGrantClickhouseRolePrivilegesRequest} requestParameters Request parameters.
|
|
20196
|
+
* @param {*} [options] Override http request option.
|
|
20197
|
+
* @throws {RequiredError}
|
|
20198
|
+
*/
|
|
20199
|
+
grantClickhouseRolePrivileges(requestParameters, options) {
|
|
20200
|
+
return localVarFp.grantClickhouseRolePrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
20201
|
+
},
|
|
19372
20202
|
/**
|
|
19373
20203
|
*
|
|
19374
20204
|
* @summary Horizontal scale cluster
|
|
@@ -19458,6 +20288,46 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
19458
20288
|
listClasses(requestParameters = {}, options) {
|
|
19459
20289
|
return localVarFp.listClasses(requestParameters.engineName, options).then((request) => request(axios, basePath));
|
|
19460
20290
|
},
|
|
20291
|
+
/**
|
|
20292
|
+
*
|
|
20293
|
+
* @summary List the roles granted to a ClickHouse account
|
|
20294
|
+
* @param {SharedApiListClickhouseAccountRolesRequest} requestParameters Request parameters.
|
|
20295
|
+
* @param {*} [options] Override http request option.
|
|
20296
|
+
* @throws {RequiredError}
|
|
20297
|
+
*/
|
|
20298
|
+
listClickhouseAccountRoles(requestParameters, options) {
|
|
20299
|
+
return localVarFp.listClickhouseAccountRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
|
|
20300
|
+
},
|
|
20301
|
+
/**
|
|
20302
|
+
*
|
|
20303
|
+
* @summary List ClickHouse accounts
|
|
20304
|
+
* @param {SharedApiListClickhouseAccountsRequest} requestParameters Request parameters.
|
|
20305
|
+
* @param {*} [options] Override http request option.
|
|
20306
|
+
* @throws {RequiredError}
|
|
20307
|
+
*/
|
|
20308
|
+
listClickhouseAccounts(requestParameters, options) {
|
|
20309
|
+
return localVarFp.listClickhouseAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
20310
|
+
},
|
|
20311
|
+
/**
|
|
20312
|
+
*
|
|
20313
|
+
* @summary List privileges supported by the ClickHouse server
|
|
20314
|
+
* @param {SharedApiListClickhousePrivilegesRequest} requestParameters Request parameters.
|
|
20315
|
+
* @param {*} [options] Override http request option.
|
|
20316
|
+
* @throws {RequiredError}
|
|
20317
|
+
*/
|
|
20318
|
+
listClickhousePrivileges(requestParameters, options) {
|
|
20319
|
+
return localVarFp.listClickhousePrivileges(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
20320
|
+
},
|
|
20321
|
+
/**
|
|
20322
|
+
*
|
|
20323
|
+
* @summary List ClickHouse roles
|
|
20324
|
+
* @param {SharedApiListClickhouseRolesRequest} requestParameters Request parameters.
|
|
20325
|
+
* @param {*} [options] Override http request option.
|
|
20326
|
+
* @throws {RequiredError}
|
|
20327
|
+
*/
|
|
20328
|
+
listClickhouseRoles(requestParameters, options) {
|
|
20329
|
+
return localVarFp.listClickhouseRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.forCreateUser, options).then((request) => request(axios, basePath));
|
|
20330
|
+
},
|
|
19461
20331
|
/**
|
|
19462
20332
|
*
|
|
19463
20333
|
* @summary List clusters in the Org
|
|
@@ -20434,6 +21304,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
20434
21304
|
restoreRecycleBinCluster(requestParameters, options) {
|
|
20435
21305
|
return localVarFp.restoreRecycleBinCluster(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
20436
21306
|
},
|
|
21307
|
+
/**
|
|
21308
|
+
*
|
|
21309
|
+
* @summary Revoke privileges from a ClickHouse role
|
|
21310
|
+
* @param {SharedApiRevokeClickhouseRolePrivilegesRequest} requestParameters Request parameters.
|
|
21311
|
+
* @param {*} [options] Override http request option.
|
|
21312
|
+
* @throws {RequiredError}
|
|
21313
|
+
*/
|
|
21314
|
+
revokeClickhouseRolePrivileges(requestParameters, options) {
|
|
21315
|
+
return localVarFp.revokeClickhouseRolePrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
21316
|
+
},
|
|
20437
21317
|
/**
|
|
20438
21318
|
*
|
|
20439
21319
|
* @summary Set cluster alert disabled or enabled
|
|
@@ -20614,6 +21494,26 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
20614
21494
|
updateBackupSchedule(requestParameters, options) {
|
|
20615
21495
|
return localVarFp.updateBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.scheduleName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
20616
21496
|
},
|
|
21497
|
+
/**
|
|
21498
|
+
*
|
|
21499
|
+
* @summary Update a ClickHouse account password
|
|
21500
|
+
* @param {SharedApiUpdateClickhouseAccountPasswordRequest} requestParameters Request parameters.
|
|
21501
|
+
* @param {*} [options] Override http request option.
|
|
21502
|
+
* @throws {RequiredError}
|
|
21503
|
+
*/
|
|
21504
|
+
updateClickhouseAccountPassword(requestParameters, options) {
|
|
21505
|
+
return localVarFp.updateClickhouseAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
21506
|
+
},
|
|
21507
|
+
/**
|
|
21508
|
+
*
|
|
21509
|
+
* @summary Update the roles granted to a ClickHouse account
|
|
21510
|
+
* @param {SharedApiUpdateClickhouseAccountRolesRequest} requestParameters Request parameters.
|
|
21511
|
+
* @param {*} [options] Override http request option.
|
|
21512
|
+
* @throws {RequiredError}
|
|
21513
|
+
*/
|
|
21514
|
+
updateClickhouseAccountRoles(requestParameters, options) {
|
|
21515
|
+
return localVarFp.updateClickhouseAccountRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
21516
|
+
},
|
|
20617
21517
|
/**
|
|
20618
21518
|
*
|
|
20619
21519
|
* @summary Update the cluster license
|
|
@@ -21049,6 +21949,28 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
21049
21949
|
createBackupSchedule(requestParameters, options) {
|
|
21050
21950
|
return (0, exports.SharedApiFp)(this.configuration).createBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
21051
21951
|
}
|
|
21952
|
+
/**
|
|
21953
|
+
*
|
|
21954
|
+
* @summary Create a ClickHouse account with optional roles
|
|
21955
|
+
* @param {SharedApiCreateClickhouseAccountRequest} requestParameters Request parameters.
|
|
21956
|
+
* @param {*} [options] Override http request option.
|
|
21957
|
+
* @throws {RequiredError}
|
|
21958
|
+
* @memberof SharedApi
|
|
21959
|
+
*/
|
|
21960
|
+
createClickhouseAccount(requestParameters, options) {
|
|
21961
|
+
return (0, exports.SharedApiFp)(this.configuration).createClickhouseAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
21962
|
+
}
|
|
21963
|
+
/**
|
|
21964
|
+
*
|
|
21965
|
+
* @summary Create a ClickHouse role with privileges
|
|
21966
|
+
* @param {SharedApiCreateClickhouseRoleRequest} requestParameters Request parameters.
|
|
21967
|
+
* @param {*} [options] Override http request option.
|
|
21968
|
+
* @throws {RequiredError}
|
|
21969
|
+
* @memberof SharedApi
|
|
21970
|
+
*/
|
|
21971
|
+
createClickhouseRole(requestParameters, options) {
|
|
21972
|
+
return (0, exports.SharedApiFp)(this.configuration).createClickhouseRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
21973
|
+
}
|
|
21052
21974
|
/**
|
|
21053
21975
|
*
|
|
21054
21976
|
* @summary Create new cluster
|
|
@@ -21313,6 +22235,28 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
21313
22235
|
deleteBackupSchedule(requestParameters, options) {
|
|
21314
22236
|
return (0, exports.SharedApiFp)(this.configuration).deleteBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.scheduleName, options).then((request) => request(this.axios, this.basePath));
|
|
21315
22237
|
}
|
|
22238
|
+
/**
|
|
22239
|
+
*
|
|
22240
|
+
* @summary Delete a ClickHouse account
|
|
22241
|
+
* @param {SharedApiDeleteClickhouseAccountRequest} requestParameters Request parameters.
|
|
22242
|
+
* @param {*} [options] Override http request option.
|
|
22243
|
+
* @throws {RequiredError}
|
|
22244
|
+
* @memberof SharedApi
|
|
22245
|
+
*/
|
|
22246
|
+
deleteClickhouseAccount(requestParameters, options) {
|
|
22247
|
+
return (0, exports.SharedApiFp)(this.configuration).deleteClickhouseAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
|
|
22248
|
+
}
|
|
22249
|
+
/**
|
|
22250
|
+
*
|
|
22251
|
+
* @summary Delete a ClickHouse role
|
|
22252
|
+
* @param {SharedApiDeleteClickhouseRoleRequest} requestParameters Request parameters.
|
|
22253
|
+
* @param {*} [options] Override http request option.
|
|
22254
|
+
* @throws {RequiredError}
|
|
22255
|
+
* @memberof SharedApi
|
|
22256
|
+
*/
|
|
22257
|
+
deleteClickhouseRole(requestParameters, options) {
|
|
22258
|
+
return (0, exports.SharedApiFp)(this.configuration).deleteClickhouseRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, options).then((request) => request(this.axios, this.basePath));
|
|
22259
|
+
}
|
|
21316
22260
|
/**
|
|
21317
22261
|
*
|
|
21318
22262
|
* @summary Delete cluster
|
|
@@ -21809,6 +22753,17 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
21809
22753
|
getBackupRepo(requestParameters, options) {
|
|
21810
22754
|
return (0, exports.SharedApiFp)(this.configuration).getBackupRepo(requestParameters.environmentName, requestParameters.backupRepoName, requestParameters.orgName, options).then((request) => request(this.axios, this.basePath));
|
|
21811
22755
|
}
|
|
22756
|
+
/**
|
|
22757
|
+
*
|
|
22758
|
+
* @summary Get the grants (privileges) of a ClickHouse role
|
|
22759
|
+
* @param {SharedApiGetClickhouseRoleGrantsRequest} requestParameters Request parameters.
|
|
22760
|
+
* @param {*} [options] Override http request option.
|
|
22761
|
+
* @throws {RequiredError}
|
|
22762
|
+
* @memberof SharedApi
|
|
22763
|
+
*/
|
|
22764
|
+
getClickhouseRoleGrants(requestParameters, options) {
|
|
22765
|
+
return (0, exports.SharedApiFp)(this.configuration).getClickhouseRoleGrants(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, options).then((request) => request(this.axios, this.basePath));
|
|
22766
|
+
}
|
|
21812
22767
|
/**
|
|
21813
22768
|
*
|
|
21814
22769
|
* @summary Get cluster details
|
|
@@ -22358,6 +23313,17 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
22358
23313
|
getTenant(requestParameters, options) {
|
|
22359
23314
|
return (0, exports.SharedApiFp)(this.configuration).getTenant(requestParameters.orgName, requestParameters.clusterName, requestParameters.tenantId, options).then((request) => request(this.axios, this.basePath));
|
|
22360
23315
|
}
|
|
23316
|
+
/**
|
|
23317
|
+
*
|
|
23318
|
+
* @summary Grant privileges to a ClickHouse role
|
|
23319
|
+
* @param {SharedApiGrantClickhouseRolePrivilegesRequest} requestParameters Request parameters.
|
|
23320
|
+
* @param {*} [options] Override http request option.
|
|
23321
|
+
* @throws {RequiredError}
|
|
23322
|
+
* @memberof SharedApi
|
|
23323
|
+
*/
|
|
23324
|
+
grantClickhouseRolePrivileges(requestParameters, options) {
|
|
23325
|
+
return (0, exports.SharedApiFp)(this.configuration).grantClickhouseRolePrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
23326
|
+
}
|
|
22361
23327
|
/**
|
|
22362
23328
|
*
|
|
22363
23329
|
* @summary Horizontal scale cluster
|
|
@@ -22456,6 +23422,50 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
22456
23422
|
listClasses(requestParameters = {}, options) {
|
|
22457
23423
|
return (0, exports.SharedApiFp)(this.configuration).listClasses(requestParameters.engineName, options).then((request) => request(this.axios, this.basePath));
|
|
22458
23424
|
}
|
|
23425
|
+
/**
|
|
23426
|
+
*
|
|
23427
|
+
* @summary List the roles granted to a ClickHouse account
|
|
23428
|
+
* @param {SharedApiListClickhouseAccountRolesRequest} requestParameters Request parameters.
|
|
23429
|
+
* @param {*} [options] Override http request option.
|
|
23430
|
+
* @throws {RequiredError}
|
|
23431
|
+
* @memberof SharedApi
|
|
23432
|
+
*/
|
|
23433
|
+
listClickhouseAccountRoles(requestParameters, options) {
|
|
23434
|
+
return (0, exports.SharedApiFp)(this.configuration).listClickhouseAccountRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
|
|
23435
|
+
}
|
|
23436
|
+
/**
|
|
23437
|
+
*
|
|
23438
|
+
* @summary List ClickHouse accounts
|
|
23439
|
+
* @param {SharedApiListClickhouseAccountsRequest} requestParameters Request parameters.
|
|
23440
|
+
* @param {*} [options] Override http request option.
|
|
23441
|
+
* @throws {RequiredError}
|
|
23442
|
+
* @memberof SharedApi
|
|
23443
|
+
*/
|
|
23444
|
+
listClickhouseAccounts(requestParameters, options) {
|
|
23445
|
+
return (0, exports.SharedApiFp)(this.configuration).listClickhouseAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
23446
|
+
}
|
|
23447
|
+
/**
|
|
23448
|
+
*
|
|
23449
|
+
* @summary List privileges supported by the ClickHouse server
|
|
23450
|
+
* @param {SharedApiListClickhousePrivilegesRequest} requestParameters Request parameters.
|
|
23451
|
+
* @param {*} [options] Override http request option.
|
|
23452
|
+
* @throws {RequiredError}
|
|
23453
|
+
* @memberof SharedApi
|
|
23454
|
+
*/
|
|
23455
|
+
listClickhousePrivileges(requestParameters, options) {
|
|
23456
|
+
return (0, exports.SharedApiFp)(this.configuration).listClickhousePrivileges(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
23457
|
+
}
|
|
23458
|
+
/**
|
|
23459
|
+
*
|
|
23460
|
+
* @summary List ClickHouse roles
|
|
23461
|
+
* @param {SharedApiListClickhouseRolesRequest} requestParameters Request parameters.
|
|
23462
|
+
* @param {*} [options] Override http request option.
|
|
23463
|
+
* @throws {RequiredError}
|
|
23464
|
+
* @memberof SharedApi
|
|
23465
|
+
*/
|
|
23466
|
+
listClickhouseRoles(requestParameters, options) {
|
|
23467
|
+
return (0, exports.SharedApiFp)(this.configuration).listClickhouseRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.forCreateUser, options).then((request) => request(this.axios, this.basePath));
|
|
23468
|
+
}
|
|
22459
23469
|
/**
|
|
22460
23470
|
*
|
|
22461
23471
|
* @summary List clusters in the Org
|
|
@@ -23530,6 +24540,17 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
23530
24540
|
restoreRecycleBinCluster(requestParameters, options) {
|
|
23531
24541
|
return (0, exports.SharedApiFp)(this.configuration).restoreRecycleBinCluster(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
23532
24542
|
}
|
|
24543
|
+
/**
|
|
24544
|
+
*
|
|
24545
|
+
* @summary Revoke privileges from a ClickHouse role
|
|
24546
|
+
* @param {SharedApiRevokeClickhouseRolePrivilegesRequest} requestParameters Request parameters.
|
|
24547
|
+
* @param {*} [options] Override http request option.
|
|
24548
|
+
* @throws {RequiredError}
|
|
24549
|
+
* @memberof SharedApi
|
|
24550
|
+
*/
|
|
24551
|
+
revokeClickhouseRolePrivileges(requestParameters, options) {
|
|
24552
|
+
return (0, exports.SharedApiFp)(this.configuration).revokeClickhouseRolePrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
24553
|
+
}
|
|
23533
24554
|
/**
|
|
23534
24555
|
*
|
|
23535
24556
|
* @summary Set cluster alert disabled or enabled
|
|
@@ -23728,6 +24749,28 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
23728
24749
|
updateBackupSchedule(requestParameters, options) {
|
|
23729
24750
|
return (0, exports.SharedApiFp)(this.configuration).updateBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.scheduleName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
23730
24751
|
}
|
|
24752
|
+
/**
|
|
24753
|
+
*
|
|
24754
|
+
* @summary Update a ClickHouse account password
|
|
24755
|
+
* @param {SharedApiUpdateClickhouseAccountPasswordRequest} requestParameters Request parameters.
|
|
24756
|
+
* @param {*} [options] Override http request option.
|
|
24757
|
+
* @throws {RequiredError}
|
|
24758
|
+
* @memberof SharedApi
|
|
24759
|
+
*/
|
|
24760
|
+
updateClickhouseAccountPassword(requestParameters, options) {
|
|
24761
|
+
return (0, exports.SharedApiFp)(this.configuration).updateClickhouseAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
24762
|
+
}
|
|
24763
|
+
/**
|
|
24764
|
+
*
|
|
24765
|
+
* @summary Update the roles granted to a ClickHouse account
|
|
24766
|
+
* @param {SharedApiUpdateClickhouseAccountRolesRequest} requestParameters Request parameters.
|
|
24767
|
+
* @param {*} [options] Override http request option.
|
|
24768
|
+
* @throws {RequiredError}
|
|
24769
|
+
* @memberof SharedApi
|
|
24770
|
+
*/
|
|
24771
|
+
updateClickhouseAccountRoles(requestParameters, options) {
|
|
24772
|
+
return (0, exports.SharedApiFp)(this.configuration).updateClickhouseAccountRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
24773
|
+
}
|
|
23731
24774
|
/**
|
|
23732
24775
|
*
|
|
23733
24776
|
* @summary Update the cluster license
|