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
Commits on Source (6)
Showing
with 582 additions and 588 deletions
{
"name": "@coscine/api-client",
"version": "2.2.0",
"version": "2.3.0",
"description": "This project contains the generated api connection classes.",
"keywords": [
"coscine",
......@@ -129,5 +129,5 @@
"dependencies": {
"axios": "^0.21.1"
},
"packageManager": "yarn@3.2.1"
"packageManager": "yarn@3.2.2"
}
......@@ -4,7 +4,7 @@
* Coscine.Api.Admin
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.5.4
* The version of the OpenAPI document: 2.6.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......@@ -24,77 +24,111 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
/**
* Retuned when searching for a project. Contains basic informations and quotas.
* @export
* @interface ProjectObject
* @interface AdminProjectObject
*/
export interface ProjectObject {
export interface AdminProjectObject {
/**
* Projectname (full project name)
* Project Id
* @type {string}
* @memberof ProjectObject
* @memberof AdminProjectObject
*/
name?: string | null;
id?: string;
/**
* Shortname (display name)
* Project Name (full project name)
* @type {string}
* @memberof ProjectObject
* @memberof AdminProjectObject
*/
shortName?: string | null;
projectName?: string | null;
/**
* GUID (project id)
* Project Display Name
* @type {string}
* @memberof ProjectObject
* @memberof AdminProjectObject
*/
guid?: string;
displayName?: string | null;
/**
* List of the project quotas (ProjectQuotaObject)
* @type {Array<ProjectQuotaObject>}
* @memberof ProjectObject
* List of the admin quotas (AdminQuotaReturnObject)
* @type {Array<AdminQuotaReturnObject>}
* @memberof AdminProjectObject
*/
quotas?: Array<ProjectQuotaObject> | null;
quotas?: Array<AdminQuotaReturnObject> | null;
}
/**
* Returned when searching for a project, as part of the ProjectQbect. Contains quota informations.
* Returned when searching for a project, as part of the AdminProjectObject. Contains quota informations.
* @export
* @interface ProjectQuotaObject
* @interface AdminQuotaReturnObject
*/
export interface ProjectQuotaObject {
export interface AdminQuotaReturnObject {
/**
* Id of the quota.
* Quota relation id (See Database, Table \'ProjectQuotas\', Column \'RelationId\').
* @type {string}
* @memberof ProjectQuotaObject
* @memberof AdminQuotaReturnObject
*/
quotaId?: string;
relationId?: string;
/**
* Which resourceType the quota is referencing.
* Which resource type the quota is referring to.
* @type {string}
* @memberof ProjectQuotaObject
* @memberof AdminQuotaReturnObject
*/
resourceType?: string | null;
/**
* The quota value.
* @type {number}
* @memberof ProjectQuotaObject
* How much space is used by all files in all resources in total [Bytes].
* @type {QuotaDimObject}
* @memberof AdminQuotaReturnObject
*/
quota?: number;
totalUsed?: QuotaDimObject | null;
/**
* The MaxQuota value.
* @type {number}
* @memberof ProjectQuotaObject
* How much space is reserved by resources in total [GiB]. Is equal to the sum of all resource quota reserved values.
* @type {QuotaDimObject}
* @memberof AdminQuotaReturnObject
*/
maxQuota?: number;
totalReserved?: QuotaDimObject | null;
/**
* How much space is used by the resource (rounded up and in gb).
* @type {number}
* @memberof ProjectQuotaObject
* How much space is currently allocated and is available to be taken by resources [GiB] (See Database, Table \'ProjectQuotas\', Column \'Quota\').
* @type {QuotaDimObject}
* @memberof AdminQuotaReturnObject
*/
used?: number | null;
allocated?: QuotaDimObject | null;
/**
* How much space is availabe to be taken by resource (in gb).
* How much maximum space is possible to be taken by resources [GiB] (See Database, Table \'ProjectQuotas\', Column \'MaxQuota\').
* @type {QuotaDimObject}
* @memberof AdminQuotaReturnObject
*/
maximum?: QuotaDimObject | null;
}
/**
*
* @export
* @interface QuotaDimObject
*/
export interface QuotaDimObject {
/**
*
* @type {number}
* @memberof ProjectQuotaObject
* @memberof QuotaDimObject
*/
allocated?: number | null;
value?: number;
/**
*
* @type {QuotaUnit}
* @memberof QuotaDimObject
*/
unit?: QuotaUnit;
}
/**
*
* @export
* @enum {string}
*/
export enum QuotaUnit {
Byte = 'https://qudt.org/vocab/unit/BYTE',
KibiByte = 'https://qudt.org/vocab/unit/KibiBYTE',
MebiByte = 'https://qudt.org/vocab/unit/MebiBYTE',
GibiByte = 'https://qudt.org/vocab/unit/GibiBYTE',
TebiByte = 'https://qudt.org/vocab/unit/TebiBYTE',
PebiByte = 'https://qudt.org/vocab/unit/PebiBYTE'
}
/**
* Data send to update the project quota.
* @export
......@@ -102,17 +136,11 @@ export interface ProjectQuotaObject {
*/
export interface UpdateQuotaParameterObject {
/**
* The id (Guid) of the quota.
* @type {string}
* @memberof UpdateQuotaParameterObject
*/
quotaId?: string;
/**
* The new quota value.
* The new maximum project quota value.
* @type {number}
* @memberof UpdateQuotaParameterObject
*/
quota?: number;
maximumGiB?: number;
}
/**
......@@ -124,7 +152,7 @@ export const AdminApiAxiosParamCreator = function (configuration?: Configuration
/**
*
* @summary Find the project related to the projectString(GUID or slug)
* @param {string} projectString Either the id (GUID) of the project or the slug.
* @param {string} projectString The project id (GUID) or slug (from URL).
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
......@@ -160,15 +188,23 @@ export const AdminApiAxiosParamCreator = function (configuration?: Configuration
},
/**
*
* @summary Update the project quota
* @param {UpdateQuotaParameterObject} updateQuotaParameterObject JSON object for updating quota.
* @summary Update a project maximum and allocated quota
* @param {string} projectId Id of the project
* @param {string} resourceTypeId Id of the resource type
* @param {UpdateQuotaParameterObject} updateQuotaParameterObject JSON object for updating the project maximum and allocated quota.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
adminUpdateQuota: async (updateQuotaParameterObject: UpdateQuotaParameterObject, options: any = {}): Promise<RequestArgs> => {
adminUpdateQuota: async (projectId: string, resourceTypeId: string, updateQuotaParameterObject: UpdateQuotaParameterObject, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'projectId' is not null or undefined
assertParamExists('adminUpdateQuota', 'projectId', projectId)
// verify required parameter 'resourceTypeId' is not null or undefined
assertParamExists('adminUpdateQuota', 'resourceTypeId', resourceTypeId)
// verify required parameter 'updateQuotaParameterObject' is not null or undefined
assertParamExists('adminUpdateQuota', 'updateQuotaParameterObject', updateQuotaParameterObject)
const localVarPath = `/Admin`;
const localVarPath = `/Admin/{projectId}/{resourceTypeId}`
.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;
......@@ -176,7 +212,7 @@ export const AdminApiAxiosParamCreator = function (configuration?: Configuration
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
......@@ -210,23 +246,25 @@ export const AdminApiFp = function(configuration?: Configuration) {
/**
*
* @summary Find the project related to the projectString(GUID or slug)
* @param {string} projectString Either the id (GUID) of the project or the slug.
* @param {string} projectString The project id (GUID) or slug (from URL).
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async adminGetProject(projectString: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectObject>> {
async adminGetProject(projectString: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminProjectObject>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.adminGetProject(projectString, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
*
* @summary Update the project quota
* @param {UpdateQuotaParameterObject} updateQuotaParameterObject JSON object for updating quota.
* @summary Update a project maximum and allocated quota
* @param {string} projectId Id of the project
* @param {string} resourceTypeId Id of the resource type
* @param {UpdateQuotaParameterObject} updateQuotaParameterObject JSON object for updating the project maximum and allocated quota.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async adminUpdateQuota(updateQuotaParameterObject: UpdateQuotaParameterObject, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.adminUpdateQuota(updateQuotaParameterObject, options);
async adminUpdateQuota(projectId: string, resourceTypeId: string, updateQuotaParameterObject: UpdateQuotaParameterObject, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.adminUpdateQuota(projectId, resourceTypeId, updateQuotaParameterObject, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
}
......@@ -242,22 +280,24 @@ export const AdminApiFactory = function (configuration?: Configuration, basePath
/**
*
* @summary Find the project related to the projectString(GUID or slug)
* @param {string} projectString Either the id (GUID) of the project or the slug.
* @param {string} projectString The project id (GUID) or slug (from URL).
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
adminGetProject(projectString: string, options?: any): AxiosPromise<ProjectObject> {
adminGetProject(projectString: string, options?: any): AxiosPromise<AdminProjectObject> {
return localVarFp.adminGetProject(projectString, options).then((request) => request(axios, basePath));
},
/**
*
* @summary Update the project quota
* @param {UpdateQuotaParameterObject} updateQuotaParameterObject JSON object for updating quota.
* @summary Update a project maximum and allocated quota
* @param {string} projectId Id of the project
* @param {string} resourceTypeId Id of the resource type
* @param {UpdateQuotaParameterObject} updateQuotaParameterObject JSON object for updating the project maximum and allocated quota.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
adminUpdateQuota(updateQuotaParameterObject: UpdateQuotaParameterObject, options?: any): AxiosPromise<any> {
return localVarFp.adminUpdateQuota(updateQuotaParameterObject, options).then((request) => request(axios, basePath));
adminUpdateQuota(projectId: string, resourceTypeId: string, updateQuotaParameterObject: UpdateQuotaParameterObject, options?: any): AxiosPromise<any> {
return localVarFp.adminUpdateQuota(projectId, resourceTypeId, updateQuotaParameterObject, options).then((request) => request(axios, basePath));
},
};
};
......@@ -272,7 +312,7 @@ export class AdminApi extends BaseAPI {
/**
*
* @summary Find the project related to the projectString(GUID or slug)
* @param {string} projectString Either the id (GUID) of the project or the slug.
* @param {string} projectString The project id (GUID) or slug (from URL).
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof AdminApi
......@@ -283,14 +323,16 @@ export class AdminApi extends BaseAPI {
/**
*
* @summary Update the project quota
* @param {UpdateQuotaParameterObject} updateQuotaParameterObject JSON object for updating quota.
* @summary Update a project maximum and allocated quota
* @param {string} projectId Id of the project
* @param {string} resourceTypeId Id of the resource type
* @param {UpdateQuotaParameterObject} updateQuotaParameterObject JSON object for updating the project maximum and allocated quota.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof AdminApi
*/
public adminUpdateQuota(updateQuotaParameterObject: UpdateQuotaParameterObject, options?: any) {
return AdminApiFp(this.configuration).adminUpdateQuota(updateQuotaParameterObject, options).then((request) => request(this.axios, this.basePath));
public adminUpdateQuota(projectId: string, resourceTypeId: string, updateQuotaParameterObject: UpdateQuotaParameterObject, options?: any) {
return AdminApiFp(this.configuration).adminUpdateQuota(projectId, resourceTypeId, updateQuotaParameterObject, options).then((request) => request(this.axios, this.basePath));
}
}
......
......@@ -4,7 +4,7 @@
* Coscine.Api.Admin
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.5.4
* The version of the OpenAPI document: 2.6.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
......@@ -4,7 +4,7 @@
* Coscine.Api.Admin
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.5.4
* The version of the OpenAPI document: 2.6.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
......@@ -4,7 +4,7 @@
* Coscine.Api.Admin
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.5.4
* The version of the OpenAPI document: 2.6.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
......@@ -4,7 +4,7 @@
* Coscine.Api.Admin
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.5.4
* The version of the OpenAPI document: 2.6.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
......@@ -4,7 +4,7 @@
* Coscine.Api.Blob
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.7.0
* The version of the OpenAPI document: 2.8.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......@@ -103,43 +103,6 @@ export const BlobApiAxiosParamCreator = function (configuration?: 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 This method returns the amount of allocated space for the given resource
* @param {string} resourceId Id of a resource
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
blobGetQuota: async (resourceId: string, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'resourceId' is not null or undefined
assertParamExists('blobGetQuota', 'resourceId', resourceId)
const localVarPath = `/Blob/{resourceId}/quota`
.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};
......@@ -236,17 +199,6 @@ export const BlobApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.blobGetFileWithParameter(resourceId, path, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
*
* @summary This method returns the amount of allocated space for the given resource
* @param {string} resourceId Id of a resource
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async blobGetQuota(resourceId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.blobGetQuota(resourceId, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
*
* @summary This method uploads a given File
......@@ -292,16 +244,6 @@ export const BlobApiFactory = function (configuration?: Configuration, basePath?
blobGetFileWithParameter(resourceId: string, path?: string, options?: any): AxiosPromise<any> {
return localVarFp.blobGetFileWithParameter(resourceId, path, options).then((request) => request(axios, basePath));
},
/**
*
* @summary This method returns the amount of allocated space for the given resource
* @param {string} resourceId Id of a resource
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
blobGetQuota(resourceId: string, options?: any): AxiosPromise<any> {
return localVarFp.blobGetQuota(resourceId, options).then((request) => request(axios, basePath));
},
/**
*
* @summary This method uploads a given File
......@@ -350,18 +292,6 @@ export class BlobApi extends BaseAPI {
return BlobApiFp(this.configuration).blobGetFileWithParameter(resourceId, path, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary This method returns the amount of allocated space for the given resource
* @param {string} resourceId Id of a resource
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof BlobApi
*/
public blobGetQuota(resourceId: string, options?: any) {
return BlobApiFp(this.configuration).blobGetQuota(resourceId, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary This method uploads a given File
......
......@@ -4,7 +4,7 @@
* Coscine.Api.Blob
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.7.0
* 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.Blob
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.7.0
* 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.Blob
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.7.0
* 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.Blob
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.7.0
* 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.Project
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.8.4
* The version of the OpenAPI document: 3.0.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......@@ -72,43 +72,43 @@ export interface ExternalAuthenticatorsObject {
displayName?: string | null;
}
/**
* Return object for an invitation.
*
* @export
* @interface InvitationReturnObject
*/
export interface InvitationReturnObject {
/**
* The invitation id.
*
* @type {string}
* @memberof InvitationReturnObject
*/
id?: string;
/**
* When the invite will expire.
*
* @type {string}
* @memberof InvitationReturnObject
*/
expiration?: string;
/**
* Email of the invitee.
*
* @type {string}
* @memberof InvitationReturnObject
*/
userMail?: string | null;
/**
* Id of the issuer.
*
* @type {string}
* @memberof InvitationReturnObject
*/
issuer?: string;
/**
* Id of the project.
*
* @type {string}
* @memberof InvitationReturnObject
*/
projectId?: string;
/**
* Id of the target Role.
*
* @type {string}
* @memberof InvitationReturnObject
*/
......@@ -158,25 +158,6 @@ export interface LicenseObject {
*/
displayName?: string | null;
}
/**
* Return object containing the maximum project quota.
* @export
* @interface MaxProjectQuota
*/
export interface MaxProjectQuota {
/**
* The resource type id.
* @type {string}
* @memberof MaxProjectQuota
*/
id?: string;
/**
* Available amount in gb.
* @type {number}
* @memberof MaxProjectQuota
*/
available?: number;
}
/**
*
* @export
......@@ -288,41 +269,84 @@ export interface ProjectObject {
parentId?: string;
}
/**
* Contains information about the quota of a project by resource type.
*
* @export
* @interface ProjectQuotaExtendedReturnObject
*/
export interface ProjectQuotaExtendedReturnObject {
/**
*
* @type {string}
* @memberof ProjectQuotaExtendedReturnObject
*/
id?: string;
/**
*
* @type {string}
* @memberof ProjectQuotaExtendedReturnObject
*/
name?: string | null;
/**
*
* @type {QuotaDimObject}
* @memberof ProjectQuotaExtendedReturnObject
*/
totalReserved?: QuotaDimObject | null;
/**
*
* @type {QuotaDimObject}
* @memberof ProjectQuotaExtendedReturnObject
*/
allocated?: QuotaDimObject | null;
/**
*
* @type {QuotaDimObject}
* @memberof ProjectQuotaExtendedReturnObject
*/
maximum?: QuotaDimObject | null;
/**
*
* @type {Array<ResourceQuotaReturnObject>}
* @memberof ProjectQuotaExtendedReturnObject
*/
resourcesQuota?: Array<ResourceQuotaReturnObject> | null;
}
/**
*
* @export
* @interface ProjectQuotaReturnObject
*/
export interface ProjectQuotaReturnObject {
/**
* Id of the resoure type.
*
* @type {string}
* @memberof ProjectQuotaReturnObject
*/
id?: string;
/**
* Display name of the resource type.
*
* @type {string}
* @memberof ProjectQuotaReturnObject
*/
name?: string | null;
/**
* How much space is used by the resources (in gb).
* @type {number}
*
* @type {QuotaDimObject}
* @memberof ProjectQuotaReturnObject
*/
used?: number;
totalReserved?: QuotaDimObject | null;
/**
* How much space is availabe to be taken by resources (in gb).
* @type {number}
*
* @type {QuotaDimObject}
* @memberof ProjectQuotaReturnObject
*/
allocated?: number;
allocated?: QuotaDimObject | null;
/**
* Maximum amount of quota (in gb).
* @type {number}
*
* @type {QuotaDimObject}
* @memberof ProjectQuotaReturnObject
*/
maximum?: number;
maximum?: QuotaDimObject | null;
}
/**
*
......@@ -349,6 +373,40 @@ export interface ProjectRoleObject {
*/
role?: RoleObject | null;
}
/**
*
* @export
* @interface QuotaDimObject
*/
export interface QuotaDimObject {
/**
*
* @type {number}
* @memberof QuotaDimObject
*/
value?: number;
/**
*
* @type {QuotaUnit}
* @memberof QuotaDimObject
*/
unit?: QuotaUnit;
}
/**
*
* @export
* @enum {string}
*/
export enum QuotaUnit {
Byte = 'https://qudt.org/vocab/unit/BYTE',
KibiByte = 'https://qudt.org/vocab/unit/KibiBYTE',
MebiByte = 'https://qudt.org/vocab/unit/MebiBYTE',
GibiByte = 'https://qudt.org/vocab/unit/GibiBYTE',
TebiByte = 'https://qudt.org/vocab/unit/TebiBYTE',
PebiByte = 'https://qudt.org/vocab/unit/PebiBYTE'
}
/**
*
* @export
......@@ -452,6 +510,43 @@ export interface ResourceObject {
*/
archived?: boolean;
}
/**
*
* @export
* @interface ResourceQuotaReturnObject
*/
export interface ResourceQuotaReturnObject {
/**
*
* @type {string}
* @memberof ResourceQuotaReturnObject
*/
id?: string;
/**
*
* @type {string}
* @memberof ResourceQuotaReturnObject
*/
name?: string | null;
/**
*
* @type {QuotaDimObject}
* @memberof ResourceQuotaReturnObject
*/
used?: QuotaDimObject | null;
/**
*
* @type {number}
* @memberof ResourceQuotaReturnObject
*/
usedPercentage?: number;
/**
*
* @type {QuotaDimObject}
* @memberof ResourceQuotaReturnObject
*/
reserved?: QuotaDimObject | null;
}
/**
*
* @export
......@@ -541,17 +636,11 @@ export interface TitleObject {
*/
export interface UpdateProjectQuotaObject {
/**
* Id of the resourceType
* @type {string}
* @memberof UpdateProjectQuotaObject
*/
id?: string;
/**
* New Quota value.
* New quota that will be the current allocated value.
* @type {number}
* @memberof UpdateProjectQuotaObject
*/
allocated?: number;
allocatedGiB?: number;
}
/**
*
......@@ -905,7 +994,7 @@ export const ProjectApiAxiosParamCreator = function (configuration?: Configurati
},
/**
*
* @summary Deletes the selected project
* @summary Deletes a project
* @param {string} id Id of the project
* @param {*} [options] Override http request option.
* @throws {RequiredError}
......@@ -1053,48 +1142,7 @@ export const ProjectApiAxiosParamCreator = function (configuration?: Configurati
},
/**
*
* @summary Get the max quota for a resource type.
* @param {string} id Id of the project.
* @param {string} resourceTypeId Id of the resource
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
projectGetQuotaMax: async (id: string, resourceTypeId: string, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists('projectGetQuotaMax', 'id', id)
// verify required parameter 'resourceTypeId' is not null or undefined
assertParamExists('projectGetQuotaMax', 'resourceTypeId', resourceTypeId)
const localVarPath = `/Project/{id}/quota/{resourceTypeId}/max`
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
.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 Gets the resources
* @summary Gets all resources in a project
* @param {string} id Id of the project
* @param {*} [options] Override http request option.
* @throws {RequiredError}
......@@ -1234,85 +1282,7 @@ export const ProjectApiAxiosParamCreator = function (configuration?: Configurati
},
/**
*
* @summary Retrieves the quota for the selected project and resource Type.
* @param {string} id Id of the project
* @param {string} resourceTypeId Id of the resource type
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
projectQuota: async (id: string, resourceTypeId: string, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists('projectQuota', 'id', id)
// verify required parameter 'resourceTypeId' is not null or undefined
assertParamExists('projectQuota', 'resourceTypeId', resourceTypeId)
const localVarPath = `/Project/{id}/quota/{resourceTypeId}`
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
.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 Retrieves the quota for the selected project.
* @param {string} id Id of the project
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
projectQuotas: async (id: string, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists('projectQuotas', 'id', id)
const localVarPath = `/Project/{id}/quota/-/all`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// 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 Resolve a project invitation for the current user.
* @summary Resolves a project invitation for the current user.
* @param {string} invitationToken Token for a project invitation stored inside the URL under \&quot;.../?invitationToken&#x3D;{token}\&quot;
* @param {*} [options] Override http request option.
* @throws {RequiredError}
......@@ -1349,7 +1319,7 @@ export const ProjectApiAxiosParamCreator = function (configuration?: Configurati
},
/**
*
* @summary Create and send a project invitation to a specified mail.
* @summary Creates and sends a project invitation to a specified email.
* @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation. The invitation token is stored inside the URL under \&quot;.../?invitationToken&#x3D;{token}\&quot;.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
......@@ -1427,7 +1397,7 @@ export const ProjectApiAxiosParamCreator = function (configuration?: Configurati
},
/**
*
* @summary Updates the selected project
* @summary Updates a project
* @param {string} id Id of the project
* @param {ProjectObject} projectObject A Project Object
* @param {*} [options] Override http request option.
......@@ -1463,53 +1433,6 @@ export const ProjectApiAxiosParamCreator = function (configuration?: Configurati
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
localVarRequestOptions.data = serializeDataIfNeeded(projectObject, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
*
* @summary Update the project quota.
* @param {string} id Id of the project.
* @param {string} resourceTypeId Id of the resource.
* @param {UpdateProjectQuotaObject} updateProjectQuotaObject Object containing the update values.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
projectUpdateQuota: async (id: string, resourceTypeId: string, updateProjectQuotaObject: UpdateProjectQuotaObject, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists('projectUpdateQuota', 'id', id)
// verify required parameter 'resourceTypeId' is not null or undefined
assertParamExists('projectUpdateQuota', 'resourceTypeId', resourceTypeId)
// verify required parameter 'updateProjectQuotaObject' is not null or undefined
assertParamExists('projectUpdateQuota', 'updateProjectQuotaObject', updateProjectQuotaObject)
const localVarPath = `/Project/{id}/quota/{resourceTypeId}`
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
.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: '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(updateProjectQuotaObject, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
......@@ -1538,7 +1461,7 @@ export const ProjectApiFp = function(configuration?: Configuration) {
},
/**
*
* @summary Deletes the selected project
* @summary Deletes a project
* @param {string} id Id of the project
* @param {*} [options] Override http request option.
* @throws {RequiredError}
......@@ -1582,19 +1505,7 @@ export const ProjectApiFp = function(configuration?: Configuration) {
},
/**
*
* @summary Get the max quota for a resource type.
* @param {string} id Id of the project.
* @param {string} resourceTypeId Id of the resource
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async projectGetQuotaMax(id: string, resourceTypeId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MaxProjectQuota>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.projectGetQuotaMax(id, resourceTypeId, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
*
* @summary Gets the resources
* @summary Gets all resources in a project
* @param {string} id Id of the project
* @param {*} [options] Override http request option.
* @throws {RequiredError}
......@@ -1636,31 +1547,8 @@ export const ProjectApiFp = function(configuration?: Configuration) {
},
/**
*
* @summary Retrieves the quota for the selected project and resource Type.
* @param {string} id Id of the project
* @param {string} resourceTypeId Id of the resource type
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async projectQuota(id: string, resourceTypeId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectQuotaReturnObject>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.projectQuota(id, resourceTypeId, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
*
* @summary Retrieves the quota for the selected project.
* @param {string} id Id of the project
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async projectQuotas(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProjectQuotaReturnObject>>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.projectQuotas(id, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
*
* @summary Resolve a project invitation for the current user.
* @param {string} invitationToken Token for a project invitation stored inside the URL under \&quot;.../?invitationToken&#x3D;{token}\&quot;
* @summary Resolves a project invitation for the current user.
* @param {string} invitationToken Token for a project invitation stored inside the URL under \&quot;.../?invitationToken&#x3D;{token}\&quot;
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
......@@ -1670,7 +1558,7 @@ export const ProjectApiFp = function(configuration?: Configuration) {
},
/**
*
* @summary Create and send a project invitation to a specified mail.
* @summary Creates and sends a project invitation to a specified email.
* @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation. The invitation token is stored inside the URL under \&quot;.../?invitationToken&#x3D;{token}\&quot;.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
......@@ -1692,7 +1580,7 @@ export const ProjectApiFp = function(configuration?: Configuration) {
},
/**
*
* @summary Updates the selected project
* @summary Updates a project
* @param {string} id Id of the project
* @param {ProjectObject} projectObject A Project Object
* @param {*} [options] Override http request option.
......@@ -1702,19 +1590,6 @@ export const ProjectApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.projectUpdate(id, projectObject, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
*
* @summary Update the project quota.
* @param {string} id Id of the project.
* @param {string} resourceTypeId Id of the resource.
* @param {UpdateProjectQuotaObject} updateProjectQuotaObject Object containing the update values.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async projectUpdateQuota(id: string, resourceTypeId: string, updateProjectQuotaObject: UpdateProjectQuotaObject, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.projectUpdateQuota(id, resourceTypeId, updateProjectQuotaObject, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
}
};
......@@ -1737,7 +1612,7 @@ export const ProjectApiFactory = function (configuration?: Configuration, basePa
},
/**
*
* @summary Deletes the selected project
* @summary Deletes a project
* @param {string} id Id of the project
* @param {*} [options] Override http request option.
* @throws {RequiredError}
......@@ -1777,18 +1652,7 @@ export const ProjectApiFactory = function (configuration?: Configuration, basePa
},
/**
*
* @summary Get the max quota for a resource type.
* @param {string} id Id of the project.
* @param {string} resourceTypeId Id of the resource
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
projectGetQuotaMax(id: string, resourceTypeId: string, options?: any): AxiosPromise<MaxProjectQuota> {
return localVarFp.projectGetQuotaMax(id, resourceTypeId, options).then((request) => request(axios, basePath));
},
/**
*
* @summary Gets the resources
* @summary Gets all resources in a project
* @param {string} id Id of the project
* @param {*} [options] Override http request option.
* @throws {RequiredError}
......@@ -1826,28 +1690,7 @@ export const ProjectApiFactory = function (configuration?: Configuration, basePa
},
/**
*
* @summary Retrieves the quota for the selected project and resource Type.
* @param {string} id Id of the project
* @param {string} resourceTypeId Id of the resource type
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
projectQuota(id: string, resourceTypeId: string, options?: any): AxiosPromise<ProjectQuotaReturnObject> {
return localVarFp.projectQuota(id, resourceTypeId, options).then((request) => request(axios, basePath));
},
/**
*
* @summary Retrieves the quota for the selected project.
* @param {string} id Id of the project
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
projectQuotas(id: string, options?: any): AxiosPromise<Array<ProjectQuotaReturnObject>> {
return localVarFp.projectQuotas(id, options).then((request) => request(axios, basePath));
},
/**
*
* @summary Resolve a project invitation for the current user.
* @summary Resolves a project invitation for the current user.
* @param {string} invitationToken Token for a project invitation stored inside the URL under \&quot;.../?invitationToken&#x3D;{token}\&quot;
* @param {*} [options] Override http request option.
* @throws {RequiredError}
......@@ -1857,7 +1700,7 @@ export const ProjectApiFactory = function (configuration?: Configuration, basePa
},
/**
*
* @summary Create and send a project invitation to a specified mail.
* @summary Creates and sends a project invitation to a specified email.
* @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation. The invitation token is stored inside the URL under \&quot;.../?invitationToken&#x3D;{token}\&quot;.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
......@@ -1877,7 +1720,7 @@ export const ProjectApiFactory = function (configuration?: Configuration, basePa
},
/**
*
* @summary Updates the selected project
* @summary Updates a project
* @param {string} id Id of the project
* @param {ProjectObject} projectObject A Project Object
* @param {*} [options] Override http request option.
......@@ -1886,18 +1729,6 @@ export const ProjectApiFactory = function (configuration?: Configuration, basePa
projectUpdate(id: string, projectObject: ProjectObject, options?: any): AxiosPromise<any> {
return localVarFp.projectUpdate(id, projectObject, options).then((request) => request(axios, basePath));
},
/**
*
* @summary Update the project quota.
* @param {string} id Id of the project.
* @param {string} resourceTypeId Id of the resource.
* @param {UpdateProjectQuotaObject} updateProjectQuotaObject Object containing the update values.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
projectUpdateQuota(id: string, resourceTypeId: string, updateProjectQuotaObject: UpdateProjectQuotaObject, options?: any): AxiosPromise<any> {
return localVarFp.projectUpdateQuota(id, resourceTypeId, updateProjectQuotaObject, options).then((request) => request(axios, basePath));
},
};
};
......@@ -1922,7 +1753,7 @@ export class ProjectApi extends BaseAPI {
/**
*
* @summary Deletes the selected project
* @summary Deletes a project
* @param {string} id Id of the project
* @param {*} [options] Override http request option.
* @throws {RequiredError}
......@@ -1970,20 +1801,7 @@ export class ProjectApi extends BaseAPI {
/**
*
* @summary Get the max quota for a resource type.
* @param {string} id Id of the project.
* @param {string} resourceTypeId Id of the resource
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ProjectApi
*/
public projectGetQuotaMax(id: string, resourceTypeId: string, options?: any) {
return ProjectApiFp(this.configuration).projectGetQuotaMax(id, resourceTypeId, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary Gets the resources
* @summary Gets all resources in a project
* @param {string} id Id of the project
* @param {*} [options] Override http request option.
* @throws {RequiredError}
......@@ -2029,90 +1847,322 @@ export class ProjectApi extends BaseAPI {
/**
*
* @summary Retrieves the quota for the selected project and resource Type.
* @param {string} id Id of the project
* @param {string} resourceTypeId Id of the resource type
* @summary Resolves a project invitation for the current user.
* @param {string} invitationToken Token for a project invitation stored inside the URL under \&quot;.../?invitationToken&#x3D;{token}\&quot;
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ProjectApi
*/
public projectQuota(id: string, resourceTypeId: string, options?: any) {
return ProjectApiFp(this.configuration).projectQuota(id, resourceTypeId, options).then((request) => request(this.axios, this.basePath));
public projectResolveInvitation(invitationToken: string, options?: any) {
return ProjectApiFp(this.configuration).projectResolveInvitation(invitationToken, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary Retrieves the quota for the selected project.
* @param {string} id Id of the project
* @summary Creates and sends a project invitation to a specified email.
* @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation. The invitation token is stored inside the URL under \&quot;.../?invitationToken&#x3D;{token}\&quot;.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ProjectApi
*/
public projectQuotas(id: string, options?: any) {
return ProjectApiFp(this.configuration).projectQuotas(id, options).then((request) => request(this.axios, this.basePath));
public projectSendInvitation(sendInvitationObject: SendInvitationObject, options?: any) {
return ProjectApiFp(this.configuration).projectSendInvitation(sendInvitationObject, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary Resolve a project invitation for the current user.
* @param {string} invitationToken Token for a project invitation stored inside the URL under \&quot;.../?invitationToken&#x3D;{token}\&quot;
* @summary Creates a project
* @param {ProjectObject} projectObject A Project Object
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ProjectApi
*/
public projectResolveInvitation(invitationToken: string, options?: any) {
return ProjectApiFp(this.configuration).projectResolveInvitation(invitationToken, options).then((request) => request(this.axios, this.basePath));
public projectStore(projectObject: ProjectObject, options?: any) {
return ProjectApiFp(this.configuration).projectStore(projectObject, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary Create and send a project invitation to a specified mail.
* @param {SendInvitationObject} sendInvitationObject Informations for sending an invitation. The invitation token is stored inside the URL under \&quot;.../?invitationToken&#x3D;{token}\&quot;.
* @summary Updates a project
* @param {string} id Id of the project
* @param {ProjectObject} projectObject A Project Object
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ProjectApi
*/
public projectSendInvitation(sendInvitationObject: SendInvitationObject, options?: any) {
return ProjectApiFp(this.configuration).projectSendInvitation(sendInvitationObject, options).then((request) => request(this.axios, this.basePath));
public projectUpdate(id: string, projectObject: ProjectObject, options?: any) {
return ProjectApiFp(this.configuration).projectUpdate(id, projectObject, options).then((request) => request(this.axios, this.basePath));
}
}
/**
* ProjectQuotaApi - axios parameter creator
* @export
*/
export const ProjectQuotaApiAxiosParamCreator = function (configuration?: Configuration) {
return {
/**
*
* @summary Creates a project
* @param {ProjectObject} projectObject A Project Object
* @summary Retrieves the project quota in GiB of a resource type for the selected project together with all individual resources of this resource type.
* @param {string} id Id of the project
* @param {string} resourceTypeId Id of the resource type
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ProjectApi
*/
public projectStore(projectObject: ProjectObject, options?: any) {
return ProjectApiFp(this.configuration).projectStore(projectObject, options).then((request) => request(this.axios, this.basePath));
projectQuotaQuota: async (id: string, resourceTypeId: string, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists('projectQuotaQuota', 'id', id)
// verify required parameter 'resourceTypeId' is not null or undefined
assertParamExists('projectQuotaQuota', 'resourceTypeId', resourceTypeId)
const localVarPath = `/ProjectQuota/{id}/{resourceTypeId}`
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
.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 selected project
* @summary Retrieves all project quotas in GiB grouped by resource type for the selected project.
* @param {string} id Id of the project
* @param {ProjectObject} projectObject A Project Object
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ProjectApi
*/
public projectUpdate(id: string, projectObject: ProjectObject, options?: any) {
return ProjectApiFp(this.configuration).projectUpdate(id, projectObject, options).then((request) => request(this.axios, this.basePath));
projectQuotaQuotas: async (id: string, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists('projectQuotaQuotas', 'id', id)
const localVarPath = `/ProjectQuota/{id}/-/all`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// 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 reserved project quota of a resource type for a selected poject. Quota value in GiB.
* @param {string} id Id of the project
* @param {string} resourceTypeId Id of the resource type
* @param {UpdateProjectQuotaObject} updateProjectQuotaObject Object containing the update values.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
projectQuotaUpdateQuota: async (id: string, resourceTypeId: string, updateProjectQuotaObject: UpdateProjectQuotaObject, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists('projectQuotaUpdateQuota', 'id', id)
// verify required parameter 'resourceTypeId' is not null or undefined
assertParamExists('projectQuotaUpdateQuota', 'resourceTypeId', resourceTypeId)
// verify required parameter 'updateProjectQuotaObject' is not null or undefined
assertParamExists('projectQuotaUpdateQuota', 'updateProjectQuotaObject', updateProjectQuotaObject)
const localVarPath = `/ProjectQuota/{id}/{resourceTypeId}`
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
.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: '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(updateProjectQuotaObject, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
}
};
/**
* ProjectQuotaApi - functional programming interface
* @export
*/
export const ProjectQuotaApiFp = function(configuration?: Configuration) {
const localVarAxiosParamCreator = ProjectQuotaApiAxiosParamCreator(configuration)
return {
/**
*
* @summary Retrieves the project quota in GiB of a resource type for the selected project together with all individual resources of this resource type.
* @param {string} id Id of the project
* @param {string} resourceTypeId Id of the resource type
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async projectQuotaQuota(id: string, resourceTypeId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectQuotaExtendedReturnObject>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.projectQuotaQuota(id, resourceTypeId, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
*
* @summary Update the project quota.
* @param {string} id Id of the project.
* @param {string} resourceTypeId Id of the resource.
* @summary Retrieves all project quotas in GiB grouped by resource type for the selected project.
* @param {string} id Id of the project
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async projectQuotaQuotas(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProjectQuotaReturnObject>>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.projectQuotaQuotas(id, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
*
* @summary Updates the reserved project quota of a resource type for a selected poject. Quota value in GiB.
* @param {string} id Id of the project
* @param {string} resourceTypeId Id of the resource type
* @param {UpdateProjectQuotaObject} updateProjectQuotaObject Object containing the update values.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ProjectApi
*/
public projectUpdateQuota(id: string, resourceTypeId: string, updateProjectQuotaObject: UpdateProjectQuotaObject, options?: any) {
return ProjectApiFp(this.configuration).projectUpdateQuota(id, resourceTypeId, updateProjectQuotaObject, options).then((request) => request(this.axios, this.basePath));
async projectQuotaUpdateQuota(id: string, resourceTypeId: string, updateProjectQuotaObject: UpdateProjectQuotaObject, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.projectQuotaUpdateQuota(id, resourceTypeId, updateProjectQuotaObject, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
}
};
/**
* ProjectQuotaApi - factory interface
* @export
*/
export const ProjectQuotaApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
const localVarFp = ProjectQuotaApiFp(configuration)
return {
/**
*
* @summary Retrieves the project quota in GiB of a resource type for the selected project together with all individual resources of this resource type.
* @param {string} id Id of the project
* @param {string} resourceTypeId Id of the resource type
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
projectQuotaQuota(id: string, resourceTypeId: string, options?: any): AxiosPromise<ProjectQuotaExtendedReturnObject> {
return localVarFp.projectQuotaQuota(id, resourceTypeId, options).then((request) => request(axios, basePath));
},
/**
*
* @summary Retrieves all project quotas in GiB grouped by resource type for the selected project.
* @param {string} id Id of the project
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
projectQuotaQuotas(id: string, options?: any): AxiosPromise<Array<ProjectQuotaReturnObject>> {
return localVarFp.projectQuotaQuotas(id, options).then((request) => request(axios, basePath));
},
/**
*
* @summary Updates the reserved project quota of a resource type for a selected poject. Quota value in GiB.
* @param {string} id Id of the project
* @param {string} resourceTypeId Id of the resource type
* @param {UpdateProjectQuotaObject} updateProjectQuotaObject Object containing the update values.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
projectQuotaUpdateQuota(id: string, resourceTypeId: string, updateProjectQuotaObject: UpdateProjectQuotaObject, options?: any): AxiosPromise<any> {
return localVarFp.projectQuotaUpdateQuota(id, resourceTypeId, updateProjectQuotaObject, options).then((request) => request(axios, basePath));
},
};
};
/**
* ProjectQuotaApi - object-oriented interface
* @export
* @class ProjectQuotaApi
* @extends {BaseAPI}
*/
export class ProjectQuotaApi extends BaseAPI {
/**
*
* @summary Retrieves the project quota in GiB of a resource type for the selected project together with all individual resources of this resource type.
* @param {string} id Id of the project
* @param {string} resourceTypeId Id of the resource type
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ProjectQuotaApi
*/
public projectQuotaQuota(id: string, resourceTypeId: string, options?: any) {
return ProjectQuotaApiFp(this.configuration).projectQuotaQuota(id, resourceTypeId, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary Retrieves all project quotas in GiB grouped by resource type for the selected project.
* @param {string} id Id of the project
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ProjectQuotaApi
*/
public projectQuotaQuotas(id: string, options?: any) {
return ProjectQuotaApiFp(this.configuration).projectQuotaQuotas(id, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary Updates the reserved project quota of a resource type for a selected poject. Quota value in GiB.
* @param {string} id Id of the project
* @param {string} resourceTypeId Id of the resource type
* @param {UpdateProjectQuotaObject} updateProjectQuotaObject Object containing the update values.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ProjectQuotaApi
*/
public projectQuotaUpdateQuota(id: string, resourceTypeId: string, updateProjectQuotaObject: UpdateProjectQuotaObject, options?: any) {
return ProjectQuotaApiFp(this.configuration).projectQuotaUpdateQuota(id, resourceTypeId, updateProjectQuotaObject, options).then((request) => request(this.axios, this.basePath));
}
}
......@@ -2125,7 +2175,7 @@ export const ProjectRoleApiAxiosParamCreator = function (configuration?: Configu
return {
/**
*
* @summary deletes project role for the given project
* @summary Deletes a user from a project
* @param {string} projectId Id of the project
* @param {string} userId Id of the user
* @param {string} roleId Id of the role
......@@ -2170,7 +2220,7 @@ export const ProjectRoleApiAxiosParamCreator = function (configuration?: Configu
},
/**
*
* @summary Deletes user from a project
* @summary Deletes the current user from a project
* @param {string} projectId Id of the project
* @param {*} [options] Override http request option.
* @throws {RequiredError}
......@@ -2207,7 +2257,7 @@ export const ProjectRoleApiAxiosParamCreator = function (configuration?: Configu
},
/**
*
* @summary Gets all roles for current user and given object
* @summary Gets all roles for the current user and a project.
* @param {string} projectId Id of the project
* @param {*} [options] Override http request option.
* @throws {RequiredError}
......@@ -2244,7 +2294,7 @@ export const ProjectRoleApiAxiosParamCreator = function (configuration?: Configu
},
/**
*
* @summary Lists all users to the given project
* @summary Lists all users in a project.
* @param {string} projectId Id of the project
* @param {*} [options] Override http request option.
* @throws {RequiredError}
......@@ -2281,11 +2331,14 @@ export const ProjectRoleApiAxiosParamCreator = function (configuration?: Configu
},
/**
*
* @summary sets a project role for the given project
* @summary Sets a role for the current user in a project
* @param {ProjectRoleObject} projectRoleObject
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
projectRoleSet: async (options: any = {}): Promise<RequestArgs> => {
projectRoleSet: async (projectRoleObject: ProjectRoleObject, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'projectRoleObject' is not null or undefined
assertParamExists('projectRoleSet', 'projectRoleObject', projectRoleObject)
const localVarPath = `/ProjectRole`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
......@@ -2303,9 +2356,12 @@ export const ProjectRoleApiAxiosParamCreator = function (configuration?: Configu
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(projectRoleObject, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
......@@ -2324,7 +2380,7 @@ export const ProjectRoleApiFp = function(configuration?: Configuration) {
return {
/**
*
* @summary deletes project role for the given project
* @summary Deletes a user from a project
* @param {string} projectId Id of the project
* @param {string} userId Id of the user
* @param {string} roleId Id of the role
......@@ -2337,7 +2393,7 @@ export const ProjectRoleApiFp = function(configuration?: Configuration) {
},
/**
*
* @summary Deletes user from a project
* @summary Deletes the current user from a project
* @param {string} projectId Id of the project
* @param {*} [options] Override http request option.
* @throws {RequiredError}
......@@ -2348,7 +2404,7 @@ export const ProjectRoleApiFp = function(configuration?: Configuration) {
},
/**
*
* @summary Gets all roles for current user and given object
* @summary Gets all roles for the current user and a project.
* @param {string} projectId Id of the project
* @param {*} [options] Override http request option.
* @throws {RequiredError}
......@@ -2359,7 +2415,7 @@ export const ProjectRoleApiFp = function(configuration?: Configuration) {
},
/**
*
* @summary Lists all users to the given project
* @summary Lists all users in a project.
* @param {string} projectId Id of the project
* @param {*} [options] Override http request option.
* @throws {RequiredError}
......@@ -2370,12 +2426,13 @@ export const ProjectRoleApiFp = function(configuration?: Configuration) {
},
/**
*
* @summary sets a project role for the given project
* @summary Sets a role for the current user in a project
* @param {ProjectRoleObject} projectRoleObject
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async projectRoleSet(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectRoleObject>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.projectRoleSet(options);
async projectRoleSet(projectRoleObject: ProjectRoleObject, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectRoleObject>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.projectRoleSet(projectRoleObject, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
}
......@@ -2390,7 +2447,7 @@ export const ProjectRoleApiFactory = function (configuration?: Configuration, ba
return {
/**
*
* @summary deletes project role for the given project
* @summary Deletes a user from a project
* @param {string} projectId Id of the project
* @param {string} userId Id of the user
* @param {string} roleId Id of the role
......@@ -2402,7 +2459,7 @@ export const ProjectRoleApiFactory = function (configuration?: Configuration, ba
},
/**
*
* @summary Deletes user from a project
* @summary Deletes the current user from a project
* @param {string} projectId Id of the project
* @param {*} [options] Override http request option.
* @throws {RequiredError}
......@@ -2412,7 +2469,7 @@ export const ProjectRoleApiFactory = function (configuration?: Configuration, ba
},
/**
*
* @summary Gets all roles for current user and given object
* @summary Gets all roles for the current user and a project.
* @param {string} projectId Id of the project
* @param {*} [options] Override http request option.
* @throws {RequiredError}
......@@ -2422,7 +2479,7 @@ export const ProjectRoleApiFactory = function (configuration?: Configuration, ba
},
/**
*
* @summary Lists all users to the given project
* @summary Lists all users in a project.
* @param {string} projectId Id of the project
* @param {*} [options] Override http request option.
* @throws {RequiredError}
......@@ -2432,12 +2489,13 @@ export const ProjectRoleApiFactory = function (configuration?: Configuration, ba
},
/**
*
* @summary sets a project role for the given project
* @summary Sets a role for the current user in a project
* @param {ProjectRoleObject} projectRoleObject
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
projectRoleSet(options?: any): AxiosPromise<ProjectRoleObject> {
return localVarFp.projectRoleSet(options).then((request) => request(axios, basePath));
projectRoleSet(projectRoleObject: ProjectRoleObject, options?: any): AxiosPromise<ProjectRoleObject> {
return localVarFp.projectRoleSet(projectRoleObject, options).then((request) => request(axios, basePath));
},
};
};
......@@ -2451,7 +2509,7 @@ export const ProjectRoleApiFactory = function (configuration?: Configuration, ba
export class ProjectRoleApi extends BaseAPI {
/**
*
* @summary deletes project role for the given project
* @summary Deletes a user from a project
* @param {string} projectId Id of the project
* @param {string} userId Id of the user
* @param {string} roleId Id of the role
......@@ -2465,7 +2523,7 @@ export class ProjectRoleApi extends BaseAPI {
/**
*
* @summary Deletes user from a project
* @summary Deletes the current user from a project
* @param {string} projectId Id of the project
* @param {*} [options] Override http request option.
* @throws {RequiredError}
......@@ -2477,7 +2535,7 @@ export class ProjectRoleApi extends BaseAPI {
/**
*
* @summary Gets all roles for current user and given object
* @summary Gets all roles for the current user and a project.
* @param {string} projectId Id of the project
* @param {*} [options] Override http request option.
* @throws {RequiredError}
......@@ -2489,7 +2547,7 @@ export class ProjectRoleApi extends BaseAPI {
/**
*
* @summary Lists all users to the given project
* @summary Lists all users in a project.
* @param {string} projectId Id of the project
* @param {*} [options] Override http request option.
* @throws {RequiredError}
......@@ -2501,13 +2559,14 @@ export class ProjectRoleApi extends BaseAPI {
/**
*
* @summary sets a project role for the given project
* @summary Sets a role for the current user in a project
* @param {ProjectRoleObject} projectRoleObject
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ProjectRoleApi
*/
public projectRoleSet(options?: any) {
return ProjectRoleApiFp(this.configuration).projectRoleSet(options).then((request) => request(this.axios, this.basePath));
public projectRoleSet(projectRoleObject: ProjectRoleObject, options?: any) {
return ProjectRoleApiFp(this.configuration).projectRoleSet(projectRoleObject, options).then((request) => request(this.axios, this.basePath));
}
}
......
......@@ -4,7 +4,7 @@
* Coscine.Api.Project
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.8.4
* The version of the OpenAPI document: 3.0.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
......@@ -4,7 +4,7 @@
* Coscine.Api.Project
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.8.4
* The version of the OpenAPI document: 3.0.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
......@@ -4,7 +4,7 @@
* Coscine.Api.Project
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.8.4
* The version of the OpenAPI document: 3.0.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
......@@ -4,7 +4,7 @@
* Coscine.Api.Project
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.8.4
* The version of the OpenAPI document: 3.0.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
wwwroot/*.js
node_modules
typings
dist
# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm
\ No newline at end of file
# OpenAPI Generator Ignore
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.
# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
#ApiClient.cs
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
.gitignore
.npmignore
.openapi-generator-ignore
api.ts
base.ts
common.ts
configuration.ts
git_push.sh
index.ts