@coscine/api-client 2.2.0 → 2.5.0
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/index.js +1064 -1588
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +1066 -1590
- package/dist/index.umd.js.map +1 -1
- package/dist/lib/Coscine.Api.Admin/api.js +51 -23
- package/dist/lib/Coscine.Api.Admin/api.js.map +1 -1
- package/dist/lib/Coscine.Api.Admin/base.js +1 -1
- package/dist/lib/Coscine.Api.Admin/common.js +1 -1
- package/dist/lib/Coscine.Api.Admin/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Admin/index.js +1 -1
- package/dist/lib/Coscine.Api.Blob/api.js +1 -66
- package/dist/lib/Coscine.Api.Blob/api.js.map +1 -1
- package/dist/lib/Coscine.Api.Blob/base.js +1 -1
- package/dist/lib/Coscine.Api.Blob/common.js +1 -1
- package/dist/lib/Coscine.Api.Blob/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Blob/index.js +1 -1
- package/dist/lib/Coscine.Api.Pid/api.js +204 -0
- package/dist/lib/Coscine.Api.Pid/api.js.map +1 -0
- package/dist/lib/{Coscine.Api.Quota → Coscine.Api.Pid}/base.js +3 -3
- package/dist/lib/Coscine.Api.Pid/base.js.map +1 -0
- package/dist/lib/{Coscine.Api.Quota → Coscine.Api.Pid}/common.js +2 -2
- package/dist/lib/Coscine.Api.Pid/common.js.map +1 -0
- package/dist/lib/{Coscine.Api.Quota → Coscine.Api.Pid}/configuration.js +2 -2
- package/dist/lib/Coscine.Api.Pid/configuration.js.map +1 -0
- package/dist/lib/{Coscine.Api.Quota → Coscine.Api.Pid}/index.js +2 -2
- package/dist/lib/Coscine.Api.Pid/index.js.map +1 -0
- package/dist/lib/Coscine.Api.Project/api.js +350 -537
- package/dist/lib/Coscine.Api.Project/api.js.map +1 -1
- package/dist/lib/Coscine.Api.Project/base.js +1 -1
- package/dist/lib/Coscine.Api.Project/common.js +1 -1
- package/dist/lib/Coscine.Api.Project/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Project/index.js +1 -1
- package/dist/lib/Coscine.Api.Resources/api.js +232 -42
- package/dist/lib/Coscine.Api.Resources/api.js.map +1 -1
- package/dist/lib/Coscine.Api.Resources/base.js +1 -1
- package/dist/lib/Coscine.Api.Resources/common.js +1 -1
- package/dist/lib/Coscine.Api.Resources/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Resources/index.js +1 -1
- package/dist/lib/Coscine.Api.Search/api.js +41 -30
- package/dist/lib/Coscine.Api.Search/api.js.map +1 -1
- package/dist/lib/Coscine.Api.Search/base.js +2 -2
- package/dist/lib/Coscine.Api.Search/common.js +1 -1
- package/dist/lib/Coscine.Api.Search/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Search/index.js +1 -1
- package/dist/lib/Coscine.Api.Tree/api.js +1 -1
- package/dist/lib/Coscine.Api.Tree/base.js +2 -2
- package/dist/lib/Coscine.Api.Tree/common.js +1 -1
- package/dist/lib/Coscine.Api.Tree/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Tree/index.js +1 -1
- package/dist/lib/Coscine.Api.User/api.js +1 -1
- package/dist/lib/Coscine.Api.User/base.js +1 -1
- package/dist/lib/Coscine.Api.User/common.js +1 -1
- package/dist/lib/Coscine.Api.User/configuration.js +1 -1
- package/dist/lib/Coscine.Api.User/index.js +1 -1
- package/dist/lib/apis.js +20 -20
- package/dist/lib/apis.js.map +1 -1
- package/dist/lib/index.js +4 -4
- package/dist/lib/index.js.map +1 -1
- package/dist/types/Coscine.Api.Admin/api.d.ts +100 -66
- package/dist/types/Coscine.Api.Admin/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Admin/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Admin/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Admin/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Blob/api.d.ts +1 -34
- package/dist/types/Coscine.Api.Blob/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Blob/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Blob/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Blob/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Pid/api.d.ts +149 -0
- package/dist/types/{Coscine.Api.Quota → Coscine.Api.Pid}/base.d.ts +2 -2
- package/dist/types/{Coscine.Api.Quota → Coscine.Api.Pid}/common.d.ts +2 -2
- package/dist/types/{Coscine.Api.Quota → Coscine.Api.Pid}/configuration.d.ts +2 -2
- package/dist/types/{Coscine.Api.Quota → Coscine.Api.Pid}/index.d.ts +2 -2
- package/dist/types/Coscine.Api.Project/api.d.ts +312 -328
- package/dist/types/Coscine.Api.Project/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Project/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Project/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Project/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Resources/api.d.ts +237 -41
- package/dist/types/Coscine.Api.Resources/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Resources/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Resources/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Resources/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Search/api.d.ts +53 -30
- package/dist/types/Coscine.Api.Search/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Search/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Search/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Search/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Tree/api.d.ts +1 -1
- package/dist/types/Coscine.Api.Tree/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Tree/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Tree/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Tree/index.d.ts +1 -1
- package/dist/types/Coscine.Api.User/api.d.ts +1 -1
- package/dist/types/Coscine.Api.User/base.d.ts +1 -1
- package/dist/types/Coscine.Api.User/common.d.ts +1 -1
- package/dist/types/Coscine.Api.User/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.User/index.d.ts +1 -1
- package/dist/types/apis.d.ts +17 -26
- package/dist/types/index.d.ts +34 -52
- package/package.json +2 -2
- package/dist/lib/Coscine.Api.Quota/api.js +0 -283
- package/dist/lib/Coscine.Api.Quota/api.js.map +0 -1
- package/dist/lib/Coscine.Api.Quota/base.js.map +0 -1
- package/dist/lib/Coscine.Api.Quota/common.js.map +0 -1
- package/dist/lib/Coscine.Api.Quota/configuration.js.map +0 -1
- package/dist/lib/Coscine.Api.Quota/index.js.map +0 -1
- package/dist/types/Coscine.Api.Quota/api.d.ts +0 -197
package/dist/index.umd.js
CHANGED
|
@@ -1855,14 +1855,14 @@
|
|
|
1855
1855
|
var axios = axios$2.exports;
|
|
1856
1856
|
|
|
1857
1857
|
/* tslint:disable */
|
|
1858
|
-
const BASE_PATH$
|
|
1858
|
+
const BASE_PATH$b = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Admin".replace(/\/+$/, "");
|
|
1859
1859
|
/**
|
|
1860
1860
|
*
|
|
1861
1861
|
* @export
|
|
1862
1862
|
* @class RequiredError
|
|
1863
1863
|
* @extends {Error}
|
|
1864
1864
|
*/
|
|
1865
|
-
class RequiredError$
|
|
1865
|
+
class RequiredError$a extends Error {
|
|
1866
1866
|
constructor(field, msg) {
|
|
1867
1867
|
super(msg);
|
|
1868
1868
|
this.field = field;
|
|
@@ -1875,22 +1875,22 @@
|
|
|
1875
1875
|
*
|
|
1876
1876
|
* @export
|
|
1877
1877
|
*/
|
|
1878
|
-
const DUMMY_BASE_URL$
|
|
1878
|
+
const DUMMY_BASE_URL$b = 'https://example.com';
|
|
1879
1879
|
/**
|
|
1880
1880
|
*
|
|
1881
1881
|
* @throws {RequiredError}
|
|
1882
1882
|
* @export
|
|
1883
1883
|
*/
|
|
1884
|
-
const assertParamExists$
|
|
1884
|
+
const assertParamExists$a = function (functionName, paramName, paramValue) {
|
|
1885
1885
|
if (paramValue === null || paramValue === undefined) {
|
|
1886
|
-
throw new RequiredError$
|
|
1886
|
+
throw new RequiredError$a(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
1887
1887
|
}
|
|
1888
1888
|
};
|
|
1889
1889
|
/**
|
|
1890
1890
|
*
|
|
1891
1891
|
* @export
|
|
1892
1892
|
*/
|
|
1893
|
-
const setApiKeyToObject$
|
|
1893
|
+
const setApiKeyToObject$b = function (object, keyParamName, configuration) {
|
|
1894
1894
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1895
1895
|
if (configuration && configuration.apiKey) {
|
|
1896
1896
|
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
@@ -1904,7 +1904,7 @@
|
|
|
1904
1904
|
*
|
|
1905
1905
|
* @export
|
|
1906
1906
|
*/
|
|
1907
|
-
const setSearchParams$
|
|
1907
|
+
const setSearchParams$b = function (url, ...objects) {
|
|
1908
1908
|
const searchParams = new URLSearchParams(url.search);
|
|
1909
1909
|
for (const object of objects) {
|
|
1910
1910
|
for (const key in object) {
|
|
@@ -1925,14 +1925,27 @@
|
|
|
1925
1925
|
*
|
|
1926
1926
|
* @export
|
|
1927
1927
|
*/
|
|
1928
|
-
const
|
|
1928
|
+
const serializeDataIfNeeded$6 = function (value, requestOptions, configuration) {
|
|
1929
|
+
const nonString = typeof value !== 'string';
|
|
1930
|
+
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
1931
|
+
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
1932
|
+
: nonString;
|
|
1933
|
+
return needsSerialization
|
|
1934
|
+
? JSON.stringify(value !== undefined ? value : {})
|
|
1935
|
+
: (value || "");
|
|
1936
|
+
};
|
|
1937
|
+
/**
|
|
1938
|
+
*
|
|
1939
|
+
* @export
|
|
1940
|
+
*/
|
|
1941
|
+
const toPathString$b = function (url) {
|
|
1929
1942
|
return url.pathname + url.search + url.hash;
|
|
1930
1943
|
};
|
|
1931
1944
|
/**
|
|
1932
1945
|
*
|
|
1933
1946
|
* @export
|
|
1934
1947
|
*/
|
|
1935
|
-
const createRequestFunction$
|
|
1948
|
+
const createRequestFunction$b = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
1936
1949
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
1937
1950
|
const axiosRequestArgs = Object.assign(Object.assign({}, axiosArgs.options), { url: ((configuration === null || configuration === void 0 ? void 0 : configuration.basePath) || basePath) + axiosArgs.url });
|
|
1938
1951
|
return axios.request(axiosRequestArgs);
|
|
@@ -1941,29 +1954,39 @@
|
|
|
1941
1954
|
|
|
1942
1955
|
/* tslint:disable */
|
|
1943
1956
|
/**
|
|
1944
|
-
*
|
|
1957
|
+
*
|
|
1958
|
+
* @export
|
|
1959
|
+
* @enum {string}
|
|
1960
|
+
*/
|
|
1961
|
+
var QuotaUnit$2;
|
|
1962
|
+
(function (QuotaUnit) {
|
|
1963
|
+
QuotaUnit["Byte"] = "https://qudt.org/vocab/unit/BYTE";
|
|
1964
|
+
QuotaUnit["KibiByte"] = "https://qudt.org/vocab/unit/KibiBYTE";
|
|
1965
|
+
QuotaUnit["MebiByte"] = "https://qudt.org/vocab/unit/MebiBYTE";
|
|
1966
|
+
QuotaUnit["GibiByte"] = "https://qudt.org/vocab/unit/GibiBYTE";
|
|
1967
|
+
QuotaUnit["TebiByte"] = "https://qudt.org/vocab/unit/TebiBYTE";
|
|
1968
|
+
QuotaUnit["PebiByte"] = "https://qudt.org/vocab/unit/PebiBYTE";
|
|
1969
|
+
})(QuotaUnit$2 || (QuotaUnit$2 = {}));
|
|
1970
|
+
/**
|
|
1971
|
+
* AdminApi - axios parameter creator
|
|
1945
1972
|
* @export
|
|
1946
1973
|
*/
|
|
1947
|
-
const
|
|
1974
|
+
const AdminApiAxiosParamCreator = function (configuration) {
|
|
1948
1975
|
return {
|
|
1949
1976
|
/**
|
|
1950
1977
|
*
|
|
1951
|
-
* @summary
|
|
1952
|
-
* @param {string}
|
|
1953
|
-
* @param {string} featureId Feature
|
|
1978
|
+
* @summary Find the project related to the projectString(GUID or slug)
|
|
1979
|
+
* @param {string} projectString The project id (GUID) or slug (from URL).
|
|
1954
1980
|
* @param {*} [options] Override http request option.
|
|
1955
1981
|
* @throws {RequiredError}
|
|
1956
1982
|
*/
|
|
1957
|
-
|
|
1958
|
-
// verify required parameter '
|
|
1959
|
-
assertParamExists$
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
const localVarPath = `/ActivatedFeatures/{projectId}/activateFeature/{featureId}`
|
|
1963
|
-
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
|
|
1964
|
-
.replace(`{${"featureId"}}`, encodeURIComponent(String(featureId)));
|
|
1983
|
+
adminGetProject: (projectString, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1984
|
+
// verify required parameter 'projectString' is not null or undefined
|
|
1985
|
+
assertParamExists$a('adminGetProject', 'projectString', projectString);
|
|
1986
|
+
const localVarPath = `/Admin/{projectString}`
|
|
1987
|
+
.replace(`{${"projectString"}}`, encodeURIComponent(String(projectString)));
|
|
1965
1988
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1966
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
1989
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$b);
|
|
1967
1990
|
let baseOptions;
|
|
1968
1991
|
if (configuration) {
|
|
1969
1992
|
baseOptions = configuration.baseOptions;
|
|
@@ -1972,327 +1995,122 @@
|
|
|
1972
1995
|
const localVarHeaderParameter = {};
|
|
1973
1996
|
const localVarQueryParameter = {};
|
|
1974
1997
|
// authentication JWT token required
|
|
1975
|
-
yield setApiKeyToObject$
|
|
1976
|
-
setSearchParams$
|
|
1998
|
+
yield setApiKeyToObject$b(localVarHeaderParameter, "Authorization", configuration);
|
|
1999
|
+
setSearchParams$b(localVarUrlObj, localVarQueryParameter, options.query);
|
|
1977
2000
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1978
2001
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1979
2002
|
return {
|
|
1980
|
-
url: toPathString$
|
|
2003
|
+
url: toPathString$b(localVarUrlObj),
|
|
1981
2004
|
options: localVarRequestOptions,
|
|
1982
2005
|
};
|
|
1983
2006
|
}),
|
|
1984
2007
|
/**
|
|
1985
2008
|
*
|
|
1986
|
-
* @summary
|
|
1987
|
-
* @param {string} projectId
|
|
1988
|
-
* @param {string}
|
|
2009
|
+
* @summary Update a project maximum and allocated quota
|
|
2010
|
+
* @param {string} projectId Id of the project
|
|
2011
|
+
* @param {string} resourceTypeId Id of the resource type
|
|
2012
|
+
* @param {UpdateQuotaParameterObject} updateQuotaParameterObject JSON object for updating the project maximum and allocated quota.
|
|
1989
2013
|
* @param {*} [options] Override http request option.
|
|
1990
2014
|
* @throws {RequiredError}
|
|
1991
2015
|
*/
|
|
1992
|
-
|
|
2016
|
+
adminUpdateQuota: (projectId, resourceTypeId, updateQuotaParameterObject, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1993
2017
|
// verify required parameter 'projectId' is not null or undefined
|
|
1994
|
-
assertParamExists$
|
|
1995
|
-
// verify required parameter '
|
|
1996
|
-
assertParamExists$
|
|
1997
|
-
|
|
2018
|
+
assertParamExists$a('adminUpdateQuota', 'projectId', projectId);
|
|
2019
|
+
// verify required parameter 'resourceTypeId' is not null or undefined
|
|
2020
|
+
assertParamExists$a('adminUpdateQuota', 'resourceTypeId', resourceTypeId);
|
|
2021
|
+
// verify required parameter 'updateQuotaParameterObject' is not null or undefined
|
|
2022
|
+
assertParamExists$a('adminUpdateQuota', 'updateQuotaParameterObject', updateQuotaParameterObject);
|
|
2023
|
+
const localVarPath = `/Admin/{projectId}/{resourceTypeId}`
|
|
1998
2024
|
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
|
|
1999
|
-
.replace(`{${"
|
|
2000
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2001
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$c);
|
|
2002
|
-
let baseOptions;
|
|
2003
|
-
if (configuration) {
|
|
2004
|
-
baseOptions = configuration.baseOptions;
|
|
2005
|
-
}
|
|
2006
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2007
|
-
const localVarHeaderParameter = {};
|
|
2008
|
-
const localVarQueryParameter = {};
|
|
2009
|
-
// authentication JWT token required
|
|
2010
|
-
yield setApiKeyToObject$c(localVarHeaderParameter, "Authorization", configuration);
|
|
2011
|
-
setSearchParams$c(localVarUrlObj, localVarQueryParameter, options.query);
|
|
2012
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2013
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2014
|
-
return {
|
|
2015
|
-
url: toPathString$c(localVarUrlObj),
|
|
2016
|
-
options: localVarRequestOptions,
|
|
2017
|
-
};
|
|
2018
|
-
}),
|
|
2019
|
-
/**
|
|
2020
|
-
*
|
|
2021
|
-
* @summary Returns activated features of the project.
|
|
2022
|
-
* @param {string} projectId Project for which the activated features are returned
|
|
2023
|
-
* @param {*} [options] Override http request option.
|
|
2024
|
-
* @throws {RequiredError}
|
|
2025
|
-
*/
|
|
2026
|
-
activatedFeaturesGetActiveFeatures: (projectId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2027
|
-
// verify required parameter 'projectId' is not null or undefined
|
|
2028
|
-
assertParamExists$b('activatedFeaturesGetActiveFeatures', 'projectId', projectId);
|
|
2029
|
-
const localVarPath = `/ActivatedFeatures/{projectId}/activeFeatures`
|
|
2030
|
-
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
|
|
2031
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2032
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$c);
|
|
2033
|
-
let baseOptions;
|
|
2034
|
-
if (configuration) {
|
|
2035
|
-
baseOptions = configuration.baseOptions;
|
|
2036
|
-
}
|
|
2037
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2038
|
-
const localVarHeaderParameter = {};
|
|
2039
|
-
const localVarQueryParameter = {};
|
|
2040
|
-
// authentication JWT token required
|
|
2041
|
-
yield setApiKeyToObject$c(localVarHeaderParameter, "Authorization", configuration);
|
|
2042
|
-
setSearchParams$c(localVarUrlObj, localVarQueryParameter, options.query);
|
|
2043
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2044
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2045
|
-
return {
|
|
2046
|
-
url: toPathString$c(localVarUrlObj),
|
|
2047
|
-
options: localVarRequestOptions,
|
|
2048
|
-
};
|
|
2049
|
-
}),
|
|
2050
|
-
/**
|
|
2051
|
-
*
|
|
2052
|
-
* @summary Returns features of the project.
|
|
2053
|
-
* @param {string} projectId Project for which the features are returned
|
|
2054
|
-
* @param {*} [options] Override http request option.
|
|
2055
|
-
* @throws {RequiredError}
|
|
2056
|
-
*/
|
|
2057
|
-
activatedFeaturesGetFeatures: (projectId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2058
|
-
// verify required parameter 'projectId' is not null or undefined
|
|
2059
|
-
assertParamExists$b('activatedFeaturesGetFeatures', 'projectId', projectId);
|
|
2060
|
-
const localVarPath = `/ActivatedFeatures/{projectId}`
|
|
2061
|
-
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
|
|
2062
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2063
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$c);
|
|
2064
|
-
let baseOptions;
|
|
2065
|
-
if (configuration) {
|
|
2066
|
-
baseOptions = configuration.baseOptions;
|
|
2067
|
-
}
|
|
2068
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2069
|
-
const localVarHeaderParameter = {};
|
|
2070
|
-
const localVarQueryParameter = {};
|
|
2071
|
-
// authentication JWT token required
|
|
2072
|
-
yield setApiKeyToObject$c(localVarHeaderParameter, "Authorization", configuration);
|
|
2073
|
-
setSearchParams$c(localVarUrlObj, localVarQueryParameter, options.query);
|
|
2074
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2075
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2076
|
-
return {
|
|
2077
|
-
url: toPathString$c(localVarUrlObj),
|
|
2078
|
-
options: localVarRequestOptions,
|
|
2079
|
-
};
|
|
2080
|
-
}),
|
|
2081
|
-
/**
|
|
2082
|
-
*
|
|
2083
|
-
* @summary Returns all available features.
|
|
2084
|
-
* @param {*} [options] Override http request option.
|
|
2085
|
-
* @throws {RequiredError}
|
|
2086
|
-
*/
|
|
2087
|
-
activatedFeaturesGetFeaturesAll: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2088
|
-
const localVarPath = `/ActivatedFeatures`;
|
|
2089
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2090
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$c);
|
|
2091
|
-
let baseOptions;
|
|
2092
|
-
if (configuration) {
|
|
2093
|
-
baseOptions = configuration.baseOptions;
|
|
2094
|
-
}
|
|
2095
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2096
|
-
const localVarHeaderParameter = {};
|
|
2097
|
-
const localVarQueryParameter = {};
|
|
2098
|
-
// authentication JWT token required
|
|
2099
|
-
yield setApiKeyToObject$c(localVarHeaderParameter, "Authorization", configuration);
|
|
2100
|
-
setSearchParams$c(localVarUrlObj, localVarQueryParameter, options.query);
|
|
2101
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2102
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2103
|
-
return {
|
|
2104
|
-
url: toPathString$c(localVarUrlObj),
|
|
2105
|
-
options: localVarRequestOptions,
|
|
2106
|
-
};
|
|
2107
|
-
}),
|
|
2108
|
-
/**
|
|
2109
|
-
*
|
|
2110
|
-
* @summary Returns the inactive features of the project.
|
|
2111
|
-
* @param {string} projectId Project for which the inactivate features are returned
|
|
2112
|
-
* @param {*} [options] Override http request option.
|
|
2113
|
-
* @throws {RequiredError}
|
|
2114
|
-
*/
|
|
2115
|
-
activatedFeaturesGetInactiveFeatures: (projectId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2116
|
-
// verify required parameter 'projectId' is not null or undefined
|
|
2117
|
-
assertParamExists$b('activatedFeaturesGetInactiveFeatures', 'projectId', projectId);
|
|
2118
|
-
const localVarPath = `/ActivatedFeatures/{projectId}/inactiveFeatures`
|
|
2119
|
-
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
|
|
2025
|
+
.replace(`{${"resourceTypeId"}}`, encodeURIComponent(String(resourceTypeId)));
|
|
2120
2026
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2121
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
2027
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$b);
|
|
2122
2028
|
let baseOptions;
|
|
2123
2029
|
if (configuration) {
|
|
2124
2030
|
baseOptions = configuration.baseOptions;
|
|
2125
2031
|
}
|
|
2126
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
2032
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
2127
2033
|
const localVarHeaderParameter = {};
|
|
2128
2034
|
const localVarQueryParameter = {};
|
|
2129
2035
|
// authentication JWT token required
|
|
2130
|
-
yield setApiKeyToObject$
|
|
2131
|
-
|
|
2036
|
+
yield setApiKeyToObject$b(localVarHeaderParameter, "Authorization", configuration);
|
|
2037
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2038
|
+
setSearchParams$b(localVarUrlObj, localVarQueryParameter, options.query);
|
|
2132
2039
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2133
2040
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2041
|
+
localVarRequestOptions.data = serializeDataIfNeeded$6(updateQuotaParameterObject, localVarRequestOptions, configuration);
|
|
2134
2042
|
return {
|
|
2135
|
-
url: toPathString$
|
|
2043
|
+
url: toPathString$b(localVarUrlObj),
|
|
2136
2044
|
options: localVarRequestOptions,
|
|
2137
2045
|
};
|
|
2138
2046
|
}),
|
|
2139
2047
|
};
|
|
2140
2048
|
};
|
|
2141
2049
|
/**
|
|
2142
|
-
*
|
|
2050
|
+
* AdminApi - functional programming interface
|
|
2143
2051
|
* @export
|
|
2144
2052
|
*/
|
|
2145
|
-
const
|
|
2146
|
-
const localVarAxiosParamCreator =
|
|
2053
|
+
const AdminApiFp = function (configuration) {
|
|
2054
|
+
const localVarAxiosParamCreator = AdminApiAxiosParamCreator(configuration);
|
|
2147
2055
|
return {
|
|
2148
2056
|
/**
|
|
2149
2057
|
*
|
|
2150
|
-
* @summary
|
|
2151
|
-
* @param {string}
|
|
2152
|
-
* @param {string} featureId Feature
|
|
2153
|
-
* @param {*} [options] Override http request option.
|
|
2154
|
-
* @throws {RequiredError}
|
|
2155
|
-
*/
|
|
2156
|
-
activatedFeaturesActivateFeature(projectId, featureId, options) {
|
|
2157
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2158
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.activatedFeaturesActivateFeature(projectId, featureId, options);
|
|
2159
|
-
return createRequestFunction$c(localVarAxiosArgs, axios, BASE_PATH$c, configuration);
|
|
2160
|
-
});
|
|
2161
|
-
},
|
|
2162
|
-
/**
|
|
2163
|
-
*
|
|
2164
|
-
* @summary Deactives the feature of the project.
|
|
2165
|
-
* @param {string} projectId Project for which the feature is deactivated
|
|
2166
|
-
* @param {string} featureId Feature
|
|
2167
|
-
* @param {*} [options] Override http request option.
|
|
2168
|
-
* @throws {RequiredError}
|
|
2169
|
-
*/
|
|
2170
|
-
activatedFeaturesDeactivateFeature(projectId, featureId, options) {
|
|
2171
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2172
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.activatedFeaturesDeactivateFeature(projectId, featureId, options);
|
|
2173
|
-
return createRequestFunction$c(localVarAxiosArgs, axios, BASE_PATH$c, configuration);
|
|
2174
|
-
});
|
|
2175
|
-
},
|
|
2176
|
-
/**
|
|
2177
|
-
*
|
|
2178
|
-
* @summary Returns activated features of the project.
|
|
2179
|
-
* @param {string} projectId Project for which the activated features are returned
|
|
2180
|
-
* @param {*} [options] Override http request option.
|
|
2181
|
-
* @throws {RequiredError}
|
|
2182
|
-
*/
|
|
2183
|
-
activatedFeaturesGetActiveFeatures(projectId, options) {
|
|
2184
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2185
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.activatedFeaturesGetActiveFeatures(projectId, options);
|
|
2186
|
-
return createRequestFunction$c(localVarAxiosArgs, axios, BASE_PATH$c, configuration);
|
|
2187
|
-
});
|
|
2188
|
-
},
|
|
2189
|
-
/**
|
|
2190
|
-
*
|
|
2191
|
-
* @summary Returns features of the project.
|
|
2192
|
-
* @param {string} projectId Project for which the features are returned
|
|
2193
|
-
* @param {*} [options] Override http request option.
|
|
2194
|
-
* @throws {RequiredError}
|
|
2195
|
-
*/
|
|
2196
|
-
activatedFeaturesGetFeatures(projectId, options) {
|
|
2197
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2198
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.activatedFeaturesGetFeatures(projectId, options);
|
|
2199
|
-
return createRequestFunction$c(localVarAxiosArgs, axios, BASE_PATH$c, configuration);
|
|
2200
|
-
});
|
|
2201
|
-
},
|
|
2202
|
-
/**
|
|
2203
|
-
*
|
|
2204
|
-
* @summary Returns all available features.
|
|
2058
|
+
* @summary Find the project related to the projectString(GUID or slug)
|
|
2059
|
+
* @param {string} projectString The project id (GUID) or slug (from URL).
|
|
2205
2060
|
* @param {*} [options] Override http request option.
|
|
2206
2061
|
* @throws {RequiredError}
|
|
2207
2062
|
*/
|
|
2208
|
-
|
|
2063
|
+
adminGetProject(projectString, options) {
|
|
2209
2064
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2210
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2211
|
-
return createRequestFunction$
|
|
2065
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminGetProject(projectString, options);
|
|
2066
|
+
return createRequestFunction$b(localVarAxiosArgs, axios, BASE_PATH$b, configuration);
|
|
2212
2067
|
});
|
|
2213
2068
|
},
|
|
2214
2069
|
/**
|
|
2215
2070
|
*
|
|
2216
|
-
* @summary
|
|
2217
|
-
* @param {string} projectId
|
|
2071
|
+
* @summary Update a project maximum and allocated quota
|
|
2072
|
+
* @param {string} projectId Id of the project
|
|
2073
|
+
* @param {string} resourceTypeId Id of the resource type
|
|
2074
|
+
* @param {UpdateQuotaParameterObject} updateQuotaParameterObject JSON object for updating the project maximum and allocated quota.
|
|
2218
2075
|
* @param {*} [options] Override http request option.
|
|
2219
2076
|
* @throws {RequiredError}
|
|
2220
2077
|
*/
|
|
2221
|
-
|
|
2078
|
+
adminUpdateQuota(projectId, resourceTypeId, updateQuotaParameterObject, options) {
|
|
2222
2079
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2223
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2224
|
-
return createRequestFunction$
|
|
2080
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminUpdateQuota(projectId, resourceTypeId, updateQuotaParameterObject, options);
|
|
2081
|
+
return createRequestFunction$b(localVarAxiosArgs, axios, BASE_PATH$b, configuration);
|
|
2225
2082
|
});
|
|
2226
2083
|
},
|
|
2227
2084
|
};
|
|
2228
2085
|
};
|
|
2229
2086
|
/**
|
|
2230
|
-
*
|
|
2087
|
+
* AdminApi - factory interface
|
|
2231
2088
|
* @export
|
|
2232
2089
|
*/
|
|
2233
|
-
const
|
|
2234
|
-
const localVarFp =
|
|
2090
|
+
const AdminApiFactory = function (configuration, basePath, axios) {
|
|
2091
|
+
const localVarFp = AdminApiFp(configuration);
|
|
2235
2092
|
return {
|
|
2236
2093
|
/**
|
|
2237
2094
|
*
|
|
2238
|
-
* @summary
|
|
2239
|
-
* @param {string}
|
|
2240
|
-
* @param {string} featureId Feature
|
|
2241
|
-
* @param {*} [options] Override http request option.
|
|
2242
|
-
* @throws {RequiredError}
|
|
2243
|
-
*/
|
|
2244
|
-
activatedFeaturesActivateFeature(projectId, featureId, options) {
|
|
2245
|
-
return localVarFp.activatedFeaturesActivateFeature(projectId, featureId, options).then((request) => request(axios, basePath));
|
|
2246
|
-
},
|
|
2247
|
-
/**
|
|
2248
|
-
*
|
|
2249
|
-
* @summary Deactives the feature of the project.
|
|
2250
|
-
* @param {string} projectId Project for which the feature is deactivated
|
|
2251
|
-
* @param {string} featureId Feature
|
|
2252
|
-
* @param {*} [options] Override http request option.
|
|
2253
|
-
* @throws {RequiredError}
|
|
2254
|
-
*/
|
|
2255
|
-
activatedFeaturesDeactivateFeature(projectId, featureId, options) {
|
|
2256
|
-
return localVarFp.activatedFeaturesDeactivateFeature(projectId, featureId, options).then((request) => request(axios, basePath));
|
|
2257
|
-
},
|
|
2258
|
-
/**
|
|
2259
|
-
*
|
|
2260
|
-
* @summary Returns activated features of the project.
|
|
2261
|
-
* @param {string} projectId Project for which the activated features are returned
|
|
2262
|
-
* @param {*} [options] Override http request option.
|
|
2263
|
-
* @throws {RequiredError}
|
|
2264
|
-
*/
|
|
2265
|
-
activatedFeaturesGetActiveFeatures(projectId, options) {
|
|
2266
|
-
return localVarFp.activatedFeaturesGetActiveFeatures(projectId, options).then((request) => request(axios, basePath));
|
|
2267
|
-
},
|
|
2268
|
-
/**
|
|
2269
|
-
*
|
|
2270
|
-
* @summary Returns features of the project.
|
|
2271
|
-
* @param {string} projectId Project for which the features are returned
|
|
2272
|
-
* @param {*} [options] Override http request option.
|
|
2273
|
-
* @throws {RequiredError}
|
|
2274
|
-
*/
|
|
2275
|
-
activatedFeaturesGetFeatures(projectId, options) {
|
|
2276
|
-
return localVarFp.activatedFeaturesGetFeatures(projectId, options).then((request) => request(axios, basePath));
|
|
2277
|
-
},
|
|
2278
|
-
/**
|
|
2279
|
-
*
|
|
2280
|
-
* @summary Returns all available features.
|
|
2095
|
+
* @summary Find the project related to the projectString(GUID or slug)
|
|
2096
|
+
* @param {string} projectString The project id (GUID) or slug (from URL).
|
|
2281
2097
|
* @param {*} [options] Override http request option.
|
|
2282
2098
|
* @throws {RequiredError}
|
|
2283
2099
|
*/
|
|
2284
|
-
|
|
2285
|
-
return localVarFp.
|
|
2100
|
+
adminGetProject(projectString, options) {
|
|
2101
|
+
return localVarFp.adminGetProject(projectString, options).then((request) => request(axios, basePath));
|
|
2286
2102
|
},
|
|
2287
2103
|
/**
|
|
2288
2104
|
*
|
|
2289
|
-
* @summary
|
|
2290
|
-
* @param {string} projectId
|
|
2105
|
+
* @summary Update a project maximum and allocated quota
|
|
2106
|
+
* @param {string} projectId Id of the project
|
|
2107
|
+
* @param {string} resourceTypeId Id of the resource type
|
|
2108
|
+
* @param {UpdateQuotaParameterObject} updateQuotaParameterObject JSON object for updating the project maximum and allocated quota.
|
|
2291
2109
|
* @param {*} [options] Override http request option.
|
|
2292
2110
|
* @throws {RequiredError}
|
|
2293
2111
|
*/
|
|
2294
|
-
|
|
2295
|
-
return localVarFp.
|
|
2112
|
+
adminUpdateQuota(projectId, resourceTypeId, updateQuotaParameterObject, options) {
|
|
2113
|
+
return localVarFp.adminUpdateQuota(projectId, resourceTypeId, updateQuotaParameterObject, options).then((request) => request(axios, basePath));
|
|
2296
2114
|
},
|
|
2297
2115
|
};
|
|
2298
2116
|
};
|
|
@@ -2300,10 +2118,10 @@
|
|
|
2300
2118
|
/* tslint:disable */
|
|
2301
2119
|
/* eslint-disable */
|
|
2302
2120
|
/**
|
|
2303
|
-
* Coscine.Api.
|
|
2121
|
+
* Coscine.Api.Admin
|
|
2304
2122
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
2305
2123
|
*
|
|
2306
|
-
* The version of the OpenAPI document:
|
|
2124
|
+
* The version of the OpenAPI document: 3.0.0
|
|
2307
2125
|
*
|
|
2308
2126
|
*
|
|
2309
2127
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2337,14 +2155,14 @@
|
|
|
2337
2155
|
}
|
|
2338
2156
|
|
|
2339
2157
|
/* tslint:disable */
|
|
2340
|
-
const BASE_PATH$
|
|
2158
|
+
const BASE_PATH$a = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Blob".replace(/\/+$/, "");
|
|
2341
2159
|
/**
|
|
2342
2160
|
*
|
|
2343
2161
|
* @export
|
|
2344
2162
|
* @class RequiredError
|
|
2345
2163
|
* @extends {Error}
|
|
2346
2164
|
*/
|
|
2347
|
-
class RequiredError$
|
|
2165
|
+
class RequiredError$9 extends Error {
|
|
2348
2166
|
constructor(field, msg) {
|
|
2349
2167
|
super(msg);
|
|
2350
2168
|
this.field = field;
|
|
@@ -2357,22 +2175,22 @@
|
|
|
2357
2175
|
*
|
|
2358
2176
|
* @export
|
|
2359
2177
|
*/
|
|
2360
|
-
const DUMMY_BASE_URL$
|
|
2178
|
+
const DUMMY_BASE_URL$a = 'https://example.com';
|
|
2361
2179
|
/**
|
|
2362
2180
|
*
|
|
2363
2181
|
* @throws {RequiredError}
|
|
2364
2182
|
* @export
|
|
2365
2183
|
*/
|
|
2366
|
-
const assertParamExists$
|
|
2184
|
+
const assertParamExists$9 = function (functionName, paramName, paramValue) {
|
|
2367
2185
|
if (paramValue === null || paramValue === undefined) {
|
|
2368
|
-
throw new RequiredError$
|
|
2186
|
+
throw new RequiredError$9(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
2369
2187
|
}
|
|
2370
2188
|
};
|
|
2371
2189
|
/**
|
|
2372
2190
|
*
|
|
2373
2191
|
* @export
|
|
2374
2192
|
*/
|
|
2375
|
-
const setApiKeyToObject$
|
|
2193
|
+
const setApiKeyToObject$a = function (object, keyParamName, configuration) {
|
|
2376
2194
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2377
2195
|
if (configuration && configuration.apiKey) {
|
|
2378
2196
|
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
@@ -2386,7 +2204,7 @@
|
|
|
2386
2204
|
*
|
|
2387
2205
|
* @export
|
|
2388
2206
|
*/
|
|
2389
|
-
const setSearchParams$
|
|
2207
|
+
const setSearchParams$a = function (url, ...objects) {
|
|
2390
2208
|
const searchParams = new URLSearchParams(url.search);
|
|
2391
2209
|
for (const object of objects) {
|
|
2392
2210
|
for (const key in object) {
|
|
@@ -2407,27 +2225,14 @@
|
|
|
2407
2225
|
*
|
|
2408
2226
|
* @export
|
|
2409
2227
|
*/
|
|
2410
|
-
const
|
|
2411
|
-
const nonString = typeof value !== 'string';
|
|
2412
|
-
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
2413
|
-
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
2414
|
-
: nonString;
|
|
2415
|
-
return needsSerialization
|
|
2416
|
-
? JSON.stringify(value !== undefined ? value : {})
|
|
2417
|
-
: (value || "");
|
|
2418
|
-
};
|
|
2419
|
-
/**
|
|
2420
|
-
*
|
|
2421
|
-
* @export
|
|
2422
|
-
*/
|
|
2423
|
-
const toPathString$b = function (url) {
|
|
2228
|
+
const toPathString$a = function (url) {
|
|
2424
2229
|
return url.pathname + url.search + url.hash;
|
|
2425
2230
|
};
|
|
2426
2231
|
/**
|
|
2427
2232
|
*
|
|
2428
2233
|
* @export
|
|
2429
2234
|
*/
|
|
2430
|
-
const createRequestFunction$
|
|
2235
|
+
const createRequestFunction$a = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
2431
2236
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
2432
2237
|
const axiosRequestArgs = Object.assign(Object.assign({}, axiosArgs.options), { url: ((configuration === null || configuration === void 0 ? void 0 : configuration.basePath) || basePath) + axiosArgs.url });
|
|
2433
2238
|
return axios.request(axiosRequestArgs);
|
|
@@ -2436,238 +2241,16 @@
|
|
|
2436
2241
|
|
|
2437
2242
|
/* tslint:disable */
|
|
2438
2243
|
/**
|
|
2439
|
-
*
|
|
2244
|
+
* BlobApi - axios parameter creator
|
|
2440
2245
|
* @export
|
|
2441
2246
|
*/
|
|
2442
|
-
const
|
|
2247
|
+
const BlobApiAxiosParamCreator = function (configuration) {
|
|
2443
2248
|
return {
|
|
2444
2249
|
/**
|
|
2445
2250
|
*
|
|
2446
|
-
* @summary
|
|
2447
|
-
* @param {string}
|
|
2448
|
-
* @param {
|
|
2449
|
-
* @throws {RequiredError}
|
|
2450
|
-
*/
|
|
2451
|
-
adminGetProject: (projectString, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2452
|
-
// verify required parameter 'projectString' is not null or undefined
|
|
2453
|
-
assertParamExists$a('adminGetProject', 'projectString', projectString);
|
|
2454
|
-
const localVarPath = `/Admin/{projectString}`
|
|
2455
|
-
.replace(`{${"projectString"}}`, encodeURIComponent(String(projectString)));
|
|
2456
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2457
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$b);
|
|
2458
|
-
let baseOptions;
|
|
2459
|
-
if (configuration) {
|
|
2460
|
-
baseOptions = configuration.baseOptions;
|
|
2461
|
-
}
|
|
2462
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2463
|
-
const localVarHeaderParameter = {};
|
|
2464
|
-
const localVarQueryParameter = {};
|
|
2465
|
-
// authentication JWT token required
|
|
2466
|
-
yield setApiKeyToObject$b(localVarHeaderParameter, "Authorization", configuration);
|
|
2467
|
-
setSearchParams$b(localVarUrlObj, localVarQueryParameter, options.query);
|
|
2468
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2469
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2470
|
-
return {
|
|
2471
|
-
url: toPathString$b(localVarUrlObj),
|
|
2472
|
-
options: localVarRequestOptions,
|
|
2473
|
-
};
|
|
2474
|
-
}),
|
|
2475
|
-
/**
|
|
2476
|
-
*
|
|
2477
|
-
* @summary Update the project quota
|
|
2478
|
-
* @param {UpdateQuotaParameterObject} updateQuotaParameterObject JSON object for updating quota.
|
|
2479
|
-
* @param {*} [options] Override http request option.
|
|
2480
|
-
* @throws {RequiredError}
|
|
2481
|
-
*/
|
|
2482
|
-
adminUpdateQuota: (updateQuotaParameterObject, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2483
|
-
// verify required parameter 'updateQuotaParameterObject' is not null or undefined
|
|
2484
|
-
assertParamExists$a('adminUpdateQuota', 'updateQuotaParameterObject', updateQuotaParameterObject);
|
|
2485
|
-
const localVarPath = `/Admin`;
|
|
2486
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2487
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$b);
|
|
2488
|
-
let baseOptions;
|
|
2489
|
-
if (configuration) {
|
|
2490
|
-
baseOptions = configuration.baseOptions;
|
|
2491
|
-
}
|
|
2492
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2493
|
-
const localVarHeaderParameter = {};
|
|
2494
|
-
const localVarQueryParameter = {};
|
|
2495
|
-
// authentication JWT token required
|
|
2496
|
-
yield setApiKeyToObject$b(localVarHeaderParameter, "Authorization", configuration);
|
|
2497
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2498
|
-
setSearchParams$b(localVarUrlObj, localVarQueryParameter, options.query);
|
|
2499
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2500
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2501
|
-
localVarRequestOptions.data = serializeDataIfNeeded$6(updateQuotaParameterObject, localVarRequestOptions, configuration);
|
|
2502
|
-
return {
|
|
2503
|
-
url: toPathString$b(localVarUrlObj),
|
|
2504
|
-
options: localVarRequestOptions,
|
|
2505
|
-
};
|
|
2506
|
-
}),
|
|
2507
|
-
};
|
|
2508
|
-
};
|
|
2509
|
-
/**
|
|
2510
|
-
* AdminApi - functional programming interface
|
|
2511
|
-
* @export
|
|
2512
|
-
*/
|
|
2513
|
-
const AdminApiFp = function (configuration) {
|
|
2514
|
-
const localVarAxiosParamCreator = AdminApiAxiosParamCreator(configuration);
|
|
2515
|
-
return {
|
|
2516
|
-
/**
|
|
2517
|
-
*
|
|
2518
|
-
* @summary Find the project related to the projectString(GUID or slug)
|
|
2519
|
-
* @param {string} projectString Either the id (GUID) of the project or the slug.
|
|
2520
|
-
* @param {*} [options] Override http request option.
|
|
2521
|
-
* @throws {RequiredError}
|
|
2522
|
-
*/
|
|
2523
|
-
adminGetProject(projectString, options) {
|
|
2524
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2525
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminGetProject(projectString, options);
|
|
2526
|
-
return createRequestFunction$b(localVarAxiosArgs, axios, BASE_PATH$b, configuration);
|
|
2527
|
-
});
|
|
2528
|
-
},
|
|
2529
|
-
/**
|
|
2530
|
-
*
|
|
2531
|
-
* @summary Update the project quota
|
|
2532
|
-
* @param {UpdateQuotaParameterObject} updateQuotaParameterObject JSON object for updating quota.
|
|
2533
|
-
* @param {*} [options] Override http request option.
|
|
2534
|
-
* @throws {RequiredError}
|
|
2535
|
-
*/
|
|
2536
|
-
adminUpdateQuota(updateQuotaParameterObject, options) {
|
|
2537
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2538
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminUpdateQuota(updateQuotaParameterObject, options);
|
|
2539
|
-
return createRequestFunction$b(localVarAxiosArgs, axios, BASE_PATH$b, configuration);
|
|
2540
|
-
});
|
|
2541
|
-
},
|
|
2542
|
-
};
|
|
2543
|
-
};
|
|
2544
|
-
/**
|
|
2545
|
-
* AdminApi - factory interface
|
|
2546
|
-
* @export
|
|
2547
|
-
*/
|
|
2548
|
-
const AdminApiFactory = function (configuration, basePath, axios) {
|
|
2549
|
-
const localVarFp = AdminApiFp(configuration);
|
|
2550
|
-
return {
|
|
2551
|
-
/**
|
|
2552
|
-
*
|
|
2553
|
-
* @summary Find the project related to the projectString(GUID or slug)
|
|
2554
|
-
* @param {string} projectString Either the id (GUID) of the project or the slug.
|
|
2555
|
-
* @param {*} [options] Override http request option.
|
|
2556
|
-
* @throws {RequiredError}
|
|
2557
|
-
*/
|
|
2558
|
-
adminGetProject(projectString, options) {
|
|
2559
|
-
return localVarFp.adminGetProject(projectString, options).then((request) => request(axios, basePath));
|
|
2560
|
-
},
|
|
2561
|
-
/**
|
|
2562
|
-
*
|
|
2563
|
-
* @summary Update the project quota
|
|
2564
|
-
* @param {UpdateQuotaParameterObject} updateQuotaParameterObject JSON object for updating quota.
|
|
2565
|
-
* @param {*} [options] Override http request option.
|
|
2566
|
-
* @throws {RequiredError}
|
|
2567
|
-
*/
|
|
2568
|
-
adminUpdateQuota(updateQuotaParameterObject, options) {
|
|
2569
|
-
return localVarFp.adminUpdateQuota(updateQuotaParameterObject, options).then((request) => request(axios, basePath));
|
|
2570
|
-
},
|
|
2571
|
-
};
|
|
2572
|
-
};
|
|
2573
|
-
|
|
2574
|
-
/* tslint:disable */
|
|
2575
|
-
const BASE_PATH$a = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Blob".replace(/\/+$/, "");
|
|
2576
|
-
/**
|
|
2577
|
-
*
|
|
2578
|
-
* @export
|
|
2579
|
-
* @class RequiredError
|
|
2580
|
-
* @extends {Error}
|
|
2581
|
-
*/
|
|
2582
|
-
class RequiredError$9 extends Error {
|
|
2583
|
-
constructor(field, msg) {
|
|
2584
|
-
super(msg);
|
|
2585
|
-
this.field = field;
|
|
2586
|
-
this.name = "RequiredError";
|
|
2587
|
-
}
|
|
2588
|
-
}
|
|
2589
|
-
|
|
2590
|
-
/* tslint:disable */
|
|
2591
|
-
/**
|
|
2592
|
-
*
|
|
2593
|
-
* @export
|
|
2594
|
-
*/
|
|
2595
|
-
const DUMMY_BASE_URL$a = 'https://example.com';
|
|
2596
|
-
/**
|
|
2597
|
-
*
|
|
2598
|
-
* @throws {RequiredError}
|
|
2599
|
-
* @export
|
|
2600
|
-
*/
|
|
2601
|
-
const assertParamExists$9 = function (functionName, paramName, paramValue) {
|
|
2602
|
-
if (paramValue === null || paramValue === undefined) {
|
|
2603
|
-
throw new RequiredError$9(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
2604
|
-
}
|
|
2605
|
-
};
|
|
2606
|
-
/**
|
|
2607
|
-
*
|
|
2608
|
-
* @export
|
|
2609
|
-
*/
|
|
2610
|
-
const setApiKeyToObject$a = function (object, keyParamName, configuration) {
|
|
2611
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2612
|
-
if (configuration && configuration.apiKey) {
|
|
2613
|
-
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
2614
|
-
? yield configuration.apiKey(keyParamName)
|
|
2615
|
-
: yield configuration.apiKey;
|
|
2616
|
-
object[keyParamName] = localVarApiKeyValue;
|
|
2617
|
-
}
|
|
2618
|
-
});
|
|
2619
|
-
};
|
|
2620
|
-
/**
|
|
2621
|
-
*
|
|
2622
|
-
* @export
|
|
2623
|
-
*/
|
|
2624
|
-
const setSearchParams$a = function (url, ...objects) {
|
|
2625
|
-
const searchParams = new URLSearchParams(url.search);
|
|
2626
|
-
for (const object of objects) {
|
|
2627
|
-
for (const key in object) {
|
|
2628
|
-
if (Array.isArray(object[key])) {
|
|
2629
|
-
searchParams.delete(key);
|
|
2630
|
-
for (const item of object[key]) {
|
|
2631
|
-
searchParams.append(key, item);
|
|
2632
|
-
}
|
|
2633
|
-
}
|
|
2634
|
-
else {
|
|
2635
|
-
searchParams.set(key, object[key]);
|
|
2636
|
-
}
|
|
2637
|
-
}
|
|
2638
|
-
}
|
|
2639
|
-
url.search = searchParams.toString();
|
|
2640
|
-
};
|
|
2641
|
-
/**
|
|
2642
|
-
*
|
|
2643
|
-
* @export
|
|
2644
|
-
*/
|
|
2645
|
-
const toPathString$a = function (url) {
|
|
2646
|
-
return url.pathname + url.search + url.hash;
|
|
2647
|
-
};
|
|
2648
|
-
/**
|
|
2649
|
-
*
|
|
2650
|
-
* @export
|
|
2651
|
-
*/
|
|
2652
|
-
const createRequestFunction$a = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
2653
|
-
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
2654
|
-
const axiosRequestArgs = Object.assign(Object.assign({}, axiosArgs.options), { url: ((configuration === null || configuration === void 0 ? void 0 : configuration.basePath) || basePath) + axiosArgs.url });
|
|
2655
|
-
return axios.request(axiosRequestArgs);
|
|
2656
|
-
};
|
|
2657
|
-
};
|
|
2658
|
-
|
|
2659
|
-
/* tslint:disable */
|
|
2660
|
-
/**
|
|
2661
|
-
* BlobApi - axios parameter creator
|
|
2662
|
-
* @export
|
|
2663
|
-
*/
|
|
2664
|
-
const BlobApiAxiosParamCreator = function (configuration) {
|
|
2665
|
-
return {
|
|
2666
|
-
/**
|
|
2667
|
-
*
|
|
2668
|
-
* @summary This method deletes a given file
|
|
2669
|
-
* @param {string} resourceId Id of the resource
|
|
2670
|
-
* @param {string} [path] Path to the file
|
|
2251
|
+
* @summary This method deletes a given file
|
|
2252
|
+
* @param {string} resourceId Id of the resource
|
|
2253
|
+
* @param {string} [path] Path to the file
|
|
2671
2254
|
* @param {*} [options] Override http request option.
|
|
2672
2255
|
* @throws {RequiredError}
|
|
2673
2256
|
*/
|
|
@@ -2733,37 +2316,6 @@
|
|
|
2733
2316
|
options: localVarRequestOptions,
|
|
2734
2317
|
};
|
|
2735
2318
|
}),
|
|
2736
|
-
/**
|
|
2737
|
-
*
|
|
2738
|
-
* @summary This method returns the amount of allocated space for the given resource
|
|
2739
|
-
* @param {string} resourceId Id of a resource
|
|
2740
|
-
* @param {*} [options] Override http request option.
|
|
2741
|
-
* @throws {RequiredError}
|
|
2742
|
-
*/
|
|
2743
|
-
blobGetQuota: (resourceId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2744
|
-
// verify required parameter 'resourceId' is not null or undefined
|
|
2745
|
-
assertParamExists$9('blobGetQuota', 'resourceId', resourceId);
|
|
2746
|
-
const localVarPath = `/Blob/{resourceId}/quota`
|
|
2747
|
-
.replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)));
|
|
2748
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2749
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$a);
|
|
2750
|
-
let baseOptions;
|
|
2751
|
-
if (configuration) {
|
|
2752
|
-
baseOptions = configuration.baseOptions;
|
|
2753
|
-
}
|
|
2754
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2755
|
-
const localVarHeaderParameter = {};
|
|
2756
|
-
const localVarQueryParameter = {};
|
|
2757
|
-
// authentication JWT token required
|
|
2758
|
-
yield setApiKeyToObject$a(localVarHeaderParameter, "Authorization", configuration);
|
|
2759
|
-
setSearchParams$a(localVarUrlObj, localVarQueryParameter, options.query);
|
|
2760
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2761
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2762
|
-
return {
|
|
2763
|
-
url: toPathString$a(localVarUrlObj),
|
|
2764
|
-
options: localVarRequestOptions,
|
|
2765
|
-
};
|
|
2766
|
-
}),
|
|
2767
2319
|
/**
|
|
2768
2320
|
*
|
|
2769
2321
|
* @summary This method uploads a given File
|
|
@@ -2845,19 +2397,6 @@
|
|
|
2845
2397
|
return createRequestFunction$a(localVarAxiosArgs, axios, BASE_PATH$a, configuration);
|
|
2846
2398
|
});
|
|
2847
2399
|
},
|
|
2848
|
-
/**
|
|
2849
|
-
*
|
|
2850
|
-
* @summary This method returns the amount of allocated space for the given resource
|
|
2851
|
-
* @param {string} resourceId Id of a resource
|
|
2852
|
-
* @param {*} [options] Override http request option.
|
|
2853
|
-
* @throws {RequiredError}
|
|
2854
|
-
*/
|
|
2855
|
-
blobGetQuota(resourceId, options) {
|
|
2856
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2857
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.blobGetQuota(resourceId, options);
|
|
2858
|
-
return createRequestFunction$a(localVarAxiosArgs, axios, BASE_PATH$a, configuration);
|
|
2859
|
-
});
|
|
2860
|
-
},
|
|
2861
2400
|
/**
|
|
2862
2401
|
*
|
|
2863
2402
|
* @summary This method uploads a given File
|
|
@@ -2904,16 +2443,6 @@
|
|
|
2904
2443
|
blobGetFileWithParameter(resourceId, path, options) {
|
|
2905
2444
|
return localVarFp.blobGetFileWithParameter(resourceId, path, options).then((request) => request(axios, basePath));
|
|
2906
2445
|
},
|
|
2907
|
-
/**
|
|
2908
|
-
*
|
|
2909
|
-
* @summary This method returns the amount of allocated space for the given resource
|
|
2910
|
-
* @param {string} resourceId Id of a resource
|
|
2911
|
-
* @param {*} [options] Override http request option.
|
|
2912
|
-
* @throws {RequiredError}
|
|
2913
|
-
*/
|
|
2914
|
-
blobGetQuota(resourceId, options) {
|
|
2915
|
-
return localVarFp.blobGetQuota(resourceId, options).then((request) => request(axios, basePath));
|
|
2916
|
-
},
|
|
2917
2446
|
/**
|
|
2918
2447
|
*
|
|
2919
2448
|
* @summary This method uploads a given File
|
|
@@ -3973,7 +3502,7 @@
|
|
|
3973
3502
|
};
|
|
3974
3503
|
|
|
3975
3504
|
/* tslint:disable */
|
|
3976
|
-
const BASE_PATH$6 = "https://d-
|
|
3505
|
+
const BASE_PATH$6 = "https://d-sp23.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Pid".replace(/\/+$/, "");
|
|
3977
3506
|
/**
|
|
3978
3507
|
*
|
|
3979
3508
|
* @export
|
|
@@ -4072,19 +3601,23 @@
|
|
|
4072
3601
|
|
|
4073
3602
|
/* tslint:disable */
|
|
4074
3603
|
/**
|
|
4075
|
-
*
|
|
3604
|
+
* PidApi - axios parameter creator
|
|
4076
3605
|
* @export
|
|
4077
3606
|
*/
|
|
4078
|
-
const
|
|
3607
|
+
const PidApiAxiosParamCreator = function (configuration) {
|
|
4079
3608
|
return {
|
|
4080
3609
|
/**
|
|
4081
3610
|
*
|
|
4082
|
-
* @summary Returns
|
|
3611
|
+
* @summary Returns a 200, if a PID is valid.
|
|
3612
|
+
* @param {string} pid PID
|
|
4083
3613
|
* @param {*} [options] Override http request option.
|
|
4084
3614
|
* @throws {RequiredError}
|
|
4085
3615
|
*/
|
|
4086
|
-
|
|
4087
|
-
|
|
3616
|
+
pidIsValid: (pid, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3617
|
+
// verify required parameter 'pid' is not null or undefined
|
|
3618
|
+
assertParamExists$5('pidIsValid', 'pid', pid);
|
|
3619
|
+
const localVarPath = `/Pid/valid/{pid}`
|
|
3620
|
+
.replace(`{${"pid"}}`, encodeURIComponent(String(pid)));
|
|
4088
3621
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4089
3622
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$6);
|
|
4090
3623
|
let baseOptions;
|
|
@@ -4104,6 +3637,251 @@
|
|
|
4104
3637
|
options: localVarRequestOptions,
|
|
4105
3638
|
};
|
|
4106
3639
|
}),
|
|
3640
|
+
/**
|
|
3641
|
+
*
|
|
3642
|
+
* @summary Sends a request to the pid owner.
|
|
3643
|
+
* @param {MessageObject} messageObject Entry with the information for the email to the pid owner.
|
|
3644
|
+
* @param {*} [options] Override http request option.
|
|
3645
|
+
* @throws {RequiredError}
|
|
3646
|
+
*/
|
|
3647
|
+
pidSendMailToOwner: (messageObject, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3648
|
+
// verify required parameter 'messageObject' is not null or undefined
|
|
3649
|
+
assertParamExists$5('pidSendMailToOwner', 'messageObject', messageObject);
|
|
3650
|
+
const localVarPath = `/Pid/sendMailToOwner`;
|
|
3651
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3652
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$6);
|
|
3653
|
+
let baseOptions;
|
|
3654
|
+
if (configuration) {
|
|
3655
|
+
baseOptions = configuration.baseOptions;
|
|
3656
|
+
}
|
|
3657
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3658
|
+
const localVarHeaderParameter = {};
|
|
3659
|
+
const localVarQueryParameter = {};
|
|
3660
|
+
// authentication JWT token required
|
|
3661
|
+
yield setApiKeyToObject$6(localVarHeaderParameter, "Authorization", configuration);
|
|
3662
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3663
|
+
setSearchParams$6(localVarUrlObj, localVarQueryParameter, options.query);
|
|
3664
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3665
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3666
|
+
localVarRequestOptions.data = serializeDataIfNeeded$4(messageObject, localVarRequestOptions, configuration);
|
|
3667
|
+
return {
|
|
3668
|
+
url: toPathString$6(localVarUrlObj),
|
|
3669
|
+
options: localVarRequestOptions,
|
|
3670
|
+
};
|
|
3671
|
+
}),
|
|
3672
|
+
};
|
|
3673
|
+
};
|
|
3674
|
+
/**
|
|
3675
|
+
* PidApi - functional programming interface
|
|
3676
|
+
* @export
|
|
3677
|
+
*/
|
|
3678
|
+
const PidApiFp = function (configuration) {
|
|
3679
|
+
const localVarAxiosParamCreator = PidApiAxiosParamCreator(configuration);
|
|
3680
|
+
return {
|
|
3681
|
+
/**
|
|
3682
|
+
*
|
|
3683
|
+
* @summary Returns a 200, if a PID is valid.
|
|
3684
|
+
* @param {string} pid PID
|
|
3685
|
+
* @param {*} [options] Override http request option.
|
|
3686
|
+
* @throws {RequiredError}
|
|
3687
|
+
*/
|
|
3688
|
+
pidIsValid(pid, options) {
|
|
3689
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3690
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.pidIsValid(pid, options);
|
|
3691
|
+
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
3692
|
+
});
|
|
3693
|
+
},
|
|
3694
|
+
/**
|
|
3695
|
+
*
|
|
3696
|
+
* @summary Sends a request to the pid owner.
|
|
3697
|
+
* @param {MessageObject} messageObject Entry with the information for the email to the pid owner.
|
|
3698
|
+
* @param {*} [options] Override http request option.
|
|
3699
|
+
* @throws {RequiredError}
|
|
3700
|
+
*/
|
|
3701
|
+
pidSendMailToOwner(messageObject, options) {
|
|
3702
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3703
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.pidSendMailToOwner(messageObject, options);
|
|
3704
|
+
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
3705
|
+
});
|
|
3706
|
+
},
|
|
3707
|
+
};
|
|
3708
|
+
};
|
|
3709
|
+
/**
|
|
3710
|
+
* PidApi - factory interface
|
|
3711
|
+
* @export
|
|
3712
|
+
*/
|
|
3713
|
+
const PidApiFactory = function (configuration, basePath, axios) {
|
|
3714
|
+
const localVarFp = PidApiFp(configuration);
|
|
3715
|
+
return {
|
|
3716
|
+
/**
|
|
3717
|
+
*
|
|
3718
|
+
* @summary Returns a 200, if a PID is valid.
|
|
3719
|
+
* @param {string} pid PID
|
|
3720
|
+
* @param {*} [options] Override http request option.
|
|
3721
|
+
* @throws {RequiredError}
|
|
3722
|
+
*/
|
|
3723
|
+
pidIsValid(pid, options) {
|
|
3724
|
+
return localVarFp.pidIsValid(pid, options).then((request) => request(axios, basePath));
|
|
3725
|
+
},
|
|
3726
|
+
/**
|
|
3727
|
+
*
|
|
3728
|
+
* @summary Sends a request to the pid owner.
|
|
3729
|
+
* @param {MessageObject} messageObject Entry with the information for the email to the pid owner.
|
|
3730
|
+
* @param {*} [options] Override http request option.
|
|
3731
|
+
* @throws {RequiredError}
|
|
3732
|
+
*/
|
|
3733
|
+
pidSendMailToOwner(messageObject, options) {
|
|
3734
|
+
return localVarFp.pidSendMailToOwner(messageObject, options).then((request) => request(axios, basePath));
|
|
3735
|
+
},
|
|
3736
|
+
};
|
|
3737
|
+
};
|
|
3738
|
+
|
|
3739
|
+
/* tslint:disable */
|
|
3740
|
+
const BASE_PATH$5 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Project".replace(/\/+$/, "");
|
|
3741
|
+
/**
|
|
3742
|
+
*
|
|
3743
|
+
* @export
|
|
3744
|
+
* @class RequiredError
|
|
3745
|
+
* @extends {Error}
|
|
3746
|
+
*/
|
|
3747
|
+
class RequiredError$4 extends Error {
|
|
3748
|
+
constructor(field, msg) {
|
|
3749
|
+
super(msg);
|
|
3750
|
+
this.field = field;
|
|
3751
|
+
this.name = "RequiredError";
|
|
3752
|
+
}
|
|
3753
|
+
}
|
|
3754
|
+
|
|
3755
|
+
/* tslint:disable */
|
|
3756
|
+
/**
|
|
3757
|
+
*
|
|
3758
|
+
* @export
|
|
3759
|
+
*/
|
|
3760
|
+
const DUMMY_BASE_URL$5 = 'https://example.com';
|
|
3761
|
+
/**
|
|
3762
|
+
*
|
|
3763
|
+
* @throws {RequiredError}
|
|
3764
|
+
* @export
|
|
3765
|
+
*/
|
|
3766
|
+
const assertParamExists$4 = function (functionName, paramName, paramValue) {
|
|
3767
|
+
if (paramValue === null || paramValue === undefined) {
|
|
3768
|
+
throw new RequiredError$4(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
3769
|
+
}
|
|
3770
|
+
};
|
|
3771
|
+
/**
|
|
3772
|
+
*
|
|
3773
|
+
* @export
|
|
3774
|
+
*/
|
|
3775
|
+
const setApiKeyToObject$5 = function (object, keyParamName, configuration) {
|
|
3776
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3777
|
+
if (configuration && configuration.apiKey) {
|
|
3778
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
3779
|
+
? yield configuration.apiKey(keyParamName)
|
|
3780
|
+
: yield configuration.apiKey;
|
|
3781
|
+
object[keyParamName] = localVarApiKeyValue;
|
|
3782
|
+
}
|
|
3783
|
+
});
|
|
3784
|
+
};
|
|
3785
|
+
/**
|
|
3786
|
+
*
|
|
3787
|
+
* @export
|
|
3788
|
+
*/
|
|
3789
|
+
const setSearchParams$5 = function (url, ...objects) {
|
|
3790
|
+
const searchParams = new URLSearchParams(url.search);
|
|
3791
|
+
for (const object of objects) {
|
|
3792
|
+
for (const key in object) {
|
|
3793
|
+
if (Array.isArray(object[key])) {
|
|
3794
|
+
searchParams.delete(key);
|
|
3795
|
+
for (const item of object[key]) {
|
|
3796
|
+
searchParams.append(key, item);
|
|
3797
|
+
}
|
|
3798
|
+
}
|
|
3799
|
+
else {
|
|
3800
|
+
searchParams.set(key, object[key]);
|
|
3801
|
+
}
|
|
3802
|
+
}
|
|
3803
|
+
}
|
|
3804
|
+
url.search = searchParams.toString();
|
|
3805
|
+
};
|
|
3806
|
+
/**
|
|
3807
|
+
*
|
|
3808
|
+
* @export
|
|
3809
|
+
*/
|
|
3810
|
+
const serializeDataIfNeeded$3 = function (value, requestOptions, configuration) {
|
|
3811
|
+
const nonString = typeof value !== 'string';
|
|
3812
|
+
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
3813
|
+
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
3814
|
+
: nonString;
|
|
3815
|
+
return needsSerialization
|
|
3816
|
+
? JSON.stringify(value !== undefined ? value : {})
|
|
3817
|
+
: (value || "");
|
|
3818
|
+
};
|
|
3819
|
+
/**
|
|
3820
|
+
*
|
|
3821
|
+
* @export
|
|
3822
|
+
*/
|
|
3823
|
+
const toPathString$5 = function (url) {
|
|
3824
|
+
return url.pathname + url.search + url.hash;
|
|
3825
|
+
};
|
|
3826
|
+
/**
|
|
3827
|
+
*
|
|
3828
|
+
* @export
|
|
3829
|
+
*/
|
|
3830
|
+
const createRequestFunction$5 = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
3831
|
+
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
3832
|
+
const axiosRequestArgs = Object.assign(Object.assign({}, axiosArgs.options), { url: ((configuration === null || configuration === void 0 ? void 0 : configuration.basePath) || basePath) + axiosArgs.url });
|
|
3833
|
+
return axios.request(axiosRequestArgs);
|
|
3834
|
+
};
|
|
3835
|
+
};
|
|
3836
|
+
|
|
3837
|
+
/* tslint:disable */
|
|
3838
|
+
/**
|
|
3839
|
+
*
|
|
3840
|
+
* @export
|
|
3841
|
+
* @enum {string}
|
|
3842
|
+
*/
|
|
3843
|
+
var QuotaUnit$1;
|
|
3844
|
+
(function (QuotaUnit) {
|
|
3845
|
+
QuotaUnit["Byte"] = "https://qudt.org/vocab/unit/BYTE";
|
|
3846
|
+
QuotaUnit["KibiByte"] = "https://qudt.org/vocab/unit/KibiBYTE";
|
|
3847
|
+
QuotaUnit["MebiByte"] = "https://qudt.org/vocab/unit/MebiBYTE";
|
|
3848
|
+
QuotaUnit["GibiByte"] = "https://qudt.org/vocab/unit/GibiBYTE";
|
|
3849
|
+
QuotaUnit["TebiByte"] = "https://qudt.org/vocab/unit/TebiBYTE";
|
|
3850
|
+
QuotaUnit["PebiByte"] = "https://qudt.org/vocab/unit/PebiBYTE";
|
|
3851
|
+
})(QuotaUnit$1 || (QuotaUnit$1 = {}));
|
|
3852
|
+
/**
|
|
3853
|
+
* DisciplineApi - axios parameter creator
|
|
3854
|
+
* @export
|
|
3855
|
+
*/
|
|
3856
|
+
const DisciplineApiAxiosParamCreator = function (configuration) {
|
|
3857
|
+
return {
|
|
3858
|
+
/**
|
|
3859
|
+
*
|
|
3860
|
+
* @summary Returns all available disciplines
|
|
3861
|
+
* @param {*} [options] Override http request option.
|
|
3862
|
+
* @throws {RequiredError}
|
|
3863
|
+
*/
|
|
3864
|
+
disciplineIndex: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3865
|
+
const localVarPath = `/Discipline`;
|
|
3866
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3867
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$5);
|
|
3868
|
+
let baseOptions;
|
|
3869
|
+
if (configuration) {
|
|
3870
|
+
baseOptions = configuration.baseOptions;
|
|
3871
|
+
}
|
|
3872
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3873
|
+
const localVarHeaderParameter = {};
|
|
3874
|
+
const localVarQueryParameter = {};
|
|
3875
|
+
// authentication JWT token required
|
|
3876
|
+
yield setApiKeyToObject$5(localVarHeaderParameter, "Authorization", configuration);
|
|
3877
|
+
setSearchParams$5(localVarUrlObj, localVarQueryParameter, options.query);
|
|
3878
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3879
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3880
|
+
return {
|
|
3881
|
+
url: toPathString$5(localVarUrlObj),
|
|
3882
|
+
options: localVarRequestOptions,
|
|
3883
|
+
};
|
|
3884
|
+
}),
|
|
4107
3885
|
};
|
|
4108
3886
|
};
|
|
4109
3887
|
/**
|
|
@@ -4122,7 +3900,7 @@
|
|
|
4122
3900
|
disciplineIndex(options) {
|
|
4123
3901
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4124
3902
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.disciplineIndex(options);
|
|
4125
|
-
return createRequestFunction$
|
|
3903
|
+
return createRequestFunction$5(localVarAxiosArgs, axios, BASE_PATH$5, configuration);
|
|
4126
3904
|
});
|
|
4127
3905
|
},
|
|
4128
3906
|
};
|
|
@@ -4160,7 +3938,7 @@
|
|
|
4160
3938
|
licenseIndex: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4161
3939
|
const localVarPath = `/License`;
|
|
4162
3940
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4163
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
3941
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$5);
|
|
4164
3942
|
let baseOptions;
|
|
4165
3943
|
if (configuration) {
|
|
4166
3944
|
baseOptions = configuration.baseOptions;
|
|
@@ -4169,12 +3947,12 @@
|
|
|
4169
3947
|
const localVarHeaderParameter = {};
|
|
4170
3948
|
const localVarQueryParameter = {};
|
|
4171
3949
|
// authentication JWT token required
|
|
4172
|
-
yield setApiKeyToObject$
|
|
4173
|
-
setSearchParams$
|
|
3950
|
+
yield setApiKeyToObject$5(localVarHeaderParameter, "Authorization", configuration);
|
|
3951
|
+
setSearchParams$5(localVarUrlObj, localVarQueryParameter, options.query);
|
|
4174
3952
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4175
3953
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4176
3954
|
return {
|
|
4177
|
-
url: toPathString$
|
|
3955
|
+
url: toPathString$5(localVarUrlObj),
|
|
4178
3956
|
options: localVarRequestOptions,
|
|
4179
3957
|
};
|
|
4180
3958
|
}),
|
|
@@ -4196,7 +3974,7 @@
|
|
|
4196
3974
|
licenseIndex(options) {
|
|
4197
3975
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4198
3976
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.licenseIndex(options);
|
|
4199
|
-
return createRequestFunction$
|
|
3977
|
+
return createRequestFunction$5(localVarAxiosArgs, axios, BASE_PATH$5, configuration);
|
|
4200
3978
|
});
|
|
4201
3979
|
},
|
|
4202
3980
|
};
|
|
@@ -4234,11 +4012,11 @@
|
|
|
4234
4012
|
*/
|
|
4235
4013
|
projectCreateApplicationProfile: (projectId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4236
4014
|
// verify required parameter 'projectId' is not null or undefined
|
|
4237
|
-
assertParamExists$
|
|
4015
|
+
assertParamExists$4('projectCreateApplicationProfile', 'projectId', projectId);
|
|
4238
4016
|
const localVarPath = `/Project/{projectId}/-/create-profile`
|
|
4239
4017
|
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
|
|
4240
4018
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4241
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
4019
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$5);
|
|
4242
4020
|
let baseOptions;
|
|
4243
4021
|
if (configuration) {
|
|
4244
4022
|
baseOptions = configuration.baseOptions;
|
|
@@ -4247,29 +4025,29 @@
|
|
|
4247
4025
|
const localVarHeaderParameter = {};
|
|
4248
4026
|
const localVarQueryParameter = {};
|
|
4249
4027
|
// authentication JWT token required
|
|
4250
|
-
yield setApiKeyToObject$
|
|
4251
|
-
setSearchParams$
|
|
4028
|
+
yield setApiKeyToObject$5(localVarHeaderParameter, "Authorization", configuration);
|
|
4029
|
+
setSearchParams$5(localVarUrlObj, localVarQueryParameter, options.query);
|
|
4252
4030
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4253
4031
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4254
4032
|
return {
|
|
4255
|
-
url: toPathString$
|
|
4033
|
+
url: toPathString$5(localVarUrlObj),
|
|
4256
4034
|
options: localVarRequestOptions,
|
|
4257
4035
|
};
|
|
4258
4036
|
}),
|
|
4259
4037
|
/**
|
|
4260
4038
|
*
|
|
4261
|
-
* @summary Deletes
|
|
4039
|
+
* @summary Deletes a project
|
|
4262
4040
|
* @param {string} id Id of the project
|
|
4263
4041
|
* @param {*} [options] Override http request option.
|
|
4264
4042
|
* @throws {RequiredError}
|
|
4265
4043
|
*/
|
|
4266
4044
|
projectDelete: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4267
4045
|
// verify required parameter 'id' is not null or undefined
|
|
4268
|
-
assertParamExists$
|
|
4046
|
+
assertParamExists$4('projectDelete', 'id', id);
|
|
4269
4047
|
const localVarPath = `/Project/{id}`
|
|
4270
4048
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4271
4049
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4272
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
4050
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$5);
|
|
4273
4051
|
let baseOptions;
|
|
4274
4052
|
if (configuration) {
|
|
4275
4053
|
baseOptions = configuration.baseOptions;
|
|
@@ -4278,12 +4056,12 @@
|
|
|
4278
4056
|
const localVarHeaderParameter = {};
|
|
4279
4057
|
const localVarQueryParameter = {};
|
|
4280
4058
|
// authentication JWT token required
|
|
4281
|
-
yield setApiKeyToObject$
|
|
4282
|
-
setSearchParams$
|
|
4059
|
+
yield setApiKeyToObject$5(localVarHeaderParameter, "Authorization", configuration);
|
|
4060
|
+
setSearchParams$5(localVarUrlObj, localVarQueryParameter, options.query);
|
|
4283
4061
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4284
4062
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4285
4063
|
return {
|
|
4286
|
-
url: toPathString$
|
|
4064
|
+
url: toPathString$5(localVarUrlObj),
|
|
4287
4065
|
options: localVarRequestOptions,
|
|
4288
4066
|
};
|
|
4289
4067
|
}),
|
|
@@ -4296,11 +4074,11 @@
|
|
|
4296
4074
|
*/
|
|
4297
4075
|
projectDeleteInvitation: (invitationId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4298
4076
|
// verify required parameter 'invitationId' is not null or undefined
|
|
4299
|
-
assertParamExists$
|
|
4077
|
+
assertParamExists$4('projectDeleteInvitation', 'invitationId', invitationId);
|
|
4300
4078
|
const localVarPath = `/Project/invitation/{invitationId}`
|
|
4301
4079
|
.replace(`{${"invitationId"}}`, encodeURIComponent(String(invitationId)));
|
|
4302
4080
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4303
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
4081
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$5);
|
|
4304
4082
|
let baseOptions;
|
|
4305
4083
|
if (configuration) {
|
|
4306
4084
|
baseOptions = configuration.baseOptions;
|
|
@@ -4309,12 +4087,12 @@
|
|
|
4309
4087
|
const localVarHeaderParameter = {};
|
|
4310
4088
|
const localVarQueryParameter = {};
|
|
4311
4089
|
// authentication JWT token required
|
|
4312
|
-
yield setApiKeyToObject$
|
|
4313
|
-
setSearchParams$
|
|
4090
|
+
yield setApiKeyToObject$5(localVarHeaderParameter, "Authorization", configuration);
|
|
4091
|
+
setSearchParams$5(localVarUrlObj, localVarQueryParameter, options.query);
|
|
4314
4092
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4315
4093
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4316
4094
|
return {
|
|
4317
|
-
url: toPathString$
|
|
4095
|
+
url: toPathString$5(localVarUrlObj),
|
|
4318
4096
|
options: localVarRequestOptions,
|
|
4319
4097
|
};
|
|
4320
4098
|
}),
|
|
@@ -4327,11 +4105,11 @@
|
|
|
4327
4105
|
*/
|
|
4328
4106
|
projectGet: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4329
4107
|
// verify required parameter 'id' is not null or undefined
|
|
4330
|
-
assertParamExists$
|
|
4108
|
+
assertParamExists$4('projectGet', 'id', id);
|
|
4331
4109
|
const localVarPath = `/Project/{id}`
|
|
4332
4110
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4333
4111
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4334
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
4112
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$5);
|
|
4335
4113
|
let baseOptions;
|
|
4336
4114
|
if (configuration) {
|
|
4337
4115
|
baseOptions = configuration.baseOptions;
|
|
@@ -4340,12 +4118,12 @@
|
|
|
4340
4118
|
const localVarHeaderParameter = {};
|
|
4341
4119
|
const localVarQueryParameter = {};
|
|
4342
4120
|
// authentication JWT token required
|
|
4343
|
-
yield setApiKeyToObject$
|
|
4344
|
-
setSearchParams$
|
|
4121
|
+
yield setApiKeyToObject$5(localVarHeaderParameter, "Authorization", configuration);
|
|
4122
|
+
setSearchParams$5(localVarUrlObj, localVarQueryParameter, options.query);
|
|
4345
4123
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4346
4124
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4347
4125
|
return {
|
|
4348
|
-
url: toPathString$
|
|
4126
|
+
url: toPathString$5(localVarUrlObj),
|
|
4349
4127
|
options: localVarRequestOptions,
|
|
4350
4128
|
};
|
|
4351
4129
|
}),
|
|
@@ -4358,11 +4136,11 @@
|
|
|
4358
4136
|
*/
|
|
4359
4137
|
projectGetBySlug: (slug, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4360
4138
|
// verify required parameter 'slug' is not null or undefined
|
|
4361
|
-
assertParamExists$
|
|
4139
|
+
assertParamExists$4('projectGetBySlug', 'slug', slug);
|
|
4362
4140
|
const localVarPath = `/Project/slug/{slug}`
|
|
4363
4141
|
.replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
|
|
4364
4142
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4365
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
4143
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$5);
|
|
4366
4144
|
let baseOptions;
|
|
4367
4145
|
if (configuration) {
|
|
4368
4146
|
baseOptions = configuration.baseOptions;
|
|
@@ -4371,64 +4149,29 @@
|
|
|
4371
4149
|
const localVarHeaderParameter = {};
|
|
4372
4150
|
const localVarQueryParameter = {};
|
|
4373
4151
|
// authentication JWT token required
|
|
4374
|
-
yield setApiKeyToObject$
|
|
4375
|
-
setSearchParams$
|
|
4152
|
+
yield setApiKeyToObject$5(localVarHeaderParameter, "Authorization", configuration);
|
|
4153
|
+
setSearchParams$5(localVarUrlObj, localVarQueryParameter, options.query);
|
|
4376
4154
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4377
4155
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4378
4156
|
return {
|
|
4379
|
-
url: toPathString$
|
|
4380
|
-
options: localVarRequestOptions,
|
|
4381
|
-
};
|
|
4382
|
-
}),
|
|
4383
|
-
/**
|
|
4384
|
-
*
|
|
4385
|
-
* @summary Get the max quota for a resource type.
|
|
4386
|
-
* @param {string} id Id of the project.
|
|
4387
|
-
* @param {string} resourceTypeId Id of the resource
|
|
4388
|
-
* @param {*} [options] Override http request option.
|
|
4389
|
-
* @throws {RequiredError}
|
|
4390
|
-
*/
|
|
4391
|
-
projectGetQuotaMax: (id, resourceTypeId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4392
|
-
// verify required parameter 'id' is not null or undefined
|
|
4393
|
-
assertParamExists$5('projectGetQuotaMax', 'id', id);
|
|
4394
|
-
// verify required parameter 'resourceTypeId' is not null or undefined
|
|
4395
|
-
assertParamExists$5('projectGetQuotaMax', 'resourceTypeId', resourceTypeId);
|
|
4396
|
-
const localVarPath = `/Project/{id}/quota/{resourceTypeId}/max`
|
|
4397
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
4398
|
-
.replace(`{${"resourceTypeId"}}`, encodeURIComponent(String(resourceTypeId)));
|
|
4399
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4400
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$6);
|
|
4401
|
-
let baseOptions;
|
|
4402
|
-
if (configuration) {
|
|
4403
|
-
baseOptions = configuration.baseOptions;
|
|
4404
|
-
}
|
|
4405
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4406
|
-
const localVarHeaderParameter = {};
|
|
4407
|
-
const localVarQueryParameter = {};
|
|
4408
|
-
// authentication JWT token required
|
|
4409
|
-
yield setApiKeyToObject$6(localVarHeaderParameter, "Authorization", configuration);
|
|
4410
|
-
setSearchParams$6(localVarUrlObj, localVarQueryParameter, options.query);
|
|
4411
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4412
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4413
|
-
return {
|
|
4414
|
-
url: toPathString$6(localVarUrlObj),
|
|
4157
|
+
url: toPathString$5(localVarUrlObj),
|
|
4415
4158
|
options: localVarRequestOptions,
|
|
4416
4159
|
};
|
|
4417
4160
|
}),
|
|
4418
4161
|
/**
|
|
4419
4162
|
*
|
|
4420
|
-
* @summary Gets
|
|
4163
|
+
* @summary Gets all resources in a project
|
|
4421
4164
|
* @param {string} id Id of the project
|
|
4422
4165
|
* @param {*} [options] Override http request option.
|
|
4423
4166
|
* @throws {RequiredError}
|
|
4424
4167
|
*/
|
|
4425
4168
|
projectGetResources: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4426
4169
|
// verify required parameter 'id' is not null or undefined
|
|
4427
|
-
assertParamExists$
|
|
4170
|
+
assertParamExists$4('projectGetResources', 'id', id);
|
|
4428
4171
|
const localVarPath = `/Project/{id}/resources`
|
|
4429
4172
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4430
4173
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4431
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
4174
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$5);
|
|
4432
4175
|
let baseOptions;
|
|
4433
4176
|
if (configuration) {
|
|
4434
4177
|
baseOptions = configuration.baseOptions;
|
|
@@ -4437,12 +4180,12 @@
|
|
|
4437
4180
|
const localVarHeaderParameter = {};
|
|
4438
4181
|
const localVarQueryParameter = {};
|
|
4439
4182
|
// authentication JWT token required
|
|
4440
|
-
yield setApiKeyToObject$
|
|
4441
|
-
setSearchParams$
|
|
4183
|
+
yield setApiKeyToObject$5(localVarHeaderParameter, "Authorization", configuration);
|
|
4184
|
+
setSearchParams$5(localVarUrlObj, localVarQueryParameter, options.query);
|
|
4442
4185
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4443
4186
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4444
4187
|
return {
|
|
4445
|
-
url: toPathString$
|
|
4188
|
+
url: toPathString$5(localVarUrlObj),
|
|
4446
4189
|
options: localVarRequestOptions,
|
|
4447
4190
|
};
|
|
4448
4191
|
}),
|
|
@@ -4455,7 +4198,7 @@
|
|
|
4455
4198
|
projectGetTopLevelProjects: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4456
4199
|
const localVarPath = `/Project/-/topLevel`;
|
|
4457
4200
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4458
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
4201
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$5);
|
|
4459
4202
|
let baseOptions;
|
|
4460
4203
|
if (configuration) {
|
|
4461
4204
|
baseOptions = configuration.baseOptions;
|
|
@@ -4464,12 +4207,12 @@
|
|
|
4464
4207
|
const localVarHeaderParameter = {};
|
|
4465
4208
|
const localVarQueryParameter = {};
|
|
4466
4209
|
// authentication JWT token required
|
|
4467
|
-
yield setApiKeyToObject$
|
|
4468
|
-
setSearchParams$
|
|
4210
|
+
yield setApiKeyToObject$5(localVarHeaderParameter, "Authorization", configuration);
|
|
4211
|
+
setSearchParams$5(localVarUrlObj, localVarQueryParameter, options.query);
|
|
4469
4212
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4470
4213
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4471
4214
|
return {
|
|
4472
|
-
url: toPathString$
|
|
4215
|
+
url: toPathString$5(localVarUrlObj),
|
|
4473
4216
|
options: localVarRequestOptions,
|
|
4474
4217
|
};
|
|
4475
4218
|
}),
|
|
@@ -4482,7 +4225,7 @@
|
|
|
4482
4225
|
projectIndex: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4483
4226
|
const localVarPath = `/Project`;
|
|
4484
4227
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4485
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
4228
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$5);
|
|
4486
4229
|
let baseOptions;
|
|
4487
4230
|
if (configuration) {
|
|
4488
4231
|
baseOptions = configuration.baseOptions;
|
|
@@ -4491,12 +4234,12 @@
|
|
|
4491
4234
|
const localVarHeaderParameter = {};
|
|
4492
4235
|
const localVarQueryParameter = {};
|
|
4493
4236
|
// authentication JWT token required
|
|
4494
|
-
yield setApiKeyToObject$
|
|
4495
|
-
setSearchParams$
|
|
4237
|
+
yield setApiKeyToObject$5(localVarHeaderParameter, "Authorization", configuration);
|
|
4238
|
+
setSearchParams$5(localVarUrlObj, localVarQueryParameter, options.query);
|
|
4496
4239
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4497
4240
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4498
4241
|
return {
|
|
4499
|
-
url: toPathString$
|
|
4242
|
+
url: toPathString$5(localVarUrlObj),
|
|
4500
4243
|
options: localVarRequestOptions,
|
|
4501
4244
|
};
|
|
4502
4245
|
}),
|
|
@@ -4509,77 +4252,11 @@
|
|
|
4509
4252
|
*/
|
|
4510
4253
|
projectListInvitations: (projectId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4511
4254
|
// verify required parameter 'projectId' is not null or undefined
|
|
4512
|
-
assertParamExists$
|
|
4255
|
+
assertParamExists$4('projectListInvitations', 'projectId', projectId);
|
|
4513
4256
|
const localVarPath = `/Project/invitation/list/{projectId}`
|
|
4514
4257
|
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
|
|
4515
4258
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4516
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
4517
|
-
let baseOptions;
|
|
4518
|
-
if (configuration) {
|
|
4519
|
-
baseOptions = configuration.baseOptions;
|
|
4520
|
-
}
|
|
4521
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4522
|
-
const localVarHeaderParameter = {};
|
|
4523
|
-
const localVarQueryParameter = {};
|
|
4524
|
-
// authentication JWT token required
|
|
4525
|
-
yield setApiKeyToObject$6(localVarHeaderParameter, "Authorization", configuration);
|
|
4526
|
-
setSearchParams$6(localVarUrlObj, localVarQueryParameter, options.query);
|
|
4527
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4528
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4529
|
-
return {
|
|
4530
|
-
url: toPathString$6(localVarUrlObj),
|
|
4531
|
-
options: localVarRequestOptions,
|
|
4532
|
-
};
|
|
4533
|
-
}),
|
|
4534
|
-
/**
|
|
4535
|
-
*
|
|
4536
|
-
* @summary Retrieves the quota for the selected project and resource Type.
|
|
4537
|
-
* @param {string} id Id of the project
|
|
4538
|
-
* @param {string} resourceTypeId Id of the resource type
|
|
4539
|
-
* @param {*} [options] Override http request option.
|
|
4540
|
-
* @throws {RequiredError}
|
|
4541
|
-
*/
|
|
4542
|
-
projectQuota: (id, resourceTypeId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4543
|
-
// verify required parameter 'id' is not null or undefined
|
|
4544
|
-
assertParamExists$5('projectQuota', 'id', id);
|
|
4545
|
-
// verify required parameter 'resourceTypeId' is not null or undefined
|
|
4546
|
-
assertParamExists$5('projectQuota', 'resourceTypeId', resourceTypeId);
|
|
4547
|
-
const localVarPath = `/Project/{id}/quota/{resourceTypeId}`
|
|
4548
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
4549
|
-
.replace(`{${"resourceTypeId"}}`, encodeURIComponent(String(resourceTypeId)));
|
|
4550
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4551
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$6);
|
|
4552
|
-
let baseOptions;
|
|
4553
|
-
if (configuration) {
|
|
4554
|
-
baseOptions = configuration.baseOptions;
|
|
4555
|
-
}
|
|
4556
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4557
|
-
const localVarHeaderParameter = {};
|
|
4558
|
-
const localVarQueryParameter = {};
|
|
4559
|
-
// authentication JWT token required
|
|
4560
|
-
yield setApiKeyToObject$6(localVarHeaderParameter, "Authorization", configuration);
|
|
4561
|
-
setSearchParams$6(localVarUrlObj, localVarQueryParameter, options.query);
|
|
4562
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4563
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4564
|
-
return {
|
|
4565
|
-
url: toPathString$6(localVarUrlObj),
|
|
4566
|
-
options: localVarRequestOptions,
|
|
4567
|
-
};
|
|
4568
|
-
}),
|
|
4569
|
-
/**
|
|
4570
|
-
*
|
|
4571
|
-
* @summary Retrieves the quota for the selected project.
|
|
4572
|
-
* @param {string} id Id of the project
|
|
4573
|
-
* @param {*} [options] Override http request option.
|
|
4574
|
-
* @throws {RequiredError}
|
|
4575
|
-
*/
|
|
4576
|
-
projectQuotas: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4577
|
-
// verify required parameter 'id' is not null or undefined
|
|
4578
|
-
assertParamExists$5('projectQuotas', 'id', id);
|
|
4579
|
-
const localVarPath = `/Project/{id}/quota/-/all`
|
|
4580
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4581
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4582
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$6);
|
|
4259
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$5);
|
|
4583
4260
|
let baseOptions;
|
|
4584
4261
|
if (configuration) {
|
|
4585
4262
|
baseOptions = configuration.baseOptions;
|
|
@@ -4588,29 +4265,29 @@
|
|
|
4588
4265
|
const localVarHeaderParameter = {};
|
|
4589
4266
|
const localVarQueryParameter = {};
|
|
4590
4267
|
// authentication JWT token required
|
|
4591
|
-
yield setApiKeyToObject$
|
|
4592
|
-
setSearchParams$
|
|
4268
|
+
yield setApiKeyToObject$5(localVarHeaderParameter, "Authorization", configuration);
|
|
4269
|
+
setSearchParams$5(localVarUrlObj, localVarQueryParameter, options.query);
|
|
4593
4270
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4594
4271
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4595
4272
|
return {
|
|
4596
|
-
url: toPathString$
|
|
4273
|
+
url: toPathString$5(localVarUrlObj),
|
|
4597
4274
|
options: localVarRequestOptions,
|
|
4598
4275
|
};
|
|
4599
4276
|
}),
|
|
4600
4277
|
/**
|
|
4601
4278
|
*
|
|
4602
|
-
* @summary
|
|
4279
|
+
* @summary Resolves a project invitation for the current user.
|
|
4603
4280
|
* @param {string} invitationToken Token for a project invitation stored inside the URL under \".../?invitationToken={token}\"
|
|
4604
4281
|
* @param {*} [options] Override http request option.
|
|
4605
4282
|
* @throws {RequiredError}
|
|
4606
4283
|
*/
|
|
4607
4284
|
projectResolveInvitation: (invitationToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4608
4285
|
// verify required parameter 'invitationToken' is not null or undefined
|
|
4609
|
-
assertParamExists$
|
|
4286
|
+
assertParamExists$4('projectResolveInvitation', 'invitationToken', invitationToken);
|
|
4610
4287
|
const localVarPath = `/Project/invitation/resolve/{invitationToken}`
|
|
4611
4288
|
.replace(`{${"invitationToken"}}`, encodeURIComponent(String(invitationToken)));
|
|
4612
4289
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4613
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
4290
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$5);
|
|
4614
4291
|
let baseOptions;
|
|
4615
4292
|
if (configuration) {
|
|
4616
4293
|
baseOptions = configuration.baseOptions;
|
|
@@ -4619,28 +4296,28 @@
|
|
|
4619
4296
|
const localVarHeaderParameter = {};
|
|
4620
4297
|
const localVarQueryParameter = {};
|
|
4621
4298
|
// authentication JWT token required
|
|
4622
|
-
yield setApiKeyToObject$
|
|
4623
|
-
setSearchParams$
|
|
4299
|
+
yield setApiKeyToObject$5(localVarHeaderParameter, "Authorization", configuration);
|
|
4300
|
+
setSearchParams$5(localVarUrlObj, localVarQueryParameter, options.query);
|
|
4624
4301
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4625
4302
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4626
4303
|
return {
|
|
4627
|
-
url: toPathString$
|
|
4304
|
+
url: toPathString$5(localVarUrlObj),
|
|
4628
4305
|
options: localVarRequestOptions,
|
|
4629
4306
|
};
|
|
4630
4307
|
}),
|
|
4631
4308
|
/**
|
|
4632
4309
|
*
|
|
4633
|
-
* @summary
|
|
4310
|
+
* @summary Creates and sends a project invitation to a specified email.
|
|
4634
4311
|
* @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation. The invitation token is stored inside the URL under \".../?invitationToken={token}\".
|
|
4635
4312
|
* @param {*} [options] Override http request option.
|
|
4636
4313
|
* @throws {RequiredError}
|
|
4637
4314
|
*/
|
|
4638
4315
|
projectSendInvitation: (sendInvitationObject, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4639
4316
|
// verify required parameter 'sendInvitationObject' is not null or undefined
|
|
4640
|
-
assertParamExists$
|
|
4317
|
+
assertParamExists$4('projectSendInvitation', 'sendInvitationObject', sendInvitationObject);
|
|
4641
4318
|
const localVarPath = `/Project/invitation`;
|
|
4642
4319
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4643
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
4320
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$5);
|
|
4644
4321
|
let baseOptions;
|
|
4645
4322
|
if (configuration) {
|
|
4646
4323
|
baseOptions = configuration.baseOptions;
|
|
@@ -4649,14 +4326,14 @@
|
|
|
4649
4326
|
const localVarHeaderParameter = {};
|
|
4650
4327
|
const localVarQueryParameter = {};
|
|
4651
4328
|
// authentication JWT token required
|
|
4652
|
-
yield setApiKeyToObject$
|
|
4329
|
+
yield setApiKeyToObject$5(localVarHeaderParameter, "Authorization", configuration);
|
|
4653
4330
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4654
|
-
setSearchParams$
|
|
4331
|
+
setSearchParams$5(localVarUrlObj, localVarQueryParameter, options.query);
|
|
4655
4332
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4656
4333
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4657
|
-
localVarRequestOptions.data = serializeDataIfNeeded$
|
|
4334
|
+
localVarRequestOptions.data = serializeDataIfNeeded$3(sendInvitationObject, localVarRequestOptions, configuration);
|
|
4658
4335
|
return {
|
|
4659
|
-
url: toPathString$
|
|
4336
|
+
url: toPathString$5(localVarUrlObj),
|
|
4660
4337
|
options: localVarRequestOptions,
|
|
4661
4338
|
};
|
|
4662
4339
|
}),
|
|
@@ -4669,10 +4346,10 @@
|
|
|
4669
4346
|
*/
|
|
4670
4347
|
projectStore: (projectObject, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4671
4348
|
// verify required parameter 'projectObject' is not null or undefined
|
|
4672
|
-
assertParamExists$
|
|
4349
|
+
assertParamExists$4('projectStore', 'projectObject', projectObject);
|
|
4673
4350
|
const localVarPath = `/Project`;
|
|
4674
4351
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4675
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
4352
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$5);
|
|
4676
4353
|
let baseOptions;
|
|
4677
4354
|
if (configuration) {
|
|
4678
4355
|
baseOptions = configuration.baseOptions;
|
|
@@ -4681,20 +4358,20 @@
|
|
|
4681
4358
|
const localVarHeaderParameter = {};
|
|
4682
4359
|
const localVarQueryParameter = {};
|
|
4683
4360
|
// authentication JWT token required
|
|
4684
|
-
yield setApiKeyToObject$
|
|
4361
|
+
yield setApiKeyToObject$5(localVarHeaderParameter, "Authorization", configuration);
|
|
4685
4362
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4686
|
-
setSearchParams$
|
|
4363
|
+
setSearchParams$5(localVarUrlObj, localVarQueryParameter, options.query);
|
|
4687
4364
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4688
4365
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4689
|
-
localVarRequestOptions.data = serializeDataIfNeeded$
|
|
4366
|
+
localVarRequestOptions.data = serializeDataIfNeeded$3(projectObject, localVarRequestOptions, configuration);
|
|
4690
4367
|
return {
|
|
4691
|
-
url: toPathString$
|
|
4368
|
+
url: toPathString$5(localVarUrlObj),
|
|
4692
4369
|
options: localVarRequestOptions,
|
|
4693
4370
|
};
|
|
4694
4371
|
}),
|
|
4695
4372
|
/**
|
|
4696
4373
|
*
|
|
4697
|
-
* @summary Updates
|
|
4374
|
+
* @summary Updates a project
|
|
4698
4375
|
* @param {string} id Id of the project
|
|
4699
4376
|
* @param {ProjectObject} projectObject A Project Object
|
|
4700
4377
|
* @param {*} [options] Override http request option.
|
|
@@ -4702,53 +4379,13 @@
|
|
|
4702
4379
|
*/
|
|
4703
4380
|
projectUpdate: (id, projectObject, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4704
4381
|
// verify required parameter 'id' is not null or undefined
|
|
4705
|
-
assertParamExists$
|
|
4382
|
+
assertParamExists$4('projectUpdate', 'id', id);
|
|
4706
4383
|
// verify required parameter 'projectObject' is not null or undefined
|
|
4707
|
-
assertParamExists$
|
|
4384
|
+
assertParamExists$4('projectUpdate', 'projectObject', projectObject);
|
|
4708
4385
|
const localVarPath = `/Project/{id}`
|
|
4709
4386
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4710
4387
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4711
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
4712
|
-
let baseOptions;
|
|
4713
|
-
if (configuration) {
|
|
4714
|
-
baseOptions = configuration.baseOptions;
|
|
4715
|
-
}
|
|
4716
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4717
|
-
const localVarHeaderParameter = {};
|
|
4718
|
-
const localVarQueryParameter = {};
|
|
4719
|
-
// authentication JWT token required
|
|
4720
|
-
yield setApiKeyToObject$6(localVarHeaderParameter, "Authorization", configuration);
|
|
4721
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4722
|
-
setSearchParams$6(localVarUrlObj, localVarQueryParameter, options.query);
|
|
4723
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4724
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4725
|
-
localVarRequestOptions.data = serializeDataIfNeeded$4(projectObject, localVarRequestOptions, configuration);
|
|
4726
|
-
return {
|
|
4727
|
-
url: toPathString$6(localVarUrlObj),
|
|
4728
|
-
options: localVarRequestOptions,
|
|
4729
|
-
};
|
|
4730
|
-
}),
|
|
4731
|
-
/**
|
|
4732
|
-
*
|
|
4733
|
-
* @summary Update the project quota.
|
|
4734
|
-
* @param {string} id Id of the project.
|
|
4735
|
-
* @param {string} resourceTypeId Id of the resource.
|
|
4736
|
-
* @param {UpdateProjectQuotaObject} updateProjectQuotaObject Object containing the update values.
|
|
4737
|
-
* @param {*} [options] Override http request option.
|
|
4738
|
-
* @throws {RequiredError}
|
|
4739
|
-
*/
|
|
4740
|
-
projectUpdateQuota: (id, resourceTypeId, updateProjectQuotaObject, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4741
|
-
// verify required parameter 'id' is not null or undefined
|
|
4742
|
-
assertParamExists$5('projectUpdateQuota', 'id', id);
|
|
4743
|
-
// verify required parameter 'resourceTypeId' is not null or undefined
|
|
4744
|
-
assertParamExists$5('projectUpdateQuota', 'resourceTypeId', resourceTypeId);
|
|
4745
|
-
// verify required parameter 'updateProjectQuotaObject' is not null or undefined
|
|
4746
|
-
assertParamExists$5('projectUpdateQuota', 'updateProjectQuotaObject', updateProjectQuotaObject);
|
|
4747
|
-
const localVarPath = `/Project/{id}/quota/{resourceTypeId}`
|
|
4748
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
4749
|
-
.replace(`{${"resourceTypeId"}}`, encodeURIComponent(String(resourceTypeId)));
|
|
4750
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4751
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$6);
|
|
4388
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$5);
|
|
4752
4389
|
let baseOptions;
|
|
4753
4390
|
if (configuration) {
|
|
4754
4391
|
baseOptions = configuration.baseOptions;
|
|
@@ -4757,14 +4394,14 @@
|
|
|
4757
4394
|
const localVarHeaderParameter = {};
|
|
4758
4395
|
const localVarQueryParameter = {};
|
|
4759
4396
|
// authentication JWT token required
|
|
4760
|
-
yield setApiKeyToObject$
|
|
4397
|
+
yield setApiKeyToObject$5(localVarHeaderParameter, "Authorization", configuration);
|
|
4761
4398
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4762
|
-
setSearchParams$
|
|
4399
|
+
setSearchParams$5(localVarUrlObj, localVarQueryParameter, options.query);
|
|
4763
4400
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4764
4401
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4765
|
-
localVarRequestOptions.data = serializeDataIfNeeded$
|
|
4402
|
+
localVarRequestOptions.data = serializeDataIfNeeded$3(projectObject, localVarRequestOptions, configuration);
|
|
4766
4403
|
return {
|
|
4767
|
-
url: toPathString$
|
|
4404
|
+
url: toPathString$5(localVarUrlObj),
|
|
4768
4405
|
options: localVarRequestOptions,
|
|
4769
4406
|
};
|
|
4770
4407
|
}),
|
|
@@ -4787,12 +4424,12 @@
|
|
|
4787
4424
|
projectCreateApplicationProfile(projectId, options) {
|
|
4788
4425
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4789
4426
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectCreateApplicationProfile(projectId, options);
|
|
4790
|
-
return createRequestFunction$
|
|
4427
|
+
return createRequestFunction$5(localVarAxiosArgs, axios, BASE_PATH$5, configuration);
|
|
4791
4428
|
});
|
|
4792
4429
|
},
|
|
4793
4430
|
/**
|
|
4794
4431
|
*
|
|
4795
|
-
* @summary Deletes
|
|
4432
|
+
* @summary Deletes a project
|
|
4796
4433
|
* @param {string} id Id of the project
|
|
4797
4434
|
* @param {*} [options] Override http request option.
|
|
4798
4435
|
* @throws {RequiredError}
|
|
@@ -4800,7 +4437,7 @@
|
|
|
4800
4437
|
projectDelete(id, options) {
|
|
4801
4438
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4802
4439
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectDelete(id, options);
|
|
4803
|
-
return createRequestFunction$
|
|
4440
|
+
return createRequestFunction$5(localVarAxiosArgs, axios, BASE_PATH$5, configuration);
|
|
4804
4441
|
});
|
|
4805
4442
|
},
|
|
4806
4443
|
/**
|
|
@@ -4813,7 +4450,7 @@
|
|
|
4813
4450
|
projectDeleteInvitation(invitationId, options) {
|
|
4814
4451
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4815
4452
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectDeleteInvitation(invitationId, options);
|
|
4816
|
-
return createRequestFunction$
|
|
4453
|
+
return createRequestFunction$5(localVarAxiosArgs, axios, BASE_PATH$5, configuration);
|
|
4817
4454
|
});
|
|
4818
4455
|
},
|
|
4819
4456
|
/**
|
|
@@ -4826,7 +4463,7 @@
|
|
|
4826
4463
|
projectGet(id, options) {
|
|
4827
4464
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4828
4465
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectGet(id, options);
|
|
4829
|
-
return createRequestFunction$
|
|
4466
|
+
return createRequestFunction$5(localVarAxiosArgs, axios, BASE_PATH$5, configuration);
|
|
4830
4467
|
});
|
|
4831
4468
|
},
|
|
4832
4469
|
/**
|
|
@@ -4839,26 +4476,12 @@
|
|
|
4839
4476
|
projectGetBySlug(slug, options) {
|
|
4840
4477
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4841
4478
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectGetBySlug(slug, options);
|
|
4842
|
-
return createRequestFunction$
|
|
4843
|
-
});
|
|
4844
|
-
},
|
|
4845
|
-
/**
|
|
4846
|
-
*
|
|
4847
|
-
* @summary Get the max quota for a resource type.
|
|
4848
|
-
* @param {string} id Id of the project.
|
|
4849
|
-
* @param {string} resourceTypeId Id of the resource
|
|
4850
|
-
* @param {*} [options] Override http request option.
|
|
4851
|
-
* @throws {RequiredError}
|
|
4852
|
-
*/
|
|
4853
|
-
projectGetQuotaMax(id, resourceTypeId, options) {
|
|
4854
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4855
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectGetQuotaMax(id, resourceTypeId, options);
|
|
4856
|
-
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
4479
|
+
return createRequestFunction$5(localVarAxiosArgs, axios, BASE_PATH$5, configuration);
|
|
4857
4480
|
});
|
|
4858
4481
|
},
|
|
4859
4482
|
/**
|
|
4860
4483
|
*
|
|
4861
|
-
* @summary Gets
|
|
4484
|
+
* @summary Gets all resources in a project
|
|
4862
4485
|
* @param {string} id Id of the project
|
|
4863
4486
|
* @param {*} [options] Override http request option.
|
|
4864
4487
|
* @throws {RequiredError}
|
|
@@ -4866,7 +4489,7 @@
|
|
|
4866
4489
|
projectGetResources(id, options) {
|
|
4867
4490
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4868
4491
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectGetResources(id, options);
|
|
4869
|
-
return createRequestFunction$
|
|
4492
|
+
return createRequestFunction$5(localVarAxiosArgs, axios, BASE_PATH$5, configuration);
|
|
4870
4493
|
});
|
|
4871
4494
|
},
|
|
4872
4495
|
/**
|
|
@@ -4878,7 +4501,7 @@
|
|
|
4878
4501
|
projectGetTopLevelProjects(options) {
|
|
4879
4502
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4880
4503
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectGetTopLevelProjects(options);
|
|
4881
|
-
return createRequestFunction$
|
|
4504
|
+
return createRequestFunction$5(localVarAxiosArgs, axios, BASE_PATH$5, configuration);
|
|
4882
4505
|
});
|
|
4883
4506
|
},
|
|
4884
4507
|
/**
|
|
@@ -4890,7 +4513,7 @@
|
|
|
4890
4513
|
projectIndex(options) {
|
|
4891
4514
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4892
4515
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectIndex(options);
|
|
4893
|
-
return createRequestFunction$
|
|
4516
|
+
return createRequestFunction$5(localVarAxiosArgs, axios, BASE_PATH$5, configuration);
|
|
4894
4517
|
});
|
|
4895
4518
|
},
|
|
4896
4519
|
/**
|
|
@@ -4903,39 +4526,12 @@
|
|
|
4903
4526
|
projectListInvitations(projectId, options) {
|
|
4904
4527
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4905
4528
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectListInvitations(projectId, options);
|
|
4906
|
-
return createRequestFunction$
|
|
4907
|
-
});
|
|
4908
|
-
},
|
|
4909
|
-
/**
|
|
4910
|
-
*
|
|
4911
|
-
* @summary Retrieves the quota for the selected project and resource Type.
|
|
4912
|
-
* @param {string} id Id of the project
|
|
4913
|
-
* @param {string} resourceTypeId Id of the resource type
|
|
4914
|
-
* @param {*} [options] Override http request option.
|
|
4915
|
-
* @throws {RequiredError}
|
|
4916
|
-
*/
|
|
4917
|
-
projectQuota(id, resourceTypeId, options) {
|
|
4918
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4919
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectQuota(id, resourceTypeId, options);
|
|
4920
|
-
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
4921
|
-
});
|
|
4922
|
-
},
|
|
4923
|
-
/**
|
|
4924
|
-
*
|
|
4925
|
-
* @summary Retrieves the quota for the selected project.
|
|
4926
|
-
* @param {string} id Id of the project
|
|
4927
|
-
* @param {*} [options] Override http request option.
|
|
4928
|
-
* @throws {RequiredError}
|
|
4929
|
-
*/
|
|
4930
|
-
projectQuotas(id, options) {
|
|
4931
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4932
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectQuotas(id, options);
|
|
4933
|
-
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
4529
|
+
return createRequestFunction$5(localVarAxiosArgs, axios, BASE_PATH$5, configuration);
|
|
4934
4530
|
});
|
|
4935
4531
|
},
|
|
4936
4532
|
/**
|
|
4937
4533
|
*
|
|
4938
|
-
* @summary
|
|
4534
|
+
* @summary Resolves a project invitation for the current user.
|
|
4939
4535
|
* @param {string} invitationToken Token for a project invitation stored inside the URL under \".../?invitationToken={token}\"
|
|
4940
4536
|
* @param {*} [options] Override http request option.
|
|
4941
4537
|
* @throws {RequiredError}
|
|
@@ -4943,12 +4539,12 @@
|
|
|
4943
4539
|
projectResolveInvitation(invitationToken, options) {
|
|
4944
4540
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4945
4541
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectResolveInvitation(invitationToken, options);
|
|
4946
|
-
return createRequestFunction$
|
|
4542
|
+
return createRequestFunction$5(localVarAxiosArgs, axios, BASE_PATH$5, configuration);
|
|
4947
4543
|
});
|
|
4948
4544
|
},
|
|
4949
4545
|
/**
|
|
4950
4546
|
*
|
|
4951
|
-
* @summary
|
|
4547
|
+
* @summary Creates and sends a project invitation to a specified email.
|
|
4952
4548
|
* @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation. The invitation token is stored inside the URL under \".../?invitationToken={token}\".
|
|
4953
4549
|
* @param {*} [options] Override http request option.
|
|
4954
4550
|
* @throws {RequiredError}
|
|
@@ -4956,7 +4552,7 @@
|
|
|
4956
4552
|
projectSendInvitation(sendInvitationObject, options) {
|
|
4957
4553
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4958
4554
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectSendInvitation(sendInvitationObject, options);
|
|
4959
|
-
return createRequestFunction$
|
|
4555
|
+
return createRequestFunction$5(localVarAxiosArgs, axios, BASE_PATH$5, configuration);
|
|
4960
4556
|
});
|
|
4961
4557
|
},
|
|
4962
4558
|
/**
|
|
@@ -4969,12 +4565,12 @@
|
|
|
4969
4565
|
projectStore(projectObject, options) {
|
|
4970
4566
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4971
4567
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectStore(projectObject, options);
|
|
4972
|
-
return createRequestFunction$
|
|
4568
|
+
return createRequestFunction$5(localVarAxiosArgs, axios, BASE_PATH$5, configuration);
|
|
4973
4569
|
});
|
|
4974
4570
|
},
|
|
4975
4571
|
/**
|
|
4976
4572
|
*
|
|
4977
|
-
* @summary Updates
|
|
4573
|
+
* @summary Updates a project
|
|
4978
4574
|
* @param {string} id Id of the project
|
|
4979
4575
|
* @param {ProjectObject} projectObject A Project Object
|
|
4980
4576
|
* @param {*} [options] Override http request option.
|
|
@@ -4983,22 +4579,7 @@
|
|
|
4983
4579
|
projectUpdate(id, projectObject, options) {
|
|
4984
4580
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4985
4581
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectUpdate(id, projectObject, options);
|
|
4986
|
-
return createRequestFunction$
|
|
4987
|
-
});
|
|
4988
|
-
},
|
|
4989
|
-
/**
|
|
4990
|
-
*
|
|
4991
|
-
* @summary Update the project quota.
|
|
4992
|
-
* @param {string} id Id of the project.
|
|
4993
|
-
* @param {string} resourceTypeId Id of the resource.
|
|
4994
|
-
* @param {UpdateProjectQuotaObject} updateProjectQuotaObject Object containing the update values.
|
|
4995
|
-
* @param {*} [options] Override http request option.
|
|
4996
|
-
* @throws {RequiredError}
|
|
4997
|
-
*/
|
|
4998
|
-
projectUpdateQuota(id, resourceTypeId, updateProjectQuotaObject, options) {
|
|
4999
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5000
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectUpdateQuota(id, resourceTypeId, updateProjectQuotaObject, options);
|
|
5001
|
-
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
4582
|
+
return createRequestFunction$5(localVarAxiosArgs, axios, BASE_PATH$5, configuration);
|
|
5002
4583
|
});
|
|
5003
4584
|
},
|
|
5004
4585
|
};
|
|
@@ -5022,7 +4603,7 @@
|
|
|
5022
4603
|
},
|
|
5023
4604
|
/**
|
|
5024
4605
|
*
|
|
5025
|
-
* @summary Deletes
|
|
4606
|
+
* @summary Deletes a project
|
|
5026
4607
|
* @param {string} id Id of the project
|
|
5027
4608
|
* @param {*} [options] Override http request option.
|
|
5028
4609
|
* @throws {RequiredError}
|
|
@@ -5062,18 +4643,7 @@
|
|
|
5062
4643
|
},
|
|
5063
4644
|
/**
|
|
5064
4645
|
*
|
|
5065
|
-
* @summary
|
|
5066
|
-
* @param {string} id Id of the project.
|
|
5067
|
-
* @param {string} resourceTypeId Id of the resource
|
|
5068
|
-
* @param {*} [options] Override http request option.
|
|
5069
|
-
* @throws {RequiredError}
|
|
5070
|
-
*/
|
|
5071
|
-
projectGetQuotaMax(id, resourceTypeId, options) {
|
|
5072
|
-
return localVarFp.projectGetQuotaMax(id, resourceTypeId, options).then((request) => request(axios, basePath));
|
|
5073
|
-
},
|
|
5074
|
-
/**
|
|
5075
|
-
*
|
|
5076
|
-
* @summary Gets the resources
|
|
4646
|
+
* @summary Gets all resources in a project
|
|
5077
4647
|
* @param {string} id Id of the project
|
|
5078
4648
|
* @param {*} [options] Override http request option.
|
|
5079
4649
|
* @throws {RequiredError}
|
|
@@ -5111,28 +4681,7 @@
|
|
|
5111
4681
|
},
|
|
5112
4682
|
/**
|
|
5113
4683
|
*
|
|
5114
|
-
* @summary
|
|
5115
|
-
* @param {string} id Id of the project
|
|
5116
|
-
* @param {string} resourceTypeId Id of the resource type
|
|
5117
|
-
* @param {*} [options] Override http request option.
|
|
5118
|
-
* @throws {RequiredError}
|
|
5119
|
-
*/
|
|
5120
|
-
projectQuota(id, resourceTypeId, options) {
|
|
5121
|
-
return localVarFp.projectQuota(id, resourceTypeId, options).then((request) => request(axios, basePath));
|
|
5122
|
-
},
|
|
5123
|
-
/**
|
|
5124
|
-
*
|
|
5125
|
-
* @summary Retrieves the quota for the selected project.
|
|
5126
|
-
* @param {string} id Id of the project
|
|
5127
|
-
* @param {*} [options] Override http request option.
|
|
5128
|
-
* @throws {RequiredError}
|
|
5129
|
-
*/
|
|
5130
|
-
projectQuotas(id, options) {
|
|
5131
|
-
return localVarFp.projectQuotas(id, options).then((request) => request(axios, basePath));
|
|
5132
|
-
},
|
|
5133
|
-
/**
|
|
5134
|
-
*
|
|
5135
|
-
* @summary Resolve a project invitation for the current user.
|
|
4684
|
+
* @summary Resolves a project invitation for the current user.
|
|
5136
4685
|
* @param {string} invitationToken Token for a project invitation stored inside the URL under \".../?invitationToken={token}\"
|
|
5137
4686
|
* @param {*} [options] Override http request option.
|
|
5138
4687
|
* @throws {RequiredError}
|
|
@@ -5142,7 +4691,7 @@
|
|
|
5142
4691
|
},
|
|
5143
4692
|
/**
|
|
5144
4693
|
*
|
|
5145
|
-
* @summary
|
|
4694
|
+
* @summary Creates and sends a project invitation to a specified email.
|
|
5146
4695
|
* @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation. The invitation token is stored inside the URL under \".../?invitationToken={token}\".
|
|
5147
4696
|
* @param {*} [options] Override http request option.
|
|
5148
4697
|
* @throws {RequiredError}
|
|
@@ -5162,7 +4711,7 @@
|
|
|
5162
4711
|
},
|
|
5163
4712
|
/**
|
|
5164
4713
|
*
|
|
5165
|
-
* @summary Updates
|
|
4714
|
+
* @summary Updates a project
|
|
5166
4715
|
* @param {string} id Id of the project
|
|
5167
4716
|
* @param {ProjectObject} projectObject A Project Object
|
|
5168
4717
|
* @param {*} [options] Override http request option.
|
|
@@ -5171,17 +4720,212 @@
|
|
|
5171
4720
|
projectUpdate(id, projectObject, options) {
|
|
5172
4721
|
return localVarFp.projectUpdate(id, projectObject, options).then((request) => request(axios, basePath));
|
|
5173
4722
|
},
|
|
4723
|
+
};
|
|
4724
|
+
};
|
|
4725
|
+
/**
|
|
4726
|
+
* ProjectQuotaApi - axios parameter creator
|
|
4727
|
+
* @export
|
|
4728
|
+
*/
|
|
4729
|
+
const ProjectQuotaApiAxiosParamCreator = function (configuration) {
|
|
4730
|
+
return {
|
|
4731
|
+
/**
|
|
4732
|
+
*
|
|
4733
|
+
* @summary Retrieves the project quota in GiB of a resource type for the selected project together with all individual resources of this resource type.
|
|
4734
|
+
* @param {string} id Id of the project
|
|
4735
|
+
* @param {string} resourceTypeId Id of the resource type
|
|
4736
|
+
* @param {*} [options] Override http request option.
|
|
4737
|
+
* @throws {RequiredError}
|
|
4738
|
+
*/
|
|
4739
|
+
projectQuotaQuota: (id, resourceTypeId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4740
|
+
// verify required parameter 'id' is not null or undefined
|
|
4741
|
+
assertParamExists$4('projectQuotaQuota', 'id', id);
|
|
4742
|
+
// verify required parameter 'resourceTypeId' is not null or undefined
|
|
4743
|
+
assertParamExists$4('projectQuotaQuota', 'resourceTypeId', resourceTypeId);
|
|
4744
|
+
const localVarPath = `/ProjectQuota/{id}/{resourceTypeId}`
|
|
4745
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
4746
|
+
.replace(`{${"resourceTypeId"}}`, encodeURIComponent(String(resourceTypeId)));
|
|
4747
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4748
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$5);
|
|
4749
|
+
let baseOptions;
|
|
4750
|
+
if (configuration) {
|
|
4751
|
+
baseOptions = configuration.baseOptions;
|
|
4752
|
+
}
|
|
4753
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4754
|
+
const localVarHeaderParameter = {};
|
|
4755
|
+
const localVarQueryParameter = {};
|
|
4756
|
+
// authentication JWT token required
|
|
4757
|
+
yield setApiKeyToObject$5(localVarHeaderParameter, "Authorization", configuration);
|
|
4758
|
+
setSearchParams$5(localVarUrlObj, localVarQueryParameter, options.query);
|
|
4759
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4760
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4761
|
+
return {
|
|
4762
|
+
url: toPathString$5(localVarUrlObj),
|
|
4763
|
+
options: localVarRequestOptions,
|
|
4764
|
+
};
|
|
4765
|
+
}),
|
|
4766
|
+
/**
|
|
4767
|
+
*
|
|
4768
|
+
* @summary Retrieves all project quotas in GiB grouped by resource type for the selected project.
|
|
4769
|
+
* @param {string} id Id of the project
|
|
4770
|
+
* @param {*} [options] Override http request option.
|
|
4771
|
+
* @throws {RequiredError}
|
|
4772
|
+
*/
|
|
4773
|
+
projectQuotaQuotas: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4774
|
+
// verify required parameter 'id' is not null or undefined
|
|
4775
|
+
assertParamExists$4('projectQuotaQuotas', 'id', id);
|
|
4776
|
+
const localVarPath = `/ProjectQuota/{id}/-/all`
|
|
4777
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4778
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4779
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$5);
|
|
4780
|
+
let baseOptions;
|
|
4781
|
+
if (configuration) {
|
|
4782
|
+
baseOptions = configuration.baseOptions;
|
|
4783
|
+
}
|
|
4784
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4785
|
+
const localVarHeaderParameter = {};
|
|
4786
|
+
const localVarQueryParameter = {};
|
|
4787
|
+
// authentication JWT token required
|
|
4788
|
+
yield setApiKeyToObject$5(localVarHeaderParameter, "Authorization", configuration);
|
|
4789
|
+
setSearchParams$5(localVarUrlObj, localVarQueryParameter, options.query);
|
|
4790
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4791
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4792
|
+
return {
|
|
4793
|
+
url: toPathString$5(localVarUrlObj),
|
|
4794
|
+
options: localVarRequestOptions,
|
|
4795
|
+
};
|
|
4796
|
+
}),
|
|
4797
|
+
/**
|
|
4798
|
+
*
|
|
4799
|
+
* @summary Updates the reserved project quota of a resource type for a selected poject. Quota value in GiB.
|
|
4800
|
+
* @param {string} id Id of the project
|
|
4801
|
+
* @param {string} resourceTypeId Id of the resource type
|
|
4802
|
+
* @param {UpdateProjectQuotaObject} updateProjectQuotaObject Object containing the update values.
|
|
4803
|
+
* @param {*} [options] Override http request option.
|
|
4804
|
+
* @throws {RequiredError}
|
|
4805
|
+
*/
|
|
4806
|
+
projectQuotaUpdateQuota: (id, resourceTypeId, updateProjectQuotaObject, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4807
|
+
// verify required parameter 'id' is not null or undefined
|
|
4808
|
+
assertParamExists$4('projectQuotaUpdateQuota', 'id', id);
|
|
4809
|
+
// verify required parameter 'resourceTypeId' is not null or undefined
|
|
4810
|
+
assertParamExists$4('projectQuotaUpdateQuota', 'resourceTypeId', resourceTypeId);
|
|
4811
|
+
// verify required parameter 'updateProjectQuotaObject' is not null or undefined
|
|
4812
|
+
assertParamExists$4('projectQuotaUpdateQuota', 'updateProjectQuotaObject', updateProjectQuotaObject);
|
|
4813
|
+
const localVarPath = `/ProjectQuota/{id}/{resourceTypeId}`
|
|
4814
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
4815
|
+
.replace(`{${"resourceTypeId"}}`, encodeURIComponent(String(resourceTypeId)));
|
|
4816
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4817
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$5);
|
|
4818
|
+
let baseOptions;
|
|
4819
|
+
if (configuration) {
|
|
4820
|
+
baseOptions = configuration.baseOptions;
|
|
4821
|
+
}
|
|
4822
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4823
|
+
const localVarHeaderParameter = {};
|
|
4824
|
+
const localVarQueryParameter = {};
|
|
4825
|
+
// authentication JWT token required
|
|
4826
|
+
yield setApiKeyToObject$5(localVarHeaderParameter, "Authorization", configuration);
|
|
4827
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4828
|
+
setSearchParams$5(localVarUrlObj, localVarQueryParameter, options.query);
|
|
4829
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4830
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4831
|
+
localVarRequestOptions.data = serializeDataIfNeeded$3(updateProjectQuotaObject, localVarRequestOptions, configuration);
|
|
4832
|
+
return {
|
|
4833
|
+
url: toPathString$5(localVarUrlObj),
|
|
4834
|
+
options: localVarRequestOptions,
|
|
4835
|
+
};
|
|
4836
|
+
}),
|
|
4837
|
+
};
|
|
4838
|
+
};
|
|
4839
|
+
/**
|
|
4840
|
+
* ProjectQuotaApi - functional programming interface
|
|
4841
|
+
* @export
|
|
4842
|
+
*/
|
|
4843
|
+
const ProjectQuotaApiFp = function (configuration) {
|
|
4844
|
+
const localVarAxiosParamCreator = ProjectQuotaApiAxiosParamCreator(configuration);
|
|
4845
|
+
return {
|
|
4846
|
+
/**
|
|
4847
|
+
*
|
|
4848
|
+
* @summary Retrieves the project quota in GiB of a resource type for the selected project together with all individual resources of this resource type.
|
|
4849
|
+
* @param {string} id Id of the project
|
|
4850
|
+
* @param {string} resourceTypeId Id of the resource type
|
|
4851
|
+
* @param {*} [options] Override http request option.
|
|
4852
|
+
* @throws {RequiredError}
|
|
4853
|
+
*/
|
|
4854
|
+
projectQuotaQuota(id, resourceTypeId, options) {
|
|
4855
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4856
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectQuotaQuota(id, resourceTypeId, options);
|
|
4857
|
+
return createRequestFunction$5(localVarAxiosArgs, axios, BASE_PATH$5, configuration);
|
|
4858
|
+
});
|
|
4859
|
+
},
|
|
4860
|
+
/**
|
|
4861
|
+
*
|
|
4862
|
+
* @summary Retrieves all project quotas in GiB grouped by resource type for the selected project.
|
|
4863
|
+
* @param {string} id Id of the project
|
|
4864
|
+
* @param {*} [options] Override http request option.
|
|
4865
|
+
* @throws {RequiredError}
|
|
4866
|
+
*/
|
|
4867
|
+
projectQuotaQuotas(id, options) {
|
|
4868
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4869
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectQuotaQuotas(id, options);
|
|
4870
|
+
return createRequestFunction$5(localVarAxiosArgs, axios, BASE_PATH$5, configuration);
|
|
4871
|
+
});
|
|
4872
|
+
},
|
|
4873
|
+
/**
|
|
4874
|
+
*
|
|
4875
|
+
* @summary Updates the reserved project quota of a resource type for a selected poject. Quota value in GiB.
|
|
4876
|
+
* @param {string} id Id of the project
|
|
4877
|
+
* @param {string} resourceTypeId Id of the resource type
|
|
4878
|
+
* @param {UpdateProjectQuotaObject} updateProjectQuotaObject Object containing the update values.
|
|
4879
|
+
* @param {*} [options] Override http request option.
|
|
4880
|
+
* @throws {RequiredError}
|
|
4881
|
+
*/
|
|
4882
|
+
projectQuotaUpdateQuota(id, resourceTypeId, updateProjectQuotaObject, options) {
|
|
4883
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4884
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectQuotaUpdateQuota(id, resourceTypeId, updateProjectQuotaObject, options);
|
|
4885
|
+
return createRequestFunction$5(localVarAxiosArgs, axios, BASE_PATH$5, configuration);
|
|
4886
|
+
});
|
|
4887
|
+
},
|
|
4888
|
+
};
|
|
4889
|
+
};
|
|
4890
|
+
/**
|
|
4891
|
+
* ProjectQuotaApi - factory interface
|
|
4892
|
+
* @export
|
|
4893
|
+
*/
|
|
4894
|
+
const ProjectQuotaApiFactory = function (configuration, basePath, axios) {
|
|
4895
|
+
const localVarFp = ProjectQuotaApiFp(configuration);
|
|
4896
|
+
return {
|
|
4897
|
+
/**
|
|
4898
|
+
*
|
|
4899
|
+
* @summary Retrieves the project quota in GiB of a resource type for the selected project together with all individual resources of this resource type.
|
|
4900
|
+
* @param {string} id Id of the project
|
|
4901
|
+
* @param {string} resourceTypeId Id of the resource type
|
|
4902
|
+
* @param {*} [options] Override http request option.
|
|
4903
|
+
* @throws {RequiredError}
|
|
4904
|
+
*/
|
|
4905
|
+
projectQuotaQuota(id, resourceTypeId, options) {
|
|
4906
|
+
return localVarFp.projectQuotaQuota(id, resourceTypeId, options).then((request) => request(axios, basePath));
|
|
4907
|
+
},
|
|
4908
|
+
/**
|
|
4909
|
+
*
|
|
4910
|
+
* @summary Retrieves all project quotas in GiB grouped by resource type for the selected project.
|
|
4911
|
+
* @param {string} id Id of the project
|
|
4912
|
+
* @param {*} [options] Override http request option.
|
|
4913
|
+
* @throws {RequiredError}
|
|
4914
|
+
*/
|
|
4915
|
+
projectQuotaQuotas(id, options) {
|
|
4916
|
+
return localVarFp.projectQuotaQuotas(id, options).then((request) => request(axios, basePath));
|
|
4917
|
+
},
|
|
5174
4918
|
/**
|
|
5175
4919
|
*
|
|
5176
|
-
* @summary
|
|
5177
|
-
* @param {string} id Id of the project
|
|
5178
|
-
* @param {string} resourceTypeId Id of the resource
|
|
4920
|
+
* @summary Updates the reserved project quota of a resource type for a selected poject. Quota value in GiB.
|
|
4921
|
+
* @param {string} id Id of the project
|
|
4922
|
+
* @param {string} resourceTypeId Id of the resource type
|
|
5179
4923
|
* @param {UpdateProjectQuotaObject} updateProjectQuotaObject Object containing the update values.
|
|
5180
4924
|
* @param {*} [options] Override http request option.
|
|
5181
4925
|
* @throws {RequiredError}
|
|
5182
4926
|
*/
|
|
5183
|
-
|
|
5184
|
-
return localVarFp.
|
|
4927
|
+
projectQuotaUpdateQuota(id, resourceTypeId, updateProjectQuotaObject, options) {
|
|
4928
|
+
return localVarFp.projectQuotaUpdateQuota(id, resourceTypeId, updateProjectQuotaObject, options).then((request) => request(axios, basePath));
|
|
5185
4929
|
},
|
|
5186
4930
|
};
|
|
5187
4931
|
};
|
|
@@ -5193,7 +4937,7 @@
|
|
|
5193
4937
|
return {
|
|
5194
4938
|
/**
|
|
5195
4939
|
*
|
|
5196
|
-
* @summary
|
|
4940
|
+
* @summary Deletes a user from a project
|
|
5197
4941
|
* @param {string} projectId Id of the project
|
|
5198
4942
|
* @param {string} userId Id of the user
|
|
5199
4943
|
* @param {string} roleId Id of the role
|
|
@@ -5202,17 +4946,17 @@
|
|
|
5202
4946
|
*/
|
|
5203
4947
|
projectRoleDelete: (projectId, userId, roleId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5204
4948
|
// verify required parameter 'projectId' is not null or undefined
|
|
5205
|
-
assertParamExists$
|
|
4949
|
+
assertParamExists$4('projectRoleDelete', 'projectId', projectId);
|
|
5206
4950
|
// verify required parameter 'userId' is not null or undefined
|
|
5207
|
-
assertParamExists$
|
|
4951
|
+
assertParamExists$4('projectRoleDelete', 'userId', userId);
|
|
5208
4952
|
// verify required parameter 'roleId' is not null or undefined
|
|
5209
|
-
assertParamExists$
|
|
4953
|
+
assertParamExists$4('projectRoleDelete', 'roleId', roleId);
|
|
5210
4954
|
const localVarPath = `/ProjectRole/project/{projectId}/user/{userId}/role/{roleId}`
|
|
5211
4955
|
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
|
|
5212
4956
|
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
5213
4957
|
.replace(`{${"roleId"}}`, encodeURIComponent(String(roleId)));
|
|
5214
4958
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5215
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
4959
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$5);
|
|
5216
4960
|
let baseOptions;
|
|
5217
4961
|
if (configuration) {
|
|
5218
4962
|
baseOptions = configuration.baseOptions;
|
|
@@ -5221,29 +4965,29 @@
|
|
|
5221
4965
|
const localVarHeaderParameter = {};
|
|
5222
4966
|
const localVarQueryParameter = {};
|
|
5223
4967
|
// authentication JWT token required
|
|
5224
|
-
yield setApiKeyToObject$
|
|
5225
|
-
setSearchParams$
|
|
4968
|
+
yield setApiKeyToObject$5(localVarHeaderParameter, "Authorization", configuration);
|
|
4969
|
+
setSearchParams$5(localVarUrlObj, localVarQueryParameter, options.query);
|
|
5226
4970
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5227
4971
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5228
4972
|
return {
|
|
5229
|
-
url: toPathString$
|
|
4973
|
+
url: toPathString$5(localVarUrlObj),
|
|
5230
4974
|
options: localVarRequestOptions,
|
|
5231
4975
|
};
|
|
5232
4976
|
}),
|
|
5233
4977
|
/**
|
|
5234
4978
|
*
|
|
5235
|
-
* @summary Deletes user from a project
|
|
4979
|
+
* @summary Deletes the current user from a project
|
|
5236
4980
|
* @param {string} projectId Id of the project
|
|
5237
4981
|
* @param {*} [options] Override http request option.
|
|
5238
4982
|
* @throws {RequiredError}
|
|
5239
4983
|
*/
|
|
5240
4984
|
projectRoleDelete2: (projectId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5241
4985
|
// verify required parameter 'projectId' is not null or undefined
|
|
5242
|
-
assertParamExists$
|
|
4986
|
+
assertParamExists$4('projectRoleDelete2', 'projectId', projectId);
|
|
5243
4987
|
const localVarPath = `/ProjectRole/project/{projectId}/user`
|
|
5244
4988
|
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
|
|
5245
4989
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5246
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
4990
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$5);
|
|
5247
4991
|
let baseOptions;
|
|
5248
4992
|
if (configuration) {
|
|
5249
4993
|
baseOptions = configuration.baseOptions;
|
|
@@ -5252,29 +4996,29 @@
|
|
|
5252
4996
|
const localVarHeaderParameter = {};
|
|
5253
4997
|
const localVarQueryParameter = {};
|
|
5254
4998
|
// authentication JWT token required
|
|
5255
|
-
yield setApiKeyToObject$
|
|
5256
|
-
setSearchParams$
|
|
4999
|
+
yield setApiKeyToObject$5(localVarHeaderParameter, "Authorization", configuration);
|
|
5000
|
+
setSearchParams$5(localVarUrlObj, localVarQueryParameter, options.query);
|
|
5257
5001
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5258
5002
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5259
5003
|
return {
|
|
5260
|
-
url: toPathString$
|
|
5004
|
+
url: toPathString$5(localVarUrlObj),
|
|
5261
5005
|
options: localVarRequestOptions,
|
|
5262
5006
|
};
|
|
5263
5007
|
}),
|
|
5264
5008
|
/**
|
|
5265
5009
|
*
|
|
5266
|
-
* @summary Gets all roles for current user and
|
|
5010
|
+
* @summary Gets all roles for the current user and a project.
|
|
5267
5011
|
* @param {string} projectId Id of the project
|
|
5268
5012
|
* @param {*} [options] Override http request option.
|
|
5269
5013
|
* @throws {RequiredError}
|
|
5270
5014
|
*/
|
|
5271
5015
|
projectRoleGet: (projectId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5272
5016
|
// verify required parameter 'projectId' is not null or undefined
|
|
5273
|
-
assertParamExists$
|
|
5017
|
+
assertParamExists$4('projectRoleGet', 'projectId', projectId);
|
|
5274
5018
|
const localVarPath = `/ProjectRole/project/{projectId}`
|
|
5275
5019
|
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
|
|
5276
5020
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5277
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
5021
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$5);
|
|
5278
5022
|
let baseOptions;
|
|
5279
5023
|
if (configuration) {
|
|
5280
5024
|
baseOptions = configuration.baseOptions;
|
|
@@ -5283,29 +5027,29 @@
|
|
|
5283
5027
|
const localVarHeaderParameter = {};
|
|
5284
5028
|
const localVarQueryParameter = {};
|
|
5285
5029
|
// authentication JWT token required
|
|
5286
|
-
yield setApiKeyToObject$
|
|
5287
|
-
setSearchParams$
|
|
5030
|
+
yield setApiKeyToObject$5(localVarHeaderParameter, "Authorization", configuration);
|
|
5031
|
+
setSearchParams$5(localVarUrlObj, localVarQueryParameter, options.query);
|
|
5288
5032
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5289
5033
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5290
5034
|
return {
|
|
5291
|
-
url: toPathString$
|
|
5035
|
+
url: toPathString$5(localVarUrlObj),
|
|
5292
5036
|
options: localVarRequestOptions,
|
|
5293
5037
|
};
|
|
5294
5038
|
}),
|
|
5295
5039
|
/**
|
|
5296
5040
|
*
|
|
5297
|
-
* @summary Lists all users
|
|
5041
|
+
* @summary Lists all users in a project.
|
|
5298
5042
|
* @param {string} projectId Id of the project
|
|
5299
5043
|
* @param {*} [options] Override http request option.
|
|
5300
5044
|
* @throws {RequiredError}
|
|
5301
5045
|
*/
|
|
5302
5046
|
projectRoleIndex: (projectId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5303
5047
|
// verify required parameter 'projectId' is not null or undefined
|
|
5304
|
-
assertParamExists$
|
|
5048
|
+
assertParamExists$4('projectRoleIndex', 'projectId', projectId);
|
|
5305
5049
|
const localVarPath = `/ProjectRole/{projectId}`
|
|
5306
5050
|
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
|
|
5307
5051
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5308
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
5052
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$5);
|
|
5309
5053
|
let baseOptions;
|
|
5310
5054
|
if (configuration) {
|
|
5311
5055
|
baseOptions = configuration.baseOptions;
|
|
@@ -5314,25 +5058,28 @@
|
|
|
5314
5058
|
const localVarHeaderParameter = {};
|
|
5315
5059
|
const localVarQueryParameter = {};
|
|
5316
5060
|
// authentication JWT token required
|
|
5317
|
-
yield setApiKeyToObject$
|
|
5318
|
-
setSearchParams$
|
|
5061
|
+
yield setApiKeyToObject$5(localVarHeaderParameter, "Authorization", configuration);
|
|
5062
|
+
setSearchParams$5(localVarUrlObj, localVarQueryParameter, options.query);
|
|
5319
5063
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5320
5064
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5321
5065
|
return {
|
|
5322
|
-
url: toPathString$
|
|
5066
|
+
url: toPathString$5(localVarUrlObj),
|
|
5323
5067
|
options: localVarRequestOptions,
|
|
5324
5068
|
};
|
|
5325
5069
|
}),
|
|
5326
5070
|
/**
|
|
5327
5071
|
*
|
|
5328
|
-
* @summary
|
|
5072
|
+
* @summary Sets a role for the current user in a project
|
|
5073
|
+
* @param {ProjectRoleObject} projectRoleObject
|
|
5329
5074
|
* @param {*} [options] Override http request option.
|
|
5330
5075
|
* @throws {RequiredError}
|
|
5331
5076
|
*/
|
|
5332
|
-
projectRoleSet: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5077
|
+
projectRoleSet: (projectRoleObject, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5078
|
+
// verify required parameter 'projectRoleObject' is not null or undefined
|
|
5079
|
+
assertParamExists$4('projectRoleSet', 'projectRoleObject', projectRoleObject);
|
|
5333
5080
|
const localVarPath = `/ProjectRole`;
|
|
5334
5081
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5335
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
5082
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$5);
|
|
5336
5083
|
let baseOptions;
|
|
5337
5084
|
if (configuration) {
|
|
5338
5085
|
baseOptions = configuration.baseOptions;
|
|
@@ -5341,12 +5088,14 @@
|
|
|
5341
5088
|
const localVarHeaderParameter = {};
|
|
5342
5089
|
const localVarQueryParameter = {};
|
|
5343
5090
|
// authentication JWT token required
|
|
5344
|
-
yield setApiKeyToObject$
|
|
5345
|
-
|
|
5091
|
+
yield setApiKeyToObject$5(localVarHeaderParameter, "Authorization", configuration);
|
|
5092
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5093
|
+
setSearchParams$5(localVarUrlObj, localVarQueryParameter, options.query);
|
|
5346
5094
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5347
5095
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5096
|
+
localVarRequestOptions.data = serializeDataIfNeeded$3(projectRoleObject, localVarRequestOptions, configuration);
|
|
5348
5097
|
return {
|
|
5349
|
-
url: toPathString$
|
|
5098
|
+
url: toPathString$5(localVarUrlObj),
|
|
5350
5099
|
options: localVarRequestOptions,
|
|
5351
5100
|
};
|
|
5352
5101
|
}),
|
|
@@ -5361,7 +5110,7 @@
|
|
|
5361
5110
|
return {
|
|
5362
5111
|
/**
|
|
5363
5112
|
*
|
|
5364
|
-
* @summary
|
|
5113
|
+
* @summary Deletes a user from a project
|
|
5365
5114
|
* @param {string} projectId Id of the project
|
|
5366
5115
|
* @param {string} userId Id of the user
|
|
5367
5116
|
* @param {string} roleId Id of the role
|
|
@@ -5371,12 +5120,12 @@
|
|
|
5371
5120
|
projectRoleDelete(projectId, userId, roleId, options) {
|
|
5372
5121
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5373
5122
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectRoleDelete(projectId, userId, roleId, options);
|
|
5374
|
-
return createRequestFunction$
|
|
5123
|
+
return createRequestFunction$5(localVarAxiosArgs, axios, BASE_PATH$5, configuration);
|
|
5375
5124
|
});
|
|
5376
5125
|
},
|
|
5377
5126
|
/**
|
|
5378
5127
|
*
|
|
5379
|
-
* @summary Deletes user from a project
|
|
5128
|
+
* @summary Deletes the current user from a project
|
|
5380
5129
|
* @param {string} projectId Id of the project
|
|
5381
5130
|
* @param {*} [options] Override http request option.
|
|
5382
5131
|
* @throws {RequiredError}
|
|
@@ -5384,12 +5133,12 @@
|
|
|
5384
5133
|
projectRoleDelete2(projectId, options) {
|
|
5385
5134
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5386
5135
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectRoleDelete2(projectId, options);
|
|
5387
|
-
return createRequestFunction$
|
|
5136
|
+
return createRequestFunction$5(localVarAxiosArgs, axios, BASE_PATH$5, configuration);
|
|
5388
5137
|
});
|
|
5389
5138
|
},
|
|
5390
5139
|
/**
|
|
5391
5140
|
*
|
|
5392
|
-
* @summary Gets all roles for current user and
|
|
5141
|
+
* @summary Gets all roles for the current user and a project.
|
|
5393
5142
|
* @param {string} projectId Id of the project
|
|
5394
5143
|
* @param {*} [options] Override http request option.
|
|
5395
5144
|
* @throws {RequiredError}
|
|
@@ -5397,12 +5146,12 @@
|
|
|
5397
5146
|
projectRoleGet(projectId, options) {
|
|
5398
5147
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5399
5148
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectRoleGet(projectId, options);
|
|
5400
|
-
return createRequestFunction$
|
|
5149
|
+
return createRequestFunction$5(localVarAxiosArgs, axios, BASE_PATH$5, configuration);
|
|
5401
5150
|
});
|
|
5402
5151
|
},
|
|
5403
5152
|
/**
|
|
5404
5153
|
*
|
|
5405
|
-
* @summary Lists all users
|
|
5154
|
+
* @summary Lists all users in a project.
|
|
5406
5155
|
* @param {string} projectId Id of the project
|
|
5407
5156
|
* @param {*} [options] Override http request option.
|
|
5408
5157
|
* @throws {RequiredError}
|
|
@@ -5410,19 +5159,20 @@
|
|
|
5410
5159
|
projectRoleIndex(projectId, options) {
|
|
5411
5160
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5412
5161
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectRoleIndex(projectId, options);
|
|
5413
|
-
return createRequestFunction$
|
|
5162
|
+
return createRequestFunction$5(localVarAxiosArgs, axios, BASE_PATH$5, configuration);
|
|
5414
5163
|
});
|
|
5415
5164
|
},
|
|
5416
5165
|
/**
|
|
5417
5166
|
*
|
|
5418
|
-
* @summary
|
|
5167
|
+
* @summary Sets a role for the current user in a project
|
|
5168
|
+
* @param {ProjectRoleObject} projectRoleObject
|
|
5419
5169
|
* @param {*} [options] Override http request option.
|
|
5420
5170
|
* @throws {RequiredError}
|
|
5421
5171
|
*/
|
|
5422
|
-
projectRoleSet(options) {
|
|
5172
|
+
projectRoleSet(projectRoleObject, options) {
|
|
5423
5173
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5424
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectRoleSet(options);
|
|
5425
|
-
return createRequestFunction$
|
|
5174
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.projectRoleSet(projectRoleObject, options);
|
|
5175
|
+
return createRequestFunction$5(localVarAxiosArgs, axios, BASE_PATH$5, configuration);
|
|
5426
5176
|
});
|
|
5427
5177
|
},
|
|
5428
5178
|
};
|
|
@@ -5436,7 +5186,7 @@
|
|
|
5436
5186
|
return {
|
|
5437
5187
|
/**
|
|
5438
5188
|
*
|
|
5439
|
-
* @summary
|
|
5189
|
+
* @summary Deletes a user from a project
|
|
5440
5190
|
* @param {string} projectId Id of the project
|
|
5441
5191
|
* @param {string} userId Id of the user
|
|
5442
5192
|
* @param {string} roleId Id of the role
|
|
@@ -5448,7 +5198,7 @@
|
|
|
5448
5198
|
},
|
|
5449
5199
|
/**
|
|
5450
5200
|
*
|
|
5451
|
-
* @summary Deletes user from a project
|
|
5201
|
+
* @summary Deletes the current user from a project
|
|
5452
5202
|
* @param {string} projectId Id of the project
|
|
5453
5203
|
* @param {*} [options] Override http request option.
|
|
5454
5204
|
* @throws {RequiredError}
|
|
@@ -5458,7 +5208,7 @@
|
|
|
5458
5208
|
},
|
|
5459
5209
|
/**
|
|
5460
5210
|
*
|
|
5461
|
-
* @summary Gets all roles for current user and
|
|
5211
|
+
* @summary Gets all roles for the current user and a project.
|
|
5462
5212
|
* @param {string} projectId Id of the project
|
|
5463
5213
|
* @param {*} [options] Override http request option.
|
|
5464
5214
|
* @throws {RequiredError}
|
|
@@ -5468,7 +5218,7 @@
|
|
|
5468
5218
|
},
|
|
5469
5219
|
/**
|
|
5470
5220
|
*
|
|
5471
|
-
* @summary Lists all users
|
|
5221
|
+
* @summary Lists all users in a project.
|
|
5472
5222
|
* @param {string} projectId Id of the project
|
|
5473
5223
|
* @param {*} [options] Override http request option.
|
|
5474
5224
|
* @throws {RequiredError}
|
|
@@ -5478,12 +5228,13 @@
|
|
|
5478
5228
|
},
|
|
5479
5229
|
/**
|
|
5480
5230
|
*
|
|
5481
|
-
* @summary
|
|
5231
|
+
* @summary Sets a role for the current user in a project
|
|
5232
|
+
* @param {ProjectRoleObject} projectRoleObject
|
|
5482
5233
|
* @param {*} [options] Override http request option.
|
|
5483
5234
|
* @throws {RequiredError}
|
|
5484
5235
|
*/
|
|
5485
|
-
projectRoleSet(options) {
|
|
5486
|
-
return localVarFp.projectRoleSet(options).then((request) => request(axios, basePath));
|
|
5236
|
+
projectRoleSet(projectRoleObject, options) {
|
|
5237
|
+
return localVarFp.projectRoleSet(projectRoleObject, options).then((request) => request(axios, basePath));
|
|
5487
5238
|
},
|
|
5488
5239
|
};
|
|
5489
5240
|
};
|
|
@@ -5502,7 +5253,7 @@
|
|
|
5502
5253
|
roleIndex: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5503
5254
|
const localVarPath = `/Role`;
|
|
5504
5255
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5505
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$
|
|
5256
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$5);
|
|
5506
5257
|
let baseOptions;
|
|
5507
5258
|
if (configuration) {
|
|
5508
5259
|
baseOptions = configuration.baseOptions;
|
|
@@ -5511,12 +5262,12 @@
|
|
|
5511
5262
|
const localVarHeaderParameter = {};
|
|
5512
5263
|
const localVarQueryParameter = {};
|
|
5513
5264
|
// authentication JWT token required
|
|
5514
|
-
yield setApiKeyToObject$
|
|
5515
|
-
setSearchParams$
|
|
5265
|
+
yield setApiKeyToObject$5(localVarHeaderParameter, "Authorization", configuration);
|
|
5266
|
+
setSearchParams$5(localVarUrlObj, localVarQueryParameter, options.query);
|
|
5516
5267
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5517
5268
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5518
5269
|
return {
|
|
5519
|
-
url: toPathString$
|
|
5270
|
+
url: toPathString$5(localVarUrlObj),
|
|
5520
5271
|
options: localVarRequestOptions,
|
|
5521
5272
|
};
|
|
5522
5273
|
}),
|
|
@@ -5538,7 +5289,7 @@
|
|
|
5538
5289
|
roleIndex(options) {
|
|
5539
5290
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5540
5291
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.roleIndex(options);
|
|
5541
|
-
return createRequestFunction$
|
|
5292
|
+
return createRequestFunction$5(localVarAxiosArgs, axios, BASE_PATH$5, configuration);
|
|
5542
5293
|
});
|
|
5543
5294
|
},
|
|
5544
5295
|
};
|
|
@@ -5557,511 +5308,28 @@
|
|
|
5557
5308
|
* @throws {RequiredError}
|
|
5558
5309
|
*/
|
|
5559
5310
|
roleIndex(options) {
|
|
5560
|
-
return localVarFp.roleIndex(options).then((request) => request(axios, basePath));
|
|
5561
|
-
},
|
|
5562
|
-
};
|
|
5563
|
-
};
|
|
5564
|
-
/**
|
|
5565
|
-
*
|
|
5566
|
-
* @export
|
|
5567
|
-
*/
|
|
5568
|
-
const
|
|
5569
|
-
return {
|
|
5570
|
-
/**
|
|
5571
|
-
*
|
|
5572
|
-
* @summary Returns results for the search word
|
|
5573
|
-
* @param {string} encodedSearchWord Encoded search word
|
|
5574
|
-
* @param {*} [options] Override http request option.
|
|
5575
|
-
* @throws {RequiredError}
|
|
5576
|
-
*/
|
|
5577
|
-
searchSearch: (encodedSearchWord, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5578
|
-
// verify required parameter 'encodedSearchWord' is not null or undefined
|
|
5579
|
-
assertParamExists$5('searchSearch', 'encodedSearchWord', encodedSearchWord);
|
|
5580
|
-
const localVarPath = `/Search/all/{encodedSearchWord}`
|
|
5581
|
-
.replace(`{${"encodedSearchWord"}}`, encodeURIComponent(String(encodedSearchWord)));
|
|
5582
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5583
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$6);
|
|
5584
|
-
let baseOptions;
|
|
5585
|
-
if (configuration) {
|
|
5586
|
-
baseOptions = configuration.baseOptions;
|
|
5587
|
-
}
|
|
5588
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5589
|
-
const localVarHeaderParameter = {};
|
|
5590
|
-
const localVarQueryParameter = {};
|
|
5591
|
-
// authentication JWT token required
|
|
5592
|
-
yield setApiKeyToObject$6(localVarHeaderParameter, "Authorization", configuration);
|
|
5593
|
-
setSearchParams$6(localVarUrlObj, localVarQueryParameter, options.query);
|
|
5594
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5595
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5596
|
-
return {
|
|
5597
|
-
url: toPathString$6(localVarUrlObj),
|
|
5598
|
-
options: localVarRequestOptions,
|
|
5599
|
-
};
|
|
5600
|
-
}),
|
|
5601
|
-
/**
|
|
5602
|
-
*
|
|
5603
|
-
* @summary Returns searched projects
|
|
5604
|
-
* @param {string} projectId Id of the project
|
|
5605
|
-
* @param {string} encodedSearchWord Encoded search word
|
|
5606
|
-
* @param {*} [options] Override http request option.
|
|
5607
|
-
* @throws {RequiredError}
|
|
5608
|
-
*/
|
|
5609
|
-
searchSearchProject: (projectId, encodedSearchWord, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5610
|
-
// verify required parameter 'projectId' is not null or undefined
|
|
5611
|
-
assertParamExists$5('searchSearchProject', 'projectId', projectId);
|
|
5612
|
-
// verify required parameter 'encodedSearchWord' is not null or undefined
|
|
5613
|
-
assertParamExists$5('searchSearchProject', 'encodedSearchWord', encodedSearchWord);
|
|
5614
|
-
const localVarPath = `/Search/project/{projectId}/{encodedSearchWord}`
|
|
5615
|
-
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
|
|
5616
|
-
.replace(`{${"encodedSearchWord"}}`, encodeURIComponent(String(encodedSearchWord)));
|
|
5617
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5618
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$6);
|
|
5619
|
-
let baseOptions;
|
|
5620
|
-
if (configuration) {
|
|
5621
|
-
baseOptions = configuration.baseOptions;
|
|
5622
|
-
}
|
|
5623
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5624
|
-
const localVarHeaderParameter = {};
|
|
5625
|
-
const localVarQueryParameter = {};
|
|
5626
|
-
// authentication JWT token required
|
|
5627
|
-
yield setApiKeyToObject$6(localVarHeaderParameter, "Authorization", configuration);
|
|
5628
|
-
setSearchParams$6(localVarUrlObj, localVarQueryParameter, options.query);
|
|
5629
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5630
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5631
|
-
return {
|
|
5632
|
-
url: toPathString$6(localVarUrlObj),
|
|
5633
|
-
options: localVarRequestOptions,
|
|
5634
|
-
};
|
|
5635
|
-
}),
|
|
5636
|
-
};
|
|
5637
|
-
};
|
|
5638
|
-
/**
|
|
5639
|
-
* SearchApi - functional programming interface
|
|
5640
|
-
* @export
|
|
5641
|
-
*/
|
|
5642
|
-
const SearchApiFp = function (configuration) {
|
|
5643
|
-
const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration);
|
|
5644
|
-
return {
|
|
5645
|
-
/**
|
|
5646
|
-
*
|
|
5647
|
-
* @summary Returns results for the search word
|
|
5648
|
-
* @param {string} encodedSearchWord Encoded search word
|
|
5649
|
-
* @param {*} [options] Override http request option.
|
|
5650
|
-
* @throws {RequiredError}
|
|
5651
|
-
*/
|
|
5652
|
-
searchSearch(encodedSearchWord, options) {
|
|
5653
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5654
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.searchSearch(encodedSearchWord, options);
|
|
5655
|
-
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
5656
|
-
});
|
|
5657
|
-
},
|
|
5658
|
-
/**
|
|
5659
|
-
*
|
|
5660
|
-
* @summary Returns searched projects
|
|
5661
|
-
* @param {string} projectId Id of the project
|
|
5662
|
-
* @param {string} encodedSearchWord Encoded search word
|
|
5663
|
-
* @param {*} [options] Override http request option.
|
|
5664
|
-
* @throws {RequiredError}
|
|
5665
|
-
*/
|
|
5666
|
-
searchSearchProject(projectId, encodedSearchWord, options) {
|
|
5667
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5668
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.searchSearchProject(projectId, encodedSearchWord, options);
|
|
5669
|
-
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
5670
|
-
});
|
|
5671
|
-
},
|
|
5672
|
-
};
|
|
5673
|
-
};
|
|
5674
|
-
/**
|
|
5675
|
-
* SearchApi - factory interface
|
|
5676
|
-
* @export
|
|
5677
|
-
*/
|
|
5678
|
-
const SearchApiFactory = function (configuration, basePath, axios) {
|
|
5679
|
-
const localVarFp = SearchApiFp(configuration);
|
|
5680
|
-
return {
|
|
5681
|
-
/**
|
|
5682
|
-
*
|
|
5683
|
-
* @summary Returns results for the search word
|
|
5684
|
-
* @param {string} encodedSearchWord Encoded search word
|
|
5685
|
-
* @param {*} [options] Override http request option.
|
|
5686
|
-
* @throws {RequiredError}
|
|
5687
|
-
*/
|
|
5688
|
-
searchSearch(encodedSearchWord, options) {
|
|
5689
|
-
return localVarFp.searchSearch(encodedSearchWord, options).then((request) => request(axios, basePath));
|
|
5690
|
-
},
|
|
5691
|
-
/**
|
|
5692
|
-
*
|
|
5693
|
-
* @summary Returns searched projects
|
|
5694
|
-
* @param {string} projectId Id of the project
|
|
5695
|
-
* @param {string} encodedSearchWord Encoded search word
|
|
5696
|
-
* @param {*} [options] Override http request option.
|
|
5697
|
-
* @throws {RequiredError}
|
|
5698
|
-
*/
|
|
5699
|
-
searchSearchProject(projectId, encodedSearchWord, options) {
|
|
5700
|
-
return localVarFp.searchSearchProject(projectId, encodedSearchWord, options).then((request) => request(axios, basePath));
|
|
5701
|
-
},
|
|
5702
|
-
};
|
|
5703
|
-
};
|
|
5704
|
-
/**
|
|
5705
|
-
* SubProjectApi - axios parameter creator
|
|
5706
|
-
* @export
|
|
5707
|
-
*/
|
|
5708
|
-
const SubProjectApiAxiosParamCreator = function (configuration) {
|
|
5709
|
-
return {
|
|
5710
|
-
/**
|
|
5711
|
-
*
|
|
5712
|
-
* @summary This method gets the Id of the parent
|
|
5713
|
-
* @param {string} parentId Id of parent
|
|
5714
|
-
* @param {*} [options] Override http request option.
|
|
5715
|
-
* @throws {RequiredError}
|
|
5716
|
-
*/
|
|
5717
|
-
subProjectGet: (parentId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5718
|
-
// verify required parameter 'parentId' is not null or undefined
|
|
5719
|
-
assertParamExists$5('subProjectGet', 'parentId', parentId);
|
|
5720
|
-
const localVarPath = `/SubProject/{parentId}`
|
|
5721
|
-
.replace(`{${"parentId"}}`, encodeURIComponent(String(parentId)));
|
|
5722
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5723
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$6);
|
|
5724
|
-
let baseOptions;
|
|
5725
|
-
if (configuration) {
|
|
5726
|
-
baseOptions = configuration.baseOptions;
|
|
5727
|
-
}
|
|
5728
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5729
|
-
const localVarHeaderParameter = {};
|
|
5730
|
-
const localVarQueryParameter = {};
|
|
5731
|
-
// authentication JWT token required
|
|
5732
|
-
yield setApiKeyToObject$6(localVarHeaderParameter, "Authorization", configuration);
|
|
5733
|
-
setSearchParams$6(localVarUrlObj, localVarQueryParameter, options.query);
|
|
5734
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5735
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5736
|
-
return {
|
|
5737
|
-
url: toPathString$6(localVarUrlObj),
|
|
5738
|
-
options: localVarRequestOptions,
|
|
5739
|
-
};
|
|
5740
|
-
}),
|
|
5741
|
-
/**
|
|
5742
|
-
*
|
|
5743
|
-
* @summary This method retrieves the accessible Parent
|
|
5744
|
-
* @param {string} childId Id of the child
|
|
5745
|
-
* @param {*} [options] Override http request option.
|
|
5746
|
-
* @throws {RequiredError}
|
|
5747
|
-
*/
|
|
5748
|
-
subProjectGetAccessibleParent: (childId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5749
|
-
// verify required parameter 'childId' is not null or undefined
|
|
5750
|
-
assertParamExists$5('subProjectGetAccessibleParent', 'childId', childId);
|
|
5751
|
-
const localVarPath = `/SubProject/{childId}/accessibleParent`
|
|
5752
|
-
.replace(`{${"childId"}}`, encodeURIComponent(String(childId)));
|
|
5753
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5754
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$6);
|
|
5755
|
-
let baseOptions;
|
|
5756
|
-
if (configuration) {
|
|
5757
|
-
baseOptions = configuration.baseOptions;
|
|
5758
|
-
}
|
|
5759
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5760
|
-
const localVarHeaderParameter = {};
|
|
5761
|
-
const localVarQueryParameter = {};
|
|
5762
|
-
// authentication JWT token required
|
|
5763
|
-
yield setApiKeyToObject$6(localVarHeaderParameter, "Authorization", configuration);
|
|
5764
|
-
setSearchParams$6(localVarUrlObj, localVarQueryParameter, options.query);
|
|
5765
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5766
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5767
|
-
return {
|
|
5768
|
-
url: toPathString$6(localVarUrlObj),
|
|
5769
|
-
options: localVarRequestOptions,
|
|
5770
|
-
};
|
|
5771
|
-
}),
|
|
5772
|
-
};
|
|
5773
|
-
};
|
|
5774
|
-
/**
|
|
5775
|
-
* SubProjectApi - functional programming interface
|
|
5776
|
-
* @export
|
|
5777
|
-
*/
|
|
5778
|
-
const SubProjectApiFp = function (configuration) {
|
|
5779
|
-
const localVarAxiosParamCreator = SubProjectApiAxiosParamCreator(configuration);
|
|
5780
|
-
return {
|
|
5781
|
-
/**
|
|
5782
|
-
*
|
|
5783
|
-
* @summary This method gets the Id of the parent
|
|
5784
|
-
* @param {string} parentId Id of parent
|
|
5785
|
-
* @param {*} [options] Override http request option.
|
|
5786
|
-
* @throws {RequiredError}
|
|
5787
|
-
*/
|
|
5788
|
-
subProjectGet(parentId, options) {
|
|
5789
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5790
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.subProjectGet(parentId, options);
|
|
5791
|
-
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
5792
|
-
});
|
|
5793
|
-
},
|
|
5794
|
-
/**
|
|
5795
|
-
*
|
|
5796
|
-
* @summary This method retrieves the accessible Parent
|
|
5797
|
-
* @param {string} childId Id of the child
|
|
5798
|
-
* @param {*} [options] Override http request option.
|
|
5799
|
-
* @throws {RequiredError}
|
|
5800
|
-
*/
|
|
5801
|
-
subProjectGetAccessibleParent(childId, options) {
|
|
5802
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5803
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.subProjectGetAccessibleParent(childId, options);
|
|
5804
|
-
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
5805
|
-
});
|
|
5806
|
-
},
|
|
5807
|
-
};
|
|
5808
|
-
};
|
|
5809
|
-
/**
|
|
5810
|
-
* SubProjectApi - factory interface
|
|
5811
|
-
* @export
|
|
5812
|
-
*/
|
|
5813
|
-
const SubProjectApiFactory = function (configuration, basePath, axios) {
|
|
5814
|
-
const localVarFp = SubProjectApiFp(configuration);
|
|
5815
|
-
return {
|
|
5816
|
-
/**
|
|
5817
|
-
*
|
|
5818
|
-
* @summary This method gets the Id of the parent
|
|
5819
|
-
* @param {string} parentId Id of parent
|
|
5820
|
-
* @param {*} [options] Override http request option.
|
|
5821
|
-
* @throws {RequiredError}
|
|
5822
|
-
*/
|
|
5823
|
-
subProjectGet(parentId, options) {
|
|
5824
|
-
return localVarFp.subProjectGet(parentId, options).then((request) => request(axios, basePath));
|
|
5825
|
-
},
|
|
5826
|
-
/**
|
|
5827
|
-
*
|
|
5828
|
-
* @summary This method retrieves the accessible Parent
|
|
5829
|
-
* @param {string} childId Id of the child
|
|
5830
|
-
* @param {*} [options] Override http request option.
|
|
5831
|
-
* @throws {RequiredError}
|
|
5832
|
-
*/
|
|
5833
|
-
subProjectGetAccessibleParent(childId, options) {
|
|
5834
|
-
return localVarFp.subProjectGetAccessibleParent(childId, options).then((request) => request(axios, basePath));
|
|
5835
|
-
},
|
|
5836
|
-
};
|
|
5837
|
-
};
|
|
5838
|
-
/**
|
|
5839
|
-
* VisibilityApi - axios parameter creator
|
|
5840
|
-
* @export
|
|
5841
|
-
*/
|
|
5842
|
-
const VisibilityApiAxiosParamCreator = function (configuration) {
|
|
5843
|
-
return {
|
|
5844
|
-
/**
|
|
5845
|
-
*
|
|
5846
|
-
* @summary Returns all available visibilities
|
|
5847
|
-
* @param {*} [options] Override http request option.
|
|
5848
|
-
* @throws {RequiredError}
|
|
5849
|
-
*/
|
|
5850
|
-
visibilityIndex: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5851
|
-
const localVarPath = `/Visibility`;
|
|
5852
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5853
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$6);
|
|
5854
|
-
let baseOptions;
|
|
5855
|
-
if (configuration) {
|
|
5856
|
-
baseOptions = configuration.baseOptions;
|
|
5857
|
-
}
|
|
5858
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5859
|
-
const localVarHeaderParameter = {};
|
|
5860
|
-
const localVarQueryParameter = {};
|
|
5861
|
-
// authentication JWT token required
|
|
5862
|
-
yield setApiKeyToObject$6(localVarHeaderParameter, "Authorization", configuration);
|
|
5863
|
-
setSearchParams$6(localVarUrlObj, localVarQueryParameter, options.query);
|
|
5864
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5865
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5866
|
-
return {
|
|
5867
|
-
url: toPathString$6(localVarUrlObj),
|
|
5868
|
-
options: localVarRequestOptions,
|
|
5869
|
-
};
|
|
5870
|
-
}),
|
|
5871
|
-
};
|
|
5872
|
-
};
|
|
5873
|
-
/**
|
|
5874
|
-
* VisibilityApi - functional programming interface
|
|
5875
|
-
* @export
|
|
5876
|
-
*/
|
|
5877
|
-
const VisibilityApiFp = function (configuration) {
|
|
5878
|
-
const localVarAxiosParamCreator = VisibilityApiAxiosParamCreator(configuration);
|
|
5879
|
-
return {
|
|
5880
|
-
/**
|
|
5881
|
-
*
|
|
5882
|
-
* @summary Returns all available visibilities
|
|
5883
|
-
* @param {*} [options] Override http request option.
|
|
5884
|
-
* @throws {RequiredError}
|
|
5885
|
-
*/
|
|
5886
|
-
visibilityIndex(options) {
|
|
5887
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5888
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.visibilityIndex(options);
|
|
5889
|
-
return createRequestFunction$6(localVarAxiosArgs, axios, BASE_PATH$6, configuration);
|
|
5890
|
-
});
|
|
5891
|
-
},
|
|
5892
|
-
};
|
|
5893
|
-
};
|
|
5894
|
-
/**
|
|
5895
|
-
* VisibilityApi - factory interface
|
|
5896
|
-
* @export
|
|
5897
|
-
*/
|
|
5898
|
-
const VisibilityApiFactory = function (configuration, basePath, axios) {
|
|
5899
|
-
const localVarFp = VisibilityApiFp(configuration);
|
|
5900
|
-
return {
|
|
5901
|
-
/**
|
|
5902
|
-
*
|
|
5903
|
-
* @summary Returns all available visibilities
|
|
5904
|
-
* @param {*} [options] Override http request option.
|
|
5905
|
-
* @throws {RequiredError}
|
|
5906
|
-
*/
|
|
5907
|
-
visibilityIndex(options) {
|
|
5908
|
-
return localVarFp.visibilityIndex(options).then((request) => request(axios, basePath));
|
|
5909
|
-
},
|
|
5910
|
-
};
|
|
5911
|
-
};
|
|
5912
|
-
|
|
5913
|
-
/* tslint:disable */
|
|
5914
|
-
const BASE_PATH$5 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Quota".replace(/\/+$/, "");
|
|
5915
|
-
/**
|
|
5916
|
-
*
|
|
5917
|
-
* @export
|
|
5918
|
-
* @class RequiredError
|
|
5919
|
-
* @extends {Error}
|
|
5920
|
-
*/
|
|
5921
|
-
class RequiredError$4 extends Error {
|
|
5922
|
-
constructor(field, msg) {
|
|
5923
|
-
super(msg);
|
|
5924
|
-
this.field = field;
|
|
5925
|
-
this.name = "RequiredError";
|
|
5926
|
-
}
|
|
5927
|
-
}
|
|
5928
|
-
|
|
5929
|
-
/* tslint:disable */
|
|
5930
|
-
/**
|
|
5931
|
-
*
|
|
5932
|
-
* @export
|
|
5933
|
-
*/
|
|
5934
|
-
const DUMMY_BASE_URL$5 = 'https://example.com';
|
|
5935
|
-
/**
|
|
5936
|
-
*
|
|
5937
|
-
* @throws {RequiredError}
|
|
5938
|
-
* @export
|
|
5939
|
-
*/
|
|
5940
|
-
const assertParamExists$4 = function (functionName, paramName, paramValue) {
|
|
5941
|
-
if (paramValue === null || paramValue === undefined) {
|
|
5942
|
-
throw new RequiredError$4(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
5943
|
-
}
|
|
5944
|
-
};
|
|
5945
|
-
/**
|
|
5946
|
-
*
|
|
5947
|
-
* @export
|
|
5948
|
-
*/
|
|
5949
|
-
const setApiKeyToObject$5 = function (object, keyParamName, configuration) {
|
|
5950
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5951
|
-
if (configuration && configuration.apiKey) {
|
|
5952
|
-
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
5953
|
-
? yield configuration.apiKey(keyParamName)
|
|
5954
|
-
: yield configuration.apiKey;
|
|
5955
|
-
object[keyParamName] = localVarApiKeyValue;
|
|
5956
|
-
}
|
|
5957
|
-
});
|
|
5958
|
-
};
|
|
5959
|
-
/**
|
|
5960
|
-
*
|
|
5961
|
-
* @export
|
|
5962
|
-
*/
|
|
5963
|
-
const setSearchParams$5 = function (url, ...objects) {
|
|
5964
|
-
const searchParams = new URLSearchParams(url.search);
|
|
5965
|
-
for (const object of objects) {
|
|
5966
|
-
for (const key in object) {
|
|
5967
|
-
if (Array.isArray(object[key])) {
|
|
5968
|
-
searchParams.delete(key);
|
|
5969
|
-
for (const item of object[key]) {
|
|
5970
|
-
searchParams.append(key, item);
|
|
5971
|
-
}
|
|
5972
|
-
}
|
|
5973
|
-
else {
|
|
5974
|
-
searchParams.set(key, object[key]);
|
|
5975
|
-
}
|
|
5976
|
-
}
|
|
5977
|
-
}
|
|
5978
|
-
url.search = searchParams.toString();
|
|
5979
|
-
};
|
|
5980
|
-
/**
|
|
5981
|
-
*
|
|
5982
|
-
* @export
|
|
5983
|
-
*/
|
|
5984
|
-
const serializeDataIfNeeded$3 = function (value, requestOptions, configuration) {
|
|
5985
|
-
const nonString = typeof value !== 'string';
|
|
5986
|
-
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
5987
|
-
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
5988
|
-
: nonString;
|
|
5989
|
-
return needsSerialization
|
|
5990
|
-
? JSON.stringify(value !== undefined ? value : {})
|
|
5991
|
-
: (value || "");
|
|
5992
|
-
};
|
|
5993
|
-
/**
|
|
5994
|
-
*
|
|
5995
|
-
* @export
|
|
5996
|
-
*/
|
|
5997
|
-
const toPathString$5 = function (url) {
|
|
5998
|
-
return url.pathname + url.search + url.hash;
|
|
5999
|
-
};
|
|
6000
|
-
/**
|
|
6001
|
-
*
|
|
6002
|
-
* @export
|
|
6003
|
-
*/
|
|
6004
|
-
const createRequestFunction$5 = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
6005
|
-
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
6006
|
-
const axiosRequestArgs = Object.assign(Object.assign({}, axiosArgs.options), { url: ((configuration === null || configuration === void 0 ? void 0 : configuration.basePath) || basePath) + axiosArgs.url });
|
|
6007
|
-
return axios.request(axiosRequestArgs);
|
|
6008
|
-
};
|
|
6009
|
-
};
|
|
6010
|
-
|
|
6011
|
-
/* tslint:disable */
|
|
6012
|
-
/**
|
|
6013
|
-
* QuotaApi - axios parameter creator
|
|
6014
|
-
* @export
|
|
6015
|
-
*/
|
|
6016
|
-
const QuotaApiAxiosParamCreator = function (configuration) {
|
|
6017
|
-
return {
|
|
6018
|
-
/**
|
|
6019
|
-
*
|
|
6020
|
-
* @summary Retrieves the quota for the resource.
|
|
6021
|
-
* @param {string} resourceId Id of the resource.
|
|
6022
|
-
* @param {*} [options] Override http request option.
|
|
6023
|
-
* @throws {RequiredError}
|
|
6024
|
-
*/
|
|
6025
|
-
quotaGetResourceQuota: (resourceId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6026
|
-
// verify required parameter 'resourceId' is not null or undefined
|
|
6027
|
-
assertParamExists$4('quotaGetResourceQuota', 'resourceId', resourceId);
|
|
6028
|
-
const localVarPath = `/Quota/{resourceId}`
|
|
6029
|
-
.replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)));
|
|
6030
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6031
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$5);
|
|
6032
|
-
let baseOptions;
|
|
6033
|
-
if (configuration) {
|
|
6034
|
-
baseOptions = configuration.baseOptions;
|
|
6035
|
-
}
|
|
6036
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6037
|
-
const localVarHeaderParameter = {};
|
|
6038
|
-
const localVarQueryParameter = {};
|
|
6039
|
-
// authentication JWT token required
|
|
6040
|
-
yield setApiKeyToObject$5(localVarHeaderParameter, "Authorization", configuration);
|
|
6041
|
-
setSearchParams$5(localVarUrlObj, localVarQueryParameter, options.query);
|
|
6042
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6043
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6044
|
-
return {
|
|
6045
|
-
url: toPathString$5(localVarUrlObj),
|
|
6046
|
-
options: localVarRequestOptions,
|
|
6047
|
-
};
|
|
6048
|
-
}),
|
|
5311
|
+
return localVarFp.roleIndex(options).then((request) => request(axios, basePath));
|
|
5312
|
+
},
|
|
5313
|
+
};
|
|
5314
|
+
};
|
|
5315
|
+
/**
|
|
5316
|
+
* SubProjectApi - axios parameter creator
|
|
5317
|
+
* @export
|
|
5318
|
+
*/
|
|
5319
|
+
const SubProjectApiAxiosParamCreator = function (configuration) {
|
|
5320
|
+
return {
|
|
6049
5321
|
/**
|
|
6050
5322
|
*
|
|
6051
|
-
* @summary
|
|
6052
|
-
* @param {string}
|
|
6053
|
-
* @param {string} resourceTypeId Id of the resource type.
|
|
5323
|
+
* @summary This method gets the Id of the parent
|
|
5324
|
+
* @param {string} parentId Id of parent
|
|
6054
5325
|
* @param {*} [options] Override http request option.
|
|
6055
5326
|
* @throws {RequiredError}
|
|
6056
5327
|
*/
|
|
6057
|
-
|
|
6058
|
-
// verify required parameter '
|
|
6059
|
-
assertParamExists$4('
|
|
6060
|
-
|
|
6061
|
-
|
|
6062
|
-
const localVarPath = `/Quota/{projectId}/{resourceTypeId}/all`
|
|
6063
|
-
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
|
|
6064
|
-
.replace(`{${"resourceTypeId"}}`, encodeURIComponent(String(resourceTypeId)));
|
|
5328
|
+
subProjectGet: (parentId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5329
|
+
// verify required parameter 'parentId' is not null or undefined
|
|
5330
|
+
assertParamExists$4('subProjectGet', 'parentId', parentId);
|
|
5331
|
+
const localVarPath = `/SubProject/{parentId}`
|
|
5332
|
+
.replace(`{${"parentId"}}`, encodeURIComponent(String(parentId)));
|
|
6065
5333
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6066
5334
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$5);
|
|
6067
5335
|
let baseOptions;
|
|
@@ -6083,35 +5351,30 @@
|
|
|
6083
5351
|
}),
|
|
6084
5352
|
/**
|
|
6085
5353
|
*
|
|
6086
|
-
* @summary
|
|
6087
|
-
* @param {string}
|
|
6088
|
-
* @param {UpdateResourceObject} updateResourceObject Contains the resource id and the new quota.
|
|
5354
|
+
* @summary This method retrieves the accessible Parent
|
|
5355
|
+
* @param {string} childId Id of the child
|
|
6089
5356
|
* @param {*} [options] Override http request option.
|
|
6090
5357
|
* @throws {RequiredError}
|
|
6091
5358
|
*/
|
|
6092
|
-
|
|
6093
|
-
// verify required parameter '
|
|
6094
|
-
assertParamExists$4('
|
|
6095
|
-
|
|
6096
|
-
|
|
6097
|
-
const localVarPath = `/Quota/{resourceId}`
|
|
6098
|
-
.replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)));
|
|
5359
|
+
subProjectGetAccessibleParent: (childId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5360
|
+
// verify required parameter 'childId' is not null or undefined
|
|
5361
|
+
assertParamExists$4('subProjectGetAccessibleParent', 'childId', childId);
|
|
5362
|
+
const localVarPath = `/SubProject/{childId}/accessibleParent`
|
|
5363
|
+
.replace(`{${"childId"}}`, encodeURIComponent(String(childId)));
|
|
6099
5364
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6100
5365
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$5);
|
|
6101
5366
|
let baseOptions;
|
|
6102
5367
|
if (configuration) {
|
|
6103
5368
|
baseOptions = configuration.baseOptions;
|
|
6104
5369
|
}
|
|
6105
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
5370
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6106
5371
|
const localVarHeaderParameter = {};
|
|
6107
5372
|
const localVarQueryParameter = {};
|
|
6108
5373
|
// authentication JWT token required
|
|
6109
5374
|
yield setApiKeyToObject$5(localVarHeaderParameter, "Authorization", configuration);
|
|
6110
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6111
5375
|
setSearchParams$5(localVarUrlObj, localVarQueryParameter, options.query);
|
|
6112
5376
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6113
5377
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6114
|
-
localVarRequestOptions.data = serializeDataIfNeeded$3(updateResourceObject, localVarRequestOptions, configuration);
|
|
6115
5378
|
return {
|
|
6116
5379
|
url: toPathString$5(localVarUrlObj),
|
|
6117
5380
|
options: localVarRequestOptions,
|
|
@@ -6120,93 +5383,140 @@
|
|
|
6120
5383
|
};
|
|
6121
5384
|
};
|
|
6122
5385
|
/**
|
|
6123
|
-
*
|
|
5386
|
+
* SubProjectApi - functional programming interface
|
|
6124
5387
|
* @export
|
|
6125
5388
|
*/
|
|
6126
|
-
const
|
|
6127
|
-
const localVarAxiosParamCreator =
|
|
5389
|
+
const SubProjectApiFp = function (configuration) {
|
|
5390
|
+
const localVarAxiosParamCreator = SubProjectApiAxiosParamCreator(configuration);
|
|
6128
5391
|
return {
|
|
6129
5392
|
/**
|
|
6130
5393
|
*
|
|
6131
|
-
* @summary
|
|
6132
|
-
* @param {string}
|
|
5394
|
+
* @summary This method gets the Id of the parent
|
|
5395
|
+
* @param {string} parentId Id of parent
|
|
6133
5396
|
* @param {*} [options] Override http request option.
|
|
6134
5397
|
* @throws {RequiredError}
|
|
6135
5398
|
*/
|
|
6136
|
-
|
|
5399
|
+
subProjectGet(parentId, options) {
|
|
6137
5400
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6138
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
5401
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.subProjectGet(parentId, options);
|
|
6139
5402
|
return createRequestFunction$5(localVarAxiosArgs, axios, BASE_PATH$5, configuration);
|
|
6140
5403
|
});
|
|
6141
5404
|
},
|
|
6142
5405
|
/**
|
|
6143
5406
|
*
|
|
6144
|
-
* @summary
|
|
6145
|
-
* @param {string}
|
|
6146
|
-
* @param {string} resourceTypeId Id of the resource type.
|
|
5407
|
+
* @summary This method retrieves the accessible Parent
|
|
5408
|
+
* @param {string} childId Id of the child
|
|
6147
5409
|
* @param {*} [options] Override http request option.
|
|
6148
5410
|
* @throws {RequiredError}
|
|
6149
5411
|
*/
|
|
6150
|
-
|
|
5412
|
+
subProjectGetAccessibleParent(childId, options) {
|
|
6151
5413
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6152
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
5414
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.subProjectGetAccessibleParent(childId, options);
|
|
6153
5415
|
return createRequestFunction$5(localVarAxiosArgs, axios, BASE_PATH$5, configuration);
|
|
6154
5416
|
});
|
|
6155
5417
|
},
|
|
5418
|
+
};
|
|
5419
|
+
};
|
|
5420
|
+
/**
|
|
5421
|
+
* SubProjectApi - factory interface
|
|
5422
|
+
* @export
|
|
5423
|
+
*/
|
|
5424
|
+
const SubProjectApiFactory = function (configuration, basePath, axios) {
|
|
5425
|
+
const localVarFp = SubProjectApiFp(configuration);
|
|
5426
|
+
return {
|
|
6156
5427
|
/**
|
|
6157
5428
|
*
|
|
6158
|
-
* @summary
|
|
6159
|
-
* @param {string}
|
|
6160
|
-
* @param {UpdateResourceObject} updateResourceObject Contains the resource id and the new quota.
|
|
5429
|
+
* @summary This method gets the Id of the parent
|
|
5430
|
+
* @param {string} parentId Id of parent
|
|
6161
5431
|
* @param {*} [options] Override http request option.
|
|
6162
5432
|
* @throws {RequiredError}
|
|
6163
5433
|
*/
|
|
6164
|
-
|
|
6165
|
-
return
|
|
6166
|
-
|
|
6167
|
-
|
|
6168
|
-
|
|
5434
|
+
subProjectGet(parentId, options) {
|
|
5435
|
+
return localVarFp.subProjectGet(parentId, options).then((request) => request(axios, basePath));
|
|
5436
|
+
},
|
|
5437
|
+
/**
|
|
5438
|
+
*
|
|
5439
|
+
* @summary This method retrieves the accessible Parent
|
|
5440
|
+
* @param {string} childId Id of the child
|
|
5441
|
+
* @param {*} [options] Override http request option.
|
|
5442
|
+
* @throws {RequiredError}
|
|
5443
|
+
*/
|
|
5444
|
+
subProjectGetAccessibleParent(childId, options) {
|
|
5445
|
+
return localVarFp.subProjectGetAccessibleParent(childId, options).then((request) => request(axios, basePath));
|
|
6169
5446
|
},
|
|
6170
5447
|
};
|
|
6171
5448
|
};
|
|
6172
5449
|
/**
|
|
6173
|
-
*
|
|
5450
|
+
* VisibilityApi - axios parameter creator
|
|
6174
5451
|
* @export
|
|
6175
5452
|
*/
|
|
6176
|
-
const
|
|
6177
|
-
const localVarFp = QuotaApiFp(configuration);
|
|
5453
|
+
const VisibilityApiAxiosParamCreator = function (configuration) {
|
|
6178
5454
|
return {
|
|
6179
5455
|
/**
|
|
6180
5456
|
*
|
|
6181
|
-
* @summary
|
|
6182
|
-
* @param {string} resourceId Id of the resource.
|
|
5457
|
+
* @summary Returns all available visibilities
|
|
6183
5458
|
* @param {*} [options] Override http request option.
|
|
6184
5459
|
* @throws {RequiredError}
|
|
6185
5460
|
*/
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
5461
|
+
visibilityIndex: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5462
|
+
const localVarPath = `/Visibility`;
|
|
5463
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5464
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$5);
|
|
5465
|
+
let baseOptions;
|
|
5466
|
+
if (configuration) {
|
|
5467
|
+
baseOptions = configuration.baseOptions;
|
|
5468
|
+
}
|
|
5469
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5470
|
+
const localVarHeaderParameter = {};
|
|
5471
|
+
const localVarQueryParameter = {};
|
|
5472
|
+
// authentication JWT token required
|
|
5473
|
+
yield setApiKeyToObject$5(localVarHeaderParameter, "Authorization", configuration);
|
|
5474
|
+
setSearchParams$5(localVarUrlObj, localVarQueryParameter, options.query);
|
|
5475
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5476
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5477
|
+
return {
|
|
5478
|
+
url: toPathString$5(localVarUrlObj),
|
|
5479
|
+
options: localVarRequestOptions,
|
|
5480
|
+
};
|
|
5481
|
+
}),
|
|
5482
|
+
};
|
|
5483
|
+
};
|
|
5484
|
+
/**
|
|
5485
|
+
* VisibilityApi - functional programming interface
|
|
5486
|
+
* @export
|
|
5487
|
+
*/
|
|
5488
|
+
const VisibilityApiFp = function (configuration) {
|
|
5489
|
+
const localVarAxiosParamCreator = VisibilityApiAxiosParamCreator(configuration);
|
|
5490
|
+
return {
|
|
6189
5491
|
/**
|
|
6190
5492
|
*
|
|
6191
|
-
* @summary
|
|
6192
|
-
* @param {string} projectId Id of the project.
|
|
6193
|
-
* @param {string} resourceTypeId Id of the resource type.
|
|
5493
|
+
* @summary Returns all available visibilities
|
|
6194
5494
|
* @param {*} [options] Override http request option.
|
|
6195
5495
|
* @throws {RequiredError}
|
|
6196
5496
|
*/
|
|
6197
|
-
|
|
6198
|
-
return
|
|
5497
|
+
visibilityIndex(options) {
|
|
5498
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5499
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.visibilityIndex(options);
|
|
5500
|
+
return createRequestFunction$5(localVarAxiosArgs, axios, BASE_PATH$5, configuration);
|
|
5501
|
+
});
|
|
6199
5502
|
},
|
|
5503
|
+
};
|
|
5504
|
+
};
|
|
5505
|
+
/**
|
|
5506
|
+
* VisibilityApi - factory interface
|
|
5507
|
+
* @export
|
|
5508
|
+
*/
|
|
5509
|
+
const VisibilityApiFactory = function (configuration, basePath, axios) {
|
|
5510
|
+
const localVarFp = VisibilityApiFp(configuration);
|
|
5511
|
+
return {
|
|
6200
5512
|
/**
|
|
6201
5513
|
*
|
|
6202
|
-
* @summary
|
|
6203
|
-
* @param {string} resourceId
|
|
6204
|
-
* @param {UpdateResourceObject} updateResourceObject Contains the resource id and the new quota.
|
|
5514
|
+
* @summary Returns all available visibilities
|
|
6205
5515
|
* @param {*} [options] Override http request option.
|
|
6206
5516
|
* @throws {RequiredError}
|
|
6207
5517
|
*/
|
|
6208
|
-
|
|
6209
|
-
return localVarFp.
|
|
5518
|
+
visibilityIndex(options) {
|
|
5519
|
+
return localVarFp.visibilityIndex(options).then((request) => request(axios, basePath));
|
|
6210
5520
|
},
|
|
6211
5521
|
};
|
|
6212
5522
|
};
|
|
@@ -6310,6 +5620,20 @@
|
|
|
6310
5620
|
};
|
|
6311
5621
|
|
|
6312
5622
|
/* tslint:disable */
|
|
5623
|
+
/**
|
|
5624
|
+
*
|
|
5625
|
+
* @export
|
|
5626
|
+
* @enum {string}
|
|
5627
|
+
*/
|
|
5628
|
+
var QuotaUnit;
|
|
5629
|
+
(function (QuotaUnit) {
|
|
5630
|
+
QuotaUnit["Byte"] = "https://qudt.org/vocab/unit/BYTE";
|
|
5631
|
+
QuotaUnit["KibiByte"] = "https://qudt.org/vocab/unit/KibiBYTE";
|
|
5632
|
+
QuotaUnit["MebiByte"] = "https://qudt.org/vocab/unit/MebiBYTE";
|
|
5633
|
+
QuotaUnit["GibiByte"] = "https://qudt.org/vocab/unit/GibiBYTE";
|
|
5634
|
+
QuotaUnit["TebiByte"] = "https://qudt.org/vocab/unit/TebiBYTE";
|
|
5635
|
+
QuotaUnit["PebiByte"] = "https://qudt.org/vocab/unit/PebiBYTE";
|
|
5636
|
+
})(QuotaUnit || (QuotaUnit = {}));
|
|
6313
5637
|
/**
|
|
6314
5638
|
*
|
|
6315
5639
|
* @export
|
|
@@ -6328,7 +5652,7 @@
|
|
|
6328
5652
|
return {
|
|
6329
5653
|
/**
|
|
6330
5654
|
*
|
|
6331
|
-
* @summary
|
|
5655
|
+
* @summary Deletes a resource.
|
|
6332
5656
|
* @param {string} id A GUID as a string that identifies the resource.
|
|
6333
5657
|
* @param {*} [options] Override http request option.
|
|
6334
5658
|
* @throws {RequiredError}
|
|
@@ -6359,8 +5683,8 @@
|
|
|
6359
5683
|
}),
|
|
6360
5684
|
/**
|
|
6361
5685
|
*
|
|
6362
|
-
* @summary
|
|
6363
|
-
* @param {string} id
|
|
5686
|
+
* @summary Returns the resource with a specified id.
|
|
5687
|
+
* @param {string} id The resource id.
|
|
6364
5688
|
* @param {*} [options] Override http request option.
|
|
6365
5689
|
* @throws {RequiredError}
|
|
6366
5690
|
*/
|
|
@@ -6390,7 +5714,7 @@
|
|
|
6390
5714
|
}),
|
|
6391
5715
|
/**
|
|
6392
5716
|
*
|
|
6393
|
-
* @summary
|
|
5717
|
+
* @summary Returns a list of all resources the current user has access to.
|
|
6394
5718
|
* @param {*} [options] Override http request option.
|
|
6395
5719
|
* @throws {RequiredError}
|
|
6396
5720
|
*/
|
|
@@ -6417,8 +5741,8 @@
|
|
|
6417
5741
|
}),
|
|
6418
5742
|
/**
|
|
6419
5743
|
*
|
|
6420
|
-
* @summary
|
|
6421
|
-
* @param {string} id
|
|
5744
|
+
* @summary Returns whether or not the current user is creator of a specified resource.
|
|
5745
|
+
* @param {string} id The resource id.
|
|
6422
5746
|
* @param {*} [options] Override http request option.
|
|
6423
5747
|
* @throws {RequiredError}
|
|
6424
5748
|
*/
|
|
@@ -6448,7 +5772,7 @@
|
|
|
6448
5772
|
}),
|
|
6449
5773
|
/**
|
|
6450
5774
|
*
|
|
6451
|
-
* @summary
|
|
5775
|
+
* @summary Sets a read only status of a given resource.
|
|
6452
5776
|
* @param {string} id A GUID as a string that identifies the resource.
|
|
6453
5777
|
* @param {boolean} [status] A boolean value that specifies if the resource is archived.
|
|
6454
5778
|
* @param {*} [options] Override http request option.
|
|
@@ -6483,7 +5807,7 @@
|
|
|
6483
5807
|
}),
|
|
6484
5808
|
/**
|
|
6485
5809
|
*
|
|
6486
|
-
* @summary
|
|
5810
|
+
* @summary Stores the provided resource object in a specified project.
|
|
6487
5811
|
* @param {string} projectId A GUID as a string that identifies the resource.
|
|
6488
5812
|
* @param {ResourceObject} resourceObject Entry representing the user
|
|
6489
5813
|
* @param {*} [options] Override http request option.
|
|
@@ -6519,8 +5843,8 @@
|
|
|
6519
5843
|
}),
|
|
6520
5844
|
/**
|
|
6521
5845
|
*
|
|
6522
|
-
* @summary
|
|
6523
|
-
* @param {string} id
|
|
5846
|
+
* @summary Updates a resource.
|
|
5847
|
+
* @param {string} id The resource id.
|
|
6524
5848
|
* @param {ResourceObject} resourceObject Entry representing the user
|
|
6525
5849
|
* @param {*} [options] Override http request option.
|
|
6526
5850
|
* @throws {RequiredError}
|
|
@@ -6564,7 +5888,7 @@
|
|
|
6564
5888
|
return {
|
|
6565
5889
|
/**
|
|
6566
5890
|
*
|
|
6567
|
-
* @summary
|
|
5891
|
+
* @summary Deletes a resource.
|
|
6568
5892
|
* @param {string} id A GUID as a string that identifies the resource.
|
|
6569
5893
|
* @param {*} [options] Override http request option.
|
|
6570
5894
|
* @throws {RequiredError}
|
|
@@ -6577,8 +5901,8 @@
|
|
|
6577
5901
|
},
|
|
6578
5902
|
/**
|
|
6579
5903
|
*
|
|
6580
|
-
* @summary
|
|
6581
|
-
* @param {string} id
|
|
5904
|
+
* @summary Returns the resource with a specified id.
|
|
5905
|
+
* @param {string} id The resource id.
|
|
6582
5906
|
* @param {*} [options] Override http request option.
|
|
6583
5907
|
* @throws {RequiredError}
|
|
6584
5908
|
*/
|
|
@@ -6590,7 +5914,7 @@
|
|
|
6590
5914
|
},
|
|
6591
5915
|
/**
|
|
6592
5916
|
*
|
|
6593
|
-
* @summary
|
|
5917
|
+
* @summary Returns a list of all resources the current user has access to.
|
|
6594
5918
|
* @param {*} [options] Override http request option.
|
|
6595
5919
|
* @throws {RequiredError}
|
|
6596
5920
|
*/
|
|
@@ -6602,8 +5926,8 @@
|
|
|
6602
5926
|
},
|
|
6603
5927
|
/**
|
|
6604
5928
|
*
|
|
6605
|
-
* @summary
|
|
6606
|
-
* @param {string} id
|
|
5929
|
+
* @summary Returns whether or not the current user is creator of a specified resource.
|
|
5930
|
+
* @param {string} id The resource id.
|
|
6607
5931
|
* @param {*} [options] Override http request option.
|
|
6608
5932
|
* @throws {RequiredError}
|
|
6609
5933
|
*/
|
|
@@ -6615,7 +5939,7 @@
|
|
|
6615
5939
|
},
|
|
6616
5940
|
/**
|
|
6617
5941
|
*
|
|
6618
|
-
* @summary
|
|
5942
|
+
* @summary Sets a read only status of a given resource.
|
|
6619
5943
|
* @param {string} id A GUID as a string that identifies the resource.
|
|
6620
5944
|
* @param {boolean} [status] A boolean value that specifies if the resource is archived.
|
|
6621
5945
|
* @param {*} [options] Override http request option.
|
|
@@ -6629,7 +5953,7 @@
|
|
|
6629
5953
|
},
|
|
6630
5954
|
/**
|
|
6631
5955
|
*
|
|
6632
|
-
* @summary
|
|
5956
|
+
* @summary Stores the provided resource object in a specified project.
|
|
6633
5957
|
* @param {string} projectId A GUID as a string that identifies the resource.
|
|
6634
5958
|
* @param {ResourceObject} resourceObject Entry representing the user
|
|
6635
5959
|
* @param {*} [options] Override http request option.
|
|
@@ -6643,8 +5967,8 @@
|
|
|
6643
5967
|
},
|
|
6644
5968
|
/**
|
|
6645
5969
|
*
|
|
6646
|
-
* @summary
|
|
6647
|
-
* @param {string} id
|
|
5970
|
+
* @summary Updates a resource.
|
|
5971
|
+
* @param {string} id The resource id.
|
|
6648
5972
|
* @param {ResourceObject} resourceObject Entry representing the user
|
|
6649
5973
|
* @param {*} [options] Override http request option.
|
|
6650
5974
|
* @throws {RequiredError}
|
|
@@ -6666,7 +5990,7 @@
|
|
|
6666
5990
|
return {
|
|
6667
5991
|
/**
|
|
6668
5992
|
*
|
|
6669
|
-
* @summary
|
|
5993
|
+
* @summary Deletes a resource.
|
|
6670
5994
|
* @param {string} id A GUID as a string that identifies the resource.
|
|
6671
5995
|
* @param {*} [options] Override http request option.
|
|
6672
5996
|
* @throws {RequiredError}
|
|
@@ -6676,8 +6000,8 @@
|
|
|
6676
6000
|
},
|
|
6677
6001
|
/**
|
|
6678
6002
|
*
|
|
6679
|
-
* @summary
|
|
6680
|
-
* @param {string} id
|
|
6003
|
+
* @summary Returns the resource with a specified id.
|
|
6004
|
+
* @param {string} id The resource id.
|
|
6681
6005
|
* @param {*} [options] Override http request option.
|
|
6682
6006
|
* @throws {RequiredError}
|
|
6683
6007
|
*/
|
|
@@ -6686,7 +6010,7 @@
|
|
|
6686
6010
|
},
|
|
6687
6011
|
/**
|
|
6688
6012
|
*
|
|
6689
|
-
* @summary
|
|
6013
|
+
* @summary Returns a list of all resources the current user has access to.
|
|
6690
6014
|
* @param {*} [options] Override http request option.
|
|
6691
6015
|
* @throws {RequiredError}
|
|
6692
6016
|
*/
|
|
@@ -6695,8 +6019,8 @@
|
|
|
6695
6019
|
},
|
|
6696
6020
|
/**
|
|
6697
6021
|
*
|
|
6698
|
-
* @summary
|
|
6699
|
-
* @param {string} id
|
|
6022
|
+
* @summary Returns whether or not the current user is creator of a specified resource.
|
|
6023
|
+
* @param {string} id The resource id.
|
|
6700
6024
|
* @param {*} [options] Override http request option.
|
|
6701
6025
|
* @throws {RequiredError}
|
|
6702
6026
|
*/
|
|
@@ -6705,7 +6029,7 @@
|
|
|
6705
6029
|
},
|
|
6706
6030
|
/**
|
|
6707
6031
|
*
|
|
6708
|
-
* @summary
|
|
6032
|
+
* @summary Sets a read only status of a given resource.
|
|
6709
6033
|
* @param {string} id A GUID as a string that identifies the resource.
|
|
6710
6034
|
* @param {boolean} [status] A boolean value that specifies if the resource is archived.
|
|
6711
6035
|
* @param {*} [options] Override http request option.
|
|
@@ -6716,7 +6040,7 @@
|
|
|
6716
6040
|
},
|
|
6717
6041
|
/**
|
|
6718
6042
|
*
|
|
6719
|
-
* @summary
|
|
6043
|
+
* @summary Stores the provided resource object in a specified project.
|
|
6720
6044
|
* @param {string} projectId A GUID as a string that identifies the resource.
|
|
6721
6045
|
* @param {ResourceObject} resourceObject Entry representing the user
|
|
6722
6046
|
* @param {*} [options] Override http request option.
|
|
@@ -6727,8 +6051,8 @@
|
|
|
6727
6051
|
},
|
|
6728
6052
|
/**
|
|
6729
6053
|
*
|
|
6730
|
-
* @summary
|
|
6731
|
-
* @param {string} id
|
|
6054
|
+
* @summary Updates a resource.
|
|
6055
|
+
* @param {string} id The resource id.
|
|
6732
6056
|
* @param {ResourceObject} resourceObject Entry representing the user
|
|
6733
6057
|
* @param {*} [options] Override http request option.
|
|
6734
6058
|
* @throws {RequiredError}
|
|
@@ -6738,6 +6062,147 @@
|
|
|
6738
6062
|
},
|
|
6739
6063
|
};
|
|
6740
6064
|
};
|
|
6065
|
+
/**
|
|
6066
|
+
* ResourceQuotaApi - axios parameter creator
|
|
6067
|
+
* @export
|
|
6068
|
+
*/
|
|
6069
|
+
const ResourceQuotaApiAxiosParamCreator = function (configuration) {
|
|
6070
|
+
return {
|
|
6071
|
+
/**
|
|
6072
|
+
*
|
|
6073
|
+
* @summary Retrieves the resource quota for an individual resource.
|
|
6074
|
+
* @param {string} id Id of the resource.
|
|
6075
|
+
* @param {*} [options] Override http request option.
|
|
6076
|
+
* @throws {RequiredError}
|
|
6077
|
+
*/
|
|
6078
|
+
resourceQuotaGetResourceQuota: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6079
|
+
// verify required parameter 'id' is not null or undefined
|
|
6080
|
+
assertParamExists$3('resourceQuotaGetResourceQuota', 'id', id);
|
|
6081
|
+
const localVarPath = `/ResourceQuota/{id}`
|
|
6082
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6083
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6084
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$4);
|
|
6085
|
+
let baseOptions;
|
|
6086
|
+
if (configuration) {
|
|
6087
|
+
baseOptions = configuration.baseOptions;
|
|
6088
|
+
}
|
|
6089
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6090
|
+
const localVarHeaderParameter = {};
|
|
6091
|
+
const localVarQueryParameter = {};
|
|
6092
|
+
// authentication JWT token required
|
|
6093
|
+
yield setApiKeyToObject$4(localVarHeaderParameter, "Authorization", configuration);
|
|
6094
|
+
setSearchParams$4(localVarUrlObj, localVarQueryParameter, options.query);
|
|
6095
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6096
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6097
|
+
return {
|
|
6098
|
+
url: toPathString$4(localVarUrlObj),
|
|
6099
|
+
options: localVarRequestOptions,
|
|
6100
|
+
};
|
|
6101
|
+
}),
|
|
6102
|
+
/**
|
|
6103
|
+
*
|
|
6104
|
+
* @summary Updates the resource quota for an individual resource.
|
|
6105
|
+
* @param {string} id Id of the resource.
|
|
6106
|
+
* @param {UpdateResourceObject} updateResourceObject Contains the resource id and the new quota.
|
|
6107
|
+
* @param {*} [options] Override http request option.
|
|
6108
|
+
* @throws {RequiredError}
|
|
6109
|
+
*/
|
|
6110
|
+
resourceQuotaUpdateResourceQuota: (id, updateResourceObject, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6111
|
+
// verify required parameter 'id' is not null or undefined
|
|
6112
|
+
assertParamExists$3('resourceQuotaUpdateResourceQuota', 'id', id);
|
|
6113
|
+
// verify required parameter 'updateResourceObject' is not null or undefined
|
|
6114
|
+
assertParamExists$3('resourceQuotaUpdateResourceQuota', 'updateResourceObject', updateResourceObject);
|
|
6115
|
+
const localVarPath = `/ResourceQuota/{id}`
|
|
6116
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6117
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6118
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$4);
|
|
6119
|
+
let baseOptions;
|
|
6120
|
+
if (configuration) {
|
|
6121
|
+
baseOptions = configuration.baseOptions;
|
|
6122
|
+
}
|
|
6123
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6124
|
+
const localVarHeaderParameter = {};
|
|
6125
|
+
const localVarQueryParameter = {};
|
|
6126
|
+
// authentication JWT token required
|
|
6127
|
+
yield setApiKeyToObject$4(localVarHeaderParameter, "Authorization", configuration);
|
|
6128
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6129
|
+
setSearchParams$4(localVarUrlObj, localVarQueryParameter, options.query);
|
|
6130
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6131
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6132
|
+
localVarRequestOptions.data = serializeDataIfNeeded$2(updateResourceObject, localVarRequestOptions, configuration);
|
|
6133
|
+
return {
|
|
6134
|
+
url: toPathString$4(localVarUrlObj),
|
|
6135
|
+
options: localVarRequestOptions,
|
|
6136
|
+
};
|
|
6137
|
+
}),
|
|
6138
|
+
};
|
|
6139
|
+
};
|
|
6140
|
+
/**
|
|
6141
|
+
* ResourceQuotaApi - functional programming interface
|
|
6142
|
+
* @export
|
|
6143
|
+
*/
|
|
6144
|
+
const ResourceQuotaApiFp = function (configuration) {
|
|
6145
|
+
const localVarAxiosParamCreator = ResourceQuotaApiAxiosParamCreator(configuration);
|
|
6146
|
+
return {
|
|
6147
|
+
/**
|
|
6148
|
+
*
|
|
6149
|
+
* @summary Retrieves the resource quota for an individual resource.
|
|
6150
|
+
* @param {string} id Id of the resource.
|
|
6151
|
+
* @param {*} [options] Override http request option.
|
|
6152
|
+
* @throws {RequiredError}
|
|
6153
|
+
*/
|
|
6154
|
+
resourceQuotaGetResourceQuota(id, options) {
|
|
6155
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6156
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.resourceQuotaGetResourceQuota(id, options);
|
|
6157
|
+
return createRequestFunction$4(localVarAxiosArgs, axios, BASE_PATH$4, configuration);
|
|
6158
|
+
});
|
|
6159
|
+
},
|
|
6160
|
+
/**
|
|
6161
|
+
*
|
|
6162
|
+
* @summary Updates the resource quota for an individual resource.
|
|
6163
|
+
* @param {string} id Id of the resource.
|
|
6164
|
+
* @param {UpdateResourceObject} updateResourceObject Contains the resource id and the new quota.
|
|
6165
|
+
* @param {*} [options] Override http request option.
|
|
6166
|
+
* @throws {RequiredError}
|
|
6167
|
+
*/
|
|
6168
|
+
resourceQuotaUpdateResourceQuota(id, updateResourceObject, options) {
|
|
6169
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6170
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.resourceQuotaUpdateResourceQuota(id, updateResourceObject, options);
|
|
6171
|
+
return createRequestFunction$4(localVarAxiosArgs, axios, BASE_PATH$4, configuration);
|
|
6172
|
+
});
|
|
6173
|
+
},
|
|
6174
|
+
};
|
|
6175
|
+
};
|
|
6176
|
+
/**
|
|
6177
|
+
* ResourceQuotaApi - factory interface
|
|
6178
|
+
* @export
|
|
6179
|
+
*/
|
|
6180
|
+
const ResourceQuotaApiFactory = function (configuration, basePath, axios) {
|
|
6181
|
+
const localVarFp = ResourceQuotaApiFp(configuration);
|
|
6182
|
+
return {
|
|
6183
|
+
/**
|
|
6184
|
+
*
|
|
6185
|
+
* @summary Retrieves the resource quota for an individual resource.
|
|
6186
|
+
* @param {string} id Id of the resource.
|
|
6187
|
+
* @param {*} [options] Override http request option.
|
|
6188
|
+
* @throws {RequiredError}
|
|
6189
|
+
*/
|
|
6190
|
+
resourceQuotaGetResourceQuota(id, options) {
|
|
6191
|
+
return localVarFp.resourceQuotaGetResourceQuota(id, options).then((request) => request(axios, basePath));
|
|
6192
|
+
},
|
|
6193
|
+
/**
|
|
6194
|
+
*
|
|
6195
|
+
* @summary Updates the resource quota for an individual resource.
|
|
6196
|
+
* @param {string} id Id of the resource.
|
|
6197
|
+
* @param {UpdateResourceObject} updateResourceObject Contains the resource id and the new quota.
|
|
6198
|
+
* @param {*} [options] Override http request option.
|
|
6199
|
+
* @throws {RequiredError}
|
|
6200
|
+
*/
|
|
6201
|
+
resourceQuotaUpdateResourceQuota(id, updateResourceObject, options) {
|
|
6202
|
+
return localVarFp.resourceQuotaUpdateResourceQuota(id, updateResourceObject, options).then((request) => request(axios, basePath));
|
|
6203
|
+
},
|
|
6204
|
+
};
|
|
6205
|
+
};
|
|
6741
6206
|
/**
|
|
6742
6207
|
* ResourceTypeApi - axios parameter creator
|
|
6743
6208
|
* @export
|
|
@@ -6916,7 +6381,7 @@
|
|
|
6916
6381
|
};
|
|
6917
6382
|
|
|
6918
6383
|
/* tslint:disable */
|
|
6919
|
-
const BASE_PATH$3 = "https://d-
|
|
6384
|
+
const BASE_PATH$3 = "https://d-sp23.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Search".replace(/\/+$/, "");
|
|
6920
6385
|
|
|
6921
6386
|
/* tslint:disable */
|
|
6922
6387
|
/**
|
|
@@ -6979,14 +6444,25 @@
|
|
|
6979
6444
|
|
|
6980
6445
|
/* tslint:disable */
|
|
6981
6446
|
/**
|
|
6982
|
-
*
|
|
6447
|
+
*
|
|
6448
|
+
* @export
|
|
6449
|
+
* @enum {string}
|
|
6450
|
+
*/
|
|
6451
|
+
var ItemType;
|
|
6452
|
+
(function (ItemType) {
|
|
6453
|
+
ItemType["Metadata"] = "Metadata";
|
|
6454
|
+
ItemType["Project"] = "Project";
|
|
6455
|
+
ItemType["Resource"] = "Resource";
|
|
6456
|
+
})(ItemType || (ItemType = {}));
|
|
6457
|
+
/**
|
|
6458
|
+
* SearchApi - axios parameter creator
|
|
6983
6459
|
* @export
|
|
6984
6460
|
*/
|
|
6985
|
-
const
|
|
6461
|
+
const SearchApiAxiosParamCreator = function (configuration) {
|
|
6986
6462
|
return {
|
|
6987
6463
|
/**
|
|
6988
6464
|
*
|
|
6989
|
-
* @summary Search
|
|
6465
|
+
* @summary Search
|
|
6990
6466
|
* @param {string} [query] Elasticsearch query
|
|
6991
6467
|
* @param {boolean} [user] Specify user or only public metadata records could be found
|
|
6992
6468
|
* @param {boolean} [adv] Set true for advanced Elasticsearch search syntax
|
|
@@ -6994,8 +6470,8 @@
|
|
|
6994
6470
|
* @param {*} [options] Override http request option.
|
|
6995
6471
|
* @throws {RequiredError}
|
|
6996
6472
|
*/
|
|
6997
|
-
|
|
6998
|
-
const localVarPath = `/
|
|
6473
|
+
searchSearch: (query, user, adv, languages, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6474
|
+
const localVarPath = `/Search`;
|
|
6999
6475
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7000
6476
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$3);
|
|
7001
6477
|
let baseOptions;
|
|
@@ -7030,15 +6506,15 @@
|
|
|
7030
6506
|
};
|
|
7031
6507
|
};
|
|
7032
6508
|
/**
|
|
7033
|
-
*
|
|
6509
|
+
* SearchApi - functional programming interface
|
|
7034
6510
|
* @export
|
|
7035
6511
|
*/
|
|
7036
|
-
const
|
|
7037
|
-
const localVarAxiosParamCreator =
|
|
6512
|
+
const SearchApiFp = function (configuration) {
|
|
6513
|
+
const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration);
|
|
7038
6514
|
return {
|
|
7039
6515
|
/**
|
|
7040
6516
|
*
|
|
7041
|
-
* @summary Search
|
|
6517
|
+
* @summary Search
|
|
7042
6518
|
* @param {string} [query] Elasticsearch query
|
|
7043
6519
|
* @param {boolean} [user] Specify user or only public metadata records could be found
|
|
7044
6520
|
* @param {boolean} [adv] Set true for advanced Elasticsearch search syntax
|
|
@@ -7046,24 +6522,24 @@
|
|
|
7046
6522
|
* @param {*} [options] Override http request option.
|
|
7047
6523
|
* @throws {RequiredError}
|
|
7048
6524
|
*/
|
|
7049
|
-
|
|
6525
|
+
searchSearch(query, user, adv, languages, options) {
|
|
7050
6526
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7051
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
6527
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.searchSearch(query, user, adv, languages, options);
|
|
7052
6528
|
return createRequestFunction$3(localVarAxiosArgs, axios, BASE_PATH$3, configuration);
|
|
7053
6529
|
});
|
|
7054
6530
|
},
|
|
7055
6531
|
};
|
|
7056
6532
|
};
|
|
7057
6533
|
/**
|
|
7058
|
-
*
|
|
6534
|
+
* SearchApi - factory interface
|
|
7059
6535
|
* @export
|
|
7060
6536
|
*/
|
|
7061
|
-
const
|
|
7062
|
-
const localVarFp =
|
|
6537
|
+
const SearchApiFactory = function (configuration, basePath, axios) {
|
|
6538
|
+
const localVarFp = SearchApiFp(configuration);
|
|
7063
6539
|
return {
|
|
7064
6540
|
/**
|
|
7065
6541
|
*
|
|
7066
|
-
* @summary Search
|
|
6542
|
+
* @summary Search
|
|
7067
6543
|
* @param {string} [query] Elasticsearch query
|
|
7068
6544
|
* @param {boolean} [user] Specify user or only public metadata records could be found
|
|
7069
6545
|
* @param {boolean} [adv] Set true for advanced Elasticsearch search syntax
|
|
@@ -7071,8 +6547,8 @@
|
|
|
7071
6547
|
* @param {*} [options] Override http request option.
|
|
7072
6548
|
* @throws {RequiredError}
|
|
7073
6549
|
*/
|
|
7074
|
-
|
|
7075
|
-
return localVarFp.
|
|
6550
|
+
searchSearch(query, user, adv, languages, options) {
|
|
6551
|
+
return localVarFp.searchSearch(query, user, adv, languages, options).then((request) => request(axios, basePath));
|
|
7076
6552
|
},
|
|
7077
6553
|
};
|
|
7078
6554
|
};
|
|
@@ -7463,7 +6939,7 @@
|
|
|
7463
6939
|
};
|
|
7464
6940
|
|
|
7465
6941
|
/* tslint:disable */
|
|
7466
|
-
const BASE_PATH$1 = "https://d-
|
|
6942
|
+
const BASE_PATH$1 = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Tree".replace(/\/+$/, "");
|
|
7467
6943
|
/**
|
|
7468
6944
|
*
|
|
7469
6945
|
* @export
|
|
@@ -8526,7 +8002,6 @@
|
|
|
8526
8002
|
};
|
|
8527
8003
|
function implementations(axios) {
|
|
8528
8004
|
return {
|
|
8529
|
-
ActivatedFeaturesApi: ActivatedFeaturesApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.ActivatedFeatures', axios),
|
|
8530
8005
|
AdminApi: AdminApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Admin', axios),
|
|
8531
8006
|
BlobApi: BlobApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Blob', axios),
|
|
8532
8007
|
ContactChangeApi: ContactChangeApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.User', axios),
|
|
@@ -8536,14 +8011,15 @@
|
|
|
8536
8011
|
MetadataApi: MetadataApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Metadata', axios),
|
|
8537
8012
|
NoticeApi: NoticeApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Notices', axios),
|
|
8538
8013
|
OrganizationApi: OrganizationApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Organization', axios),
|
|
8014
|
+
PidApi: PidApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Pid', axios),
|
|
8539
8015
|
ProjectApi: ProjectApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Project', axios),
|
|
8016
|
+
ProjectQuotaApi: ProjectQuotaApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Project', axios),
|
|
8540
8017
|
ProjectRoleApi: ProjectRoleApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Project', axios),
|
|
8541
|
-
QuotaApi: QuotaApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Quota', axios),
|
|
8542
8018
|
ResourceApi: ResourceApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Resources', axios),
|
|
8019
|
+
ResourceQuotaApi: ResourceQuotaApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Resources', axios),
|
|
8543
8020
|
ResourceTypeApi: ResourceTypeApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Resources', axios),
|
|
8544
8021
|
RoleApi: RoleApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Project', axios),
|
|
8545
|
-
SearchApi: SearchApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.
|
|
8546
|
-
SemanticSearchApi: SemanticSearchApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Search', axios),
|
|
8022
|
+
SearchApi: SearchApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Search', axios),
|
|
8547
8023
|
SubProjectApi: SubProjectApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Project', axios),
|
|
8548
8024
|
TitleApi: TitleApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.User', axios),
|
|
8549
8025
|
TokenApi: TokenApiFactory(new Configuration({ 'accessToken': accessToken }), 'https://' + getHostName() + '/coscine/api/Coscine.Api.Token', axios),
|
|
@@ -8593,7 +8069,6 @@
|
|
|
8593
8069
|
});
|
|
8594
8070
|
|
|
8595
8071
|
const apis = implementations(instance);
|
|
8596
|
-
const ActivatedFeaturesApi = apis.ActivatedFeaturesApi;
|
|
8597
8072
|
const AdminApi = apis.AdminApi;
|
|
8598
8073
|
const BlobApi = apis.BlobApi;
|
|
8599
8074
|
const ContactChangeApi = apis.ContactChangeApi;
|
|
@@ -8603,14 +8078,15 @@
|
|
|
8603
8078
|
const MetadataApi = apis.MetadataApi;
|
|
8604
8079
|
const NoticeApi = apis.NoticeApi;
|
|
8605
8080
|
const OrganizationApi = apis.OrganizationApi;
|
|
8081
|
+
const PidApi = apis.PidApi;
|
|
8606
8082
|
const ProjectApi = apis.ProjectApi;
|
|
8083
|
+
const ProjectQuotaApi = apis.ProjectQuotaApi;
|
|
8607
8084
|
const ProjectRoleApi = apis.ProjectRoleApi;
|
|
8608
|
-
const QuotaApi = apis.QuotaApi;
|
|
8609
8085
|
const ResourceApi = apis.ResourceApi;
|
|
8086
|
+
const ResourceQuotaApi = apis.ResourceQuotaApi;
|
|
8610
8087
|
const ResourceTypeApi = apis.ResourceTypeApi;
|
|
8611
8088
|
const RoleApi = apis.RoleApi;
|
|
8612
8089
|
const SearchApi = apis.SearchApi;
|
|
8613
|
-
const SemanticSearchApi = apis.SemanticSearchApi;
|
|
8614
8090
|
const SubProjectApi = apis.SubProjectApi;
|
|
8615
8091
|
const TitleApi = apis.TitleApi;
|
|
8616
8092
|
const TokenApi = apis.TokenApi;
|
|
@@ -8619,7 +8095,6 @@
|
|
|
8619
8095
|
const UserApi = apis.UserApi;
|
|
8620
8096
|
const VisibilityApi = apis.VisibilityApi;
|
|
8621
8097
|
|
|
8622
|
-
exports.ActivatedFeaturesApi = ActivatedFeaturesApi;
|
|
8623
8098
|
exports.AdminApi = AdminApi;
|
|
8624
8099
|
exports.BlobApi = BlobApi;
|
|
8625
8100
|
exports.ContactChangeApi = ContactChangeApi;
|
|
@@ -8629,14 +8104,15 @@
|
|
|
8629
8104
|
exports.MetadataApi = MetadataApi;
|
|
8630
8105
|
exports.NoticeApi = NoticeApi;
|
|
8631
8106
|
exports.OrganizationApi = OrganizationApi;
|
|
8107
|
+
exports.PidApi = PidApi;
|
|
8632
8108
|
exports.ProjectApi = ProjectApi;
|
|
8109
|
+
exports.ProjectQuotaApi = ProjectQuotaApi;
|
|
8633
8110
|
exports.ProjectRoleApi = ProjectRoleApi;
|
|
8634
|
-
exports.QuotaApi = QuotaApi;
|
|
8635
8111
|
exports.ResourceApi = ResourceApi;
|
|
8112
|
+
exports.ResourceQuotaApi = ResourceQuotaApi;
|
|
8636
8113
|
exports.ResourceTypeApi = ResourceTypeApi;
|
|
8637
8114
|
exports.RoleApi = RoleApi;
|
|
8638
8115
|
exports.SearchApi = SearchApi;
|
|
8639
|
-
exports.SemanticSearchApi = SemanticSearchApi;
|
|
8640
8116
|
exports.SubProjectApi = SubProjectApi;
|
|
8641
8117
|
exports.TOSApi = TOSApi;
|
|
8642
8118
|
exports.TitleApi = TitleApi;
|