Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • APIv2
  • Experiment/esbuild
  • Fix/xxxx-OpenAPI630
  • Fix/xxxx-migrateLogin
  • Hotfix/1917-vocabCheck
  • Hotfix/2258-saveButtonWorksAsExpected
  • Hotfix/2427-adminTrouble
  • Hotfix/2611-feedback
  • Hotfix/2681-validationErrors
  • Hotfix/xxxx-release
  • Issue/1172-uploadProgress
  • Issue/1321-pidEnquiryOverhaul
  • Issue/1740-ElasticSearchOnCoscineFrontend
  • Issue/1745-coscineConnection
  • Issue/1746-ApplicationProfileStoringMethod
  • Issue/1782-structualDataIntegration
  • Issue/1804-fixedValueFix
  • Issue/1833-newLogin
  • Issue/1861-searchMetadata
  • Issue/1863-paginationForSearch
  • Issue/1926-userProfile
  • Issue/1938-internalHandling
  • Issue/1951-quotaImplementation
  • Issue/1957-resourceAppMigrationNew
  • Issue/1971-projectEditCreateMigration
  • Issue/1972-homeDepot
  • Issue/2001-extendAnalyticsLogger
  • Issue/2008-quotaManagement
  • Issue/2072-wormResourceType
  • Issue/2101-gitLabResTypeUi
  • Issue/2228-userOrganization
  • Issue/2257-proofOfConceptTest
  • Issue/2262-frontendWorkspace
  • Issue/2264-sortSearchResults
  • Issue/2309-docs
  • Issue/2373-fixPagination
  • Issue/2401-advisoryServiceUI2
  • Issue/2414-resourceTypesAffilAndAllocQuota
  • Issue/2434-searchAPI
  • Issue/2435-userApi
  • Issue/2436-projectApi
  • Issue/2438-adminApi
  • Issue/2439-noticeApi
  • Issue/2440-migrateTokenApi
  • Issue/2445-extractedMetadata
  • Issue/2446-addingResponsibleOrganization
  • Issue/2449-GuidPidSlugToProjectSettings
  • Issue/2469-hideDotCoscine
  • Issue/2489-addNotificationManagement
  • Issue/2586-migrateBlob
  • Issue/2587-migrateTreeApi
  • Issue/2589-metadataOrganizationAPI
  • Issue/2627-addPidRecord
  • Issue/2665-extractLogger
  • Issue/2672-fixSfbPidPointing
  • Issue/2732-updatedApiClient
  • Issue/2739-outputCache
  • Issue/2782-correctUsageRights
  • Issue/2829-useHrefProperty
  • Issue/2875-devcontainer
  • Issue/2881-messageController
  • Issue/2900-removeInsituteField
  • Issue/2921-changesToDataPublicationFeature
  • Issue/2926-regAppLogin
  • Issue/2981-dataPubInDb
  • Issue/3011-maintenanceMode
  • Issue/3043-DataStorageNrwResource
  • Issue/3085-useNewApiClient
  • Issue/3133-subProjectsChanges
  • Issue/xxxx-configurableApiHostname
  • Issue/xxxx-excludeModuleAPs
  • Sprint/2021-2022
  • Sprint/2021-23
  • Sprint/2021-24
  • Sprint/2022-01
  • Sprint/2022-05
  • coscine/issues#2727
  • dev
  • main
  • main-testing
  • revert-3c6942bb
  • uiv2
  • x/setup
  • v1.0.0
  • v1.1.0
  • v1.1.1
  • v1.2.0
  • v1.3.0
  • v1.4.0
  • v1.5.0
  • v1.5.1
  • v1.5.2
  • v2.0.0
  • v2.1.0
  • v2.10.0
  • v2.11.0
  • v2.12.0
  • v2.2.0
  • v2.3.0
  • v2.4.0
  • v2.5.0
  • v2.6.0
  • v2.7.0
  • v2.8.0
  • v2.8.1
  • v2.9.0
  • v2.9.1
  • v2.9.2
  • v3.0.0
  • v3.1.0
  • v3.10.0
  • v3.11.0
  • v3.12.0
  • v3.13.0
  • v3.14.0
  • v3.15.0
  • v3.16.0
  • v3.17.0
  • v3.18.0
  • v3.2.0
  • v3.2.1
  • v3.3.0
  • v3.3.1
  • v3.3.2-package.0
  • v3.4.0
  • v3.4.1
  • v3.4.2
  • v3.4.3
  • v3.5.0
  • v3.6.0
  • v3.7.0
  • v3.8.0
  • v3.9.0
133 results

Target

Select target project
  • coscine/frontend/libraries/api-client
1 result
Select Git revision
  • APIv2
  • Experiment/esbuild
  • Fix/xxxx-OpenAPI630
  • Fix/xxxx-migrateLogin
  • Hotfix/1917-vocabCheck
  • Hotfix/2258-saveButtonWorksAsExpected
  • Hotfix/2427-adminTrouble
  • Hotfix/2611-feedback
  • Hotfix/2681-validationErrors
  • Hotfix/xxxx-release
  • Issue/1172-uploadProgress
  • Issue/1321-pidEnquiryOverhaul
  • Issue/1740-ElasticSearchOnCoscineFrontend
  • Issue/1745-coscineConnection
  • Issue/1746-ApplicationProfileStoringMethod
  • Issue/1782-structualDataIntegration
  • Issue/1804-fixedValueFix
  • Issue/1833-newLogin
  • Issue/1861-searchMetadata
  • Issue/1863-paginationForSearch
  • Issue/1926-userProfile
  • Issue/1938-internalHandling
  • Issue/1951-quotaImplementation
  • Issue/1957-resourceAppMigrationNew
  • Issue/1971-projectEditCreateMigration
  • Issue/1972-homeDepot
  • Issue/2001-extendAnalyticsLogger
  • Issue/2008-quotaManagement
  • Issue/2072-wormResourceType
  • Issue/2101-gitLabResTypeUi
  • Issue/2228-userOrganization
  • Issue/2257-proofOfConceptTest
  • Issue/2262-frontendWorkspace
  • Issue/2264-sortSearchResults
  • Issue/2309-docs
  • Issue/2373-fixPagination
  • Issue/2401-advisoryServiceUI2
  • Issue/2414-resourceTypesAffilAndAllocQuota
  • Issue/2434-searchAPI
  • Issue/2435-userApi
  • Issue/2436-projectApi
  • Issue/2438-adminApi
  • Issue/2439-noticeApi
  • Issue/2440-migrateTokenApi
  • Issue/2445-extractedMetadata
  • Issue/2446-addingResponsibleOrganization
  • Issue/2449-GuidPidSlugToProjectSettings
  • Issue/2469-hideDotCoscine
  • Issue/2489-addNotificationManagement
  • Issue/2586-migrateBlob
  • Issue/2587-migrateTreeApi
  • Issue/2589-metadataOrganizationAPI
  • Issue/2627-addPidRecord
  • Issue/2665-extractLogger
  • Issue/2672-fixSfbPidPointing
  • Issue/2732-updatedApiClient
  • Issue/2739-outputCache
  • Issue/2782-correctUsageRights
  • Issue/2829-useHrefProperty
  • Issue/2875-devcontainer
  • Issue/2881-messageController
  • Issue/2900-removeInsituteField
  • Issue/2921-changesToDataPublicationFeature
  • Issue/2926-regAppLogin
  • Issue/2981-dataPubInDb
  • Issue/3011-maintenanceMode
  • Issue/3043-DataStorageNrwResource
  • Issue/3085-useNewApiClient
  • Issue/3133-subProjectsChanges
  • Issue/xxxx-configurableApiHostname
  • Issue/xxxx-excludeModuleAPs
  • Sprint/2021-2022
  • Sprint/2021-23
  • Sprint/2021-24
  • Sprint/2022-01
  • Sprint/2022-05
  • coscine/issues#2727
  • dev
  • main
  • main-testing
  • revert-3c6942bb
  • uiv2
  • x/setup
  • v1.0.0
  • v1.1.0
  • v1.1.1
  • v1.2.0
  • v1.3.0
  • v1.4.0
  • v1.5.0
  • v1.5.1
  • v1.5.2
  • v2.0.0
  • v2.1.0
  • v2.10.0
  • v2.11.0
  • v2.12.0
  • v2.2.0
  • v2.3.0
  • v2.4.0
  • v2.5.0
  • v2.6.0
  • v2.7.0
  • v2.8.0
  • v2.8.1
  • v2.9.0
  • v2.9.1
  • v2.9.2
  • v3.0.0
  • v3.1.0
  • v3.10.0
  • v3.11.0
  • v3.12.0
  • v3.13.0
  • v3.14.0
  • v3.15.0
  • v3.16.0
  • v3.17.0
  • v3.18.0
  • v3.2.0
  • v3.2.1
  • v3.3.0
  • v3.3.1
  • v3.3.2-package.0
  • v3.4.0
  • v3.4.1
  • v3.4.2
  • v3.4.3
  • v3.5.0
  • v3.6.0
  • v3.7.0
  • v3.8.0
  • v3.9.0
133 results
Show changes
Showing
with 344 additions and 722 deletions
5.2.1
\ No newline at end of file
/* tslint:disable */
/* eslint-disable */
/**
* Coscine.Api.Quota
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.6.3
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { Configuration } from './configuration';
import globalAxios, { AxiosPromise, AxiosInstance } from 'axios';
// Some imports not used depending on template conditions
// @ts-ignore
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
/**
* Contains information about the quota of a resource.
* @export
* @interface ProjectQuotaReturnObject
*/
export interface ProjectQuotaReturnObject {
/**
* Id of the resoure.
* @type {string}
* @memberof ProjectQuotaReturnObject
*/
id?: string;
/**
* Display name of the resource.
* @type {string}
* @memberof ProjectQuotaReturnObject
*/
name?: string | null;
/**
* How much space is used by the resource (rounded up and in gb).
* @type {number}
* @memberof ProjectQuotaReturnObject
*/
used?: number;
/**
* How much space is availabe to be taken by resource (in gb).
* @type {number}
* @memberof ProjectQuotaReturnObject
*/
allocated?: number;
}
/**
* Parameter object containing the update informations.
* @export
* @interface UpdateResourceObject
*/
export interface UpdateResourceObject {
/**
* Id of the resource.
* @type {string}
* @memberof UpdateResourceObject
*/
id?: string;
/**
* New Quota value.
* @type {number}
* @memberof UpdateResourceObject
*/
allocated?: number;
}
/**
* QuotaApi - axios parameter creator
* @export
*/
export const QuotaApiAxiosParamCreator = function (configuration?: Configuration) {
return {
/**
*
* @summary Retrieves the quota for the resource.
* @param {string} resourceId Id of the resource.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
quotaGetResourceQuota: async (resourceId: string, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'resourceId' is not null or undefined
assertParamExists('quotaGetResourceQuota', 'resourceId', resourceId)
const localVarPath = `/Quota/{resourceId}`
.replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
// authentication JWT token required
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
*
* @summary Retrieves the quota for the selected project and resource type.
* @param {string} projectId Id of the project.
* @param {string} resourceTypeId Id of the resource type.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
quotaGetResourceQuotas: async (projectId: string, resourceTypeId: string, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'projectId' is not null or undefined
assertParamExists('quotaGetResourceQuotas', 'projectId', projectId)
// verify required parameter 'resourceTypeId' is not null or undefined
assertParamExists('quotaGetResourceQuotas', 'resourceTypeId', resourceTypeId)
const localVarPath = `/Quota/{projectId}/{resourceTypeId}/all`
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
.replace(`{${"resourceTypeId"}}`, encodeURIComponent(String(resourceTypeId)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
// authentication JWT token required
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
*
* @summary Updates the quota for a resource.
* @param {string} resourceId
* @param {UpdateResourceObject} updateResourceObject Contains the resource id and the new quota.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
quotaUpdateResourceQuota: async (resourceId: string, updateResourceObject: UpdateResourceObject, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'resourceId' is not null or undefined
assertParamExists('quotaUpdateResourceQuota', 'resourceId', resourceId)
// verify required parameter 'updateResourceObject' is not null or undefined
assertParamExists('quotaUpdateResourceQuota', 'updateResourceObject', updateResourceObject)
const localVarPath = `/Quota/{resourceId}`
.replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
// authentication JWT token required
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
localVarHeaderParameter['Content-Type'] = 'application/json';
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
localVarRequestOptions.data = serializeDataIfNeeded(updateResourceObject, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
}
};
/**
* QuotaApi - functional programming interface
* @export
*/
export const QuotaApiFp = function(configuration?: Configuration) {
const localVarAxiosParamCreator = QuotaApiAxiosParamCreator(configuration)
return {
/**
*
* @summary Retrieves the quota for the resource.
* @param {string} resourceId Id of the resource.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async quotaGetResourceQuota(resourceId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectQuotaReturnObject>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.quotaGetResourceQuota(resourceId, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
*
* @summary Retrieves the quota for the selected project and resource type.
* @param {string} projectId Id of the project.
* @param {string} resourceTypeId Id of the resource type.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async quotaGetResourceQuotas(projectId: string, resourceTypeId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProjectQuotaReturnObject>>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.quotaGetResourceQuotas(projectId, resourceTypeId, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
*
* @summary Updates the quota for a resource.
* @param {string} resourceId
* @param {UpdateResourceObject} updateResourceObject Contains the resource id and the new quota.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async quotaUpdateResourceQuota(resourceId: string, updateResourceObject: UpdateResourceObject, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.quotaUpdateResourceQuota(resourceId, updateResourceObject, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
}
};
/**
* QuotaApi - factory interface
* @export
*/
export const QuotaApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
const localVarFp = QuotaApiFp(configuration)
return {
/**
*
* @summary Retrieves the quota for the resource.
* @param {string} resourceId Id of the resource.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
quotaGetResourceQuota(resourceId: string, options?: any): AxiosPromise<ProjectQuotaReturnObject> {
return localVarFp.quotaGetResourceQuota(resourceId, options).then((request) => request(axios, basePath));
},
/**
*
* @summary Retrieves the quota for the selected project and resource type.
* @param {string} projectId Id of the project.
* @param {string} resourceTypeId Id of the resource type.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
quotaGetResourceQuotas(projectId: string, resourceTypeId: string, options?: any): AxiosPromise<Array<ProjectQuotaReturnObject>> {
return localVarFp.quotaGetResourceQuotas(projectId, resourceTypeId, options).then((request) => request(axios, basePath));
},
/**
*
* @summary Updates the quota for a resource.
* @param {string} resourceId
* @param {UpdateResourceObject} updateResourceObject Contains the resource id and the new quota.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
quotaUpdateResourceQuota(resourceId: string, updateResourceObject: UpdateResourceObject, options?: any): AxiosPromise<any> {
return localVarFp.quotaUpdateResourceQuota(resourceId, updateResourceObject, options).then((request) => request(axios, basePath));
},
};
};
/**
* QuotaApi - object-oriented interface
* @export
* @class QuotaApi
* @extends {BaseAPI}
*/
export class QuotaApi extends BaseAPI {
/**
*
* @summary Retrieves the quota for the resource.
* @param {string} resourceId Id of the resource.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof QuotaApi
*/
public quotaGetResourceQuota(resourceId: string, options?: any) {
return QuotaApiFp(this.configuration).quotaGetResourceQuota(resourceId, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary Retrieves the quota for the selected project and resource type.
* @param {string} projectId Id of the project.
* @param {string} resourceTypeId Id of the resource type.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof QuotaApi
*/
public quotaGetResourceQuotas(projectId: string, resourceTypeId: string, options?: any) {
return QuotaApiFp(this.configuration).quotaGetResourceQuotas(projectId, resourceTypeId, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary Updates the quota for a resource.
* @param {string} resourceId
* @param {UpdateResourceObject} updateResourceObject Contains the resource id and the new quota.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof QuotaApi
*/
public quotaUpdateResourceQuota(resourceId: string, updateResourceObject: UpdateResourceObject, options?: any) {
return QuotaApiFp(this.configuration).quotaUpdateResourceQuota(resourceId, updateResourceObject, options).then((request) => request(this.axios, this.basePath));
}
}
/* tslint:disable */
/* eslint-disable */
/**
* Coscine.Api.Quota
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.6.3
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { Configuration } from "./configuration";
// Some imports not used depending on template conditions
// @ts-ignore
import globalAxios, { AxiosPromise, AxiosInstance } from 'axios';
export const BASE_PATH = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Quota".replace(/\/+$/, "");
/**
*
* @export
*/
export const COLLECTION_FORMATS = {
csv: ",",
ssv: " ",
tsv: "\t",
pipes: "|",
};
/**
*
* @export
* @interface RequestArgs
*/
export interface RequestArgs {
url: string;
options: any;
}
/**
*
* @export
* @class BaseAPI
*/
export class BaseAPI {
protected configuration: Configuration | undefined;
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
if (configuration) {
this.configuration = configuration;
this.basePath = configuration.basePath || this.basePath;
}
}
};
/**
*
* @export
* @class RequiredError
* @extends {Error}
*/
export class RequiredError extends Error {
name: "RequiredError" = "RequiredError";
constructor(public field: string, msg?: string) {
super(msg);
}
}
/* tslint:disable */
/* eslint-disable */
/**
* Coscine.Api.Quota
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.6.3
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { Configuration } from "./configuration";
import { RequiredError, RequestArgs } from "./base";
import { AxiosInstance } from 'axios';
/**
*
* @export
*/
export const DUMMY_BASE_URL = 'https://example.com'
/**
*
* @throws {RequiredError}
* @export
*/
export const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {
if (paramValue === null || paramValue === undefined) {
throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
}
}
/**
*
* @export
*/
export const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {
if (configuration && configuration.apiKey) {
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
? await configuration.apiKey(keyParamName)
: await configuration.apiKey;
object[keyParamName] = localVarApiKeyValue;
}
}
/**
*
* @export
*/
export const setBasicAuthToObject = function (object: any, configuration?: Configuration) {
if (configuration && (configuration.username || configuration.password)) {
object["auth"] = { username: configuration.username, password: configuration.password };
}
}
/**
*
* @export
*/
export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {
if (configuration && configuration.accessToken) {
const accessToken = typeof configuration.accessToken === 'function'
? await configuration.accessToken()
: await configuration.accessToken;
object["Authorization"] = "Bearer " + accessToken;
}
}
/**
*
* @export
*/
export const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {
if (configuration && configuration.accessToken) {
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
? await configuration.accessToken(name, scopes)
: await configuration.accessToken;
object["Authorization"] = "Bearer " + localVarAccessTokenValue;
}
}
/**
*
* @export
*/
export const setSearchParams = function (url: URL, ...objects: any[]) {
const searchParams = new URLSearchParams(url.search);
for (const object of objects) {
for (const key in object) {
if (Array.isArray(object[key])) {
searchParams.delete(key);
for (const item of object[key]) {
searchParams.append(key, item);
}
} else {
searchParams.set(key, object[key]);
}
}
}
url.search = searchParams.toString();
}
/**
*
* @export
*/
export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {
const nonString = typeof value !== 'string';
const needsSerialization = nonString && configuration && configuration.isJsonMime
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
: nonString;
return needsSerialization
? JSON.stringify(value !== undefined ? value : {})
: (value || "");
}
/**
*
* @export
*/
export const toPathString = function (url: URL) {
return url.pathname + url.search + url.hash
}
/**
*
* @export
*/
export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url};
return axios.request(axiosRequestArgs);
};
}
/* tslint:disable */
/* eslint-disable */
/**
* Coscine.Api.Quota
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.6.3
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export interface ConfigurationParameters {
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
username?: string;
password?: string;
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
basePath?: string;
baseOptions?: any;
formDataCtor?: new () => any;
}
export class Configuration {
/**
* parameter for apiKey security
* @param name security name
* @memberof Configuration
*/
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
/**
* parameter for basic security
*
* @type {string}
* @memberof Configuration
*/
username?: string;
/**
* parameter for basic security
*
* @type {string}
* @memberof Configuration
*/
password?: string;
/**
* parameter for oauth2 security
* @param name security name
* @param scopes oauth2 scope
* @memberof Configuration
*/
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
/**
* override base path
*
* @type {string}
* @memberof Configuration
*/
basePath?: string;
/**
* base options for axios calls
*
* @type {any}
* @memberof Configuration
*/
baseOptions?: any;
/**
* The FormData constructor that will be used to create multipart form data
* requests. You can inject this here so that execution environments that
* do not support the FormData class can still run the generated client.
*
* @type {new () => FormData}
*/
formDataCtor?: new () => any;
constructor(param: ConfigurationParameters = {}) {
this.apiKey = param.apiKey;
this.username = param.username;
this.password = param.password;
this.accessToken = param.accessToken;
this.basePath = param.basePath;
this.baseOptions = param.baseOptions;
this.formDataCtor = param.formDataCtor;
}
/**
* Check if the given MIME is a JSON MIME.
* JSON MIME examples:
* application/json
* application/json; charset=UTF8
* APPLICATION/JSON
* application/vnd.company+json
* @param mime - MIME (Multipurpose Internet Mail Extensions)
* @return True if the given MIME is JSON, false otherwise.
*/
public isJsonMime(mime: string): boolean {
const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
}
}
/* tslint:disable */
/* eslint-disable */
/**
* Coscine.Api.Quota
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.6.3
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export * from "./api";
export * from "./configuration";
This diff is collapsed.
......@@ -4,7 +4,7 @@
* Coscine.Api.Resources
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.8.3
* The version of the OpenAPI document: 2.10.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
......@@ -4,7 +4,7 @@
* Coscine.Api.Resources
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.8.3
* The version of the OpenAPI document: 2.10.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
......@@ -4,7 +4,7 @@
* Coscine.Api.Resources
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.8.3
* The version of the OpenAPI document: 2.10.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
......@@ -4,7 +4,7 @@
* Coscine.Api.Resources
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.8.3
* The version of the OpenAPI document: 2.10.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
......@@ -4,7 +4,7 @@
* Coscine.Api.Tree
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.6.4
* The version of the OpenAPI document: 2.8.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
......@@ -4,7 +4,7 @@
* Coscine.Api.Tree
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.6.4
* The version of the OpenAPI document: 2.8.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......@@ -18,7 +18,7 @@ import { Configuration } from "./configuration";
// @ts-ignore
import globalAxios, { AxiosPromise, AxiosInstance } from 'axios';
export const BASE_PATH = "https://d-sp23.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Tree".replace(/\/+$/, "");
export const BASE_PATH = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Tree".replace(/\/+$/, "");
/**
*
......
......@@ -4,7 +4,7 @@
* Coscine.Api.Tree
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.6.4
* The version of the OpenAPI document: 2.8.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
......@@ -4,7 +4,7 @@
* Coscine.Api.Tree
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.6.4
* The version of the OpenAPI document: 2.8.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
......@@ -4,7 +4,7 @@
* Coscine.Api.Tree
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.6.4
* The version of the OpenAPI document: 2.8.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
......@@ -4,7 +4,7 @@
* Coscine.Api.User
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.3.2
* The version of the OpenAPI document: 3.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
......@@ -4,7 +4,7 @@
* Coscine.Api.User
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.3.2
* The version of the OpenAPI document: 3.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
......@@ -4,7 +4,7 @@
* Coscine.Api.User
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.3.2
* The version of the OpenAPI document: 3.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
......@@ -4,7 +4,7 @@
* Coscine.Api.User
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.3.2
* The version of the OpenAPI document: 3.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......