diff --git a/README.md b/README.md index 289d95192e1af3398067a042fe2c4846903cfae0..f3271bd130bea6dc7946f420f3037d2643e66deb 100644 --- a/README.md +++ b/README.md @@ -137,6 +137,9 @@ Class | Method | HTTP request | Description *DisciplineApi* | [**ApiV2DisciplinesOptions**](docs/DisciplineApi.md#apiv2disciplinesoptions) | **OPTIONS** /api/v2/disciplines | Responds with the HTTP methods allowed for the endpoint. *DisciplineApi* | [**GetDiscipline**](docs/DisciplineApi.md#getdiscipline) | **GET** /api/v2/disciplines/{disciplineId} | Retrieves a discipline with the specified ID. *DisciplineApi* | [**GetDisciplines**](docs/DisciplineApi.md#getdisciplines) | **GET** /api/v2/disciplines | Retrieves all disciplines. +*HandleApi* | [**ApiV2HandlesOptions**](docs/HandleApi.md#apiv2handlesoptions) | **OPTIONS** /api/v2/handles | Responds with the HTTP methods allowed for the endpoint. +*HandleApi* | [**GetHandle**](docs/HandleApi.md#gethandle) | **GET** /api/v2/handles/{prefix}/{suffix} | Retrieves all values of a handle by its PID. +*HandleApi* | [**UpdateHandle**](docs/HandleApi.md#updatehandle) | **PUT** /api/v2/handles/{prefix}/{suffix} | Updates a handle. *LanguageApi* | [**ApiV2LanguagesOptions**](docs/LanguageApi.md#apiv2languagesoptions) | **OPTIONS** /api/v2/languages | Responds with the HTTP methods allowed for the endpoint. *LanguageApi* | [**GetLanguage**](docs/LanguageApi.md#getlanguage) | **GET** /api/v2/languages/{languageId} | Retrieves a language by ID. *LanguageApi* | [**GetLanguages**](docs/LanguageApi.md#getlanguages) | **GET** /api/v2/languages | Retrieves all languages. @@ -149,8 +152,9 @@ Class | Method | HTTP request | Description *OrganizationApi* | [**GetOrganization**](docs/OrganizationApi.md#getorganization) | **GET** /api/v2/organizations/{organizationRorUri} | Retrieves an organization. *OrganizationApi* | [**GetOrganizations**](docs/OrganizationApi.md#getorganizations) | **GET** /api/v2/organizations | Retrieves all organizations. *PidApi* | [**ApiV2PidsOptions**](docs/PidApi.md#apiv2pidsoptions) | **OPTIONS** /api/v2/pids | Responds with the HTTP methods allowed for the endpoint. -*PidApi* | [**SendRequestToOwner**](docs/PidApi.md#sendrequesttoowner) | **POST** /api/v2/pids/{prefix}/{id}/requests | Sends an inquiry to the owner of the given PID. -*PidApi* | [**ValidatePid**](docs/PidApi.md#validatepid) | **GET** /api/v2/pids/{prefix}/{id} | Validates the given PID. +*PidApi* | [**GetPid**](docs/PidApi.md#getpid) | **GET** /api/v2/pids/{prefix}/{suffix} | Retrieves the Persistent Identifier (PID) for a given prefix and suffix. +*PidApi* | [**GetPids**](docs/PidApi.md#getpids) | **GET** /api/v2/pids | Retrieves all PIDs. +*PidApi* | [**SendRequestToOwner**](docs/PidApi.md#sendrequesttoowner) | **POST** /api/v2/pids/{prefix}/{suffix}/requests | Sends an inquiry to the owner of the given PID. *ProjectApi* | [**ApiV2ProjectsOptions**](docs/ProjectApi.md#apiv2projectsoptions) | **OPTIONS** /api/v2/projects | Responds with the HTTP methods allowed for the endpoint. *ProjectApi* | [**CreateProject**](docs/ProjectApi.md#createproject) | **POST** /api/v2/projects | Creates a new project. *ProjectApi* | [**DeleteProject**](docs/ProjectApi.md#deleteproject) | **DELETE** /api/v2/projects/{projectId} | Deletes a project. @@ -168,6 +172,8 @@ Class | Method | HTTP request | Description *ProjectMemberApi* | [**GetMembership**](docs/ProjectMemberApi.md#getmembership) | **GET** /api/v2/projects/{projectId}/members/{membershipId} | Retrieves a project membership for a specified project. *ProjectMemberApi* | [**GetMemberships**](docs/ProjectMemberApi.md#getmemberships) | **GET** /api/v2/projects/{projectId}/members | Retrieves all project memberships for a specified project. *ProjectMemberApi* | [**UpdateMembership**](docs/ProjectMemberApi.md#updatemembership) | **PUT** /api/v2/projects/{projectId}/members/{membershipId} | Updates a project membership for a specified project. +*ProjectPublicationRequestApi* | [**ApiV2ProjectsProjectIdPublicationsRequestsOptions**](docs/ProjectPublicationRequestApi.md#apiv2projectsprojectidpublicationsrequestsoptions) | **OPTIONS** /api/v2/projects/{projectId}/publications/requests | Responds with the HTTP methods allowed for the endpoint. +*ProjectPublicationRequestApi* | [**CreatePublicationRequest**](docs/ProjectPublicationRequestApi.md#createpublicationrequest) | **POST** /api/v2/projects/{projectId}/publications/requests | Creates a new publication request. *ProjectQuotaApi* | [**ApiV2ProjectsProjectIdQuotasOptions**](docs/ProjectQuotaApi.md#apiv2projectsprojectidquotasoptions) | **OPTIONS** /api/v2/projects/{projectId}/quotas | Responds with the HTTP methods allowed for the endpoint. *ProjectQuotaApi* | [**GetProjectQuota**](docs/ProjectQuotaApi.md#getprojectquota) | **GET** /api/v2/projects/{projectId}/quotas/{resourceTypeId} | Retrieves a project quota for a specified project and resource type. *ProjectQuotaApi* | [**GetProjectQuotas**](docs/ProjectQuotaApi.md#getprojectquotas) | **GET** /api/v2/projects/{projectId}/quotas | Retrieves all project quotas for a specified project. @@ -216,6 +222,7 @@ Class | Method | HTTP request | Description *TreeApi* | [**CreateMetadataTree**](docs/TreeApi.md#createmetadatatree) | **POST** /api/v2/projects/{projectId}/resources/{resourceId}/trees/metadata | Creates a new metadata tree for a resource. *TreeApi* | [**GetFileTree**](docs/TreeApi.md#getfiletree) | **GET** /api/v2/projects/{projectId}/resources/{resourceId}/trees/files | Retrieves the file tree associated with a resource. *TreeApi* | [**GetMetadataTree**](docs/TreeApi.md#getmetadatatree) | **GET** /api/v2/projects/{projectId}/resources/{resourceId}/trees/metadata | Retrieves the metadata tree associated with a resource. +*TreeApi* | [**GetSpecificMetadataTree**](docs/TreeApi.md#getspecificmetadatatree) | **GET** /api/v2/projects/{projectId}/resources/{resourceId}/trees/metadata/specific | Retrieves the specific metadata tree associated with a resource. *TreeApi* | [**UpdateMetadataTree**](docs/TreeApi.md#updatemetadatatree) | **PUT** /api/v2/projects/{projectId}/resources/{resourceId}/trees/metadata | Updates an existing metadata tree of a resource. *UserApi* | [**ApiV2UsersOptions**](docs/UserApi.md#apiv2usersoptions) | **OPTIONS** /api/v2/users | Responds with the HTTP methods allowed for the endpoint. *UserApi* | [**GetUsers**](docs/UserApi.md#getusers) | **GET** /api/v2/users | Retrieves all users. @@ -266,6 +273,11 @@ Class | Method | HTTP request | Description - [Model.GitlabProjectDtoResponse](docs/GitlabProjectDtoResponse.md) - [Model.GitlabResourceTypeOptionsForCreationDto](docs/GitlabResourceTypeOptionsForCreationDto.md) - [Model.GitlabResourceTypeOptionsForUpdateDto](docs/GitlabResourceTypeOptionsForUpdateDto.md) + - [Model.HandleDto](docs/HandleDto.md) + - [Model.HandleDtoResponse](docs/HandleDtoResponse.md) + - [Model.HandleForUpdateDto](docs/HandleForUpdateDto.md) + - [Model.HandleValueDto](docs/HandleValueDto.md) + - [Model.HandleValueForUpdateDto](docs/HandleValueForUpdateDto.md) - [Model.IdentityProviderDto](docs/IdentityProviderDto.md) - [Model.IdentityProviders](docs/IdentityProviders.md) - [Model.LanguageDto](docs/LanguageDto.md) @@ -281,6 +293,7 @@ Class | Method | HTTP request | Description - [Model.MetadataTreeDto](docs/MetadataTreeDto.md) - [Model.MetadataTreeDtoPagedResponse](docs/MetadataTreeDtoPagedResponse.md) - [Model.MetadataTreeDtoResponse](docs/MetadataTreeDtoResponse.md) + - [Model.MetadataTreeExtractedDto](docs/MetadataTreeExtractedDto.md) - [Model.MetadataTreeForCreationDto](docs/MetadataTreeForCreationDto.md) - [Model.MetadataTreeForUpdateDto](docs/MetadataTreeForUpdateDto.md) - [Model.MetadataUpdateAdminParameters](docs/MetadataUpdateAdminParameters.md) @@ -289,10 +302,11 @@ Class | Method | HTTP request | Description - [Model.OrganizationDtoResponse](docs/OrganizationDtoResponse.md) - [Model.OrganizationForProjectManipulationDto](docs/OrganizationForProjectManipulationDto.md) - [Model.Pagination](docs/Pagination.md) + - [Model.PidDto](docs/PidDto.md) + - [Model.PidDtoPagedResponse](docs/PidDtoPagedResponse.md) + - [Model.PidDtoResponse](docs/PidDtoResponse.md) - [Model.PidRequestDto](docs/PidRequestDto.md) - [Model.PidType](docs/PidType.md) - - [Model.PidValidationDto](docs/PidValidationDto.md) - - [Model.PidValidationDtoResponse](docs/PidValidationDtoResponse.md) - [Model.ProjectAdminDto](docs/ProjectAdminDto.md) - [Model.ProjectAdminDtoPagedResponse](docs/ProjectAdminDtoPagedResponse.md) - [Model.ProjectDto](docs/ProjectDto.md) @@ -319,6 +333,9 @@ Class | Method | HTTP request | Description - [Model.ProjectRoleMinimalDto](docs/ProjectRoleMinimalDto.md) - [Model.PublicUserDto](docs/PublicUserDto.md) - [Model.PublicUserDtoIEnumerableResponse](docs/PublicUserDtoIEnumerableResponse.md) + - [Model.PublicationAdvisoryServiceDto](docs/PublicationAdvisoryServiceDto.md) + - [Model.PublicationRequestForCreationDto](docs/PublicationRequestForCreationDto.md) + - [Model.PublicationRequestForCreationDtoResponse](docs/PublicationRequestForCreationDtoResponse.md) - [Model.QuotaDto](docs/QuotaDto.md) - [Model.QuotaForManipulationDto](docs/QuotaForManipulationDto.md) - [Model.QuotaUnit](docs/QuotaUnit.md) diff --git a/src/Coscine.ApiClient.Core.Test/Api/HandleApiTests.cs b/src/Coscine.ApiClient.Core.Test/Api/HandleApiTests.cs new file mode 100644 index 0000000000000000000000000000000000000000..484966afb9cdcabfdd70c14d10a5b6d0bf820253 --- /dev/null +++ b/src/Coscine.ApiClient.Core.Test/Api/HandleApiTests.cs @@ -0,0 +1,94 @@ +/* + * Coscine Web API + * + * Coscine (short for <b>CO</b>llaborative <b>SC</b>ientific <b>IN</b>tegration <b>E</b>nvironment) is the research data management platform for your research project. + * + * The version of the OpenAPI document: 2.0 + * Contact: servicedesk@itc.rwth-aachen.de + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.IO; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using RestSharp; +using Xunit; + +using Coscine.ApiClient.Core.Client; +using Coscine.ApiClient.Core.Api; +// uncomment below to import models +//using Coscine.ApiClient.Core.Model; + +namespace Coscine.ApiClient.Core.Test.Api +{ + /// <summary> + /// Class for testing HandleApi + /// </summary> + /// <remarks> + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the API endpoint. + /// </remarks> + public class HandleApiTests : IDisposable + { + private HandleApi instance; + + public HandleApiTests() + { + instance = new HandleApi(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// <summary> + /// Test an instance of HandleApi + /// </summary> + [Fact] + public void InstanceTest() + { + // TODO uncomment below to test 'IsType' HandleApi + //Assert.IsType<HandleApi>(instance); + } + + /// <summary> + /// Test ApiV2HandlesOptions + /// </summary> + [Fact] + public void ApiV2HandlesOptionsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //instance.ApiV2HandlesOptions(); + } + + /// <summary> + /// Test GetHandle + /// </summary> + [Fact] + public void GetHandleTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string prefix = null; + //string suffix = null; + //var response = instance.GetHandle(prefix, suffix); + //Assert.IsType<HandleDtoResponse>(response); + } + + /// <summary> + /// Test UpdateHandle + /// </summary> + [Fact] + public void UpdateHandleTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string prefix = null; + //string suffix = null; + //HandleForUpdateDto? handleForUpdateDto = null; + //instance.UpdateHandle(prefix, suffix, handleForUpdateDto); + } + } +} diff --git a/src/Coscine.ApiClient.Core.Test/Api/OrganizationApiTests.cs b/src/Coscine.ApiClient.Core.Test/Api/OrganizationApiTests.cs index ad96daae03bc32df2c09dab49641bc40b3b597b4..3246ec9c33243b3857f6dd9766dc7f92d4268186 100644 --- a/src/Coscine.ApiClient.Core.Test/Api/OrganizationApiTests.cs +++ b/src/Coscine.ApiClient.Core.Test/Api/OrganizationApiTests.cs @@ -85,10 +85,11 @@ namespace Coscine.ApiClient.Core.Test.Api { // TODO uncomment below to test the method and replace null with proper value //string? searchTerm = null; + //bool? filterByPublicationService = null; //int? pageNumber = null; //int? pageSize = null; //string? orderBy = null; - //var response = instance.GetOrganizations(searchTerm, pageNumber, pageSize, orderBy); + //var response = instance.GetOrganizations(searchTerm, filterByPublicationService, pageNumber, pageSize, orderBy); //Assert.IsType<OrganizationDtoPagedResponse>(response); } } diff --git a/src/Coscine.ApiClient.Core.Test/Api/PidApiTests.cs b/src/Coscine.ApiClient.Core.Test/Api/PidApiTests.cs index 0003286812dc1f7e6cbb9cc9ad30396945b01321..e21dc2934a4e93ecdc341f3353a82dec433f185c 100644 --- a/src/Coscine.ApiClient.Core.Test/Api/PidApiTests.cs +++ b/src/Coscine.ApiClient.Core.Test/Api/PidApiTests.cs @@ -66,29 +66,46 @@ namespace Coscine.ApiClient.Core.Test.Api } /// <summary> - /// Test SendRequestToOwner + /// Test GetPid /// </summary> [Fact] - public void SendRequestToOwnerTest() + public void GetPidTest() { // TODO uncomment below to test the method and replace null with proper value //string prefix = null; - //Guid id = null; - //PidRequestDto? pidRequestDto = null; - //instance.SendRequestToOwner(prefix, id, pidRequestDto); + //Guid suffix = null; + //var response = instance.GetPid(prefix, suffix); + //Assert.IsType<PidDtoResponse>(response); } /// <summary> - /// Test ValidatePid + /// Test GetPids /// </summary> [Fact] - public void ValidatePidTest() + public void GetPidsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //bool? includeProjects = null; + //bool? includeResources = null; + //bool? includeDeleted = null; + //int? pageNumber = null; + //int? pageSize = null; + //string? orderBy = null; + //var response = instance.GetPids(includeProjects, includeResources, includeDeleted, pageNumber, pageSize, orderBy); + //Assert.IsType<PidDtoPagedResponse>(response); + } + + /// <summary> + /// Test SendRequestToOwner + /// </summary> + [Fact] + public void SendRequestToOwnerTest() { // TODO uncomment below to test the method and replace null with proper value //string prefix = null; - //Guid id = null; - //var response = instance.ValidatePid(prefix, id); - //Assert.IsType<PidValidationDtoResponse>(response); + //Guid suffix = null; + //PidRequestDto? pidRequestDto = null; + //instance.SendRequestToOwner(prefix, suffix, pidRequestDto); } } } diff --git a/src/Coscine.ApiClient.Core.Test/Api/ProjectPublicationRequestApiTests.cs b/src/Coscine.ApiClient.Core.Test/Api/ProjectPublicationRequestApiTests.cs new file mode 100644 index 0000000000000000000000000000000000000000..7226d44f344c5cc8c9eb3687bf613818c87c0b78 --- /dev/null +++ b/src/Coscine.ApiClient.Core.Test/Api/ProjectPublicationRequestApiTests.cs @@ -0,0 +1,82 @@ +/* + * Coscine Web API + * + * Coscine (short for <b>CO</b>llaborative <b>SC</b>ientific <b>IN</b>tegration <b>E</b>nvironment) is the research data management platform for your research project. + * + * The version of the OpenAPI document: 2.0 + * Contact: servicedesk@itc.rwth-aachen.de + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.IO; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using RestSharp; +using Xunit; + +using Coscine.ApiClient.Core.Client; +using Coscine.ApiClient.Core.Api; +// uncomment below to import models +//using Coscine.ApiClient.Core.Model; + +namespace Coscine.ApiClient.Core.Test.Api +{ + /// <summary> + /// Class for testing ProjectPublicationRequestApi + /// </summary> + /// <remarks> + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the API endpoint. + /// </remarks> + public class ProjectPublicationRequestApiTests : IDisposable + { + private ProjectPublicationRequestApi instance; + + public ProjectPublicationRequestApiTests() + { + instance = new ProjectPublicationRequestApi(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// <summary> + /// Test an instance of ProjectPublicationRequestApi + /// </summary> + [Fact] + public void InstanceTest() + { + // TODO uncomment below to test 'IsType' ProjectPublicationRequestApi + //Assert.IsType<ProjectPublicationRequestApi>(instance); + } + + /// <summary> + /// Test ApiV2ProjectsProjectIdPublicationsRequestsOptions + /// </summary> + [Fact] + public void ApiV2ProjectsProjectIdPublicationsRequestsOptionsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string projectId = null; + //instance.ApiV2ProjectsProjectIdPublicationsRequestsOptions(projectId); + } + + /// <summary> + /// Test CreatePublicationRequest + /// </summary> + [Fact] + public void CreatePublicationRequestTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string projectId = null; + //PublicationRequestForCreationDto? publicationRequestForCreationDto = null; + //var response = instance.CreatePublicationRequest(projectId, publicationRequestForCreationDto); + //Assert.IsType<PublicationRequestForCreationDtoResponse>(response); + } + } +} diff --git a/src/Coscine.ApiClient.Core.Test/Api/TreeApiTests.cs b/src/Coscine.ApiClient.Core.Test/Api/TreeApiTests.cs index 445c23df0de455a2486b8aa7899e6b7fd93a0a92..8b4b3ef295867167f02b5a1f6ee7496ffbdc4004 100644 --- a/src/Coscine.ApiClient.Core.Test/Api/TreeApiTests.cs +++ b/src/Coscine.ApiClient.Core.Test/Api/TreeApiTests.cs @@ -109,13 +109,31 @@ namespace Coscine.ApiClient.Core.Test.Api //Guid resourceId = null; //string? path = null; //RdfFormat? format = null; + //bool? includeExtractedMetadata = null; //int? pageNumber = null; //int? pageSize = null; //string? orderBy = null; - //var response = instance.GetMetadataTree(projectId, resourceId, path, format, pageNumber, pageSize, orderBy); + //var response = instance.GetMetadataTree(projectId, resourceId, path, format, includeExtractedMetadata, pageNumber, pageSize, orderBy); //Assert.IsType<MetadataTreeDtoPagedResponse>(response); } + /// <summary> + /// Test GetSpecificMetadataTree + /// </summary> + [Fact] + public void GetSpecificMetadataTreeTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string projectId = null; + //Guid resourceId = null; + //string? path = null; + //RdfFormat? format = null; + //bool? includeExtractedMetadata = null; + //int? varVersion = null; + //var response = instance.GetSpecificMetadataTree(projectId, resourceId, path, format, includeExtractedMetadata, varVersion); + //Assert.IsType<MetadataTreeDtoResponse>(response); + } + /// <summary> /// Test UpdateMetadataTree /// </summary> diff --git a/src/Coscine.ApiClient.Core.Test/Model/HandleDtoResponseTests.cs b/src/Coscine.ApiClient.Core.Test/Model/HandleDtoResponseTests.cs new file mode 100644 index 0000000000000000000000000000000000000000..0ec27733f6a8dccf5c0a0c0f3829863ab5107434 --- /dev/null +++ b/src/Coscine.ApiClient.Core.Test/Model/HandleDtoResponseTests.cs @@ -0,0 +1,94 @@ +/* + * Coscine Web API + * + * Coscine (short for <b>CO</b>llaborative <b>SC</b>ientific <b>IN</b>tegration <b>E</b>nvironment) is the research data management platform for your research project. + * + * The version of the OpenAPI document: 2.0 + * Contact: servicedesk@itc.rwth-aachen.de + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using Coscine.ApiClient.Core.Model; +using Coscine.ApiClient.Core.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace Coscine.ApiClient.Core.Test.Model +{ + /// <summary> + /// Class for testing HandleDtoResponse + /// </summary> + /// <remarks> + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// </remarks> + public class HandleDtoResponseTests : IDisposable + { + // TODO uncomment below to declare an instance variable for HandleDtoResponse + //private HandleDtoResponse instance; + + public HandleDtoResponseTests() + { + // TODO uncomment below to create an instance of HandleDtoResponse + //instance = new HandleDtoResponse(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// <summary> + /// Test an instance of HandleDtoResponse + /// </summary> + [Fact] + public void HandleDtoResponseInstanceTest() + { + // TODO uncomment below to test "IsType" HandleDtoResponse + //Assert.IsType<HandleDtoResponse>(instance); + } + + /// <summary> + /// Test the property 'Data' + /// </summary> + [Fact] + public void DataTest() + { + // TODO unit test for the property 'Data' + } + + /// <summary> + /// Test the property 'IsSuccess' + /// </summary> + [Fact] + public void IsSuccessTest() + { + // TODO unit test for the property 'IsSuccess' + } + + /// <summary> + /// Test the property 'StatusCode' + /// </summary> + [Fact] + public void StatusCodeTest() + { + // TODO unit test for the property 'StatusCode' + } + + /// <summary> + /// Test the property 'TraceId' + /// </summary> + [Fact] + public void TraceIdTest() + { + // TODO unit test for the property 'TraceId' + } + } +} diff --git a/src/Coscine.ApiClient.Core.Test/Model/PidValidationDtoTests.cs b/src/Coscine.ApiClient.Core.Test/Model/HandleDtoTests.cs similarity index 61% rename from src/Coscine.ApiClient.Core.Test/Model/PidValidationDtoTests.cs rename to src/Coscine.ApiClient.Core.Test/Model/HandleDtoTests.cs index 49b648dbc7c7ceab2e7d4320a258420550bd71d3..0f1d5e5cadc06feacaf7394e9f0f2e4620661d9d 100644 --- a/src/Coscine.ApiClient.Core.Test/Model/PidValidationDtoTests.cs +++ b/src/Coscine.ApiClient.Core.Test/Model/HandleDtoTests.cs @@ -23,21 +23,21 @@ using Newtonsoft.Json; namespace Coscine.ApiClient.Core.Test.Model { /// <summary> - /// Class for testing PidValidationDto + /// Class for testing HandleDto /// </summary> /// <remarks> /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// </remarks> - public class PidValidationDtoTests : IDisposable + public class HandleDtoTests : IDisposable { - // TODO uncomment below to declare an instance variable for PidValidationDto - //private PidValidationDto instance; + // TODO uncomment below to declare an instance variable for HandleDto + //private HandleDto instance; - public PidValidationDtoTests() + public HandleDtoTests() { - // TODO uncomment below to create an instance of PidValidationDto - //instance = new PidValidationDto(); + // TODO uncomment below to create an instance of HandleDto + //instance = new HandleDto(); } public void Dispose() @@ -46,31 +46,31 @@ namespace Coscine.ApiClient.Core.Test.Model } /// <summary> - /// Test an instance of PidValidationDto + /// Test an instance of HandleDto /// </summary> [Fact] - public void PidValidationDtoInstanceTest() + public void HandleDtoInstanceTest() { - // TODO uncomment below to test "IsType" PidValidationDto - //Assert.IsType<PidValidationDto>(instance); + // TODO uncomment below to test "IsType" HandleDto + //Assert.IsType<HandleDto>(instance); } /// <summary> - /// Test the property 'IsValid' + /// Test the property 'Pid' /// </summary> [Fact] - public void IsValidTest() + public void PidTest() { - // TODO unit test for the property 'IsValid' + // TODO unit test for the property 'Pid' } /// <summary> - /// Test the property 'Type' + /// Test the property 'Values' /// </summary> [Fact] - public void TypeTest() + public void ValuesTest() { - // TODO unit test for the property 'Type' + // TODO unit test for the property 'Values' } } } diff --git a/src/Coscine.ApiClient.Core.Test/Model/HandleForUpdateDtoTests.cs b/src/Coscine.ApiClient.Core.Test/Model/HandleForUpdateDtoTests.cs new file mode 100644 index 0000000000000000000000000000000000000000..a296d0d5ce8945d83cecf26cfc24660766902dad --- /dev/null +++ b/src/Coscine.ApiClient.Core.Test/Model/HandleForUpdateDtoTests.cs @@ -0,0 +1,67 @@ +/* + * Coscine Web API + * + * Coscine (short for <b>CO</b>llaborative <b>SC</b>ientific <b>IN</b>tegration <b>E</b>nvironment) is the research data management platform for your research project. + * + * The version of the OpenAPI document: 2.0 + * Contact: servicedesk@itc.rwth-aachen.de + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using Coscine.ApiClient.Core.Model; +using Coscine.ApiClient.Core.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace Coscine.ApiClient.Core.Test.Model +{ + /// <summary> + /// Class for testing HandleForUpdateDto + /// </summary> + /// <remarks> + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// </remarks> + public class HandleForUpdateDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for HandleForUpdateDto + //private HandleForUpdateDto instance; + + public HandleForUpdateDtoTests() + { + // TODO uncomment below to create an instance of HandleForUpdateDto + //instance = new HandleForUpdateDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// <summary> + /// Test an instance of HandleForUpdateDto + /// </summary> + [Fact] + public void HandleForUpdateDtoInstanceTest() + { + // TODO uncomment below to test "IsType" HandleForUpdateDto + //Assert.IsType<HandleForUpdateDto>(instance); + } + + /// <summary> + /// Test the property 'Values' + /// </summary> + [Fact] + public void ValuesTest() + { + // TODO unit test for the property 'Values' + } + } +} diff --git a/src/Coscine.ApiClient.Core.Test/Model/HandleValueDtoTests.cs b/src/Coscine.ApiClient.Core.Test/Model/HandleValueDtoTests.cs new file mode 100644 index 0000000000000000000000000000000000000000..b3169a548c4e58bbae134f9f7989cb075fafc5b6 --- /dev/null +++ b/src/Coscine.ApiClient.Core.Test/Model/HandleValueDtoTests.cs @@ -0,0 +1,139 @@ +/* + * Coscine Web API + * + * Coscine (short for <b>CO</b>llaborative <b>SC</b>ientific <b>IN</b>tegration <b>E</b>nvironment) is the research data management platform for your research project. + * + * The version of the OpenAPI document: 2.0 + * Contact: servicedesk@itc.rwth-aachen.de + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using Coscine.ApiClient.Core.Model; +using Coscine.ApiClient.Core.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace Coscine.ApiClient.Core.Test.Model +{ + /// <summary> + /// Class for testing HandleValueDto + /// </summary> + /// <remarks> + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// </remarks> + public class HandleValueDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for HandleValueDto + //private HandleValueDto instance; + + public HandleValueDtoTests() + { + // TODO uncomment below to create an instance of HandleValueDto + //instance = new HandleValueDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// <summary> + /// Test an instance of HandleValueDto + /// </summary> + [Fact] + public void HandleValueDtoInstanceTest() + { + // TODO uncomment below to test "IsType" HandleValueDto + //Assert.IsType<HandleValueDto>(instance); + } + + /// <summary> + /// Test the property 'Idx' + /// </summary> + [Fact] + public void IdxTest() + { + // TODO unit test for the property 'Idx' + } + + /// <summary> + /// Test the property 'Type' + /// </summary> + [Fact] + public void TypeTest() + { + // TODO unit test for the property 'Type' + } + + /// <summary> + /// Test the property 'ParsedData' + /// </summary> + [Fact] + public void ParsedDataTest() + { + // TODO unit test for the property 'ParsedData' + } + + /// <summary> + /// Test the property 'Data' + /// </summary> + [Fact] + public void DataTest() + { + // TODO unit test for the property 'Data' + } + + /// <summary> + /// Test the property 'Timestamp' + /// </summary> + [Fact] + public void TimestampTest() + { + // TODO unit test for the property 'Timestamp' + } + + /// <summary> + /// Test the property 'TtlType' + /// </summary> + [Fact] + public void TtlTypeTest() + { + // TODO unit test for the property 'TtlType' + } + + /// <summary> + /// Test the property 'Ttl' + /// </summary> + [Fact] + public void TtlTest() + { + // TODO unit test for the property 'Ttl' + } + + /// <summary> + /// Test the property 'Refs' + /// </summary> + [Fact] + public void RefsTest() + { + // TODO unit test for the property 'Refs' + } + + /// <summary> + /// Test the property 'Privs' + /// </summary> + [Fact] + public void PrivsTest() + { + // TODO unit test for the property 'Privs' + } + } +} diff --git a/src/Coscine.ApiClient.Core.Test/Model/HandleValueForUpdateDtoTests.cs b/src/Coscine.ApiClient.Core.Test/Model/HandleValueForUpdateDtoTests.cs new file mode 100644 index 0000000000000000000000000000000000000000..ad035c6f01729dcab52cbe94ffd0f7a692a41aa8 --- /dev/null +++ b/src/Coscine.ApiClient.Core.Test/Model/HandleValueForUpdateDtoTests.cs @@ -0,0 +1,85 @@ +/* + * Coscine Web API + * + * Coscine (short for <b>CO</b>llaborative <b>SC</b>ientific <b>IN</b>tegration <b>E</b>nvironment) is the research data management platform for your research project. + * + * The version of the OpenAPI document: 2.0 + * Contact: servicedesk@itc.rwth-aachen.de + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using Coscine.ApiClient.Core.Model; +using Coscine.ApiClient.Core.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace Coscine.ApiClient.Core.Test.Model +{ + /// <summary> + /// Class for testing HandleValueForUpdateDto + /// </summary> + /// <remarks> + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// </remarks> + public class HandleValueForUpdateDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for HandleValueForUpdateDto + //private HandleValueForUpdateDto instance; + + public HandleValueForUpdateDtoTests() + { + // TODO uncomment below to create an instance of HandleValueForUpdateDto + //instance = new HandleValueForUpdateDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// <summary> + /// Test an instance of HandleValueForUpdateDto + /// </summary> + [Fact] + public void HandleValueForUpdateDtoInstanceTest() + { + // TODO uncomment below to test "IsType" HandleValueForUpdateDto + //Assert.IsType<HandleValueForUpdateDto>(instance); + } + + /// <summary> + /// Test the property 'Type' + /// </summary> + [Fact] + public void TypeTest() + { + // TODO unit test for the property 'Type' + } + + /// <summary> + /// Test the property 'ParsedData' + /// </summary> + [Fact] + public void ParsedDataTest() + { + // TODO unit test for the property 'ParsedData' + } + + /// <summary> + /// Test the property 'Idx' + /// </summary> + [Fact] + public void IdxTest() + { + // TODO unit test for the property 'Idx' + } + } +} diff --git a/src/Coscine.ApiClient.Core.Test/Model/LicenseDtoTests.cs b/src/Coscine.ApiClient.Core.Test/Model/LicenseDtoTests.cs index 9fd6bb5b9c6ceaebdfb7aa8bb51539fb05466552..827536aec846405e10e895f2dad1551f1f3b9267 100644 --- a/src/Coscine.ApiClient.Core.Test/Model/LicenseDtoTests.cs +++ b/src/Coscine.ApiClient.Core.Test/Model/LicenseDtoTests.cs @@ -72,5 +72,14 @@ namespace Coscine.ApiClient.Core.Test.Model { // TODO unit test for the property 'DisplayName' } + + /// <summary> + /// Test the property 'Url' + /// </summary> + [Fact] + public void UrlTest() + { + // TODO unit test for the property 'Url' + } } } diff --git a/src/Coscine.ApiClient.Core.Test/Model/MetadataTreeDtoTests.cs b/src/Coscine.ApiClient.Core.Test/Model/MetadataTreeDtoTests.cs index 3f88dbd72d09d8a919b82796a27262cbf0cc1b29..5a404ce5f94435964e2fe51b02a8050235bdbdc6 100644 --- a/src/Coscine.ApiClient.Core.Test/Model/MetadataTreeDtoTests.cs +++ b/src/Coscine.ApiClient.Core.Test/Model/MetadataTreeDtoTests.cs @@ -99,5 +99,14 @@ namespace Coscine.ApiClient.Core.Test.Model { // TODO unit test for the property 'Definition' } + + /// <summary> + /// Test the property 'Extracted' + /// </summary> + [Fact] + public void ExtractedTest() + { + // TODO unit test for the property 'Extracted' + } } } diff --git a/src/Coscine.ApiClient.Core.Test/Model/MetadataTreeExtractedDtoTests.cs b/src/Coscine.ApiClient.Core.Test/Model/MetadataTreeExtractedDtoTests.cs new file mode 100644 index 0000000000000000000000000000000000000000..52c29dedf4d9c362d12c1fb64888c23e370877c4 --- /dev/null +++ b/src/Coscine.ApiClient.Core.Test/Model/MetadataTreeExtractedDtoTests.cs @@ -0,0 +1,103 @@ +/* + * Coscine Web API + * + * Coscine (short for <b>CO</b>llaborative <b>SC</b>ientific <b>IN</b>tegration <b>E</b>nvironment) is the research data management platform for your research project. + * + * The version of the OpenAPI document: 2.0 + * Contact: servicedesk@itc.rwth-aachen.de + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using Coscine.ApiClient.Core.Model; +using Coscine.ApiClient.Core.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace Coscine.ApiClient.Core.Test.Model +{ + /// <summary> + /// Class for testing MetadataTreeExtractedDto + /// </summary> + /// <remarks> + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// </remarks> + public class MetadataTreeExtractedDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for MetadataTreeExtractedDto + //private MetadataTreeExtractedDto instance; + + public MetadataTreeExtractedDtoTests() + { + // TODO uncomment below to create an instance of MetadataTreeExtractedDto + //instance = new MetadataTreeExtractedDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// <summary> + /// Test an instance of MetadataTreeExtractedDto + /// </summary> + [Fact] + public void MetadataTreeExtractedDtoInstanceTest() + { + // TODO uncomment below to test "IsType" MetadataTreeExtractedDto + //Assert.IsType<MetadataTreeExtractedDto>(instance); + } + + /// <summary> + /// Test the property 'Path' + /// </summary> + [Fact] + public void PathTest() + { + // TODO unit test for the property 'Path' + } + + /// <summary> + /// Test the property 'Type' + /// </summary> + [Fact] + public void TypeTest() + { + // TODO unit test for the property 'Type' + } + + /// <summary> + /// Test the property 'MetadataId' + /// </summary> + [Fact] + public void MetadataIdTest() + { + // TODO unit test for the property 'MetadataId' + } + + /// <summary> + /// Test the property 'RawDataId' + /// </summary> + [Fact] + public void RawDataIdTest() + { + // TODO unit test for the property 'RawDataId' + } + + /// <summary> + /// Test the property 'Definition' + /// </summary> + [Fact] + public void DefinitionTest() + { + // TODO unit test for the property 'Definition' + } + } +} diff --git a/src/Coscine.ApiClient.Core.Test/Model/OrganizationDtoTests.cs b/src/Coscine.ApiClient.Core.Test/Model/OrganizationDtoTests.cs index 531ee3ce25920a2d3a3bdfa6fd6f2303a8b5c230..da27f3cd8cb057b3473ecc3eae36fe1a1661f84a 100644 --- a/src/Coscine.ApiClient.Core.Test/Model/OrganizationDtoTests.cs +++ b/src/Coscine.ApiClient.Core.Test/Model/OrganizationDtoTests.cs @@ -81,5 +81,14 @@ namespace Coscine.ApiClient.Core.Test.Model { // TODO unit test for the property 'Email' } + + /// <summary> + /// Test the property 'PublicationAdvisoryService' + /// </summary> + [Fact] + public void PublicationAdvisoryServiceTest() + { + // TODO unit test for the property 'PublicationAdvisoryService' + } } } diff --git a/src/Coscine.ApiClient.Core.Test/Model/PidDtoPagedResponseTests.cs b/src/Coscine.ApiClient.Core.Test/Model/PidDtoPagedResponseTests.cs new file mode 100644 index 0000000000000000000000000000000000000000..22bc01c60ef2b691202f3cf8757ddb70b08f582f --- /dev/null +++ b/src/Coscine.ApiClient.Core.Test/Model/PidDtoPagedResponseTests.cs @@ -0,0 +1,103 @@ +/* + * Coscine Web API + * + * Coscine (short for <b>CO</b>llaborative <b>SC</b>ientific <b>IN</b>tegration <b>E</b>nvironment) is the research data management platform for your research project. + * + * The version of the OpenAPI document: 2.0 + * Contact: servicedesk@itc.rwth-aachen.de + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using Coscine.ApiClient.Core.Model; +using Coscine.ApiClient.Core.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace Coscine.ApiClient.Core.Test.Model +{ + /// <summary> + /// Class for testing PidDtoPagedResponse + /// </summary> + /// <remarks> + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// </remarks> + public class PidDtoPagedResponseTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PidDtoPagedResponse + //private PidDtoPagedResponse instance; + + public PidDtoPagedResponseTests() + { + // TODO uncomment below to create an instance of PidDtoPagedResponse + //instance = new PidDtoPagedResponse(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// <summary> + /// Test an instance of PidDtoPagedResponse + /// </summary> + [Fact] + public void PidDtoPagedResponseInstanceTest() + { + // TODO uncomment below to test "IsType" PidDtoPagedResponse + //Assert.IsType<PidDtoPagedResponse>(instance); + } + + /// <summary> + /// Test the property 'Data' + /// </summary> + [Fact] + public void DataTest() + { + // TODO unit test for the property 'Data' + } + + /// <summary> + /// Test the property 'IsSuccess' + /// </summary> + [Fact] + public void IsSuccessTest() + { + // TODO unit test for the property 'IsSuccess' + } + + /// <summary> + /// Test the property 'StatusCode' + /// </summary> + [Fact] + public void StatusCodeTest() + { + // TODO unit test for the property 'StatusCode' + } + + /// <summary> + /// Test the property 'TraceId' + /// </summary> + [Fact] + public void TraceIdTest() + { + // TODO unit test for the property 'TraceId' + } + + /// <summary> + /// Test the property 'Pagination' + /// </summary> + [Fact] + public void PaginationTest() + { + // TODO unit test for the property 'Pagination' + } + } +} diff --git a/src/Coscine.ApiClient.Core.Test/Model/PidValidationDtoResponseTests.cs b/src/Coscine.ApiClient.Core.Test/Model/PidDtoResponseTests.cs similarity index 78% rename from src/Coscine.ApiClient.Core.Test/Model/PidValidationDtoResponseTests.cs rename to src/Coscine.ApiClient.Core.Test/Model/PidDtoResponseTests.cs index d701008c061b61cd9de1adbefdf7cf72a9be1d7d..53c294520f3e2c42d96a7feb1240c77527608e1a 100644 --- a/src/Coscine.ApiClient.Core.Test/Model/PidValidationDtoResponseTests.cs +++ b/src/Coscine.ApiClient.Core.Test/Model/PidDtoResponseTests.cs @@ -23,21 +23,21 @@ using Newtonsoft.Json; namespace Coscine.ApiClient.Core.Test.Model { /// <summary> - /// Class for testing PidValidationDtoResponse + /// Class for testing PidDtoResponse /// </summary> /// <remarks> /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// </remarks> - public class PidValidationDtoResponseTests : IDisposable + public class PidDtoResponseTests : IDisposable { - // TODO uncomment below to declare an instance variable for PidValidationDtoResponse - //private PidValidationDtoResponse instance; + // TODO uncomment below to declare an instance variable for PidDtoResponse + //private PidDtoResponse instance; - public PidValidationDtoResponseTests() + public PidDtoResponseTests() { - // TODO uncomment below to create an instance of PidValidationDtoResponse - //instance = new PidValidationDtoResponse(); + // TODO uncomment below to create an instance of PidDtoResponse + //instance = new PidDtoResponse(); } public void Dispose() @@ -46,13 +46,13 @@ namespace Coscine.ApiClient.Core.Test.Model } /// <summary> - /// Test an instance of PidValidationDtoResponse + /// Test an instance of PidDtoResponse /// </summary> [Fact] - public void PidValidationDtoResponseInstanceTest() + public void PidDtoResponseInstanceTest() { - // TODO uncomment below to test "IsType" PidValidationDtoResponse - //Assert.IsType<PidValidationDtoResponse>(instance); + // TODO uncomment below to test "IsType" PidDtoResponse + //Assert.IsType<PidDtoResponse>(instance); } /// <summary> diff --git a/src/Coscine.ApiClient.Core.Test/Model/PidDtoTests.cs b/src/Coscine.ApiClient.Core.Test/Model/PidDtoTests.cs new file mode 100644 index 0000000000000000000000000000000000000000..10d67cbe2269ae7c72bcf9bdb5dcaf7546ed53b8 --- /dev/null +++ b/src/Coscine.ApiClient.Core.Test/Model/PidDtoTests.cs @@ -0,0 +1,103 @@ +/* + * Coscine Web API + * + * Coscine (short for <b>CO</b>llaborative <b>SC</b>ientific <b>IN</b>tegration <b>E</b>nvironment) is the research data management platform for your research project. + * + * The version of the OpenAPI document: 2.0 + * Contact: servicedesk@itc.rwth-aachen.de + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using Coscine.ApiClient.Core.Model; +using Coscine.ApiClient.Core.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace Coscine.ApiClient.Core.Test.Model +{ + /// <summary> + /// Class for testing PidDto + /// </summary> + /// <remarks> + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// </remarks> + public class PidDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PidDto + //private PidDto instance; + + public PidDtoTests() + { + // TODO uncomment below to create an instance of PidDto + //instance = new PidDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// <summary> + /// Test an instance of PidDto + /// </summary> + [Fact] + public void PidDtoInstanceTest() + { + // TODO uncomment below to test "IsType" PidDto + //Assert.IsType<PidDto>(instance); + } + + /// <summary> + /// Test the property 'Prefix' + /// </summary> + [Fact] + public void PrefixTest() + { + // TODO unit test for the property 'Prefix' + } + + /// <summary> + /// Test the property 'Suffix' + /// </summary> + [Fact] + public void SuffixTest() + { + // TODO unit test for the property 'Suffix' + } + + /// <summary> + /// Test the property 'Identifier' + /// </summary> + [Fact] + public void IdentifierTest() + { + // TODO unit test for the property 'Identifier' + } + + /// <summary> + /// Test the property 'Type' + /// </summary> + [Fact] + public void TypeTest() + { + // TODO unit test for the property 'Type' + } + + /// <summary> + /// Test the property 'IsEntityValid' + /// </summary> + [Fact] + public void IsEntityValidTest() + { + // TODO unit test for the property 'IsEntityValid' + } + } +} diff --git a/src/Coscine.ApiClient.Core.Test/Model/PublicationAdvisoryServiceDtoTests.cs b/src/Coscine.ApiClient.Core.Test/Model/PublicationAdvisoryServiceDtoTests.cs new file mode 100644 index 0000000000000000000000000000000000000000..948b9e06b182cb8ee5d68d6357453f761ea2717f --- /dev/null +++ b/src/Coscine.ApiClient.Core.Test/Model/PublicationAdvisoryServiceDtoTests.cs @@ -0,0 +1,76 @@ +/* + * Coscine Web API + * + * Coscine (short for <b>CO</b>llaborative <b>SC</b>ientific <b>IN</b>tegration <b>E</b>nvironment) is the research data management platform for your research project. + * + * The version of the OpenAPI document: 2.0 + * Contact: servicedesk@itc.rwth-aachen.de + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using Coscine.ApiClient.Core.Model; +using Coscine.ApiClient.Core.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace Coscine.ApiClient.Core.Test.Model +{ + /// <summary> + /// Class for testing PublicationAdvisoryServiceDto + /// </summary> + /// <remarks> + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// </remarks> + public class PublicationAdvisoryServiceDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PublicationAdvisoryServiceDto + //private PublicationAdvisoryServiceDto instance; + + public PublicationAdvisoryServiceDtoTests() + { + // TODO uncomment below to create an instance of PublicationAdvisoryServiceDto + //instance = new PublicationAdvisoryServiceDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// <summary> + /// Test an instance of PublicationAdvisoryServiceDto + /// </summary> + [Fact] + public void PublicationAdvisoryServiceDtoInstanceTest() + { + // TODO uncomment below to test "IsType" PublicationAdvisoryServiceDto + //Assert.IsType<PublicationAdvisoryServiceDto>(instance); + } + + /// <summary> + /// Test the property 'DisplayName' + /// </summary> + [Fact] + public void DisplayNameTest() + { + // TODO unit test for the property 'DisplayName' + } + + /// <summary> + /// Test the property 'Email' + /// </summary> + [Fact] + public void EmailTest() + { + // TODO unit test for the property 'Email' + } + } +} diff --git a/src/Coscine.ApiClient.Core.Test/Model/PublicationRequestForCreationDtoResponseTests.cs b/src/Coscine.ApiClient.Core.Test/Model/PublicationRequestForCreationDtoResponseTests.cs new file mode 100644 index 0000000000000000000000000000000000000000..c70a604f816b26741a9604f7441c98357a90ba81 --- /dev/null +++ b/src/Coscine.ApiClient.Core.Test/Model/PublicationRequestForCreationDtoResponseTests.cs @@ -0,0 +1,94 @@ +/* + * Coscine Web API + * + * Coscine (short for <b>CO</b>llaborative <b>SC</b>ientific <b>IN</b>tegration <b>E</b>nvironment) is the research data management platform for your research project. + * + * The version of the OpenAPI document: 2.0 + * Contact: servicedesk@itc.rwth-aachen.de + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using Coscine.ApiClient.Core.Model; +using Coscine.ApiClient.Core.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace Coscine.ApiClient.Core.Test.Model +{ + /// <summary> + /// Class for testing PublicationRequestForCreationDtoResponse + /// </summary> + /// <remarks> + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// </remarks> + public class PublicationRequestForCreationDtoResponseTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PublicationRequestForCreationDtoResponse + //private PublicationRequestForCreationDtoResponse instance; + + public PublicationRequestForCreationDtoResponseTests() + { + // TODO uncomment below to create an instance of PublicationRequestForCreationDtoResponse + //instance = new PublicationRequestForCreationDtoResponse(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// <summary> + /// Test an instance of PublicationRequestForCreationDtoResponse + /// </summary> + [Fact] + public void PublicationRequestForCreationDtoResponseInstanceTest() + { + // TODO uncomment below to test "IsType" PublicationRequestForCreationDtoResponse + //Assert.IsType<PublicationRequestForCreationDtoResponse>(instance); + } + + /// <summary> + /// Test the property 'Data' + /// </summary> + [Fact] + public void DataTest() + { + // TODO unit test for the property 'Data' + } + + /// <summary> + /// Test the property 'IsSuccess' + /// </summary> + [Fact] + public void IsSuccessTest() + { + // TODO unit test for the property 'IsSuccess' + } + + /// <summary> + /// Test the property 'StatusCode' + /// </summary> + [Fact] + public void StatusCodeTest() + { + // TODO unit test for the property 'StatusCode' + } + + /// <summary> + /// Test the property 'TraceId' + /// </summary> + [Fact] + public void TraceIdTest() + { + // TODO unit test for the property 'TraceId' + } + } +} diff --git a/src/Coscine.ApiClient.Core.Test/Model/PublicationRequestForCreationDtoTests.cs b/src/Coscine.ApiClient.Core.Test/Model/PublicationRequestForCreationDtoTests.cs new file mode 100644 index 0000000000000000000000000000000000000000..bb74e10decd7bb512bb52687046a4b44a7409b35 --- /dev/null +++ b/src/Coscine.ApiClient.Core.Test/Model/PublicationRequestForCreationDtoTests.cs @@ -0,0 +1,85 @@ +/* + * Coscine Web API + * + * Coscine (short for <b>CO</b>llaborative <b>SC</b>ientific <b>IN</b>tegration <b>E</b>nvironment) is the research data management platform for your research project. + * + * The version of the OpenAPI document: 2.0 + * Contact: servicedesk@itc.rwth-aachen.de + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using Coscine.ApiClient.Core.Model; +using Coscine.ApiClient.Core.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace Coscine.ApiClient.Core.Test.Model +{ + /// <summary> + /// Class for testing PublicationRequestForCreationDto + /// </summary> + /// <remarks> + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// </remarks> + public class PublicationRequestForCreationDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PublicationRequestForCreationDto + //private PublicationRequestForCreationDto instance; + + public PublicationRequestForCreationDtoTests() + { + // TODO uncomment below to create an instance of PublicationRequestForCreationDto + //instance = new PublicationRequestForCreationDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// <summary> + /// Test an instance of PublicationRequestForCreationDto + /// </summary> + [Fact] + public void PublicationRequestForCreationDtoInstanceTest() + { + // TODO uncomment below to test "IsType" PublicationRequestForCreationDto + //Assert.IsType<PublicationRequestForCreationDto>(instance); + } + + /// <summary> + /// Test the property 'DataPublicationServiceRorId' + /// </summary> + [Fact] + public void DataPublicationServiceRorIdTest() + { + // TODO unit test for the property 'DataPublicationServiceRorId' + } + + /// <summary> + /// Test the property 'ResourceIds' + /// </summary> + [Fact] + public void ResourceIdsTest() + { + // TODO unit test for the property 'ResourceIds' + } + + /// <summary> + /// Test the property 'Message' + /// </summary> + [Fact] + public void MessageTest() + { + // TODO unit test for the property 'Message' + } + } +} diff --git a/src/Coscine.ApiClient.Core.Test/Model/TermsOfServiceDtoTests.cs b/src/Coscine.ApiClient.Core.Test/Model/TermsOfServiceDtoTests.cs index f7e448a345e453d48eb847779dcba0275f3b5eb8..5a6548b5a28c34634e374cff8b8a50488dcd02b8 100644 --- a/src/Coscine.ApiClient.Core.Test/Model/TermsOfServiceDtoTests.cs +++ b/src/Coscine.ApiClient.Core.Test/Model/TermsOfServiceDtoTests.cs @@ -64,6 +64,15 @@ namespace Coscine.ApiClient.Core.Test.Model // TODO unit test for the property 'VarVersion' } + /// <summary> + /// Test the property 'Href' + /// </summary> + [Fact] + public void HrefTest() + { + // TODO unit test for the property 'Href' + } + /// <summary> /// Test the property 'IsCurrent' /// </summary> diff --git a/src/Coscine.ApiClient.Core.Test/Model/UserInstituteDtoTests.cs b/src/Coscine.ApiClient.Core.Test/Model/UserInstituteDtoTests.cs index 54614598da1670552934ea4f301a17804335aeaf..0db8453912c92c37304a64124fd66964df6f5b63 100644 --- a/src/Coscine.ApiClient.Core.Test/Model/UserInstituteDtoTests.cs +++ b/src/Coscine.ApiClient.Core.Test/Model/UserInstituteDtoTests.cs @@ -82,6 +82,15 @@ namespace Coscine.ApiClient.Core.Test.Model // TODO unit test for the property 'Email' } + /// <summary> + /// Test the property 'PublicationAdvisoryService' + /// </summary> + [Fact] + public void PublicationAdvisoryServiceTest() + { + // TODO unit test for the property 'PublicationAdvisoryService' + } + /// <summary> /// Test the property 'VarReadOnly' /// </summary> diff --git a/src/Coscine.ApiClient.Core.Test/Model/UserOrganizationDtoTests.cs b/src/Coscine.ApiClient.Core.Test/Model/UserOrganizationDtoTests.cs index 0462b2a173dc8c1129ac58b536667b01ae452cc6..31c3ce063092eb41e3ff40dcb76eda1040741259 100644 --- a/src/Coscine.ApiClient.Core.Test/Model/UserOrganizationDtoTests.cs +++ b/src/Coscine.ApiClient.Core.Test/Model/UserOrganizationDtoTests.cs @@ -82,6 +82,15 @@ namespace Coscine.ApiClient.Core.Test.Model // TODO unit test for the property 'Email' } + /// <summary> + /// Test the property 'PublicationAdvisoryService' + /// </summary> + [Fact] + public void PublicationAdvisoryServiceTest() + { + // TODO unit test for the property 'PublicationAdvisoryService' + } + /// <summary> /// Test the property 'VarReadOnly' /// </summary> diff --git a/src/Coscine.ApiClient.Core/Api/AdminApi.cs b/src/Coscine.ApiClient.Core/Api/AdminApi.cs index 654088db75c4e5aa9984ab6bc2ce9dd2da709b98..6bc10ed091b2acf00b812d53069b3008d58baca6 100644 --- a/src/Coscine.ApiClient.Core/Api/AdminApi.cs +++ b/src/Coscine.ApiClient.Core/Api/AdminApi.cs @@ -48,6 +48,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves all activity logs. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="activityTimestampBefore">The activity timestamp date before which activity logs should be retrieved. (optional)</param> /// <param name="activityTimestampAfter">The activity timestamp date after which activity logs should be retrieved. (optional)</param> @@ -66,7 +69,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all activity logs. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="activityTimestampBefore">The activity timestamp date before which activity logs should be retrieved. (optional)</param> @@ -84,6 +87,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves all projects. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="topLevel">Gets or sets a value indicating whether to filter top-level projects. (optional)</param> /// <param name="includeDeleted">Gets or sets a value indicating whether to include deleted projects in the results. (optional)</param> @@ -99,7 +105,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all projects. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="topLevel">Gets or sets a value indicating whether to filter top-level projects. (optional)</param> @@ -114,6 +120,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves all resources. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="includeDeleted">Value indicating whether to include deleted resources. (optional)</param> /// <param name="includeQuotas">Value indicating whether to include individual resource quotas. (optional)</param> @@ -128,7 +137,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all resources. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="includeDeleted">Value indicating whether to include deleted resources. (optional)</param> @@ -142,6 +151,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves all users. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="tosAccepted">Gets or sets a value indicating whether the terms of service have been accepted by the user. (optional)</param> /// <param name="pageSize">Number of items per page. The maximum number of items per page is `250`. (optional)</param> @@ -155,7 +167,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all users. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="tosAccepted">Gets or sets a value indicating whether the terms of service have been accepted by the user. (optional)</param> @@ -168,6 +180,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Gets a metadata graph. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="graph">The absolute URI of the graph to get.</param> /// <param name="format">Gets or sets the RDF format. (optional)</param> @@ -179,7 +194,7 @@ namespace Coscine.ApiClient.Core.Api /// Gets a metadata graph. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="graph">The absolute URI of the graph to get.</param> @@ -190,6 +205,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Patches a metadata graph. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="graph">The absolute URI of the graph to patch.</param> /// <param name="rdfPatchDocumentDto">The well-formed RDF patch document containing the changes as operations to be applied to the graph. (optional)</param> @@ -201,7 +219,7 @@ namespace Coscine.ApiClient.Core.Api /// Patches a metadata graph. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="graph">The absolute URI of the graph to patch.</param> @@ -212,6 +230,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Updates a metadata graph. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="graph">The absolute URI of the graph to update.</param> /// <param name="metadataUpdateAdminParameters">The metadata update admin parameters. (optional)</param> @@ -223,7 +244,7 @@ namespace Coscine.ApiClient.Core.Api /// Updates a metadata graph. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="graph">The absolute URI of the graph to update.</param> @@ -267,7 +288,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all activity logs. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="activityTimestampBefore">The activity timestamp date before which activity logs should be retrieved. (optional)</param> @@ -288,7 +309,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all activity logs. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="activityTimestampBefore">The activity timestamp date before which activity logs should be retrieved. (optional)</param> @@ -308,7 +329,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all projects. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="topLevel">Gets or sets a value indicating whether to filter top-level projects. (optional)</param> @@ -326,7 +347,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all projects. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="topLevel">Gets or sets a value indicating whether to filter top-level projects. (optional)</param> @@ -343,7 +364,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all resources. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="includeDeleted">Value indicating whether to include deleted resources. (optional)</param> @@ -360,7 +381,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all resources. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="includeDeleted">Value indicating whether to include deleted resources. (optional)</param> @@ -376,7 +397,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all users. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="tosAccepted">Gets or sets a value indicating whether the terms of service have been accepted by the user. (optional)</param> @@ -392,7 +413,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all users. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="tosAccepted">Gets or sets a value indicating whether the terms of service have been accepted by the user. (optional)</param> @@ -407,7 +428,7 @@ namespace Coscine.ApiClient.Core.Api /// Gets a metadata graph. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="graph">The absolute URI of the graph to get.</param> @@ -421,7 +442,7 @@ namespace Coscine.ApiClient.Core.Api /// Gets a metadata graph. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="graph">The absolute URI of the graph to get.</param> @@ -434,7 +455,7 @@ namespace Coscine.ApiClient.Core.Api /// Patches a metadata graph. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="graph">The absolute URI of the graph to patch.</param> @@ -448,7 +469,7 @@ namespace Coscine.ApiClient.Core.Api /// Patches a metadata graph. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="graph">The absolute URI of the graph to patch.</param> @@ -461,7 +482,7 @@ namespace Coscine.ApiClient.Core.Api /// Updates a metadata graph. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="graph">The absolute URI of the graph to update.</param> @@ -475,7 +496,7 @@ namespace Coscine.ApiClient.Core.Api /// Updates a metadata graph. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="graph">The absolute URI of the graph to update.</param> @@ -737,7 +758,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all activity logs. + /// Retrieves all activity logs. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="activityTimestampBefore">The activity timestamp date before which activity logs should be retrieved. (optional)</param> @@ -758,7 +779,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all activity logs. + /// Retrieves all activity logs. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="activityTimestampBefore">The activity timestamp date before which activity logs should be retrieved. (optional)</param> @@ -858,7 +879,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all activity logs. + /// Retrieves all activity logs. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="activityTimestampBefore">The activity timestamp date before which activity logs should be retrieved. (optional)</param> @@ -880,7 +901,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all activity logs. + /// Retrieves all activity logs. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="activityTimestampBefore">The activity timestamp date before which activity logs should be retrieved. (optional)</param> @@ -983,7 +1004,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all projects. + /// Retrieves all projects. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="topLevel">Gets or sets a value indicating whether to filter top-level projects. (optional)</param> @@ -1001,7 +1022,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all projects. + /// Retrieves all projects. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="topLevel">Gets or sets a value indicating whether to filter top-level projects. (optional)</param> @@ -1086,7 +1107,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all projects. + /// Retrieves all projects. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="topLevel">Gets or sets a value indicating whether to filter top-level projects. (optional)</param> @@ -1105,7 +1126,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all projects. + /// Retrieves all projects. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="topLevel">Gets or sets a value indicating whether to filter top-level projects. (optional)</param> @@ -1193,7 +1214,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all resources. + /// Retrieves all resources. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="includeDeleted">Value indicating whether to include deleted resources. (optional)</param> @@ -1210,7 +1231,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all resources. + /// Retrieves all resources. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="includeDeleted">Value indicating whether to include deleted resources. (optional)</param> @@ -1290,7 +1311,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all resources. + /// Retrieves all resources. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="includeDeleted">Value indicating whether to include deleted resources. (optional)</param> @@ -1308,7 +1329,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all resources. + /// Retrieves all resources. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="includeDeleted">Value indicating whether to include deleted resources. (optional)</param> @@ -1391,7 +1412,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all users. + /// Retrieves all users. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="tosAccepted">Gets or sets a value indicating whether the terms of service have been accepted by the user. (optional)</param> @@ -1407,7 +1428,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all users. + /// Retrieves all users. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="tosAccepted">Gets or sets a value indicating whether the terms of service have been accepted by the user. (optional)</param> @@ -1482,7 +1503,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all users. + /// Retrieves all users. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="tosAccepted">Gets or sets a value indicating whether the terms of service have been accepted by the user. (optional)</param> @@ -1499,7 +1520,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all users. + /// Retrieves all users. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="tosAccepted">Gets or sets a value indicating whether the terms of service have been accepted by the user. (optional)</param> @@ -1577,7 +1598,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Gets a metadata graph. + /// Gets a metadata graph. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="graph">The absolute URI of the graph to get.</param> @@ -1591,7 +1612,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Gets a metadata graph. + /// Gets a metadata graph. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="graph">The absolute URI of the graph to get.</param> @@ -1659,7 +1680,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Gets a metadata graph. + /// Gets a metadata graph. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="graph">The absolute URI of the graph to get.</param> @@ -1674,7 +1695,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Gets a metadata graph. + /// Gets a metadata graph. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="graph">The absolute URI of the graph to get.</param> @@ -1745,7 +1766,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Patches a metadata graph. + /// Patches a metadata graph. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="graph">The absolute URI of the graph to patch.</param> @@ -1758,7 +1779,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Patches a metadata graph. + /// Patches a metadata graph. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="graph">The absolute URI of the graph to patch.</param> @@ -1824,7 +1845,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Patches a metadata graph. + /// Patches a metadata graph. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="graph">The absolute URI of the graph to patch.</param> @@ -1838,7 +1859,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Patches a metadata graph. + /// Patches a metadata graph. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="graph">The absolute URI of the graph to patch.</param> @@ -1907,7 +1928,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Updates a metadata graph. + /// Updates a metadata graph. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="graph">The absolute URI of the graph to update.</param> @@ -1920,7 +1941,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Updates a metadata graph. + /// Updates a metadata graph. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="graph">The absolute URI of the graph to update.</param> @@ -1986,7 +2007,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Updates a metadata graph. + /// Updates a metadata graph. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="graph">The absolute URI of the graph to update.</param> @@ -2000,7 +2021,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Updates a metadata graph. + /// Updates a metadata graph. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="graph">The absolute URI of the graph to update.</param> diff --git a/src/Coscine.ApiClient.Core/Api/ApplicationProfileApi.cs b/src/Coscine.ApiClient.Core/Api/ApplicationProfileApi.cs index 80437c347ac6db123d95613ca36e42896983ed32..a1d522d8d7c5aca1de49ee983c91b97bbfb74cb1 100644 --- a/src/Coscine.ApiClient.Core/Api/ApplicationProfileApi.cs +++ b/src/Coscine.ApiClient.Core/Api/ApplicationProfileApi.cs @@ -48,6 +48,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Submits a request to create a new application profile. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="applicationProfileForCreationDto">The details required to create a new application profile. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> @@ -58,7 +61,7 @@ namespace Coscine.ApiClient.Core.Api /// Submits a request to create a new application profile. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="applicationProfileForCreationDto">The details required to create a new application profile. (optional)</param> @@ -68,6 +71,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves an application profile by its URI. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="profile">The URI of the application profile to retrieve.</param> /// <param name="format">The desired data format for the returned application profile. (optional)</param> @@ -80,7 +86,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves an application profile by its URI. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="profile">The URI of the application profile to retrieve.</param> @@ -92,6 +98,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves all application profiles. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="searchTerm">Gets or sets the search term used to filter application profiles. (optional)</param> /// <param name="language">Gets or sets the language for which the application profiles are requested. (optional)</param> @@ -107,7 +116,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all application profiles. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="searchTerm">Gets or sets the search term used to filter application profiles. (optional)</param> @@ -122,6 +131,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves the `raw` application profile definition by its URI. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="profile">The URI of the application profile.</param> /// <param name="operationIndex">Index associated with the operation.</param> @@ -132,7 +144,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves the `raw` application profile definition by its URI. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="profile">The URI of the application profile.</param> @@ -175,7 +187,7 @@ namespace Coscine.ApiClient.Core.Api /// Submits a request to create a new application profile. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="applicationProfileForCreationDto">The details required to create a new application profile. (optional)</param> @@ -188,7 +200,7 @@ namespace Coscine.ApiClient.Core.Api /// Submits a request to create a new application profile. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="applicationProfileForCreationDto">The details required to create a new application profile. (optional)</param> @@ -200,7 +212,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves an application profile by its URI. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="profile">The URI of the application profile to retrieve.</param> @@ -215,7 +227,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves an application profile by its URI. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="profile">The URI of the application profile to retrieve.</param> @@ -229,7 +241,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all application profiles. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="searchTerm">Gets or sets the search term used to filter application profiles. (optional)</param> @@ -247,7 +259,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all application profiles. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="searchTerm">Gets or sets the search term used to filter application profiles. (optional)</param> @@ -264,7 +276,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves the `raw` application profile definition by its URI. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="profile">The URI of the application profile.</param> @@ -277,7 +289,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves the `raw` application profile definition by its URI. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="profile">The URI of the application profile.</param> @@ -538,7 +550,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Submits a request to create a new application profile. + /// Submits a request to create a new application profile. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="applicationProfileForCreationDto">The details required to create a new application profile. (optional)</param> @@ -551,7 +563,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Submits a request to create a new application profile. + /// Submits a request to create a new application profile. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="applicationProfileForCreationDto">The details required to create a new application profile. (optional)</param> @@ -611,7 +623,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Submits a request to create a new application profile. + /// Submits a request to create a new application profile. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="applicationProfileForCreationDto">The details required to create a new application profile. (optional)</param> @@ -625,7 +637,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Submits a request to create a new application profile. + /// Submits a request to create a new application profile. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="applicationProfileForCreationDto">The details required to create a new application profile. (optional)</param> @@ -688,7 +700,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves an application profile by its URI. + /// Retrieves an application profile by its URI. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="profile">The URI of the application profile to retrieve.</param> @@ -703,7 +715,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves an application profile by its URI. + /// Retrieves an application profile by its URI. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="profile">The URI of the application profile to retrieve.</param> @@ -776,7 +788,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves an application profile by its URI. + /// Retrieves an application profile by its URI. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="profile">The URI of the application profile to retrieve.</param> @@ -792,7 +804,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves an application profile by its URI. + /// Retrieves an application profile by its URI. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="profile">The URI of the application profile to retrieve.</param> @@ -868,7 +880,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all application profiles. + /// Retrieves all application profiles. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="searchTerm">Gets or sets the search term used to filter application profiles. (optional)</param> @@ -886,7 +898,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all application profiles. + /// Retrieves all application profiles. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="searchTerm">Gets or sets the search term used to filter application profiles. (optional)</param> @@ -971,7 +983,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all application profiles. + /// Retrieves all application profiles. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="searchTerm">Gets or sets the search term used to filter application profiles. (optional)</param> @@ -990,7 +1002,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all application profiles. + /// Retrieves all application profiles. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="searchTerm">Gets or sets the search term used to filter application profiles. (optional)</param> @@ -1078,7 +1090,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves the `raw` application profile definition by its URI. + /// Retrieves the `raw` application profile definition by its URI. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="profile">The URI of the application profile.</param> @@ -1091,7 +1103,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves the `raw` application profile definition by its URI. + /// Retrieves the `raw` application profile definition by its URI. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="profile">The URI of the application profile.</param> @@ -1154,7 +1166,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves the `raw` application profile definition by its URI. + /// Retrieves the `raw` application profile definition by its URI. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="profile">The URI of the application profile.</param> @@ -1168,7 +1180,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves the `raw` application profile definition by its URI. + /// Retrieves the `raw` application profile definition by its URI. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="profile">The URI of the application profile.</param> diff --git a/src/Coscine.ApiClient.Core/Api/BlobApi.cs b/src/Coscine.ApiClient.Core/Api/BlobApi.cs index 8ee2457fee06f82b040d4dc5c728903a6b292c23..9c8c5e96eaf4a83e5a4c7ef71ba98497a131f2c8 100644 --- a/src/Coscine.ApiClient.Core/Api/BlobApi.cs +++ b/src/Coscine.ApiClient.Core/Api/BlobApi.cs @@ -51,6 +51,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Creates a new blob for a resource. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The identifier or slug of the project.</param> /// <param name="resourceId">The identifier of the resource.</param> @@ -64,7 +67,7 @@ namespace Coscine.ApiClient.Core.Api /// Creates a new blob for a resource. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The identifier or slug of the project.</param> @@ -77,6 +80,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Deletes a blob from a resource. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The identifier or slug of the project.</param> /// <param name="resourceId">The identifier of the resource.</param> @@ -89,7 +95,7 @@ namespace Coscine.ApiClient.Core.Api /// Deletes a blob from a resource. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The identifier or slug of the project.</param> @@ -101,6 +107,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Download a blob from a resource. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The identifier or slug of the project.</param> /// <param name="resourceId">The identifier of the resource.</param> @@ -113,7 +122,7 @@ namespace Coscine.ApiClient.Core.Api /// Download a blob from a resource. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The identifier or slug of the project.</param> @@ -125,6 +134,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Updates an existing blob of a resource. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The identifier or slug of the project.</param> /// <param name="resourceId">The identifier of the resource.</param> @@ -138,7 +150,7 @@ namespace Coscine.ApiClient.Core.Api /// Updates an existing blob of a resource. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The identifier or slug of the project.</param> @@ -188,7 +200,7 @@ namespace Coscine.ApiClient.Core.Api /// Creates a new blob for a resource. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The identifier or slug of the project.</param> @@ -204,7 +216,7 @@ namespace Coscine.ApiClient.Core.Api /// Creates a new blob for a resource. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The identifier or slug of the project.</param> @@ -219,7 +231,7 @@ namespace Coscine.ApiClient.Core.Api /// Deletes a blob from a resource. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The identifier or slug of the project.</param> @@ -234,7 +246,7 @@ namespace Coscine.ApiClient.Core.Api /// Deletes a blob from a resource. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The identifier or slug of the project.</param> @@ -248,7 +260,7 @@ namespace Coscine.ApiClient.Core.Api /// Download a blob from a resource. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The identifier or slug of the project.</param> @@ -263,7 +275,7 @@ namespace Coscine.ApiClient.Core.Api /// Download a blob from a resource. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The identifier or slug of the project.</param> @@ -277,7 +289,7 @@ namespace Coscine.ApiClient.Core.Api /// Updates an existing blob of a resource. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The identifier or slug of the project.</param> @@ -293,7 +305,7 @@ namespace Coscine.ApiClient.Core.Api /// Updates an existing blob of a resource. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The identifier or slug of the project.</param> @@ -593,7 +605,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Creates a new blob for a resource. + /// Creates a new blob for a resource. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The identifier or slug of the project.</param> @@ -608,7 +620,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Creates a new blob for a resource. + /// Creates a new blob for a resource. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The identifier or slug of the project.</param> @@ -685,7 +697,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Creates a new blob for a resource. + /// Creates a new blob for a resource. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The identifier or slug of the project.</param> @@ -701,7 +713,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Creates a new blob for a resource. + /// Creates a new blob for a resource. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The identifier or slug of the project.</param> @@ -781,7 +793,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Deletes a blob from a resource. + /// Deletes a blob from a resource. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The identifier or slug of the project.</param> @@ -795,7 +807,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Deletes a blob from a resource. + /// Deletes a blob from a resource. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The identifier or slug of the project.</param> @@ -866,7 +878,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Deletes a blob from a resource. + /// Deletes a blob from a resource. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The identifier or slug of the project.</param> @@ -881,7 +893,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Deletes a blob from a resource. + /// Deletes a blob from a resource. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The identifier or slug of the project.</param> @@ -955,7 +967,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Download a blob from a resource. + /// Download a blob from a resource. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The identifier or slug of the project.</param> @@ -970,7 +982,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Download a blob from a resource. + /// Download a blob from a resource. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The identifier or slug of the project.</param> @@ -1042,7 +1054,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Download a blob from a resource. + /// Download a blob from a resource. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The identifier or slug of the project.</param> @@ -1058,7 +1070,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Download a blob from a resource. + /// Download a blob from a resource. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The identifier or slug of the project.</param> @@ -1133,7 +1145,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Updates an existing blob of a resource. + /// Updates an existing blob of a resource. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The identifier or slug of the project.</param> @@ -1148,7 +1160,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Updates an existing blob of a resource. + /// Updates an existing blob of a resource. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The identifier or slug of the project.</param> @@ -1225,7 +1237,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Updates an existing blob of a resource. + /// Updates an existing blob of a resource. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The identifier or slug of the project.</param> @@ -1241,7 +1253,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Updates an existing blob of a resource. + /// Updates an existing blob of a resource. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The identifier or slug of the project.</param> diff --git a/src/Coscine.ApiClient.Core/Api/DisciplineApi.cs b/src/Coscine.ApiClient.Core/Api/DisciplineApi.cs index fdcace7555827a15ed49c9be5eae2148658edb6e..973f0a536674cec329f73c01ae5e7149ce097a54 100644 --- a/src/Coscine.ApiClient.Core/Api/DisciplineApi.cs +++ b/src/Coscine.ApiClient.Core/Api/DisciplineApi.cs @@ -48,6 +48,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves a discipline with the specified ID. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="disciplineId">The ID of the discipline.</param> /// <param name="operationIndex">Index associated with the operation.</param> @@ -58,7 +61,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a discipline with the specified ID. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="disciplineId">The ID of the discipline.</param> @@ -68,6 +71,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves all disciplines. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> @@ -80,7 +86,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all disciplines. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -125,7 +131,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a discipline with the specified ID. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="disciplineId">The ID of the discipline.</param> @@ -138,7 +144,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a discipline with the specified ID. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="disciplineId">The ID of the discipline.</param> @@ -150,7 +156,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all disciplines. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -165,7 +171,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all disciplines. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -428,7 +434,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a discipline with the specified ID. + /// Retrieves a discipline with the specified ID. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="disciplineId">The ID of the discipline.</param> @@ -441,7 +447,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a discipline with the specified ID. + /// Retrieves a discipline with the specified ID. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="disciplineId">The ID of the discipline.</param> @@ -498,7 +504,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a discipline with the specified ID. + /// Retrieves a discipline with the specified ID. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="disciplineId">The ID of the discipline.</param> @@ -512,7 +518,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a discipline with the specified ID. + /// Retrieves a discipline with the specified ID. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="disciplineId">The ID of the discipline.</param> @@ -572,7 +578,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all disciplines. + /// Retrieves all disciplines. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -587,7 +593,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all disciplines. + /// Retrieves all disciplines. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -657,7 +663,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all disciplines. + /// Retrieves all disciplines. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -673,7 +679,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all disciplines. + /// Retrieves all disciplines. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> diff --git a/src/Coscine.ApiClient.Core/Api/HandleApi.cs b/src/Coscine.ApiClient.Core/Api/HandleApi.cs new file mode 100644 index 0000000000000000000000000000000000000000..7e5b40a2adeed909b20ab2e0471daeb56968f0e4 --- /dev/null +++ b/src/Coscine.ApiClient.Core/Api/HandleApi.cs @@ -0,0 +1,795 @@ +/* + * Coscine Web API + * + * Coscine (short for <b>CO</b>llaborative <b>SC</b>ientific <b>IN</b>tegration <b>E</b>nvironment) is the research data management platform for your research project. + * + * The version of the OpenAPI document: 2.0 + * Contact: servicedesk@itc.rwth-aachen.de + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using Coscine.ApiClient.Core.Client; +using Coscine.ApiClient.Core.Model; + +namespace Coscine.ApiClient.Core.Api +{ + + /// <summary> + /// Represents a collection of functions to interact with the API endpoints + /// </summary> + public interface IHandleApiSync : IApiAccessor + { + #region Synchronous Operations + /// <summary> + /// Responds with the HTTP methods allowed for the endpoint. + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns></returns> + void ApiV2HandlesOptions(int operationIndex = 0); + + /// <summary> + /// Responds with the HTTP methods allowed for the endpoint. + /// </summary> + /// <remarks> + /// + /// </remarks> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns>ApiResponse of Object(void)</returns> + ApiResponse<Object> ApiV2HandlesOptionsWithHttpInfo(int operationIndex = 0); + /// <summary> + /// Retrieves all values of a handle by its PID. + /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> + /// </remarks> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="prefix">The prefix of the PID</param> + /// <param name="suffix">The suffix of the PID</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns>HandleDtoResponse</returns> + HandleDtoResponse GetHandle(string prefix, string suffix, int operationIndex = 0); + + /// <summary> + /// Retrieves all values of a handle by its PID. + /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> + /// </remarks> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="prefix">The prefix of the PID</param> + /// <param name="suffix">The suffix of the PID</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns>ApiResponse of HandleDtoResponse</returns> + ApiResponse<HandleDtoResponse> GetHandleWithHttpInfo(string prefix, string suffix, int operationIndex = 0); + /// <summary> + /// Updates a handle. + /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> + /// </remarks> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="prefix">The prefix of the PID</param> + /// <param name="suffix">The suffix of the PID</param> + /// <param name="handleForUpdateDto">The handle for updating. (optional)</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns></returns> + void UpdateHandle(string prefix, string suffix, HandleForUpdateDto? handleForUpdateDto = default(HandleForUpdateDto?), int operationIndex = 0); + + /// <summary> + /// Updates a handle. + /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> + /// </remarks> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="prefix">The prefix of the PID</param> + /// <param name="suffix">The suffix of the PID</param> + /// <param name="handleForUpdateDto">The handle for updating. (optional)</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns>ApiResponse of Object(void)</returns> + ApiResponse<Object> UpdateHandleWithHttpInfo(string prefix, string suffix, HandleForUpdateDto? handleForUpdateDto = default(HandleForUpdateDto?), int operationIndex = 0); + #endregion Synchronous Operations + } + + /// <summary> + /// Represents a collection of functions to interact with the API endpoints + /// </summary> + public interface IHandleApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// <summary> + /// Responds with the HTTP methods allowed for the endpoint. + /// </summary> + /// <remarks> + /// + /// </remarks> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of void</returns> + System.Threading.Tasks.Task ApiV2HandlesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// <summary> + /// Responds with the HTTP methods allowed for the endpoint. + /// </summary> + /// <remarks> + /// + /// </remarks> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of ApiResponse</returns> + System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2HandlesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// <summary> + /// Retrieves all values of a handle by its PID. + /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> + /// </remarks> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="prefix">The prefix of the PID</param> + /// <param name="suffix">The suffix of the PID</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of HandleDtoResponse</returns> + System.Threading.Tasks.Task<HandleDtoResponse> GetHandleAsync(string prefix, string suffix, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// <summary> + /// Retrieves all values of a handle by its PID. + /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> + /// </remarks> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="prefix">The prefix of the PID</param> + /// <param name="suffix">The suffix of the PID</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of ApiResponse (HandleDtoResponse)</returns> + System.Threading.Tasks.Task<ApiResponse<HandleDtoResponse>> GetHandleWithHttpInfoAsync(string prefix, string suffix, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// <summary> + /// Updates a handle. + /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> + /// </remarks> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="prefix">The prefix of the PID</param> + /// <param name="suffix">The suffix of the PID</param> + /// <param name="handleForUpdateDto">The handle for updating. (optional)</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of void</returns> + System.Threading.Tasks.Task UpdateHandleAsync(string prefix, string suffix, HandleForUpdateDto? handleForUpdateDto = default(HandleForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// <summary> + /// Updates a handle. + /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> + /// </remarks> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="prefix">The prefix of the PID</param> + /// <param name="suffix">The suffix of the PID</param> + /// <param name="handleForUpdateDto">The handle for updating. (optional)</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of ApiResponse</returns> + System.Threading.Tasks.Task<ApiResponse<Object>> UpdateHandleWithHttpInfoAsync(string prefix, string suffix, HandleForUpdateDto? handleForUpdateDto = default(HandleForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// <summary> + /// Represents a collection of functions to interact with the API endpoints + /// </summary> + public interface IHandleApi : IHandleApiSync, IHandleApiAsync + { + + } + + /// <summary> + /// Represents a collection of functions to interact with the API endpoints + /// </summary> + public partial class HandleApi : IHandleApi + { + private Coscine.ApiClient.Core.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// <summary> + /// Initializes a new instance of the <see cref="HandleApi"/> class. + /// </summary> + /// <returns></returns> + public HandleApi() : this((string)null) + { + } + + /// <summary> + /// Initializes a new instance of the <see cref="HandleApi"/> class. + /// </summary> + /// <returns></returns> + public HandleApi(string basePath) + { + this.Configuration = Coscine.ApiClient.Core.Client.Configuration.MergeConfigurations( + Coscine.ApiClient.Core.Client.GlobalConfiguration.Instance, + new Coscine.ApiClient.Core.Client.Configuration { BasePath = basePath } + ); + this.Client = new Coscine.ApiClient.Core.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new Coscine.ApiClient.Core.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = Coscine.ApiClient.Core.Client.Configuration.DefaultExceptionFactory; + } + + /// <summary> + /// Initializes a new instance of the <see cref="HandleApi"/> class + /// using Configuration object + /// </summary> + /// <param name="configuration">An instance of Configuration</param> + /// <returns></returns> + public HandleApi(Coscine.ApiClient.Core.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = Coscine.ApiClient.Core.Client.Configuration.MergeConfigurations( + Coscine.ApiClient.Core.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new Coscine.ApiClient.Core.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new Coscine.ApiClient.Core.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = Coscine.ApiClient.Core.Client.Configuration.DefaultExceptionFactory; + } + + /// <summary> + /// Initializes a new instance of the <see cref="HandleApi"/> class + /// using a Configuration object and client instance. + /// </summary> + /// <param name="client">The client interface for synchronous API access.</param> + /// <param name="asyncClient">The client interface for asynchronous API access.</param> + /// <param name="configuration">The configuration object.</param> + public HandleApi(Coscine.ApiClient.Core.Client.ISynchronousClient client, Coscine.ApiClient.Core.Client.IAsynchronousClient asyncClient, Coscine.ApiClient.Core.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = Coscine.ApiClient.Core.Client.Configuration.DefaultExceptionFactory; + } + + /// <summary> + /// The client for accessing this underlying API asynchronously. + /// </summary> + public Coscine.ApiClient.Core.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// <summary> + /// The client for accessing this underlying API synchronously. + /// </summary> + public Coscine.ApiClient.Core.Client.ISynchronousClient Client { get; set; } + + /// <summary> + /// Gets the base path of the API client. + /// </summary> + /// <value>The base path</value> + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// <summary> + /// Gets or sets the configuration object + /// </summary> + /// <value>An instance of the Configuration</value> + public Coscine.ApiClient.Core.Client.IReadableConfiguration Configuration { get; set; } + + /// <summary> + /// Provides a factory method hook for the creation of exceptions. + /// </summary> + public Coscine.ApiClient.Core.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// <summary> + /// Responds with the HTTP methods allowed for the endpoint. + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns></returns> + public void ApiV2HandlesOptions(int operationIndex = 0) + { + ApiV2HandlesOptionsWithHttpInfo(); + } + + /// <summary> + /// Responds with the HTTP methods allowed for the endpoint. + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns>ApiResponse of Object(void)</returns> + public Coscine.ApiClient.Core.Client.ApiResponse<Object> ApiV2HandlesOptionsWithHttpInfo(int operationIndex = 0) + { + Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "HandleApi.ApiV2HandlesOptions"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (Bearer) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Options<Object>("/api/v2/handles", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2HandlesOptions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// <summary> + /// Responds with the HTTP methods allowed for the endpoint. + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of void</returns> + public async System.Threading.Tasks.Task ApiV2HandlesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await ApiV2HandlesOptionsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// <summary> + /// Responds with the HTTP methods allowed for the endpoint. + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of ApiResponse</returns> + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2HandlesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "HandleApi.ApiV2HandlesOptions"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (Bearer) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.OptionsAsync<Object>("/api/v2/handles", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2HandlesOptions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// <summary> + /// Retrieves all values of a handle by its PID. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="prefix">The prefix of the PID</param> + /// <param name="suffix">The suffix of the PID</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns>HandleDtoResponse</returns> + public HandleDtoResponse GetHandle(string prefix, string suffix, int operationIndex = 0) + { + Coscine.ApiClient.Core.Client.ApiResponse<HandleDtoResponse> localVarResponse = GetHandleWithHttpInfo(prefix, suffix); + return localVarResponse.Data; + } + + /// <summary> + /// Retrieves all values of a handle by its PID. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="prefix">The prefix of the PID</param> + /// <param name="suffix">The suffix of the PID</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns>ApiResponse of HandleDtoResponse</returns> + public Coscine.ApiClient.Core.Client.ApiResponse<HandleDtoResponse> GetHandleWithHttpInfo(string prefix, string suffix, int operationIndex = 0) + { + // verify the required parameter 'prefix' is set + if (prefix == null) + { + throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'prefix' when calling HandleApi->GetHandle"); + } + + // verify the required parameter 'suffix' is set + if (suffix == null) + { + throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'suffix' when calling HandleApi->GetHandle"); + } + + Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json", + "text/json" + }; + + var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("prefix", Coscine.ApiClient.Core.Client.ClientUtils.ParameterToString(prefix)); // path parameter + localVarRequestOptions.PathParameters.Add("suffix", Coscine.ApiClient.Core.Client.ClientUtils.ParameterToString(suffix)); // path parameter + + localVarRequestOptions.Operation = "HandleApi.GetHandle"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (Bearer) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get<HandleDtoResponse>("/api/v2/handles/{prefix}/{suffix}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetHandle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// <summary> + /// Retrieves all values of a handle by its PID. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="prefix">The prefix of the PID</param> + /// <param name="suffix">The suffix of the PID</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of HandleDtoResponse</returns> + public async System.Threading.Tasks.Task<HandleDtoResponse> GetHandleAsync(string prefix, string suffix, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + Coscine.ApiClient.Core.Client.ApiResponse<HandleDtoResponse> localVarResponse = await GetHandleWithHttpInfoAsync(prefix, suffix, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// <summary> + /// Retrieves all values of a handle by its PID. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="prefix">The prefix of the PID</param> + /// <param name="suffix">The suffix of the PID</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of ApiResponse (HandleDtoResponse)</returns> + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<HandleDtoResponse>> GetHandleWithHttpInfoAsync(string prefix, string suffix, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'prefix' is set + if (prefix == null) + { + throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'prefix' when calling HandleApi->GetHandle"); + } + + // verify the required parameter 'suffix' is set + if (suffix == null) + { + throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'suffix' when calling HandleApi->GetHandle"); + } + + + Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json", + "text/json" + }; + + var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("prefix", Coscine.ApiClient.Core.Client.ClientUtils.ParameterToString(prefix)); // path parameter + localVarRequestOptions.PathParameters.Add("suffix", Coscine.ApiClient.Core.Client.ClientUtils.ParameterToString(suffix)); // path parameter + + localVarRequestOptions.Operation = "HandleApi.GetHandle"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (Bearer) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync<HandleDtoResponse>("/api/v2/handles/{prefix}/{suffix}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetHandle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// <summary> + /// Updates a handle. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="prefix">The prefix of the PID</param> + /// <param name="suffix">The suffix of the PID</param> + /// <param name="handleForUpdateDto">The handle for updating. (optional)</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns></returns> + public void UpdateHandle(string prefix, string suffix, HandleForUpdateDto? handleForUpdateDto = default(HandleForUpdateDto?), int operationIndex = 0) + { + UpdateHandleWithHttpInfo(prefix, suffix, handleForUpdateDto); + } + + /// <summary> + /// Updates a handle. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="prefix">The prefix of the PID</param> + /// <param name="suffix">The suffix of the PID</param> + /// <param name="handleForUpdateDto">The handle for updating. (optional)</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns>ApiResponse of Object(void)</returns> + public Coscine.ApiClient.Core.Client.ApiResponse<Object> UpdateHandleWithHttpInfo(string prefix, string suffix, HandleForUpdateDto? handleForUpdateDto = default(HandleForUpdateDto?), int operationIndex = 0) + { + // verify the required parameter 'prefix' is set + if (prefix == null) + { + throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'prefix' when calling HandleApi->UpdateHandle"); + } + + // verify the required parameter 'suffix' is set + if (suffix == null) + { + throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'suffix' when calling HandleApi->UpdateHandle"); + } + + Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json", + "text/json", + "application/*+json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("prefix", Coscine.ApiClient.Core.Client.ClientUtils.ParameterToString(prefix)); // path parameter + localVarRequestOptions.PathParameters.Add("suffix", Coscine.ApiClient.Core.Client.ClientUtils.ParameterToString(suffix)); // path parameter + localVarRequestOptions.Data = handleForUpdateDto; + + localVarRequestOptions.Operation = "HandleApi.UpdateHandle"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (Bearer) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Put<Object>("/api/v2/handles/{prefix}/{suffix}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateHandle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// <summary> + /// Updates a handle. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="prefix">The prefix of the PID</param> + /// <param name="suffix">The suffix of the PID</param> + /// <param name="handleForUpdateDto">The handle for updating. (optional)</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of void</returns> + public async System.Threading.Tasks.Task UpdateHandleAsync(string prefix, string suffix, HandleForUpdateDto? handleForUpdateDto = default(HandleForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await UpdateHandleWithHttpInfoAsync(prefix, suffix, handleForUpdateDto, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// <summary> + /// Updates a handle. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="prefix">The prefix of the PID</param> + /// <param name="suffix">The suffix of the PID</param> + /// <param name="handleForUpdateDto">The handle for updating. (optional)</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of ApiResponse</returns> + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> UpdateHandleWithHttpInfoAsync(string prefix, string suffix, HandleForUpdateDto? handleForUpdateDto = default(HandleForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'prefix' is set + if (prefix == null) + { + throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'prefix' when calling HandleApi->UpdateHandle"); + } + + // verify the required parameter 'suffix' is set + if (suffix == null) + { + throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'suffix' when calling HandleApi->UpdateHandle"); + } + + + Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json", + "text/json", + "application/*+json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("prefix", Coscine.ApiClient.Core.Client.ClientUtils.ParameterToString(prefix)); // path parameter + localVarRequestOptions.PathParameters.Add("suffix", Coscine.ApiClient.Core.Client.ClientUtils.ParameterToString(suffix)); // path parameter + localVarRequestOptions.Data = handleForUpdateDto; + + localVarRequestOptions.Operation = "HandleApi.UpdateHandle"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (Bearer) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync<Object>("/api/v2/handles/{prefix}/{suffix}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateHandle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + } +} diff --git a/src/Coscine.ApiClient.Core/Api/LanguageApi.cs b/src/Coscine.ApiClient.Core/Api/LanguageApi.cs index b208cd185d7a64cf80bd3b0515037c983e56dfa9..49971b55e62ac7d671455e93025b0d46c58b4776 100644 --- a/src/Coscine.ApiClient.Core/Api/LanguageApi.cs +++ b/src/Coscine.ApiClient.Core/Api/LanguageApi.cs @@ -48,6 +48,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves a language by ID. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="languageId">The ID of the language.</param> /// <param name="operationIndex">Index associated with the operation.</param> @@ -58,7 +61,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a language by ID. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="languageId">The ID of the language.</param> @@ -68,6 +71,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves all languages. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> @@ -80,7 +86,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all languages. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -125,7 +131,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a language by ID. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="languageId">The ID of the language.</param> @@ -138,7 +144,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a language by ID. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="languageId">The ID of the language.</param> @@ -150,7 +156,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all languages. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -165,7 +171,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all languages. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -428,7 +434,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a language by ID. + /// Retrieves a language by ID. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="languageId">The ID of the language.</param> @@ -441,7 +447,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a language by ID. + /// Retrieves a language by ID. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="languageId">The ID of the language.</param> @@ -498,7 +504,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a language by ID. + /// Retrieves a language by ID. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="languageId">The ID of the language.</param> @@ -512,7 +518,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a language by ID. + /// Retrieves a language by ID. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="languageId">The ID of the language.</param> @@ -572,7 +578,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all languages. + /// Retrieves all languages. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -587,7 +593,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all languages. + /// Retrieves all languages. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -657,7 +663,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all languages. + /// Retrieves all languages. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -673,7 +679,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all languages. + /// Retrieves all languages. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> diff --git a/src/Coscine.ApiClient.Core/Api/LicenseApi.cs b/src/Coscine.ApiClient.Core/Api/LicenseApi.cs index a951face20fe4379c420acf282091d3b40a2c7db..aafd21bbe14458524ede25ef606d872140e56608 100644 --- a/src/Coscine.ApiClient.Core/Api/LicenseApi.cs +++ b/src/Coscine.ApiClient.Core/Api/LicenseApi.cs @@ -48,6 +48,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves a license with the specified ID. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="licenseId">The ID of the license.</param> /// <param name="operationIndex">Index associated with the operation.</param> @@ -58,7 +61,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a license with the specified ID. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="licenseId">The ID of the license.</param> @@ -68,6 +71,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves all licenses. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> @@ -80,7 +86,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all licenses. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -125,7 +131,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a license with the specified ID. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="licenseId">The ID of the license.</param> @@ -138,7 +144,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a license with the specified ID. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="licenseId">The ID of the license.</param> @@ -150,7 +156,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all licenses. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -165,7 +171,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all licenses. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -428,7 +434,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a license with the specified ID. + /// Retrieves a license with the specified ID. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="licenseId">The ID of the license.</param> @@ -441,7 +447,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a license with the specified ID. + /// Retrieves a license with the specified ID. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="licenseId">The ID of the license.</param> @@ -498,7 +504,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a license with the specified ID. + /// Retrieves a license with the specified ID. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="licenseId">The ID of the license.</param> @@ -512,7 +518,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a license with the specified ID. + /// Retrieves a license with the specified ID. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="licenseId">The ID of the license.</param> @@ -572,7 +578,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all licenses. + /// Retrieves all licenses. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -587,7 +593,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all licenses. + /// Retrieves all licenses. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -657,7 +663,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all licenses. + /// Retrieves all licenses. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -673,7 +679,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all licenses. + /// Retrieves all licenses. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> diff --git a/src/Coscine.ApiClient.Core/Api/MaintenanceApi.cs b/src/Coscine.ApiClient.Core/Api/MaintenanceApi.cs index 7c1268b3b4cb8a56e060263c7cade180049e5557..640c2d0be139ac1179ed3e4925ab9870c2c12f5d 100644 --- a/src/Coscine.ApiClient.Core/Api/MaintenanceApi.cs +++ b/src/Coscine.ApiClient.Core/Api/MaintenanceApi.cs @@ -48,6 +48,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves the current maintenance messages. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>MaintenanceDtoPagedResponse</returns> @@ -57,7 +60,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves the current maintenance messages. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="operationIndex">Index associated with the operation.</param> @@ -99,7 +102,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves the current maintenance messages. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="operationIndex">Index associated with the operation.</param> @@ -111,7 +114,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves the current maintenance messages. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="operationIndex">Index associated with the operation.</param> @@ -371,7 +374,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves the current maintenance messages. + /// Retrieves the current maintenance messages. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="operationIndex">Index associated with the operation.</param> @@ -383,7 +386,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves the current maintenance messages. + /// Retrieves the current maintenance messages. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="operationIndex">Index associated with the operation.</param> @@ -438,7 +441,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves the current maintenance messages. + /// Retrieves the current maintenance messages. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="operationIndex">Index associated with the operation.</param> @@ -451,7 +454,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves the current maintenance messages. + /// Retrieves the current maintenance messages. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="operationIndex">Index associated with the operation.</param> diff --git a/src/Coscine.ApiClient.Core/Api/OrganizationApi.cs b/src/Coscine.ApiClient.Core/Api/OrganizationApi.cs index 1b6876a879a5b56a1b94752de995818a9105a651..b146348378be50bf25ca1b3c52ea50291328e2c4 100644 --- a/src/Coscine.ApiClient.Core/Api/OrganizationApi.cs +++ b/src/Coscine.ApiClient.Core/Api/OrganizationApi.cs @@ -48,6 +48,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves an organization. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="organizationRorUri">The parameters for organization filtering and pagination.</param> /// <param name="operationIndex">Index associated with the operation.</param> @@ -58,7 +61,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves an organization. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="organizationRorUri">The parameters for organization filtering and pagination.</param> @@ -68,29 +71,34 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves all organizations. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="searchTerm">Gets or sets the search term used to filter organizations. (optional)</param> + /// <param name="filterByPublicationService">Gets or sets the option to find only organizations having the publication service set. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>OrganizationDtoPagedResponse</returns> - OrganizationDtoPagedResponse GetOrganizations(string? searchTerm = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); + OrganizationDtoPagedResponse GetOrganizations(string? searchTerm = default(string?), bool? filterByPublicationService = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); /// <summary> /// Retrieves all organizations. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="searchTerm">Gets or sets the search term used to filter organizations. (optional)</param> + /// <param name="filterByPublicationService">Gets or sets the option to find only organizations having the publication service set. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of OrganizationDtoPagedResponse</returns> - ApiResponse<OrganizationDtoPagedResponse> GetOrganizationsWithHttpInfo(string? searchTerm = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); + ApiResponse<OrganizationDtoPagedResponse> GetOrganizationsWithHttpInfo(string? searchTerm = default(string?), bool? filterByPublicationService = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); #endregion Synchronous Operations } @@ -127,7 +135,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves an organization. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="organizationRorUri">The parameters for organization filtering and pagination.</param> @@ -140,7 +148,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves an organization. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="organizationRorUri">The parameters for organization filtering and pagination.</param> @@ -152,33 +160,35 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all organizations. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="searchTerm">Gets or sets the search term used to filter organizations. (optional)</param> + /// <param name="filterByPublicationService">Gets or sets the option to find only organizations having the publication service set. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of OrganizationDtoPagedResponse</returns> - System.Threading.Tasks.Task<OrganizationDtoPagedResponse> GetOrganizationsAsync(string? searchTerm = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<OrganizationDtoPagedResponse> GetOrganizationsAsync(string? searchTerm = default(string?), bool? filterByPublicationService = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// <summary> /// Retrieves all organizations. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="searchTerm">Gets or sets the search term used to filter organizations. (optional)</param> + /// <param name="filterByPublicationService">Gets or sets the option to find only organizations having the publication service set. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (OrganizationDtoPagedResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<OrganizationDtoPagedResponse>> GetOrganizationsWithHttpInfoAsync(string? searchTerm = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<OrganizationDtoPagedResponse>> GetOrganizationsWithHttpInfoAsync(string? searchTerm = default(string?), bool? filterByPublicationService = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -432,7 +442,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves an organization. + /// Retrieves an organization. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="organizationRorUri">The parameters for organization filtering and pagination.</param> @@ -445,7 +455,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves an organization. + /// Retrieves an organization. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="organizationRorUri">The parameters for organization filtering and pagination.</param> @@ -508,7 +518,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves an organization. + /// Retrieves an organization. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="organizationRorUri">The parameters for organization filtering and pagination.</param> @@ -522,7 +532,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves an organization. + /// Retrieves an organization. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="organizationRorUri">The parameters for organization filtering and pagination.</param> @@ -588,32 +598,34 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all organizations. + /// Retrieves all organizations. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="searchTerm">Gets or sets the search term used to filter organizations. (optional)</param> + /// <param name="filterByPublicationService">Gets or sets the option to find only organizations having the publication service set. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>OrganizationDtoPagedResponse</returns> - public OrganizationDtoPagedResponse GetOrganizations(string? searchTerm = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) + public OrganizationDtoPagedResponse GetOrganizations(string? searchTerm = default(string?), bool? filterByPublicationService = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) { - Coscine.ApiClient.Core.Client.ApiResponse<OrganizationDtoPagedResponse> localVarResponse = GetOrganizationsWithHttpInfo(searchTerm, pageNumber, pageSize, orderBy); + Coscine.ApiClient.Core.Client.ApiResponse<OrganizationDtoPagedResponse> localVarResponse = GetOrganizationsWithHttpInfo(searchTerm, filterByPublicationService, pageNumber, pageSize, orderBy); return localVarResponse.Data; } /// <summary> - /// Retrieves all organizations. + /// Retrieves all organizations. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="searchTerm">Gets or sets the search term used to filter organizations. (optional)</param> + /// <param name="filterByPublicationService">Gets or sets the option to find only organizations having the publication service set. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of OrganizationDtoPagedResponse</returns> - public Coscine.ApiClient.Core.Client.ApiResponse<OrganizationDtoPagedResponse> GetOrganizationsWithHttpInfo(string? searchTerm = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) + public Coscine.ApiClient.Core.Client.ApiResponse<OrganizationDtoPagedResponse> GetOrganizationsWithHttpInfo(string? searchTerm = default(string?), bool? filterByPublicationService = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -642,6 +654,10 @@ namespace Coscine.ApiClient.Core.Api { localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "SearchTerm", searchTerm)); } + if (filterByPublicationService != null) + { + localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "FilterByPublicationService", filterByPublicationService)); + } if (pageNumber != null) { localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "PageNumber", pageNumber)); @@ -679,34 +695,36 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all organizations. + /// Retrieves all organizations. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="searchTerm">Gets or sets the search term used to filter organizations. (optional)</param> + /// <param name="filterByPublicationService">Gets or sets the option to find only organizations having the publication service set. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of OrganizationDtoPagedResponse</returns> - public async System.Threading.Tasks.Task<OrganizationDtoPagedResponse> GetOrganizationsAsync(string? searchTerm = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<OrganizationDtoPagedResponse> GetOrganizationsAsync(string? searchTerm = default(string?), bool? filterByPublicationService = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Coscine.ApiClient.Core.Client.ApiResponse<OrganizationDtoPagedResponse> localVarResponse = await GetOrganizationsWithHttpInfoAsync(searchTerm, pageNumber, pageSize, orderBy, operationIndex, cancellationToken).ConfigureAwait(false); + Coscine.ApiClient.Core.Client.ApiResponse<OrganizationDtoPagedResponse> localVarResponse = await GetOrganizationsWithHttpInfoAsync(searchTerm, filterByPublicationService, pageNumber, pageSize, orderBy, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// <summary> - /// Retrieves all organizations. + /// Retrieves all organizations. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="searchTerm">Gets or sets the search term used to filter organizations. (optional)</param> + /// <param name="filterByPublicationService">Gets or sets the option to find only organizations having the publication service set. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (OrganizationDtoPagedResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<OrganizationDtoPagedResponse>> GetOrganizationsWithHttpInfoAsync(string? searchTerm = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<OrganizationDtoPagedResponse>> GetOrganizationsWithHttpInfoAsync(string? searchTerm = default(string?), bool? filterByPublicationService = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -736,6 +754,10 @@ namespace Coscine.ApiClient.Core.Api { localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "SearchTerm", searchTerm)); } + if (filterByPublicationService != null) + { + localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "FilterByPublicationService", filterByPublicationService)); + } if (pageNumber != null) { localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "PageNumber", pageNumber)); diff --git a/src/Coscine.ApiClient.Core/Api/PidApi.cs b/src/Coscine.ApiClient.Core/Api/PidApi.cs index 7c0036b20289a982b21446897d0f2bbae624eae7..cba7fbc9065b9b4a2b633926eda712e05f1bc6f9 100644 --- a/src/Coscine.ApiClient.Core/Api/PidApi.cs +++ b/src/Coscine.ApiClient.Core/Api/PidApi.cs @@ -46,51 +46,90 @@ namespace Coscine.ApiClient.Core.Api /// <returns>ApiResponse of Object(void)</returns> ApiResponse<Object> ApiV2PidsOptionsWithHttpInfo(int operationIndex = 0); /// <summary> - /// Sends an inquiry to the owner of the given PID. + /// Retrieves the Persistent Identifier (PID) for a given prefix and suffix. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> - /// <param name="prefix">The PID prefix of a project or a resource to validate</param> - /// <param name="id">The PID body of a project or a resource to validate</param> - /// <param name="pidRequestDto">The data transfer object containing the inquiry details. (optional)</param> + /// <param name="prefix">The PID prefix. Limited to the values provided by the API.</param> + /// <param name="suffix">The PID suffix of a project or a resource, represented as a GUID.</param> /// <param name="operationIndex">Index associated with the operation.</param> - /// <returns></returns> - void SendRequestToOwner(string prefix, Guid id, PidRequestDto? pidRequestDto = default(PidRequestDto?), int operationIndex = 0); + /// <returns>PidDtoResponse</returns> + PidDtoResponse GetPid(string prefix, Guid suffix, int operationIndex = 0); /// <summary> - /// Sends an inquiry to the owner of the given PID. + /// Retrieves the Persistent Identifier (PID) for a given prefix and suffix. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> - /// <param name="prefix">The PID prefix of a project or a resource to validate</param> - /// <param name="id">The PID body of a project or a resource to validate</param> - /// <param name="pidRequestDto">The data transfer object containing the inquiry details. (optional)</param> + /// <param name="prefix">The PID prefix. Limited to the values provided by the API.</param> + /// <param name="suffix">The PID suffix of a project or a resource, represented as a GUID.</param> /// <param name="operationIndex">Index associated with the operation.</param> - /// <returns>ApiResponse of Object(void)</returns> - ApiResponse<Object> SendRequestToOwnerWithHttpInfo(string prefix, Guid id, PidRequestDto? pidRequestDto = default(PidRequestDto?), int operationIndex = 0); + /// <returns>ApiResponse of PidDtoResponse</returns> + ApiResponse<PidDtoResponse> GetPidWithHttpInfo(string prefix, Guid suffix, int operationIndex = 0); + /// <summary> + /// Retrieves all PIDs. + /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> + /// </remarks> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="includeProjects">Gets or sets a value indicating whether to include projects when retrieving pid information. (optional)</param> + /// <param name="includeResources">Gets or sets a value indicating whether to include resources when retrieving pid information. (optional)</param> + /// <param name="includeDeleted">Gets or sets a value indicating whether to include deleted pid information. (optional)</param> + /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> + /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns>PidDtoPagedResponse</returns> + PidDtoPagedResponse GetPids(bool? includeProjects = default(bool?), bool? includeResources = default(bool?), bool? includeDeleted = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); + /// <summary> - /// Validates the given PID. + /// Retrieves all PIDs. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> + /// </remarks> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="includeProjects">Gets or sets a value indicating whether to include projects when retrieving pid information. (optional)</param> + /// <param name="includeResources">Gets or sets a value indicating whether to include resources when retrieving pid information. (optional)</param> + /// <param name="includeDeleted">Gets or sets a value indicating whether to include deleted pid information. (optional)</param> + /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> + /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns>ApiResponse of PidDtoPagedResponse</returns> + ApiResponse<PidDtoPagedResponse> GetPidsWithHttpInfo(bool? includeProjects = default(bool?), bool? includeResources = default(bool?), bool? includeDeleted = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); + /// <summary> + /// Sends an inquiry to the owner of the given PID. + /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="prefix">The PID prefix of a project or a resource to validate</param> - /// <param name="id">The PID body of a project or a resource to validate</param> + /// <param name="suffix">The PID body of a project or a resource to validate</param> + /// <param name="pidRequestDto">The data transfer object containing the inquiry details. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> - /// <returns>PidValidationDtoResponse</returns> - PidValidationDtoResponse ValidatePid(string prefix, Guid id, int operationIndex = 0); + /// <returns></returns> + void SendRequestToOwner(string prefix, Guid suffix, PidRequestDto? pidRequestDto = default(PidRequestDto?), int operationIndex = 0); /// <summary> - /// Validates the given PID. + /// Sends an inquiry to the owner of the given PID. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="prefix">The PID prefix of a project or a resource to validate</param> - /// <param name="id">The PID body of a project or a resource to validate</param> + /// <param name="suffix">The PID body of a project or a resource to validate</param> + /// <param name="pidRequestDto">The data transfer object containing the inquiry details. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> - /// <returns>ApiResponse of PidValidationDtoResponse</returns> - ApiResponse<PidValidationDtoResponse> ValidatePidWithHttpInfo(string prefix, Guid id, int operationIndex = 0); + /// <returns>ApiResponse of Object(void)</returns> + ApiResponse<Object> SendRequestToOwnerWithHttpInfo(string prefix, Guid suffix, PidRequestDto? pidRequestDto = default(PidRequestDto?), int operationIndex = 0); #endregion Synchronous Operations } @@ -124,61 +163,96 @@ namespace Coscine.ApiClient.Core.Api /// <returns>Task of ApiResponse</returns> System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2PidsOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// <summary> - /// Sends an inquiry to the owner of the given PID. + /// Retrieves the Persistent Identifier (PID) for a given prefix and suffix. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> - /// <param name="prefix">The PID prefix of a project or a resource to validate</param> - /// <param name="id">The PID body of a project or a resource to validate</param> - /// <param name="pidRequestDto">The data transfer object containing the inquiry details. (optional)</param> + /// <param name="prefix">The PID prefix. Limited to the values provided by the API.</param> + /// <param name="suffix">The PID suffix of a project or a resource, represented as a GUID.</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> - /// <returns>Task of void</returns> - System.Threading.Tasks.Task SendRequestToOwnerAsync(string prefix, Guid id, PidRequestDto? pidRequestDto = default(PidRequestDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// <returns>Task of PidDtoResponse</returns> + System.Threading.Tasks.Task<PidDtoResponse> GetPidAsync(string prefix, Guid suffix, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// <summary> - /// Sends an inquiry to the owner of the given PID. + /// Retrieves the Persistent Identifier (PID) for a given prefix and suffix. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> - /// <param name="prefix">The PID prefix of a project or a resource to validate</param> - /// <param name="id">The PID body of a project or a resource to validate</param> - /// <param name="pidRequestDto">The data transfer object containing the inquiry details. (optional)</param> + /// <param name="prefix">The PID prefix. Limited to the values provided by the API.</param> + /// <param name="suffix">The PID suffix of a project or a resource, represented as a GUID.</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> - /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> SendRequestToOwnerWithHttpInfoAsync(string prefix, Guid id, PidRequestDto? pidRequestDto = default(PidRequestDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// <returns>Task of ApiResponse (PidDtoResponse)</returns> + System.Threading.Tasks.Task<ApiResponse<PidDtoResponse>> GetPidWithHttpInfoAsync(string prefix, Guid suffix, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// <summary> - /// Validates the given PID. + /// Retrieves all PIDs. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> + /// </remarks> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="includeProjects">Gets or sets a value indicating whether to include projects when retrieving pid information. (optional)</param> + /// <param name="includeResources">Gets or sets a value indicating whether to include resources when retrieving pid information. (optional)</param> + /// <param name="includeDeleted">Gets or sets a value indicating whether to include deleted pid information. (optional)</param> + /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> + /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of PidDtoPagedResponse</returns> + System.Threading.Tasks.Task<PidDtoPagedResponse> GetPidsAsync(bool? includeProjects = default(bool?), bool? includeResources = default(bool?), bool? includeDeleted = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// <summary> + /// Retrieves all PIDs. + /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> + /// </remarks> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="includeProjects">Gets or sets a value indicating whether to include projects when retrieving pid information. (optional)</param> + /// <param name="includeResources">Gets or sets a value indicating whether to include resources when retrieving pid information. (optional)</param> + /// <param name="includeDeleted">Gets or sets a value indicating whether to include deleted pid information. (optional)</param> + /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> + /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of ApiResponse (PidDtoPagedResponse)</returns> + System.Threading.Tasks.Task<ApiResponse<PidDtoPagedResponse>> GetPidsWithHttpInfoAsync(bool? includeProjects = default(bool?), bool? includeResources = default(bool?), bool? includeDeleted = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// <summary> + /// Sends an inquiry to the owner of the given PID. + /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="prefix">The PID prefix of a project or a resource to validate</param> - /// <param name="id">The PID body of a project or a resource to validate</param> + /// <param name="suffix">The PID body of a project or a resource to validate</param> + /// <param name="pidRequestDto">The data transfer object containing the inquiry details. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> - /// <returns>Task of PidValidationDtoResponse</returns> - System.Threading.Tasks.Task<PidValidationDtoResponse> ValidatePidAsync(string prefix, Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// <returns>Task of void</returns> + System.Threading.Tasks.Task SendRequestToOwnerAsync(string prefix, Guid suffix, PidRequestDto? pidRequestDto = default(PidRequestDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// <summary> - /// Validates the given PID. + /// Sends an inquiry to the owner of the given PID. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="prefix">The PID prefix of a project or a resource to validate</param> - /// <param name="id">The PID body of a project or a resource to validate</param> + /// <param name="suffix">The PID body of a project or a resource to validate</param> + /// <param name="pidRequestDto">The data transfer object containing the inquiry details. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> - /// <returns>Task of ApiResponse (PidValidationDtoResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<PidValidationDtoResponse>> ValidatePidWithHttpInfoAsync(string prefix, Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// <returns>Task of ApiResponse</returns> + System.Threading.Tasks.Task<ApiResponse<Object>> SendRequestToOwnerWithHttpInfoAsync(string prefix, Guid suffix, PidRequestDto? pidRequestDto = default(PidRequestDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -432,46 +506,44 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Sends an inquiry to the owner of the given PID. + /// Retrieves the Persistent Identifier (PID) for a given prefix and suffix. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> - /// <param name="prefix">The PID prefix of a project or a resource to validate</param> - /// <param name="id">The PID body of a project or a resource to validate</param> - /// <param name="pidRequestDto">The data transfer object containing the inquiry details. (optional)</param> + /// <param name="prefix">The PID prefix. Limited to the values provided by the API.</param> + /// <param name="suffix">The PID suffix of a project or a resource, represented as a GUID.</param> /// <param name="operationIndex">Index associated with the operation.</param> - /// <returns></returns> - public void SendRequestToOwner(string prefix, Guid id, PidRequestDto? pidRequestDto = default(PidRequestDto?), int operationIndex = 0) + /// <returns>PidDtoResponse</returns> + public PidDtoResponse GetPid(string prefix, Guid suffix, int operationIndex = 0) { - SendRequestToOwnerWithHttpInfo(prefix, id, pidRequestDto); + Coscine.ApiClient.Core.Client.ApiResponse<PidDtoResponse> localVarResponse = GetPidWithHttpInfo(prefix, suffix); + return localVarResponse.Data; } /// <summary> - /// Sends an inquiry to the owner of the given PID. + /// Retrieves the Persistent Identifier (PID) for a given prefix and suffix. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> - /// <param name="prefix">The PID prefix of a project or a resource to validate</param> - /// <param name="id">The PID body of a project or a resource to validate</param> - /// <param name="pidRequestDto">The data transfer object containing the inquiry details. (optional)</param> + /// <param name="prefix">The PID prefix. Limited to the values provided by the API.</param> + /// <param name="suffix">The PID suffix of a project or a resource, represented as a GUID.</param> /// <param name="operationIndex">Index associated with the operation.</param> - /// <returns>ApiResponse of Object(void)</returns> - public Coscine.ApiClient.Core.Client.ApiResponse<Object> SendRequestToOwnerWithHttpInfo(string prefix, Guid id, PidRequestDto? pidRequestDto = default(PidRequestDto?), int operationIndex = 0) + /// <returns>ApiResponse of PidDtoResponse</returns> + public Coscine.ApiClient.Core.Client.ApiResponse<PidDtoResponse> GetPidWithHttpInfo(string prefix, Guid suffix, int operationIndex = 0) { // verify the required parameter 'prefix' is set if (prefix == null) { - throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'prefix' when calling PidApi->SendRequestToOwner"); + throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'prefix' when calling PidApi->GetPid"); } Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); string[] _contentTypes = new string[] { - "application/json", - "text/json", - "application/*+json" }; // to determine the Accept header string[] _accepts = new string[] { + "application/json", + "text/json" }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); @@ -487,10 +559,9 @@ namespace Coscine.ApiClient.Core.Api } localVarRequestOptions.PathParameters.Add("prefix", Coscine.ApiClient.Core.Client.ClientUtils.ParameterToString(prefix)); // path parameter - localVarRequestOptions.PathParameters.Add("id", Coscine.ApiClient.Core.Client.ClientUtils.ParameterToString(id)); // path parameter - localVarRequestOptions.Data = pidRequestDto; + localVarRequestOptions.PathParameters.Add("suffix", Coscine.ApiClient.Core.Client.ClientUtils.ParameterToString(suffix)); // path parameter - localVarRequestOptions.Operation = "PidApi.SendRequestToOwner"; + localVarRequestOptions.Operation = "PidApi.GetPid"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (Bearer) required @@ -500,10 +571,10 @@ namespace Coscine.ApiClient.Core.Api } // make the HTTP request - var localVarResponse = this.Client.Post<Object>("/api/v2/pids/{prefix}/{id}/requests", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get<PidDtoResponse>("/api/v2/pids/{prefix}/{suffix}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("SendRequestToOwner", localVarResponse); + Exception _exception = this.ExceptionFactory("GetPid", localVarResponse); if (_exception != null) { throw _exception; @@ -514,49 +585,47 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Sends an inquiry to the owner of the given PID. + /// Retrieves the Persistent Identifier (PID) for a given prefix and suffix. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> - /// <param name="prefix">The PID prefix of a project or a resource to validate</param> - /// <param name="id">The PID body of a project or a resource to validate</param> - /// <param name="pidRequestDto">The data transfer object containing the inquiry details. (optional)</param> + /// <param name="prefix">The PID prefix. Limited to the values provided by the API.</param> + /// <param name="suffix">The PID suffix of a project or a resource, represented as a GUID.</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> - /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task SendRequestToOwnerAsync(string prefix, Guid id, PidRequestDto? pidRequestDto = default(PidRequestDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// <returns>Task of PidDtoResponse</returns> + public async System.Threading.Tasks.Task<PidDtoResponse> GetPidAsync(string prefix, Guid suffix, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - await SendRequestToOwnerWithHttpInfoAsync(prefix, id, pidRequestDto, operationIndex, cancellationToken).ConfigureAwait(false); + Coscine.ApiClient.Core.Client.ApiResponse<PidDtoResponse> localVarResponse = await GetPidWithHttpInfoAsync(prefix, suffix, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; } /// <summary> - /// Sends an inquiry to the owner of the given PID. + /// Retrieves the Persistent Identifier (PID) for a given prefix and suffix. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> - /// <param name="prefix">The PID prefix of a project or a resource to validate</param> - /// <param name="id">The PID body of a project or a resource to validate</param> - /// <param name="pidRequestDto">The data transfer object containing the inquiry details. (optional)</param> + /// <param name="prefix">The PID prefix. Limited to the values provided by the API.</param> + /// <param name="suffix">The PID suffix of a project or a resource, represented as a GUID.</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> - /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> SendRequestToOwnerWithHttpInfoAsync(string prefix, Guid id, PidRequestDto? pidRequestDto = default(PidRequestDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// <returns>Task of ApiResponse (PidDtoResponse)</returns> + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<PidDtoResponse>> GetPidWithHttpInfoAsync(string prefix, Guid suffix, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'prefix' is set if (prefix == null) { - throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'prefix' when calling PidApi->SendRequestToOwner"); + throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'prefix' when calling PidApi->GetPid"); } Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); string[] _contentTypes = new string[] { - "application/json", - "text/json", - "application/*+json" }; // to determine the Accept header string[] _accepts = new string[] { + "application/json", + "text/json" }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); @@ -572,10 +641,9 @@ namespace Coscine.ApiClient.Core.Api } localVarRequestOptions.PathParameters.Add("prefix", Coscine.ApiClient.Core.Client.ClientUtils.ParameterToString(prefix)); // path parameter - localVarRequestOptions.PathParameters.Add("id", Coscine.ApiClient.Core.Client.ClientUtils.ParameterToString(id)); // path parameter - localVarRequestOptions.Data = pidRequestDto; + localVarRequestOptions.PathParameters.Add("suffix", Coscine.ApiClient.Core.Client.ClientUtils.ParameterToString(suffix)); // path parameter - localVarRequestOptions.Operation = "PidApi.SendRequestToOwner"; + localVarRequestOptions.Operation = "PidApi.GetPid"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (Bearer) required @@ -585,11 +653,11 @@ namespace Coscine.ApiClient.Core.Api } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync<Object>("/api/v2/pids/{prefix}/{id}/requests", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync<PidDtoResponse>("/api/v2/pids/{prefix}/{suffix}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("SendRequestToOwner", localVarResponse); + Exception _exception = this.ExceptionFactory("GetPid", localVarResponse); if (_exception != null) { throw _exception; @@ -600,44 +668,256 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Validates the given PID. + /// Retrieves all PIDs. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> - /// <param name="prefix">The PID prefix of a project or a resource to validate</param> - /// <param name="id">The PID body of a project or a resource to validate</param> + /// <param name="includeProjects">Gets or sets a value indicating whether to include projects when retrieving pid information. (optional)</param> + /// <param name="includeResources">Gets or sets a value indicating whether to include resources when retrieving pid information. (optional)</param> + /// <param name="includeDeleted">Gets or sets a value indicating whether to include deleted pid information. (optional)</param> + /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> + /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns>PidDtoPagedResponse</returns> + public PidDtoPagedResponse GetPids(bool? includeProjects = default(bool?), bool? includeResources = default(bool?), bool? includeDeleted = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) + { + Coscine.ApiClient.Core.Client.ApiResponse<PidDtoPagedResponse> localVarResponse = GetPidsWithHttpInfo(includeProjects, includeResources, includeDeleted, pageNumber, pageSize, orderBy); + return localVarResponse.Data; + } + + /// <summary> + /// Retrieves all PIDs. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="includeProjects">Gets or sets a value indicating whether to include projects when retrieving pid information. (optional)</param> + /// <param name="includeResources">Gets or sets a value indicating whether to include resources when retrieving pid information. (optional)</param> + /// <param name="includeDeleted">Gets or sets a value indicating whether to include deleted pid information. (optional)</param> + /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> + /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns>ApiResponse of PidDtoPagedResponse</returns> + public Coscine.ApiClient.Core.Client.ApiResponse<PidDtoPagedResponse> GetPidsWithHttpInfo(bool? includeProjects = default(bool?), bool? includeResources = default(bool?), bool? includeDeleted = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) + { + Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json", + "text/json" + }; + + var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (includeProjects != null) + { + localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "IncludeProjects", includeProjects)); + } + if (includeResources != null) + { + localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "IncludeResources", includeResources)); + } + if (includeDeleted != null) + { + localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "IncludeDeleted", includeDeleted)); + } + if (pageNumber != null) + { + localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "PageNumber", pageNumber)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "PageSize", pageSize)); + } + if (orderBy != null) + { + localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "OrderBy", orderBy)); + } + + localVarRequestOptions.Operation = "PidApi.GetPids"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (Bearer) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get<PidDtoPagedResponse>("/api/v2/pids", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetPids", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// <summary> + /// Retrieves all PIDs. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="includeProjects">Gets or sets a value indicating whether to include projects when retrieving pid information. (optional)</param> + /// <param name="includeResources">Gets or sets a value indicating whether to include resources when retrieving pid information. (optional)</param> + /// <param name="includeDeleted">Gets or sets a value indicating whether to include deleted pid information. (optional)</param> + /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> + /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> - /// <returns>PidValidationDtoResponse</returns> - public PidValidationDtoResponse ValidatePid(string prefix, Guid id, int operationIndex = 0) + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of PidDtoPagedResponse</returns> + public async System.Threading.Tasks.Task<PidDtoPagedResponse> GetPidsAsync(bool? includeProjects = default(bool?), bool? includeResources = default(bool?), bool? includeDeleted = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Coscine.ApiClient.Core.Client.ApiResponse<PidValidationDtoResponse> localVarResponse = ValidatePidWithHttpInfo(prefix, id); + Coscine.ApiClient.Core.Client.ApiResponse<PidDtoPagedResponse> localVarResponse = await GetPidsWithHttpInfoAsync(includeProjects, includeResources, includeDeleted, pageNumber, pageSize, orderBy, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// <summary> - /// Validates the given PID. + /// Retrieves all PIDs. <p><strong>Required JWT roles for access:</strong> <code>administrator</code>.</p> + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="includeProjects">Gets or sets a value indicating whether to include projects when retrieving pid information. (optional)</param> + /// <param name="includeResources">Gets or sets a value indicating whether to include resources when retrieving pid information. (optional)</param> + /// <param name="includeDeleted">Gets or sets a value indicating whether to include deleted pid information. (optional)</param> + /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> + /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of ApiResponse (PidDtoPagedResponse)</returns> + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<PidDtoPagedResponse>> GetPidsWithHttpInfoAsync(bool? includeProjects = default(bool?), bool? includeResources = default(bool?), bool? includeDeleted = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json", + "text/json" + }; + + var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (includeProjects != null) + { + localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "IncludeProjects", includeProjects)); + } + if (includeResources != null) + { + localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "IncludeResources", includeResources)); + } + if (includeDeleted != null) + { + localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "IncludeDeleted", includeDeleted)); + } + if (pageNumber != null) + { + localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "PageNumber", pageNumber)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "PageSize", pageSize)); + } + if (orderBy != null) + { + localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "OrderBy", orderBy)); + } + + localVarRequestOptions.Operation = "PidApi.GetPids"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (Bearer) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync<PidDtoPagedResponse>("/api/v2/pids", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetPids", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// <summary> + /// Sends an inquiry to the owner of the given PID. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="prefix">The PID prefix of a project or a resource to validate</param> - /// <param name="id">The PID body of a project or a resource to validate</param> + /// <param name="suffix">The PID body of a project or a resource to validate</param> + /// <param name="pidRequestDto">The data transfer object containing the inquiry details. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> - /// <returns>ApiResponse of PidValidationDtoResponse</returns> - public Coscine.ApiClient.Core.Client.ApiResponse<PidValidationDtoResponse> ValidatePidWithHttpInfo(string prefix, Guid id, int operationIndex = 0) + /// <returns></returns> + public void SendRequestToOwner(string prefix, Guid suffix, PidRequestDto? pidRequestDto = default(PidRequestDto?), int operationIndex = 0) + { + SendRequestToOwnerWithHttpInfo(prefix, suffix, pidRequestDto); + } + + /// <summary> + /// Sends an inquiry to the owner of the given PID. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="prefix">The PID prefix of a project or a resource to validate</param> + /// <param name="suffix">The PID body of a project or a resource to validate</param> + /// <param name="pidRequestDto">The data transfer object containing the inquiry details. (optional)</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns>ApiResponse of Object(void)</returns> + public Coscine.ApiClient.Core.Client.ApiResponse<Object> SendRequestToOwnerWithHttpInfo(string prefix, Guid suffix, PidRequestDto? pidRequestDto = default(PidRequestDto?), int operationIndex = 0) { // verify the required parameter 'prefix' is set if (prefix == null) { - throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'prefix' when calling PidApi->ValidatePid"); + throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'prefix' when calling PidApi->SendRequestToOwner"); } Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); string[] _contentTypes = new string[] { + "application/json", + "text/json", + "application/*+json" }; // to determine the Accept header string[] _accepts = new string[] { - "application/json", - "text/json" }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); @@ -653,9 +933,10 @@ namespace Coscine.ApiClient.Core.Api } localVarRequestOptions.PathParameters.Add("prefix", Coscine.ApiClient.Core.Client.ClientUtils.ParameterToString(prefix)); // path parameter - localVarRequestOptions.PathParameters.Add("id", Coscine.ApiClient.Core.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.PathParameters.Add("suffix", Coscine.ApiClient.Core.Client.ClientUtils.ParameterToString(suffix)); // path parameter + localVarRequestOptions.Data = pidRequestDto; - localVarRequestOptions.Operation = "PidApi.ValidatePid"; + localVarRequestOptions.Operation = "PidApi.SendRequestToOwner"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (Bearer) required @@ -665,10 +946,10 @@ namespace Coscine.ApiClient.Core.Api } // make the HTTP request - var localVarResponse = this.Client.Get<PidValidationDtoResponse>("/api/v2/pids/{prefix}/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post<Object>("/api/v2/pids/{prefix}/{suffix}/requests", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("ValidatePid", localVarResponse); + Exception _exception = this.ExceptionFactory("SendRequestToOwner", localVarResponse); if (_exception != null) { throw _exception; @@ -679,47 +960,49 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Validates the given PID. + /// Sends an inquiry to the owner of the given PID. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="prefix">The PID prefix of a project or a resource to validate</param> - /// <param name="id">The PID body of a project or a resource to validate</param> + /// <param name="suffix">The PID body of a project or a resource to validate</param> + /// <param name="pidRequestDto">The data transfer object containing the inquiry details. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> - /// <returns>Task of PidValidationDtoResponse</returns> - public async System.Threading.Tasks.Task<PidValidationDtoResponse> ValidatePidAsync(string prefix, Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// <returns>Task of void</returns> + public async System.Threading.Tasks.Task SendRequestToOwnerAsync(string prefix, Guid suffix, PidRequestDto? pidRequestDto = default(PidRequestDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Coscine.ApiClient.Core.Client.ApiResponse<PidValidationDtoResponse> localVarResponse = await ValidatePidWithHttpInfoAsync(prefix, id, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; + await SendRequestToOwnerWithHttpInfoAsync(prefix, suffix, pidRequestDto, operationIndex, cancellationToken).ConfigureAwait(false); } /// <summary> - /// Validates the given PID. + /// Sends an inquiry to the owner of the given PID. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="prefix">The PID prefix of a project or a resource to validate</param> - /// <param name="id">The PID body of a project or a resource to validate</param> + /// <param name="suffix">The PID body of a project or a resource to validate</param> + /// <param name="pidRequestDto">The data transfer object containing the inquiry details. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> - /// <returns>Task of ApiResponse (PidValidationDtoResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<PidValidationDtoResponse>> ValidatePidWithHttpInfoAsync(string prefix, Guid id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// <returns>Task of ApiResponse</returns> + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> SendRequestToOwnerWithHttpInfoAsync(string prefix, Guid suffix, PidRequestDto? pidRequestDto = default(PidRequestDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'prefix' is set if (prefix == null) { - throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'prefix' when calling PidApi->ValidatePid"); + throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'prefix' when calling PidApi->SendRequestToOwner"); } Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); string[] _contentTypes = new string[] { + "application/json", + "text/json", + "application/*+json" }; // to determine the Accept header string[] _accepts = new string[] { - "application/json", - "text/json" }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); @@ -735,9 +1018,10 @@ namespace Coscine.ApiClient.Core.Api } localVarRequestOptions.PathParameters.Add("prefix", Coscine.ApiClient.Core.Client.ClientUtils.ParameterToString(prefix)); // path parameter - localVarRequestOptions.PathParameters.Add("id", Coscine.ApiClient.Core.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.PathParameters.Add("suffix", Coscine.ApiClient.Core.Client.ClientUtils.ParameterToString(suffix)); // path parameter + localVarRequestOptions.Data = pidRequestDto; - localVarRequestOptions.Operation = "PidApi.ValidatePid"; + localVarRequestOptions.Operation = "PidApi.SendRequestToOwner"; localVarRequestOptions.OperationIndex = operationIndex; // authentication (Bearer) required @@ -747,11 +1031,11 @@ namespace Coscine.ApiClient.Core.Api } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync<PidValidationDtoResponse>("/api/v2/pids/{prefix}/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync<Object>("/api/v2/pids/{prefix}/{suffix}/requests", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("ValidatePid", localVarResponse); + Exception _exception = this.ExceptionFactory("SendRequestToOwner", localVarResponse); if (_exception != null) { throw _exception; diff --git a/src/Coscine.ApiClient.Core/Api/ProjectApi.cs b/src/Coscine.ApiClient.Core/Api/ProjectApi.cs index 358335ff80a2ab42b7a5a47db80e048778e872df..53383edec856f2367e3362f2654373282de96f22 100644 --- a/src/Coscine.ApiClient.Core/Api/ProjectApi.cs +++ b/src/Coscine.ApiClient.Core/Api/ProjectApi.cs @@ -48,6 +48,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Creates a new project. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectForCreationDto">The project data for creation. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> @@ -58,7 +61,7 @@ namespace Coscine.ApiClient.Core.Api /// Creates a new project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectForCreationDto">The project data for creation. (optional)</param> @@ -68,6 +71,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Deletes a project. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The ID of the project.</param> /// <param name="operationIndex">Index associated with the operation.</param> @@ -78,7 +84,7 @@ namespace Coscine.ApiClient.Core.Api /// Deletes a project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The ID of the project.</param> @@ -88,6 +94,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves a project. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The ID of the project.</param> /// <param name="includeSubProjects">Gets or sets a value indicating whether to include sub-projects in the retrieval. (optional)</param> @@ -99,7 +108,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The ID of the project.</param> @@ -110,6 +119,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves all projects. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="topLevel">Gets or sets a value indicating whether to retrieve only top-level projects. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -123,7 +135,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all projects. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="topLevel">Gets or sets a value indicating whether to retrieve only top-level projects. (optional)</param> @@ -136,6 +148,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Updates a project. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The ID of the project.</param> /// <param name="projectForUpdateDto">The updated project data. (optional)</param> @@ -147,7 +162,7 @@ namespace Coscine.ApiClient.Core.Api /// Updates a project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The ID of the project.</param> @@ -191,7 +206,7 @@ namespace Coscine.ApiClient.Core.Api /// Creates a new project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectForCreationDto">The project data for creation. (optional)</param> @@ -204,7 +219,7 @@ namespace Coscine.ApiClient.Core.Api /// Creates a new project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectForCreationDto">The project data for creation. (optional)</param> @@ -216,7 +231,7 @@ namespace Coscine.ApiClient.Core.Api /// Deletes a project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The ID of the project.</param> @@ -229,7 +244,7 @@ namespace Coscine.ApiClient.Core.Api /// Deletes a project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The ID of the project.</param> @@ -241,7 +256,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The ID of the project.</param> @@ -255,7 +270,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The ID of the project.</param> @@ -268,7 +283,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all projects. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="topLevel">Gets or sets a value indicating whether to retrieve only top-level projects. (optional)</param> @@ -284,7 +299,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all projects. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="topLevel">Gets or sets a value indicating whether to retrieve only top-level projects. (optional)</param> @@ -299,7 +314,7 @@ namespace Coscine.ApiClient.Core.Api /// Updates a project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The ID of the project.</param> @@ -313,7 +328,7 @@ namespace Coscine.ApiClient.Core.Api /// Updates a project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The ID of the project.</param> @@ -575,7 +590,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Creates a new project. + /// Creates a new project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectForCreationDto">The project data for creation. (optional)</param> @@ -588,7 +603,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Creates a new project. + /// Creates a new project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectForCreationDto">The project data for creation. (optional)</param> @@ -648,7 +663,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Creates a new project. + /// Creates a new project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectForCreationDto">The project data for creation. (optional)</param> @@ -662,7 +677,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Creates a new project. + /// Creates a new project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectForCreationDto">The project data for creation. (optional)</param> @@ -725,7 +740,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Deletes a project. + /// Deletes a project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The ID of the project.</param> @@ -737,7 +752,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Deletes a project. + /// Deletes a project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The ID of the project.</param> @@ -798,7 +813,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Deletes a project. + /// Deletes a project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The ID of the project.</param> @@ -811,7 +826,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Deletes a project. + /// Deletes a project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The ID of the project.</param> @@ -875,7 +890,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a project. + /// Retrieves a project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The ID of the project.</param> @@ -889,7 +904,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a project. + /// Retrieves a project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The ID of the project.</param> @@ -957,7 +972,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a project. + /// Retrieves a project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The ID of the project.</param> @@ -972,7 +987,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a project. + /// Retrieves a project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The ID of the project.</param> @@ -1043,7 +1058,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all projects. + /// Retrieves all projects. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="topLevel">Gets or sets a value indicating whether to retrieve only top-level projects. (optional)</param> @@ -1059,7 +1074,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all projects. + /// Retrieves all projects. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="topLevel">Gets or sets a value indicating whether to retrieve only top-level projects. (optional)</param> @@ -1134,7 +1149,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all projects. + /// Retrieves all projects. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="topLevel">Gets or sets a value indicating whether to retrieve only top-level projects. (optional)</param> @@ -1151,7 +1166,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all projects. + /// Retrieves all projects. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="topLevel">Gets or sets a value indicating whether to retrieve only top-level projects. (optional)</param> @@ -1229,7 +1244,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Updates a project. + /// Updates a project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The ID of the project.</param> @@ -1242,7 +1257,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Updates a project. + /// Updates a project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The ID of the project.</param> @@ -1308,7 +1323,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Updates a project. + /// Updates a project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The ID of the project.</param> @@ -1322,7 +1337,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Updates a project. + /// Updates a project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The ID of the project.</param> diff --git a/src/Coscine.ApiClient.Core/Api/ProjectInvitationApi.cs b/src/Coscine.ApiClient.Core/Api/ProjectInvitationApi.cs index 69c2825dbf2d491c28c9cff33eeeb8952f0b30a7..cd3c07b4ba4c5a000fb14efc18aaaeda4dd1ba77 100644 --- a/src/Coscine.ApiClient.Core/Api/ProjectInvitationApi.cs +++ b/src/Coscine.ApiClient.Core/Api/ProjectInvitationApi.cs @@ -50,6 +50,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Creates a project invitation for a specified project. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> /// <param name="projectInvitationForProjectManipulationDto">The project invitation data for creation. (optional)</param> @@ -61,7 +64,7 @@ namespace Coscine.ApiClient.Core.Api /// Creates a project invitation for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -72,6 +75,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Deletes a project invitation for a specified project. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> /// <param name="projectInvitationId">The ID of the project invitation to delete.</param> @@ -83,7 +89,7 @@ namespace Coscine.ApiClient.Core.Api /// Deletes a project invitation for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -94,6 +100,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves a project invitation for a specified project. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> /// <param name="projectInvitationId">The ID of the project invitation to retrieve.</param> @@ -105,7 +114,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a project invitation for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -116,6 +125,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves all project invitations for a specified project. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -129,7 +141,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all project invitations for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -177,7 +189,7 @@ namespace Coscine.ApiClient.Core.Api /// Creates a project invitation for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -191,7 +203,7 @@ namespace Coscine.ApiClient.Core.Api /// Creates a project invitation for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -204,7 +216,7 @@ namespace Coscine.ApiClient.Core.Api /// Deletes a project invitation for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -218,7 +230,7 @@ namespace Coscine.ApiClient.Core.Api /// Deletes a project invitation for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -231,7 +243,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a project invitation for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -245,7 +257,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a project invitation for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -258,7 +270,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all project invitations for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -274,7 +286,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all project invitations for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -556,7 +568,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Creates a project invitation for a specified project. + /// Creates a project invitation for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -570,7 +582,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Creates a project invitation for a specified project. + /// Creates a project invitation for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -638,7 +650,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Creates a project invitation for a specified project. + /// Creates a project invitation for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -653,7 +665,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Creates a project invitation for a specified project. + /// Creates a project invitation for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -724,7 +736,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Deletes a project invitation for a specified project. + /// Deletes a project invitation for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -737,7 +749,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Deletes a project invitation for a specified project. + /// Deletes a project invitation for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -800,7 +812,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Deletes a project invitation for a specified project. + /// Deletes a project invitation for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -814,7 +826,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Deletes a project invitation for a specified project. + /// Deletes a project invitation for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -880,7 +892,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a project invitation for a specified project. + /// Retrieves a project invitation for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -894,7 +906,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a project invitation for a specified project. + /// Retrieves a project invitation for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -959,7 +971,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a project invitation for a specified project. + /// Retrieves a project invitation for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -974,7 +986,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a project invitation for a specified project. + /// Retrieves a project invitation for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -1042,7 +1054,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all project invitations for a specified project. + /// Retrieves all project invitations for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -1058,7 +1070,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all project invitations for a specified project. + /// Retrieves all project invitations for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -1136,7 +1148,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all project invitations for a specified project. + /// Retrieves all project invitations for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -1153,7 +1165,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all project invitations for a specified project. + /// Retrieves all project invitations for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> diff --git a/src/Coscine.ApiClient.Core/Api/ProjectMemberApi.cs b/src/Coscine.ApiClient.Core/Api/ProjectMemberApi.cs index febaf2a704e0d8fb562bd60501d38cd350f83124..99c0e64bc7db56d820484299343b884f85951c5d 100644 --- a/src/Coscine.ApiClient.Core/Api/ProjectMemberApi.cs +++ b/src/Coscine.ApiClient.Core/Api/ProjectMemberApi.cs @@ -30,6 +30,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Creates a project membership for a specified project. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> /// <param name="projectRoleForProjectCreationDto">The project membership data for creation. (optional)</param> @@ -41,7 +44,7 @@ namespace Coscine.ApiClient.Core.Api /// Creates a project membership for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -72,6 +75,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Deletes a project membership for a specified project. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> /// <param name="membershipId">The ID of the project membership to delete.</param> @@ -83,7 +89,7 @@ namespace Coscine.ApiClient.Core.Api /// Deletes a project membership for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -94,6 +100,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves a project membership for a specified project. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> /// <param name="membershipId">The ID of the project membership to retrieve.</param> @@ -105,7 +114,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a project membership for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -116,6 +125,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves all project memberships for a specified project. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -129,7 +141,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all project memberships for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -142,6 +154,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Updates a project membership for a specified project. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> /// <param name="membershipId">The ID of the project membership to update.</param> @@ -154,7 +169,7 @@ namespace Coscine.ApiClient.Core.Api /// Updates a project membership for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -176,7 +191,7 @@ namespace Coscine.ApiClient.Core.Api /// Creates a project membership for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -190,7 +205,7 @@ namespace Coscine.ApiClient.Core.Api /// Creates a project membership for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -228,7 +243,7 @@ namespace Coscine.ApiClient.Core.Api /// Deletes a project membership for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -242,7 +257,7 @@ namespace Coscine.ApiClient.Core.Api /// Deletes a project membership for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -255,7 +270,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a project membership for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -269,7 +284,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a project membership for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -282,7 +297,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all project memberships for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -298,7 +313,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all project memberships for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -313,7 +328,7 @@ namespace Coscine.ApiClient.Core.Api /// Updates a project membership for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -328,7 +343,7 @@ namespace Coscine.ApiClient.Core.Api /// Updates a project membership for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -459,7 +474,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Creates a project membership for a specified project. + /// Creates a project membership for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -473,7 +488,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Creates a project membership for a specified project. + /// Creates a project membership for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -541,7 +556,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Creates a project membership for a specified project. + /// Creates a project membership for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -556,7 +571,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Creates a project membership for a specified project. + /// Creates a project membership for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -777,7 +792,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Deletes a project membership for a specified project. + /// Deletes a project membership for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -790,7 +805,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Deletes a project membership for a specified project. + /// Deletes a project membership for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -853,7 +868,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Deletes a project membership for a specified project. + /// Deletes a project membership for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -867,7 +882,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Deletes a project membership for a specified project. + /// Deletes a project membership for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -933,7 +948,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a project membership for a specified project. + /// Retrieves a project membership for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -947,7 +962,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a project membership for a specified project. + /// Retrieves a project membership for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -1012,7 +1027,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a project membership for a specified project. + /// Retrieves a project membership for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -1027,7 +1042,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a project membership for a specified project. + /// Retrieves a project membership for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -1095,7 +1110,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all project memberships for a specified project. + /// Retrieves all project memberships for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -1111,7 +1126,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all project memberships for a specified project. + /// Retrieves all project memberships for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -1189,7 +1204,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all project memberships for a specified project. + /// Retrieves all project memberships for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -1206,7 +1221,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all project memberships for a specified project. + /// Retrieves all project memberships for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -1287,7 +1302,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Updates a project membership for a specified project. + /// Updates a project membership for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -1301,7 +1316,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Updates a project membership for a specified project. + /// Updates a project membership for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -1369,7 +1384,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Updates a project membership for a specified project. + /// Updates a project membership for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -1384,7 +1399,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Updates a project membership for a specified project. + /// Updates a project membership for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> diff --git a/src/Coscine.ApiClient.Core/Api/ProjectPublicationRequestApi.cs b/src/Coscine.ApiClient.Core/Api/ProjectPublicationRequestApi.cs new file mode 100644 index 0000000000000000000000000000000000000000..bb83b29e16e33fe81a473e64d1ef5e2aa6cc77c1 --- /dev/null +++ b/src/Coscine.ApiClient.Core/Api/ProjectPublicationRequestApi.cs @@ -0,0 +1,575 @@ +/* + * Coscine Web API + * + * Coscine (short for <b>CO</b>llaborative <b>SC</b>ientific <b>IN</b>tegration <b>E</b>nvironment) is the research data management platform for your research project. + * + * The version of the OpenAPI document: 2.0 + * Contact: servicedesk@itc.rwth-aachen.de + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using Coscine.ApiClient.Core.Client; +using Coscine.ApiClient.Core.Model; + +namespace Coscine.ApiClient.Core.Api +{ + + /// <summary> + /// Represents a collection of functions to interact with the API endpoints + /// </summary> + public interface IProjectPublicationRequestApiSync : IApiAccessor + { + #region Synchronous Operations + /// <summary> + /// Responds with the HTTP methods allowed for the endpoint. + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="projectId"></param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns></returns> + void ApiV2ProjectsProjectIdPublicationsRequestsOptions(string projectId, int operationIndex = 0); + + /// <summary> + /// Responds with the HTTP methods allowed for the endpoint. + /// </summary> + /// <remarks> + /// + /// </remarks> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="projectId"></param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns>ApiResponse of Object(void)</returns> + ApiResponse<Object> ApiV2ProjectsProjectIdPublicationsRequestsOptionsWithHttpInfo(string projectId, int operationIndex = 0); + /// <summary> + /// Creates a new publication request. + /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="projectId">The Id or slug of the project.</param> + /// <param name="publicationRequestForCreationDto">The publication request data for creation. (optional)</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns>PublicationRequestForCreationDtoResponse</returns> + PublicationRequestForCreationDtoResponse CreatePublicationRequest(string projectId, PublicationRequestForCreationDto? publicationRequestForCreationDto = default(PublicationRequestForCreationDto?), int operationIndex = 0); + + /// <summary> + /// Creates a new publication request. + /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="projectId">The Id or slug of the project.</param> + /// <param name="publicationRequestForCreationDto">The publication request data for creation. (optional)</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns>ApiResponse of PublicationRequestForCreationDtoResponse</returns> + ApiResponse<PublicationRequestForCreationDtoResponse> CreatePublicationRequestWithHttpInfo(string projectId, PublicationRequestForCreationDto? publicationRequestForCreationDto = default(PublicationRequestForCreationDto?), int operationIndex = 0); + #endregion Synchronous Operations + } + + /// <summary> + /// Represents a collection of functions to interact with the API endpoints + /// </summary> + public interface IProjectPublicationRequestApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// <summary> + /// Responds with the HTTP methods allowed for the endpoint. + /// </summary> + /// <remarks> + /// + /// </remarks> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="projectId"></param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of void</returns> + System.Threading.Tasks.Task ApiV2ProjectsProjectIdPublicationsRequestsOptionsAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// <summary> + /// Responds with the HTTP methods allowed for the endpoint. + /// </summary> + /// <remarks> + /// + /// </remarks> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="projectId"></param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of ApiResponse</returns> + System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2ProjectsProjectIdPublicationsRequestsOptionsWithHttpInfoAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// <summary> + /// Creates a new publication request. + /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="projectId">The Id or slug of the project.</param> + /// <param name="publicationRequestForCreationDto">The publication request data for creation. (optional)</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of PublicationRequestForCreationDtoResponse</returns> + System.Threading.Tasks.Task<PublicationRequestForCreationDtoResponse> CreatePublicationRequestAsync(string projectId, PublicationRequestForCreationDto? publicationRequestForCreationDto = default(PublicationRequestForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// <summary> + /// Creates a new publication request. + /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="projectId">The Id or slug of the project.</param> + /// <param name="publicationRequestForCreationDto">The publication request data for creation. (optional)</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of ApiResponse (PublicationRequestForCreationDtoResponse)</returns> + System.Threading.Tasks.Task<ApiResponse<PublicationRequestForCreationDtoResponse>> CreatePublicationRequestWithHttpInfoAsync(string projectId, PublicationRequestForCreationDto? publicationRequestForCreationDto = default(PublicationRequestForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// <summary> + /// Represents a collection of functions to interact with the API endpoints + /// </summary> + public interface IProjectPublicationRequestApi : IProjectPublicationRequestApiSync, IProjectPublicationRequestApiAsync + { + + } + + /// <summary> + /// Represents a collection of functions to interact with the API endpoints + /// </summary> + public partial class ProjectPublicationRequestApi : IProjectPublicationRequestApi + { + private Coscine.ApiClient.Core.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// <summary> + /// Initializes a new instance of the <see cref="ProjectPublicationRequestApi"/> class. + /// </summary> + /// <returns></returns> + public ProjectPublicationRequestApi() : this((string)null) + { + } + + /// <summary> + /// Initializes a new instance of the <see cref="ProjectPublicationRequestApi"/> class. + /// </summary> + /// <returns></returns> + public ProjectPublicationRequestApi(string basePath) + { + this.Configuration = Coscine.ApiClient.Core.Client.Configuration.MergeConfigurations( + Coscine.ApiClient.Core.Client.GlobalConfiguration.Instance, + new Coscine.ApiClient.Core.Client.Configuration { BasePath = basePath } + ); + this.Client = new Coscine.ApiClient.Core.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new Coscine.ApiClient.Core.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = Coscine.ApiClient.Core.Client.Configuration.DefaultExceptionFactory; + } + + /// <summary> + /// Initializes a new instance of the <see cref="ProjectPublicationRequestApi"/> class + /// using Configuration object + /// </summary> + /// <param name="configuration">An instance of Configuration</param> + /// <returns></returns> + public ProjectPublicationRequestApi(Coscine.ApiClient.Core.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = Coscine.ApiClient.Core.Client.Configuration.MergeConfigurations( + Coscine.ApiClient.Core.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new Coscine.ApiClient.Core.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new Coscine.ApiClient.Core.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = Coscine.ApiClient.Core.Client.Configuration.DefaultExceptionFactory; + } + + /// <summary> + /// Initializes a new instance of the <see cref="ProjectPublicationRequestApi"/> class + /// using a Configuration object and client instance. + /// </summary> + /// <param name="client">The client interface for synchronous API access.</param> + /// <param name="asyncClient">The client interface for asynchronous API access.</param> + /// <param name="configuration">The configuration object.</param> + public ProjectPublicationRequestApi(Coscine.ApiClient.Core.Client.ISynchronousClient client, Coscine.ApiClient.Core.Client.IAsynchronousClient asyncClient, Coscine.ApiClient.Core.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = Coscine.ApiClient.Core.Client.Configuration.DefaultExceptionFactory; + } + + /// <summary> + /// The client for accessing this underlying API asynchronously. + /// </summary> + public Coscine.ApiClient.Core.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// <summary> + /// The client for accessing this underlying API synchronously. + /// </summary> + public Coscine.ApiClient.Core.Client.ISynchronousClient Client { get; set; } + + /// <summary> + /// Gets the base path of the API client. + /// </summary> + /// <value>The base path</value> + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// <summary> + /// Gets or sets the configuration object + /// </summary> + /// <value>An instance of the Configuration</value> + public Coscine.ApiClient.Core.Client.IReadableConfiguration Configuration { get; set; } + + /// <summary> + /// Provides a factory method hook for the creation of exceptions. + /// </summary> + public Coscine.ApiClient.Core.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// <summary> + /// Responds with the HTTP methods allowed for the endpoint. + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="projectId"></param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns></returns> + public void ApiV2ProjectsProjectIdPublicationsRequestsOptions(string projectId, int operationIndex = 0) + { + ApiV2ProjectsProjectIdPublicationsRequestsOptionsWithHttpInfo(projectId); + } + + /// <summary> + /// Responds with the HTTP methods allowed for the endpoint. + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="projectId"></param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns>ApiResponse of Object(void)</returns> + public Coscine.ApiClient.Core.Client.ApiResponse<Object> ApiV2ProjectsProjectIdPublicationsRequestsOptionsWithHttpInfo(string projectId, int operationIndex = 0) + { + // verify the required parameter 'projectId' is set + if (projectId == null) + { + throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'projectId' when calling ProjectPublicationRequestApi->ApiV2ProjectsProjectIdPublicationsRequestsOptions"); + } + + Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("projectId", Coscine.ApiClient.Core.Client.ClientUtils.ParameterToString(projectId)); // path parameter + + localVarRequestOptions.Operation = "ProjectPublicationRequestApi.ApiV2ProjectsProjectIdPublicationsRequestsOptions"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (Bearer) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Options<Object>("/api/v2/projects/{projectId}/publications/requests", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2ProjectsProjectIdPublicationsRequestsOptions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// <summary> + /// Responds with the HTTP methods allowed for the endpoint. + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="projectId"></param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of void</returns> + public async System.Threading.Tasks.Task ApiV2ProjectsProjectIdPublicationsRequestsOptionsAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await ApiV2ProjectsProjectIdPublicationsRequestsOptionsWithHttpInfoAsync(projectId, operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// <summary> + /// Responds with the HTTP methods allowed for the endpoint. + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="projectId"></param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of ApiResponse</returns> + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2ProjectsProjectIdPublicationsRequestsOptionsWithHttpInfoAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'projectId' is set + if (projectId == null) + { + throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'projectId' when calling ProjectPublicationRequestApi->ApiV2ProjectsProjectIdPublicationsRequestsOptions"); + } + + + Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("projectId", Coscine.ApiClient.Core.Client.ClientUtils.ParameterToString(projectId)); // path parameter + + localVarRequestOptions.Operation = "ProjectPublicationRequestApi.ApiV2ProjectsProjectIdPublicationsRequestsOptions"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (Bearer) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.OptionsAsync<Object>("/api/v2/projects/{projectId}/publications/requests", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2ProjectsProjectIdPublicationsRequestsOptions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// <summary> + /// Creates a new publication request. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="projectId">The Id or slug of the project.</param> + /// <param name="publicationRequestForCreationDto">The publication request data for creation. (optional)</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns>PublicationRequestForCreationDtoResponse</returns> + public PublicationRequestForCreationDtoResponse CreatePublicationRequest(string projectId, PublicationRequestForCreationDto? publicationRequestForCreationDto = default(PublicationRequestForCreationDto?), int operationIndex = 0) + { + Coscine.ApiClient.Core.Client.ApiResponse<PublicationRequestForCreationDtoResponse> localVarResponse = CreatePublicationRequestWithHttpInfo(projectId, publicationRequestForCreationDto); + return localVarResponse.Data; + } + + /// <summary> + /// Creates a new publication request. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="projectId">The Id or slug of the project.</param> + /// <param name="publicationRequestForCreationDto">The publication request data for creation. (optional)</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns>ApiResponse of PublicationRequestForCreationDtoResponse</returns> + public Coscine.ApiClient.Core.Client.ApiResponse<PublicationRequestForCreationDtoResponse> CreatePublicationRequestWithHttpInfo(string projectId, PublicationRequestForCreationDto? publicationRequestForCreationDto = default(PublicationRequestForCreationDto?), int operationIndex = 0) + { + // verify the required parameter 'projectId' is set + if (projectId == null) + { + throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'projectId' when calling ProjectPublicationRequestApi->CreatePublicationRequest"); + } + + Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json", + "text/json", + "application/*+json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json", + "text/json" + }; + + var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("projectId", Coscine.ApiClient.Core.Client.ClientUtils.ParameterToString(projectId)); // path parameter + localVarRequestOptions.Data = publicationRequestForCreationDto; + + localVarRequestOptions.Operation = "ProjectPublicationRequestApi.CreatePublicationRequest"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (Bearer) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post<PublicationRequestForCreationDtoResponse>("/api/v2/projects/{projectId}/publications/requests", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreatePublicationRequest", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// <summary> + /// Creates a new publication request. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="projectId">The Id or slug of the project.</param> + /// <param name="publicationRequestForCreationDto">The publication request data for creation. (optional)</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of PublicationRequestForCreationDtoResponse</returns> + public async System.Threading.Tasks.Task<PublicationRequestForCreationDtoResponse> CreatePublicationRequestAsync(string projectId, PublicationRequestForCreationDto? publicationRequestForCreationDto = default(PublicationRequestForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + Coscine.ApiClient.Core.Client.ApiResponse<PublicationRequestForCreationDtoResponse> localVarResponse = await CreatePublicationRequestWithHttpInfoAsync(projectId, publicationRequestForCreationDto, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// <summary> + /// Creates a new publication request. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="projectId">The Id or slug of the project.</param> + /// <param name="publicationRequestForCreationDto">The publication request data for creation. (optional)</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of ApiResponse (PublicationRequestForCreationDtoResponse)</returns> + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<PublicationRequestForCreationDtoResponse>> CreatePublicationRequestWithHttpInfoAsync(string projectId, PublicationRequestForCreationDto? publicationRequestForCreationDto = default(PublicationRequestForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'projectId' is set + if (projectId == null) + { + throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'projectId' when calling ProjectPublicationRequestApi->CreatePublicationRequest"); + } + + + Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json", + "text/json", + "application/*+json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json", + "text/json" + }; + + var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("projectId", Coscine.ApiClient.Core.Client.ClientUtils.ParameterToString(projectId)); // path parameter + localVarRequestOptions.Data = publicationRequestForCreationDto; + + localVarRequestOptions.Operation = "ProjectPublicationRequestApi.CreatePublicationRequest"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (Bearer) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync<PublicationRequestForCreationDtoResponse>("/api/v2/projects/{projectId}/publications/requests", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreatePublicationRequest", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + } +} diff --git a/src/Coscine.ApiClient.Core/Api/ProjectQuotaApi.cs b/src/Coscine.ApiClient.Core/Api/ProjectQuotaApi.cs index b94ae8def44a447a9217651b340b3e4855d3b4d2..9e02f18c13ef0c3e604c60c99e0ef070751037a6 100644 --- a/src/Coscine.ApiClient.Core/Api/ProjectQuotaApi.cs +++ b/src/Coscine.ApiClient.Core/Api/ProjectQuotaApi.cs @@ -50,6 +50,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves a project quota for a specified project and resource type. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> /// <param name="resourceTypeId">The ID of the resource type.</param> @@ -61,7 +64,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a project quota for a specified project and resource type. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -72,6 +75,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves all project quotas for a specified project. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -85,7 +91,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all project quotas for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -98,6 +104,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Updates a project quota for a specified project and resource type. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> /// <param name="resourceTypeId">The ID of the resource type.</param> @@ -110,7 +119,7 @@ namespace Coscine.ApiClient.Core.Api /// Updates a project quota for a specified project and resource type. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -157,7 +166,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a project quota for a specified project and resource type. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -171,7 +180,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a project quota for a specified project and resource type. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -184,7 +193,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all project quotas for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -200,7 +209,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all project quotas for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -215,7 +224,7 @@ namespace Coscine.ApiClient.Core.Api /// Updates a project quota for a specified project and resource type. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -230,7 +239,7 @@ namespace Coscine.ApiClient.Core.Api /// Updates a project quota for a specified project and resource type. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -511,7 +520,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a project quota for a specified project and resource type. + /// Retrieves a project quota for a specified project and resource type. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -525,7 +534,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a project quota for a specified project and resource type. + /// Retrieves a project quota for a specified project and resource type. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -590,7 +599,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a project quota for a specified project and resource type. + /// Retrieves a project quota for a specified project and resource type. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -605,7 +614,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a project quota for a specified project and resource type. + /// Retrieves a project quota for a specified project and resource type. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -673,7 +682,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all project quotas for a specified project. + /// Retrieves all project quotas for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -689,7 +698,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all project quotas for a specified project. + /// Retrieves all project quotas for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -767,7 +776,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all project quotas for a specified project. + /// Retrieves all project quotas for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -784,7 +793,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all project quotas for a specified project. + /// Retrieves all project quotas for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -865,7 +874,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Updates a project quota for a specified project and resource type. + /// Updates a project quota for a specified project and resource type. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -879,7 +888,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Updates a project quota for a specified project and resource type. + /// Updates a project quota for a specified project and resource type. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -947,7 +956,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Updates a project quota for a specified project and resource type. + /// Updates a project quota for a specified project and resource type. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -962,7 +971,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Updates a project quota for a specified project and resource type. + /// Updates a project quota for a specified project and resource type. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> diff --git a/src/Coscine.ApiClient.Core/Api/ProjectResourceApi.cs b/src/Coscine.ApiClient.Core/Api/ProjectResourceApi.cs index d03ff31b47510dda6093f073f2f9e68992c709e9..19fdd0c06975354214a90f1f7aa6ed762d6bb128 100644 --- a/src/Coscine.ApiClient.Core/Api/ProjectResourceApi.cs +++ b/src/Coscine.ApiClient.Core/Api/ProjectResourceApi.cs @@ -50,6 +50,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Creates a new resource for a specified project. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> /// <param name="resourceForCreationDto">The resource data for creation. (optional)</param> @@ -61,7 +64,7 @@ namespace Coscine.ApiClient.Core.Api /// Creates a new resource for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -72,6 +75,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Deletes a resource for a specified project. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> /// <param name="resourceId">The ID of the resource to delete.</param> @@ -83,7 +89,7 @@ namespace Coscine.ApiClient.Core.Api /// Deletes a resource for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -94,6 +100,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves a resource for a specified project. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> /// <param name="resourceId">The ID of the resource to retrieve.</param> @@ -105,7 +114,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a resource for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -116,6 +125,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves all resources for a specified project. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -129,7 +141,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all resources for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -142,6 +154,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Updates a resource for a specified project. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> /// <param name="resourceId">The ID of the resource to update.</param> @@ -154,7 +169,7 @@ namespace Coscine.ApiClient.Core.Api /// Updates a resource for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -201,7 +216,7 @@ namespace Coscine.ApiClient.Core.Api /// Creates a new resource for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -215,7 +230,7 @@ namespace Coscine.ApiClient.Core.Api /// Creates a new resource for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -228,7 +243,7 @@ namespace Coscine.ApiClient.Core.Api /// Deletes a resource for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -242,7 +257,7 @@ namespace Coscine.ApiClient.Core.Api /// Deletes a resource for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -255,7 +270,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a resource for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -269,7 +284,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a resource for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -282,7 +297,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all resources for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -298,7 +313,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all resources for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -313,7 +328,7 @@ namespace Coscine.ApiClient.Core.Api /// Updates a resource for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -328,7 +343,7 @@ namespace Coscine.ApiClient.Core.Api /// Updates a resource for a specified project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -609,7 +624,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Creates a new resource for a specified project. + /// Creates a new resource for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -623,7 +638,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Creates a new resource for a specified project. + /// Creates a new resource for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -691,7 +706,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Creates a new resource for a specified project. + /// Creates a new resource for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -706,7 +721,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Creates a new resource for a specified project. + /// Creates a new resource for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -777,7 +792,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Deletes a resource for a specified project. + /// Deletes a resource for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -790,7 +805,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Deletes a resource for a specified project. + /// Deletes a resource for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -853,7 +868,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Deletes a resource for a specified project. + /// Deletes a resource for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -867,7 +882,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Deletes a resource for a specified project. + /// Deletes a resource for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -933,7 +948,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a resource for a specified project. + /// Retrieves a resource for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -947,7 +962,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a resource for a specified project. + /// Retrieves a resource for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -1012,7 +1027,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a resource for a specified project. + /// Retrieves a resource for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -1027,7 +1042,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a resource for a specified project. + /// Retrieves a resource for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -1095,7 +1110,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all resources for a specified project. + /// Retrieves all resources for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -1111,7 +1126,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all resources for a specified project. + /// Retrieves all resources for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -1189,7 +1204,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all resources for a specified project. + /// Retrieves all resources for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -1206,7 +1221,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all resources for a specified project. + /// Retrieves all resources for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -1287,7 +1302,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Updates a resource for a specified project. + /// Updates a resource for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -1301,7 +1316,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Updates a resource for a specified project. + /// Updates a resource for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -1369,7 +1384,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Updates a resource for a specified project. + /// Updates a resource for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -1384,7 +1399,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Updates a resource for a specified project. + /// Updates a resource for a specified project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> diff --git a/src/Coscine.ApiClient.Core/Api/ProjectResourceQuotaApi.cs b/src/Coscine.ApiClient.Core/Api/ProjectResourceQuotaApi.cs index 25901cbb608950d0eb49e8c9f8577dfa0ffac383..b66df6f798eca7b0cb8c02bebd1e22a58e125d5c 100644 --- a/src/Coscine.ApiClient.Core/Api/ProjectResourceQuotaApi.cs +++ b/src/Coscine.ApiClient.Core/Api/ProjectResourceQuotaApi.cs @@ -52,6 +52,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves the resource quota for a specific resource in a project. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> /// <param name="resourceId">The ID of the resource.</param> @@ -63,7 +66,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves the resource quota for a specific resource in a project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -111,7 +114,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves the resource quota for a specific resource in a project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -125,7 +128,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves the resource quota for a specific resource in a project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -423,7 +426,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves the resource quota for a specific resource in a project. + /// Retrieves the resource quota for a specific resource in a project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -437,7 +440,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves the resource quota for a specific resource in a project. + /// Retrieves the resource quota for a specific resource in a project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -502,7 +505,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves the resource quota for a specific resource in a project. + /// Retrieves the resource quota for a specific resource in a project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -517,7 +520,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves the resource quota for a specific resource in a project. + /// Retrieves the resource quota for a specific resource in a project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> diff --git a/src/Coscine.ApiClient.Core/Api/ProjectResourceTypeApi.cs b/src/Coscine.ApiClient.Core/Api/ProjectResourceTypeApi.cs index 78593e874cd243b69cd23fc162e3e1b0aa9d3010..4b854cd8dc52818621958812248d220d092aa8d2 100644 --- a/src/Coscine.ApiClient.Core/Api/ProjectResourceTypeApi.cs +++ b/src/Coscine.ApiClient.Core/Api/ProjectResourceTypeApi.cs @@ -50,6 +50,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves the available resource types information for a specific project. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> /// <param name="operationIndex">Index associated with the operation.</param> @@ -60,7 +63,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves the available resource types information for a specific project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -105,7 +108,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves the available resource types information for a specific project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -118,7 +121,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves the available resource types information for a specific project. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -397,7 +400,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves the available resource types information for a specific project. + /// Retrieves the available resource types information for a specific project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -410,7 +413,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves the available resource types information for a specific project. + /// Retrieves the available resource types information for a specific project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -473,7 +476,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves the available resource types information for a specific project. + /// Retrieves the available resource types information for a specific project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> @@ -487,7 +490,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves the available resource types information for a specific project. + /// Retrieves the available resource types information for a specific project. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The Id or slug of the project.</param> diff --git a/src/Coscine.ApiClient.Core/Api/ResourceApi.cs b/src/Coscine.ApiClient.Core/Api/ResourceApi.cs index 3af8243b465aa1d751933cd5d762e8c08a0c05a9..e7475199fc8f96d526b6a8f82834900429780965 100644 --- a/src/Coscine.ApiClient.Core/Api/ResourceApi.cs +++ b/src/Coscine.ApiClient.Core/Api/ResourceApi.cs @@ -48,6 +48,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves a resource by its ID. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="resourceId">The ID of the resource to retrieve.</param> /// <param name="operationIndex">Index associated with the operation.</param> @@ -58,7 +61,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a resource by its ID. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="resourceId">The ID of the resource to retrieve.</param> @@ -101,7 +104,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a resource by its ID. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="resourceId">The ID of the resource to retrieve.</param> @@ -114,7 +117,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a resource by its ID. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="resourceId">The ID of the resource to retrieve.</param> @@ -375,7 +378,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a resource by its ID. + /// Retrieves a resource by its ID. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="resourceId">The ID of the resource to retrieve.</param> @@ -388,7 +391,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a resource by its ID. + /// Retrieves a resource by its ID. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="resourceId">The ID of the resource to retrieve.</param> @@ -445,7 +448,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a resource by its ID. + /// Retrieves a resource by its ID. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="resourceId">The ID of the resource to retrieve.</param> @@ -459,7 +462,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a resource by its ID. + /// Retrieves a resource by its ID. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="resourceId">The ID of the resource to retrieve.</param> diff --git a/src/Coscine.ApiClient.Core/Api/ResourceTypeApi.cs b/src/Coscine.ApiClient.Core/Api/ResourceTypeApi.cs index 5c050b416541e5961677ac828784063f7b66291b..956c932ccee82edfbf13271ce6b8ff06b01c0569 100644 --- a/src/Coscine.ApiClient.Core/Api/ResourceTypeApi.cs +++ b/src/Coscine.ApiClient.Core/Api/ResourceTypeApi.cs @@ -48,6 +48,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="gitlabProjectId">The ID of the GitLab project.</param> /// <param name="domain">Domain/Host of the GitLab Provider.</param> @@ -60,7 +63,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="gitlabProjectId">The ID of the GitLab project.</param> @@ -72,6 +75,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="domain">Domain/Host of the GitLab Provider.</param> /// <param name="accessToken">GitLab Project or Group Access Token.</param> @@ -83,7 +89,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="domain">Domain/Host of the GitLab Provider.</param> @@ -94,6 +100,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves the entire global resource types information. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ResourceTypeInformationDtoIEnumerableResponse</returns> @@ -103,7 +112,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves the entire global resource types information. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="operationIndex">Index associated with the operation.</param> @@ -112,6 +121,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="gitlabProjectId">The ID of the GitLab project.</param> /// <param name="domain">Domain/Host of the GitLab Provider.</param> @@ -124,7 +136,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="gitlabProjectId">The ID of the GitLab project.</param> @@ -136,6 +148,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves the resource type information for a specific resource type. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="resourceTypeId">The ID of the resource type to retrieve.</param> /// <param name="operationIndex">Index associated with the operation.</param> @@ -146,7 +161,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves the resource type information for a specific resource type. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="resourceTypeId">The ID of the resource type to retrieve.</param> @@ -189,7 +204,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="gitlabProjectId">The ID of the GitLab project.</param> @@ -204,7 +219,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="gitlabProjectId">The ID of the GitLab project.</param> @@ -218,7 +233,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="domain">Domain/Host of the GitLab Provider.</param> @@ -232,7 +247,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="domain">Domain/Host of the GitLab Provider.</param> @@ -245,7 +260,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves the entire global resource types information. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="operationIndex">Index associated with the operation.</param> @@ -257,7 +272,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves the entire global resource types information. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="operationIndex">Index associated with the operation.</param> @@ -268,7 +283,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="gitlabProjectId">The ID of the GitLab project.</param> @@ -283,7 +298,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="gitlabProjectId">The ID of the GitLab project.</param> @@ -297,7 +312,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves the resource type information for a specific resource type. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="resourceTypeId">The ID of the resource type to retrieve.</param> @@ -310,7 +325,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves the resource type information for a specific resource type. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="resourceTypeId">The ID of the resource type to retrieve.</param> @@ -571,7 +586,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. + /// Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="gitlabProjectId">The ID of the GitLab project.</param> @@ -586,7 +601,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. + /// Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="gitlabProjectId">The ID of the GitLab project.</param> @@ -659,7 +674,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. + /// Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="gitlabProjectId">The ID of the GitLab project.</param> @@ -675,7 +690,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. + /// Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="gitlabProjectId">The ID of the GitLab project.</param> @@ -751,7 +766,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. + /// Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="domain">Domain/Host of the GitLab Provider.</param> @@ -765,7 +780,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. + /// Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="domain">Domain/Host of the GitLab Provider.</param> @@ -836,7 +851,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. + /// Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="domain">Domain/Host of the GitLab Provider.</param> @@ -851,7 +866,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. + /// Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="domain">Domain/Host of the GitLab Provider.</param> @@ -925,7 +940,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves the entire global resource types information. + /// Retrieves the entire global resource types information. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="operationIndex">Index associated with the operation.</param> @@ -937,7 +952,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves the entire global resource types information. + /// Retrieves the entire global resource types information. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="operationIndex">Index associated with the operation.</param> @@ -992,7 +1007,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves the entire global resource types information. + /// Retrieves the entire global resource types information. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="operationIndex">Index associated with the operation.</param> @@ -1005,7 +1020,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves the entire global resource types information. + /// Retrieves the entire global resource types information. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="operationIndex">Index associated with the operation.</param> @@ -1063,7 +1078,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. + /// Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="gitlabProjectId">The ID of the GitLab project.</param> @@ -1078,7 +1093,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. + /// Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="gitlabProjectId">The ID of the GitLab project.</param> @@ -1151,7 +1166,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. + /// Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="gitlabProjectId">The ID of the GitLab project.</param> @@ -1167,7 +1182,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. + /// Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="gitlabProjectId">The ID of the GitLab project.</param> @@ -1243,7 +1258,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves the resource type information for a specific resource type. + /// Retrieves the resource type information for a specific resource type. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="resourceTypeId">The ID of the resource type to retrieve.</param> @@ -1256,7 +1271,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves the resource type information for a specific resource type. + /// Retrieves the resource type information for a specific resource type. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="resourceTypeId">The ID of the resource type to retrieve.</param> @@ -1313,7 +1328,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves the resource type information for a specific resource type. + /// Retrieves the resource type information for a specific resource type. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="resourceTypeId">The ID of the resource type to retrieve.</param> @@ -1327,7 +1342,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves the resource type information for a specific resource type. + /// Retrieves the resource type information for a specific resource type. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="resourceTypeId">The ID of the resource type to retrieve.</param> diff --git a/src/Coscine.ApiClient.Core/Api/RoleApi.cs b/src/Coscine.ApiClient.Core/Api/RoleApi.cs index f6d2493fabe62b521e5c0d78f104d7fda610eb24..5960fd3a9ca957462893c5b5a192f35468077a0c 100644 --- a/src/Coscine.ApiClient.Core/Api/RoleApi.cs +++ b/src/Coscine.ApiClient.Core/Api/RoleApi.cs @@ -48,6 +48,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves a role by ID. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="roleId">The ID of the role.</param> /// <param name="operationIndex">Index associated with the operation.</param> @@ -58,7 +61,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a role by ID. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="roleId">The ID of the role.</param> @@ -68,6 +71,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves all roles. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> @@ -80,7 +86,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all roles. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -125,7 +131,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a role by ID. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="roleId">The ID of the role.</param> @@ -138,7 +144,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a role by ID. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="roleId">The ID of the role.</param> @@ -150,7 +156,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all roles. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -165,7 +171,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all roles. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -428,7 +434,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a role by ID. + /// Retrieves a role by ID. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="roleId">The ID of the role.</param> @@ -441,7 +447,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a role by ID. + /// Retrieves a role by ID. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="roleId">The ID of the role.</param> @@ -498,7 +504,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a role by ID. + /// Retrieves a role by ID. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="roleId">The ID of the role.</param> @@ -512,7 +518,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a role by ID. + /// Retrieves a role by ID. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="roleId">The ID of the role.</param> @@ -572,7 +578,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all roles. + /// Retrieves all roles. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -587,7 +593,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all roles. + /// Retrieves all roles. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -657,7 +663,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all roles. + /// Retrieves all roles. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -673,7 +679,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all roles. + /// Retrieves all roles. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> diff --git a/src/Coscine.ApiClient.Core/Api/SearchApi.cs b/src/Coscine.ApiClient.Core/Api/SearchApi.cs index c326d8f0c8c3697bf8302c61f370cb8b80d409ed..cce678646b2f94e0be31073e59c48a3da17c1938 100644 --- a/src/Coscine.ApiClient.Core/Api/SearchApi.cs +++ b/src/Coscine.ApiClient.Core/Api/SearchApi.cs @@ -48,6 +48,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves a search result by given search parameters. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="query">The search query (optional)</param> /// <param name="useAdvancedSyntax">Set true for advanced Elasticsearch search syntax (optional)</param> @@ -64,7 +67,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a search result by given search parameters. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="query">The search query (optional)</param> @@ -113,7 +116,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a search result by given search parameters. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="query">The search query (optional)</param> @@ -132,7 +135,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a search result by given search parameters. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="query">The search query (optional)</param> @@ -399,7 +402,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a search result by given search parameters. + /// Retrieves a search result by given search parameters. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="query">The search query (optional)</param> @@ -418,7 +421,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a search result by given search parameters. + /// Retrieves a search result by given search parameters. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="query">The search query (optional)</param> @@ -508,7 +511,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a search result by given search parameters. + /// Retrieves a search result by given search parameters. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="query">The search query (optional)</param> @@ -528,7 +531,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a search result by given search parameters. + /// Retrieves a search result by given search parameters. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="query">The search query (optional)</param> diff --git a/src/Coscine.ApiClient.Core/Api/SelfApi.cs b/src/Coscine.ApiClient.Core/Api/SelfApi.cs index ec761b0f70ca807cb36d8cb8c028d5466f31db68..ec1d82dd9e81263772ab84355399dad3e8925201 100644 --- a/src/Coscine.ApiClient.Core/Api/SelfApi.cs +++ b/src/Coscine.ApiClient.Core/Api/SelfApi.cs @@ -30,6 +30,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Accepts the current Terms Of Service for the current authenticated user. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="userTermsOfServiceAcceptDto"> (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> @@ -40,7 +43,7 @@ namespace Coscine.ApiClient.Core.Api /// Accepts the current Terms Of Service for the current authenticated user. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="userTermsOfServiceAcceptDto"> (optional)</param> @@ -68,6 +71,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Confirms the email of a user. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="confirmationToken">Gets or initializes the confirmation token for user email confirmation.</param> /// <param name="operationIndex">Index associated with the operation.</param> @@ -78,7 +84,7 @@ namespace Coscine.ApiClient.Core.Api /// Confirms the email of a user. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="confirmationToken">Gets or initializes the confirmation token for user email confirmation.</param> @@ -88,6 +94,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves the current authenticated user. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>UserDtoResponse</returns> @@ -97,7 +106,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves the current authenticated user. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="operationIndex">Index associated with the operation.</param> @@ -106,6 +115,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Initiates user merging for the current user. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="identityProvider">The identity provider from which user data is to be merged.</param> /// <param name="operationIndex">Index associated with the operation.</param> @@ -116,7 +128,7 @@ namespace Coscine.ApiClient.Core.Api /// Initiates user merging for the current user. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="identityProvider">The identity provider from which user data is to be merged.</param> @@ -126,6 +138,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Resolves a project invitation for the authenticated user. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectInvitationResolveDto">The project invitation resolve data. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> @@ -136,7 +151,7 @@ namespace Coscine.ApiClient.Core.Api /// Resolves a project invitation for the authenticated user. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectInvitationResolveDto">The project invitation resolve data. (optional)</param> @@ -146,6 +161,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Updates the current authenticated user. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="userForUpdateDto">The updated user data. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> @@ -156,7 +174,7 @@ namespace Coscine.ApiClient.Core.Api /// Updates the current authenticated user. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="userForUpdateDto">The updated user data. (optional)</param> @@ -176,7 +194,7 @@ namespace Coscine.ApiClient.Core.Api /// Accepts the current Terms Of Service for the current authenticated user. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="userTermsOfServiceAcceptDto"> (optional)</param> @@ -189,7 +207,7 @@ namespace Coscine.ApiClient.Core.Api /// Accepts the current Terms Of Service for the current authenticated user. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="userTermsOfServiceAcceptDto"> (optional)</param> @@ -224,7 +242,7 @@ namespace Coscine.ApiClient.Core.Api /// Confirms the email of a user. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="confirmationToken">Gets or initializes the confirmation token for user email confirmation.</param> @@ -237,7 +255,7 @@ namespace Coscine.ApiClient.Core.Api /// Confirms the email of a user. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="confirmationToken">Gets or initializes the confirmation token for user email confirmation.</param> @@ -249,7 +267,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves the current authenticated user. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="operationIndex">Index associated with the operation.</param> @@ -261,7 +279,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves the current authenticated user. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="operationIndex">Index associated with the operation.</param> @@ -272,7 +290,7 @@ namespace Coscine.ApiClient.Core.Api /// Initiates user merging for the current user. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="identityProvider">The identity provider from which user data is to be merged.</param> @@ -285,7 +303,7 @@ namespace Coscine.ApiClient.Core.Api /// Initiates user merging for the current user. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="identityProvider">The identity provider from which user data is to be merged.</param> @@ -297,7 +315,7 @@ namespace Coscine.ApiClient.Core.Api /// Resolves a project invitation for the authenticated user. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectInvitationResolveDto">The project invitation resolve data. (optional)</param> @@ -310,7 +328,7 @@ namespace Coscine.ApiClient.Core.Api /// Resolves a project invitation for the authenticated user. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectInvitationResolveDto">The project invitation resolve data. (optional)</param> @@ -322,7 +340,7 @@ namespace Coscine.ApiClient.Core.Api /// Updates the current authenticated user. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="userForUpdateDto">The updated user data. (optional)</param> @@ -335,7 +353,7 @@ namespace Coscine.ApiClient.Core.Api /// Updates the current authenticated user. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="userForUpdateDto">The updated user data. (optional)</param> @@ -464,7 +482,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Accepts the current Terms Of Service for the current authenticated user. + /// Accepts the current Terms Of Service for the current authenticated user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="userTermsOfServiceAcceptDto"> (optional)</param> @@ -476,7 +494,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Accepts the current Terms Of Service for the current authenticated user. + /// Accepts the current Terms Of Service for the current authenticated user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="userTermsOfServiceAcceptDto"> (optional)</param> @@ -534,7 +552,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Accepts the current Terms Of Service for the current authenticated user. + /// Accepts the current Terms Of Service for the current authenticated user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="userTermsOfServiceAcceptDto"> (optional)</param> @@ -547,7 +565,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Accepts the current Terms Of Service for the current authenticated user. + /// Accepts the current Terms Of Service for the current authenticated user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="userTermsOfServiceAcceptDto"> (optional)</param> @@ -740,7 +758,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Confirms the email of a user. + /// Confirms the email of a user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="confirmationToken">Gets or initializes the confirmation token for user email confirmation.</param> @@ -752,7 +770,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Confirms the email of a user. + /// Confirms the email of a user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="confirmationToken">Gets or initializes the confirmation token for user email confirmation.</param> @@ -807,7 +825,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Confirms the email of a user. + /// Confirms the email of a user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="confirmationToken">Gets or initializes the confirmation token for user email confirmation.</param> @@ -820,7 +838,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Confirms the email of a user. + /// Confirms the email of a user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="confirmationToken">Gets or initializes the confirmation token for user email confirmation.</param> @@ -878,7 +896,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves the current authenticated user. + /// Retrieves the current authenticated user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="operationIndex">Index associated with the operation.</param> @@ -890,7 +908,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves the current authenticated user. + /// Retrieves the current authenticated user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="operationIndex">Index associated with the operation.</param> @@ -945,7 +963,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves the current authenticated user. + /// Retrieves the current authenticated user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="operationIndex">Index associated with the operation.</param> @@ -958,7 +976,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves the current authenticated user. + /// Retrieves the current authenticated user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="operationIndex">Index associated with the operation.</param> @@ -1016,7 +1034,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Initiates user merging for the current user. + /// Initiates user merging for the current user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="identityProvider">The identity provider from which user data is to be merged.</param> @@ -1029,7 +1047,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Initiates user merging for the current user. + /// Initiates user merging for the current user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="identityProvider">The identity provider from which user data is to be merged.</param> @@ -1092,7 +1110,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Initiates user merging for the current user. + /// Initiates user merging for the current user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="identityProvider">The identity provider from which user data is to be merged.</param> @@ -1106,7 +1124,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Initiates user merging for the current user. + /// Initiates user merging for the current user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="identityProvider">The identity provider from which user data is to be merged.</param> @@ -1172,7 +1190,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Resolves a project invitation for the authenticated user. + /// Resolves a project invitation for the authenticated user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectInvitationResolveDto">The project invitation resolve data. (optional)</param> @@ -1184,7 +1202,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Resolves a project invitation for the authenticated user. + /// Resolves a project invitation for the authenticated user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectInvitationResolveDto">The project invitation resolve data. (optional)</param> @@ -1242,7 +1260,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Resolves a project invitation for the authenticated user. + /// Resolves a project invitation for the authenticated user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectInvitationResolveDto">The project invitation resolve data. (optional)</param> @@ -1255,7 +1273,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Resolves a project invitation for the authenticated user. + /// Resolves a project invitation for the authenticated user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectInvitationResolveDto">The project invitation resolve data. (optional)</param> @@ -1316,7 +1334,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Updates the current authenticated user. + /// Updates the current authenticated user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="userForUpdateDto">The updated user data. (optional)</param> @@ -1328,7 +1346,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Updates the current authenticated user. + /// Updates the current authenticated user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="userForUpdateDto">The updated user data. (optional)</param> @@ -1386,7 +1404,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Updates the current authenticated user. + /// Updates the current authenticated user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="userForUpdateDto">The updated user data. (optional)</param> @@ -1399,7 +1417,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Updates the current authenticated user. + /// Updates the current authenticated user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="userForUpdateDto">The updated user data. (optional)</param> diff --git a/src/Coscine.ApiClient.Core/Api/SelfApiTokenApi.cs b/src/Coscine.ApiClient.Core/Api/SelfApiTokenApi.cs index 55dce67db43b8d3baf917e676c3b064b22040c04..89f938c21896def6ff8fa894292cd81452e6f526 100644 --- a/src/Coscine.ApiClient.Core/Api/SelfApiTokenApi.cs +++ b/src/Coscine.ApiClient.Core/Api/SelfApiTokenApi.cs @@ -48,6 +48,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Creates an API token for the current authenticated user. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="apiTokenForCreationDto">The API token data for creation. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> @@ -58,7 +61,7 @@ namespace Coscine.ApiClient.Core.Api /// Creates an API token for the current authenticated user. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="apiTokenForCreationDto">The API token data for creation. (optional)</param> @@ -68,6 +71,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves all API tokens for the current authenticated user. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> @@ -80,7 +86,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all API tokens for the current authenticated user. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -92,6 +98,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves an API token for the current authenticated user. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="apiTokenId">The ID of the token.</param> /// <param name="operationIndex">Index associated with the operation.</param> @@ -102,7 +111,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves an API token for the current authenticated user. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="apiTokenId">The ID of the token.</param> @@ -112,6 +121,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Revokes an API token for the current authenticated user. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="apiTokenId">The ID of the token.</param> /// <param name="operationIndex">Index associated with the operation.</param> @@ -122,7 +134,7 @@ namespace Coscine.ApiClient.Core.Api /// Revokes an API token for the current authenticated user. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="apiTokenId">The ID of the token.</param> @@ -165,7 +177,7 @@ namespace Coscine.ApiClient.Core.Api /// Creates an API token for the current authenticated user. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="apiTokenForCreationDto">The API token data for creation. (optional)</param> @@ -178,7 +190,7 @@ namespace Coscine.ApiClient.Core.Api /// Creates an API token for the current authenticated user. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="apiTokenForCreationDto">The API token data for creation. (optional)</param> @@ -190,7 +202,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all API tokens for the current authenticated user. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -205,7 +217,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all API tokens for the current authenticated user. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -219,7 +231,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves an API token for the current authenticated user. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="apiTokenId">The ID of the token.</param> @@ -232,7 +244,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves an API token for the current authenticated user. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="apiTokenId">The ID of the token.</param> @@ -244,7 +256,7 @@ namespace Coscine.ApiClient.Core.Api /// Revokes an API token for the current authenticated user. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="apiTokenId">The ID of the token.</param> @@ -257,7 +269,7 @@ namespace Coscine.ApiClient.Core.Api /// Revokes an API token for the current authenticated user. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="apiTokenId">The ID of the token.</param> @@ -518,7 +530,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Creates an API token for the current authenticated user. + /// Creates an API token for the current authenticated user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="apiTokenForCreationDto">The API token data for creation. (optional)</param> @@ -531,7 +543,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Creates an API token for the current authenticated user. + /// Creates an API token for the current authenticated user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="apiTokenForCreationDto">The API token data for creation. (optional)</param> @@ -591,7 +603,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Creates an API token for the current authenticated user. + /// Creates an API token for the current authenticated user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="apiTokenForCreationDto">The API token data for creation. (optional)</param> @@ -605,7 +617,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Creates an API token for the current authenticated user. + /// Creates an API token for the current authenticated user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="apiTokenForCreationDto">The API token data for creation. (optional)</param> @@ -668,7 +680,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all API tokens for the current authenticated user. + /// Retrieves all API tokens for the current authenticated user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -683,7 +695,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all API tokens for the current authenticated user. + /// Retrieves all API tokens for the current authenticated user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -753,7 +765,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all API tokens for the current authenticated user. + /// Retrieves all API tokens for the current authenticated user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -769,7 +781,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all API tokens for the current authenticated user. + /// Retrieves all API tokens for the current authenticated user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -842,7 +854,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves an API token for the current authenticated user. + /// Retrieves an API token for the current authenticated user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="apiTokenId">The ID of the token.</param> @@ -855,7 +867,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves an API token for the current authenticated user. + /// Retrieves an API token for the current authenticated user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="apiTokenId">The ID of the token.</param> @@ -912,7 +924,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves an API token for the current authenticated user. + /// Retrieves an API token for the current authenticated user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="apiTokenId">The ID of the token.</param> @@ -926,7 +938,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves an API token for the current authenticated user. + /// Retrieves an API token for the current authenticated user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="apiTokenId">The ID of the token.</param> @@ -986,7 +998,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Revokes an API token for the current authenticated user. + /// Revokes an API token for the current authenticated user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="apiTokenId">The ID of the token.</param> @@ -998,7 +1010,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Revokes an API token for the current authenticated user. + /// Revokes an API token for the current authenticated user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="apiTokenId">The ID of the token.</param> @@ -1053,7 +1065,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Revokes an API token for the current authenticated user. + /// Revokes an API token for the current authenticated user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="apiTokenId">The ID of the token.</param> @@ -1066,7 +1078,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Revokes an API token for the current authenticated user. + /// Revokes an API token for the current authenticated user. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="apiTokenId">The ID of the token.</param> diff --git a/src/Coscine.ApiClient.Core/Api/TitleApi.cs b/src/Coscine.ApiClient.Core/Api/TitleApi.cs index 814a28afc9d8232dd3800b6751b81e84be421106..3f9d32b37406d3781c428f7725451d9416f56c6b 100644 --- a/src/Coscine.ApiClient.Core/Api/TitleApi.cs +++ b/src/Coscine.ApiClient.Core/Api/TitleApi.cs @@ -48,6 +48,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves a title by ID. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="titleId">The ID of the title.</param> /// <param name="operationIndex">Index associated with the operation.</param> @@ -58,7 +61,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a title by ID. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="titleId">The ID of the title.</param> @@ -68,6 +71,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves all titles. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> @@ -80,7 +86,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all titles. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -125,7 +131,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a title by ID. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="titleId">The ID of the title.</param> @@ -138,7 +144,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a title by ID. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="titleId">The ID of the title.</param> @@ -150,7 +156,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all titles. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -165,7 +171,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all titles. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -428,7 +434,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a title by ID. + /// Retrieves a title by ID. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="titleId">The ID of the title.</param> @@ -441,7 +447,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a title by ID. + /// Retrieves a title by ID. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="titleId">The ID of the title.</param> @@ -498,7 +504,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a title by ID. + /// Retrieves a title by ID. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="titleId">The ID of the title.</param> @@ -512,7 +518,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a title by ID. + /// Retrieves a title by ID. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="titleId">The ID of the title.</param> @@ -572,7 +578,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all titles. + /// Retrieves all titles. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -587,7 +593,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all titles. + /// Retrieves all titles. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -657,7 +663,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all titles. + /// Retrieves all titles. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -673,7 +679,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all titles. + /// Retrieves all titles. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> diff --git a/src/Coscine.ApiClient.Core/Api/TosApi.cs b/src/Coscine.ApiClient.Core/Api/TosApi.cs index 9c4ee4a0471392a53de8d5602a0055e9f85ad3a0..df51915a311ee3a16246dcf117ef82f06c7cc734 100644 --- a/src/Coscine.ApiClient.Core/Api/TosApi.cs +++ b/src/Coscine.ApiClient.Core/Api/TosApi.cs @@ -48,6 +48,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves the current Terms of Service version. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>TermsOfServiceDtoResponse</returns> @@ -57,7 +60,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves the current Terms of Service version. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="operationIndex">Index associated with the operation.</param> @@ -99,7 +102,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves the current Terms of Service version. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="operationIndex">Index associated with the operation.</param> @@ -111,7 +114,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves the current Terms of Service version. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="operationIndex">Index associated with the operation.</param> @@ -371,7 +374,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves the current Terms of Service version. + /// Retrieves the current Terms of Service version. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="operationIndex">Index associated with the operation.</param> @@ -383,7 +386,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves the current Terms of Service version. + /// Retrieves the current Terms of Service version. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="operationIndex">Index associated with the operation.</param> @@ -438,7 +441,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves the current Terms of Service version. + /// Retrieves the current Terms of Service version. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="operationIndex">Index associated with the operation.</param> @@ -451,7 +454,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves the current Terms of Service version. + /// Retrieves the current Terms of Service version. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="operationIndex">Index associated with the operation.</param> diff --git a/src/Coscine.ApiClient.Core/Api/TreeApi.cs b/src/Coscine.ApiClient.Core/Api/TreeApi.cs index 1fd53093027555a71cbded2ee11f594337b11e1e..6c586167136df16f101505aff2c72f1221d29615 100644 --- a/src/Coscine.ApiClient.Core/Api/TreeApi.cs +++ b/src/Coscine.ApiClient.Core/Api/TreeApi.cs @@ -52,6 +52,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Creates a new metadata tree for a resource. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The unique identifier or slug of the project.</param> /// <param name="resourceId">The unique identifier of the resource.</param> @@ -64,7 +67,7 @@ namespace Coscine.ApiClient.Core.Api /// Creates a new metadata tree for a resource. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The unique identifier or slug of the project.</param> @@ -109,38 +112,79 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves the metadata tree associated with a resource. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The unique identifier or slug of the project.</param> /// <param name="resourceId">The unique identifier of the resource.</param> /// <param name="path">Gets or sets the path of the metadata tree. (optional)</param> /// <param name="format">Gets or sets the format of the RDF data. (optional)</param> + /// <param name="includeExtractedMetadata">Gets or sets if extracted metadata should be included. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>MetadataTreeDtoPagedResponse</returns> - MetadataTreeDtoPagedResponse GetMetadataTree(string projectId, Guid resourceId, string? path = default(string?), RdfFormat? format = default(RdfFormat?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); + MetadataTreeDtoPagedResponse GetMetadataTree(string projectId, Guid resourceId, string? path = default(string?), RdfFormat? format = default(RdfFormat?), bool? includeExtractedMetadata = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); /// <summary> /// Retrieves the metadata tree associated with a resource. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The unique identifier or slug of the project.</param> /// <param name="resourceId">The unique identifier of the resource.</param> /// <param name="path">Gets or sets the path of the metadata tree. (optional)</param> /// <param name="format">Gets or sets the format of the RDF data. (optional)</param> + /// <param name="includeExtractedMetadata">Gets or sets if extracted metadata should be included. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of MetadataTreeDtoPagedResponse</returns> - ApiResponse<MetadataTreeDtoPagedResponse> GetMetadataTreeWithHttpInfo(string projectId, Guid resourceId, string? path = default(string?), RdfFormat? format = default(RdfFormat?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); + ApiResponse<MetadataTreeDtoPagedResponse> GetMetadataTreeWithHttpInfo(string projectId, Guid resourceId, string? path = default(string?), RdfFormat? format = default(RdfFormat?), bool? includeExtractedMetadata = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); + /// <summary> + /// Retrieves the specific metadata tree associated with a resource. + /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="projectId">The unique identifier or slug of the project.</param> + /// <param name="resourceId">The unique identifier of the resource.</param> + /// <param name="path">Gets or sets the path of the metadata tree. (optional)</param> + /// <param name="format">Gets or sets the format of the RDF data. (optional)</param> + /// <param name="includeExtractedMetadata">Gets or sets if extracted metadata should be included. (optional)</param> + /// <param name="varVersion">Gets or sets the desired version. If the version is null, the newest will be returned. (optional)</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns>MetadataTreeDtoResponse</returns> + MetadataTreeDtoResponse GetSpecificMetadataTree(string projectId, Guid resourceId, string? path = default(string?), RdfFormat? format = default(RdfFormat?), bool? includeExtractedMetadata = default(bool?), int? varVersion = default(int?), int operationIndex = 0); + + /// <summary> + /// Retrieves the specific metadata tree associated with a resource. + /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="projectId">The unique identifier or slug of the project.</param> + /// <param name="resourceId">The unique identifier of the resource.</param> + /// <param name="path">Gets or sets the path of the metadata tree. (optional)</param> + /// <param name="format">Gets or sets the format of the RDF data. (optional)</param> + /// <param name="includeExtractedMetadata">Gets or sets if extracted metadata should be included. (optional)</param> + /// <param name="varVersion">Gets or sets the desired version. If the version is null, the newest will be returned. (optional)</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns>ApiResponse of MetadataTreeDtoResponse</returns> + ApiResponse<MetadataTreeDtoResponse> GetSpecificMetadataTreeWithHttpInfo(string projectId, Guid resourceId, string? path = default(string?), RdfFormat? format = default(RdfFormat?), bool? includeExtractedMetadata = default(bool?), int? varVersion = default(int?), int operationIndex = 0); /// <summary> /// Updates an existing metadata tree of a resource. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The unique identifier or slug of the project.</param> /// <param name="resourceId">The unique identifier of the resource.</param> @@ -153,7 +197,7 @@ namespace Coscine.ApiClient.Core.Api /// Updates an existing metadata tree of a resource. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The unique identifier or slug of the project.</param> @@ -202,7 +246,7 @@ namespace Coscine.ApiClient.Core.Api /// Creates a new metadata tree for a resource. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The unique identifier or slug of the project.</param> @@ -217,7 +261,7 @@ namespace Coscine.ApiClient.Core.Api /// Creates a new metadata tree for a resource. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The unique identifier or slug of the project.</param> @@ -266,44 +310,81 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves the metadata tree associated with a resource. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The unique identifier or slug of the project.</param> /// <param name="resourceId">The unique identifier of the resource.</param> /// <param name="path">Gets or sets the path of the metadata tree. (optional)</param> /// <param name="format">Gets or sets the format of the RDF data. (optional)</param> + /// <param name="includeExtractedMetadata">Gets or sets if extracted metadata should be included. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of MetadataTreeDtoPagedResponse</returns> - System.Threading.Tasks.Task<MetadataTreeDtoPagedResponse> GetMetadataTreeAsync(string projectId, Guid resourceId, string? path = default(string?), RdfFormat? format = default(RdfFormat?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<MetadataTreeDtoPagedResponse> GetMetadataTreeAsync(string projectId, Guid resourceId, string? path = default(string?), RdfFormat? format = default(RdfFormat?), bool? includeExtractedMetadata = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// <summary> /// Retrieves the metadata tree associated with a resource. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The unique identifier or slug of the project.</param> /// <param name="resourceId">The unique identifier of the resource.</param> /// <param name="path">Gets or sets the path of the metadata tree. (optional)</param> /// <param name="format">Gets or sets the format of the RDF data. (optional)</param> + /// <param name="includeExtractedMetadata">Gets or sets if extracted metadata should be included. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (MetadataTreeDtoPagedResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<MetadataTreeDtoPagedResponse>> GetMetadataTreeWithHttpInfoAsync(string projectId, Guid resourceId, string? path = default(string?), RdfFormat? format = default(RdfFormat?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<MetadataTreeDtoPagedResponse>> GetMetadataTreeWithHttpInfoAsync(string projectId, Guid resourceId, string? path = default(string?), RdfFormat? format = default(RdfFormat?), bool? includeExtractedMetadata = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// <summary> + /// Retrieves the specific metadata tree associated with a resource. + /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="projectId">The unique identifier or slug of the project.</param> + /// <param name="resourceId">The unique identifier of the resource.</param> + /// <param name="path">Gets or sets the path of the metadata tree. (optional)</param> + /// <param name="format">Gets or sets the format of the RDF data. (optional)</param> + /// <param name="includeExtractedMetadata">Gets or sets if extracted metadata should be included. (optional)</param> + /// <param name="varVersion">Gets or sets the desired version. If the version is null, the newest will be returned. (optional)</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of MetadataTreeDtoResponse</returns> + System.Threading.Tasks.Task<MetadataTreeDtoResponse> GetSpecificMetadataTreeAsync(string projectId, Guid resourceId, string? path = default(string?), RdfFormat? format = default(RdfFormat?), bool? includeExtractedMetadata = default(bool?), int? varVersion = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// <summary> + /// Retrieves the specific metadata tree associated with a resource. + /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="projectId">The unique identifier or slug of the project.</param> + /// <param name="resourceId">The unique identifier of the resource.</param> + /// <param name="path">Gets or sets the path of the metadata tree. (optional)</param> + /// <param name="format">Gets or sets the format of the RDF data. (optional)</param> + /// <param name="includeExtractedMetadata">Gets or sets if extracted metadata should be included. (optional)</param> + /// <param name="varVersion">Gets or sets the desired version. If the version is null, the newest will be returned. (optional)</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of ApiResponse (MetadataTreeDtoResponse)</returns> + System.Threading.Tasks.Task<ApiResponse<MetadataTreeDtoResponse>> GetSpecificMetadataTreeWithHttpInfoAsync(string projectId, Guid resourceId, string? path = default(string?), RdfFormat? format = default(RdfFormat?), bool? includeExtractedMetadata = default(bool?), int? varVersion = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// <summary> /// Updates an existing metadata tree of a resource. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The unique identifier or slug of the project.</param> @@ -318,7 +399,7 @@ namespace Coscine.ApiClient.Core.Api /// Updates an existing metadata tree of a resource. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The unique identifier or slug of the project.</param> @@ -617,7 +698,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Creates a new metadata tree for a resource. + /// Creates a new metadata tree for a resource. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The unique identifier or slug of the project.</param> @@ -632,7 +713,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Creates a new metadata tree for a resource. + /// Creates a new metadata tree for a resource. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The unique identifier or slug of the project.</param> @@ -702,7 +783,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Creates a new metadata tree for a resource. + /// Creates a new metadata tree for a resource. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The unique identifier or slug of the project.</param> @@ -718,7 +799,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Creates a new metadata tree for a resource. + /// Creates a new metadata tree for a resource. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The unique identifier or slug of the project.</param> @@ -1001,38 +1082,40 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves the metadata tree associated with a resource. + /// Retrieves the metadata tree associated with a resource. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The unique identifier or slug of the project.</param> /// <param name="resourceId">The unique identifier of the resource.</param> /// <param name="path">Gets or sets the path of the metadata tree. (optional)</param> /// <param name="format">Gets or sets the format of the RDF data. (optional)</param> + /// <param name="includeExtractedMetadata">Gets or sets if extracted metadata should be included. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>MetadataTreeDtoPagedResponse</returns> - public MetadataTreeDtoPagedResponse GetMetadataTree(string projectId, Guid resourceId, string? path = default(string?), RdfFormat? format = default(RdfFormat?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) + public MetadataTreeDtoPagedResponse GetMetadataTree(string projectId, Guid resourceId, string? path = default(string?), RdfFormat? format = default(RdfFormat?), bool? includeExtractedMetadata = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) { - Coscine.ApiClient.Core.Client.ApiResponse<MetadataTreeDtoPagedResponse> localVarResponse = GetMetadataTreeWithHttpInfo(projectId, resourceId, path, format, pageNumber, pageSize, orderBy); + Coscine.ApiClient.Core.Client.ApiResponse<MetadataTreeDtoPagedResponse> localVarResponse = GetMetadataTreeWithHttpInfo(projectId, resourceId, path, format, includeExtractedMetadata, pageNumber, pageSize, orderBy); return localVarResponse.Data; } /// <summary> - /// Retrieves the metadata tree associated with a resource. + /// Retrieves the metadata tree associated with a resource. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The unique identifier or slug of the project.</param> /// <param name="resourceId">The unique identifier of the resource.</param> /// <param name="path">Gets or sets the path of the metadata tree. (optional)</param> /// <param name="format">Gets or sets the format of the RDF data. (optional)</param> + /// <param name="includeExtractedMetadata">Gets or sets if extracted metadata should be included. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of MetadataTreeDtoPagedResponse</returns> - public Coscine.ApiClient.Core.Client.ApiResponse<MetadataTreeDtoPagedResponse> GetMetadataTreeWithHttpInfo(string projectId, Guid resourceId, string? path = default(string?), RdfFormat? format = default(RdfFormat?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) + public Coscine.ApiClient.Core.Client.ApiResponse<MetadataTreeDtoPagedResponse> GetMetadataTreeWithHttpInfo(string projectId, Guid resourceId, string? path = default(string?), RdfFormat? format = default(RdfFormat?), bool? includeExtractedMetadata = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) { // verify the required parameter 'projectId' is set if (projectId == null) @@ -1073,6 +1156,10 @@ namespace Coscine.ApiClient.Core.Api { localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "Format", format)); } + if (includeExtractedMetadata != null) + { + localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "IncludeExtractedMetadata", includeExtractedMetadata)); + } if (pageNumber != null) { localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "PageNumber", pageNumber)); @@ -1110,40 +1197,42 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves the metadata tree associated with a resource. + /// Retrieves the metadata tree associated with a resource. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The unique identifier or slug of the project.</param> /// <param name="resourceId">The unique identifier of the resource.</param> /// <param name="path">Gets or sets the path of the metadata tree. (optional)</param> /// <param name="format">Gets or sets the format of the RDF data. (optional)</param> + /// <param name="includeExtractedMetadata">Gets or sets if extracted metadata should be included. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of MetadataTreeDtoPagedResponse</returns> - public async System.Threading.Tasks.Task<MetadataTreeDtoPagedResponse> GetMetadataTreeAsync(string projectId, Guid resourceId, string? path = default(string?), RdfFormat? format = default(RdfFormat?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<MetadataTreeDtoPagedResponse> GetMetadataTreeAsync(string projectId, Guid resourceId, string? path = default(string?), RdfFormat? format = default(RdfFormat?), bool? includeExtractedMetadata = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Coscine.ApiClient.Core.Client.ApiResponse<MetadataTreeDtoPagedResponse> localVarResponse = await GetMetadataTreeWithHttpInfoAsync(projectId, resourceId, path, format, pageNumber, pageSize, orderBy, operationIndex, cancellationToken).ConfigureAwait(false); + Coscine.ApiClient.Core.Client.ApiResponse<MetadataTreeDtoPagedResponse> localVarResponse = await GetMetadataTreeWithHttpInfoAsync(projectId, resourceId, path, format, includeExtractedMetadata, pageNumber, pageSize, orderBy, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// <summary> - /// Retrieves the metadata tree associated with a resource. + /// Retrieves the metadata tree associated with a resource. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The unique identifier or slug of the project.</param> /// <param name="resourceId">The unique identifier of the resource.</param> /// <param name="path">Gets or sets the path of the metadata tree. (optional)</param> /// <param name="format">Gets or sets the format of the RDF data. (optional)</param> + /// <param name="includeExtractedMetadata">Gets or sets if extracted metadata should be included. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (MetadataTreeDtoPagedResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<MetadataTreeDtoPagedResponse>> GetMetadataTreeWithHttpInfoAsync(string projectId, Guid resourceId, string? path = default(string?), RdfFormat? format = default(RdfFormat?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<MetadataTreeDtoPagedResponse>> GetMetadataTreeWithHttpInfoAsync(string projectId, Guid resourceId, string? path = default(string?), RdfFormat? format = default(RdfFormat?), bool? includeExtractedMetadata = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) @@ -1185,6 +1274,10 @@ namespace Coscine.ApiClient.Core.Api { localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "Format", format)); } + if (includeExtractedMetadata != null) + { + localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "IncludeExtractedMetadata", includeExtractedMetadata)); + } if (pageNumber != null) { localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "PageNumber", pageNumber)); @@ -1223,7 +1316,217 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Updates an existing metadata tree of a resource. + /// Retrieves the specific metadata tree associated with a resource. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="projectId">The unique identifier or slug of the project.</param> + /// <param name="resourceId">The unique identifier of the resource.</param> + /// <param name="path">Gets or sets the path of the metadata tree. (optional)</param> + /// <param name="format">Gets or sets the format of the RDF data. (optional)</param> + /// <param name="includeExtractedMetadata">Gets or sets if extracted metadata should be included. (optional)</param> + /// <param name="varVersion">Gets or sets the desired version. If the version is null, the newest will be returned. (optional)</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns>MetadataTreeDtoResponse</returns> + public MetadataTreeDtoResponse GetSpecificMetadataTree(string projectId, Guid resourceId, string? path = default(string?), RdfFormat? format = default(RdfFormat?), bool? includeExtractedMetadata = default(bool?), int? varVersion = default(int?), int operationIndex = 0) + { + Coscine.ApiClient.Core.Client.ApiResponse<MetadataTreeDtoResponse> localVarResponse = GetSpecificMetadataTreeWithHttpInfo(projectId, resourceId, path, format, includeExtractedMetadata, varVersion); + return localVarResponse.Data; + } + + /// <summary> + /// Retrieves the specific metadata tree associated with a resource. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="projectId">The unique identifier or slug of the project.</param> + /// <param name="resourceId">The unique identifier of the resource.</param> + /// <param name="path">Gets or sets the path of the metadata tree. (optional)</param> + /// <param name="format">Gets or sets the format of the RDF data. (optional)</param> + /// <param name="includeExtractedMetadata">Gets or sets if extracted metadata should be included. (optional)</param> + /// <param name="varVersion">Gets or sets the desired version. If the version is null, the newest will be returned. (optional)</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns>ApiResponse of MetadataTreeDtoResponse</returns> + public Coscine.ApiClient.Core.Client.ApiResponse<MetadataTreeDtoResponse> GetSpecificMetadataTreeWithHttpInfo(string projectId, Guid resourceId, string? path = default(string?), RdfFormat? format = default(RdfFormat?), bool? includeExtractedMetadata = default(bool?), int? varVersion = default(int?), int operationIndex = 0) + { + // verify the required parameter 'projectId' is set + if (projectId == null) + { + throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'projectId' when calling TreeApi->GetSpecificMetadataTree"); + } + + Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json", + "text/json" + }; + + var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("projectId", Coscine.ApiClient.Core.Client.ClientUtils.ParameterToString(projectId)); // path parameter + localVarRequestOptions.PathParameters.Add("resourceId", Coscine.ApiClient.Core.Client.ClientUtils.ParameterToString(resourceId)); // path parameter + if (path != null) + { + localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "Path", path)); + } + if (format != null) + { + localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "Format", format)); + } + if (includeExtractedMetadata != null) + { + localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "IncludeExtractedMetadata", includeExtractedMetadata)); + } + if (varVersion != null) + { + localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "Version", varVersion)); + } + + localVarRequestOptions.Operation = "TreeApi.GetSpecificMetadataTree"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (Bearer) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get<MetadataTreeDtoResponse>("/api/v2/projects/{projectId}/resources/{resourceId}/trees/metadata/specific", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetSpecificMetadataTree", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// <summary> + /// Retrieves the specific metadata tree associated with a resource. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="projectId">The unique identifier or slug of the project.</param> + /// <param name="resourceId">The unique identifier of the resource.</param> + /// <param name="path">Gets or sets the path of the metadata tree. (optional)</param> + /// <param name="format">Gets or sets the format of the RDF data. (optional)</param> + /// <param name="includeExtractedMetadata">Gets or sets if extracted metadata should be included. (optional)</param> + /// <param name="varVersion">Gets or sets the desired version. If the version is null, the newest will be returned. (optional)</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of MetadataTreeDtoResponse</returns> + public async System.Threading.Tasks.Task<MetadataTreeDtoResponse> GetSpecificMetadataTreeAsync(string projectId, Guid resourceId, string? path = default(string?), RdfFormat? format = default(RdfFormat?), bool? includeExtractedMetadata = default(bool?), int? varVersion = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + Coscine.ApiClient.Core.Client.ApiResponse<MetadataTreeDtoResponse> localVarResponse = await GetSpecificMetadataTreeWithHttpInfoAsync(projectId, resourceId, path, format, includeExtractedMetadata, varVersion, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// <summary> + /// Retrieves the specific metadata tree associated with a resource. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="projectId">The unique identifier or slug of the project.</param> + /// <param name="resourceId">The unique identifier of the resource.</param> + /// <param name="path">Gets or sets the path of the metadata tree. (optional)</param> + /// <param name="format">Gets or sets the format of the RDF data. (optional)</param> + /// <param name="includeExtractedMetadata">Gets or sets if extracted metadata should be included. (optional)</param> + /// <param name="varVersion">Gets or sets the desired version. If the version is null, the newest will be returned. (optional)</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of ApiResponse (MetadataTreeDtoResponse)</returns> + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<MetadataTreeDtoResponse>> GetSpecificMetadataTreeWithHttpInfoAsync(string projectId, Guid resourceId, string? path = default(string?), RdfFormat? format = default(RdfFormat?), bool? includeExtractedMetadata = default(bool?), int? varVersion = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'projectId' is set + if (projectId == null) + { + throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'projectId' when calling TreeApi->GetSpecificMetadataTree"); + } + + + Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json", + "text/json" + }; + + var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("projectId", Coscine.ApiClient.Core.Client.ClientUtils.ParameterToString(projectId)); // path parameter + localVarRequestOptions.PathParameters.Add("resourceId", Coscine.ApiClient.Core.Client.ClientUtils.ParameterToString(resourceId)); // path parameter + if (path != null) + { + localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "Path", path)); + } + if (format != null) + { + localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "Format", format)); + } + if (includeExtractedMetadata != null) + { + localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "IncludeExtractedMetadata", includeExtractedMetadata)); + } + if (varVersion != null) + { + localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "Version", varVersion)); + } + + localVarRequestOptions.Operation = "TreeApi.GetSpecificMetadataTree"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (Bearer) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync<MetadataTreeDtoResponse>("/api/v2/projects/{projectId}/resources/{resourceId}/trees/metadata/specific", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetSpecificMetadataTree", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// <summary> + /// Updates an existing metadata tree of a resource. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The unique identifier or slug of the project.</param> @@ -1237,7 +1540,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Updates an existing metadata tree of a resource. + /// Updates an existing metadata tree of a resource. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The unique identifier or slug of the project.</param> @@ -1305,7 +1608,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Updates an existing metadata tree of a resource. + /// Updates an existing metadata tree of a resource. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The unique identifier or slug of the project.</param> @@ -1320,7 +1623,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Updates an existing metadata tree of a resource. + /// Updates an existing metadata tree of a resource. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="projectId">The unique identifier or slug of the project.</param> diff --git a/src/Coscine.ApiClient.Core/Api/UserApi.cs b/src/Coscine.ApiClient.Core/Api/UserApi.cs index 8eb74e36962cb8c3ec9d703d6b6e7e520214148e..c3ecec627544eca996891c8e42a29832ff56a1fd 100644 --- a/src/Coscine.ApiClient.Core/Api/UserApi.cs +++ b/src/Coscine.ApiClient.Core/Api/UserApi.cs @@ -48,6 +48,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves all users. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="searchTerm">Gets or sets the search term.</param> /// <param name="orderBy">Gets or sets the field by which the search results are ordered. Defaults to \"firstName\". (optional)</param> @@ -59,7 +62,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all users. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="searchTerm">Gets or sets the search term.</param> @@ -103,7 +106,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all users. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="searchTerm">Gets or sets the search term.</param> @@ -117,7 +120,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all users. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="searchTerm">Gets or sets the search term.</param> @@ -379,7 +382,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all users. + /// Retrieves all users. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="searchTerm">Gets or sets the search term.</param> @@ -393,7 +396,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all users. + /// Retrieves all users. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="searchTerm">Gets or sets the search term.</param> @@ -461,7 +464,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all users. + /// Retrieves all users. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="searchTerm">Gets or sets the search term.</param> @@ -476,7 +479,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all users. + /// Retrieves all users. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="searchTerm">Gets or sets the search term.</param> diff --git a/src/Coscine.ApiClient.Core/Api/VisibilityApi.cs b/src/Coscine.ApiClient.Core/Api/VisibilityApi.cs index 7c701b5f4da6241d622877f6776e3715b307be7b..85eb41e0b1114c1aeac51fbff0843e5411c30caa 100644 --- a/src/Coscine.ApiClient.Core/Api/VisibilityApi.cs +++ b/src/Coscine.ApiClient.Core/Api/VisibilityApi.cs @@ -48,6 +48,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves all visibilities. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> @@ -60,7 +63,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all visibilities. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -72,6 +75,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves a visibility by ID. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="visibilityId">The ID of the visibility.</param> /// <param name="operationIndex">Index associated with the operation.</param> @@ -82,7 +88,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a visibility by ID. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="visibilityId">The ID of the visibility.</param> @@ -125,7 +131,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all visibilities. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -140,7 +146,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves all visibilities. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -154,7 +160,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a visibility by ID. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="visibilityId">The ID of the visibility.</param> @@ -167,7 +173,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves a visibility by ID. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="visibilityId">The ID of the visibility.</param> @@ -428,7 +434,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all visibilities. + /// Retrieves all visibilities. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -443,7 +449,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all visibilities. + /// Retrieves all visibilities. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -513,7 +519,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all visibilities. + /// Retrieves all visibilities. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -529,7 +535,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves all visibilities. + /// Retrieves all visibilities. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> @@ -602,7 +608,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a visibility by ID. + /// Retrieves a visibility by ID. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="visibilityId">The ID of the visibility.</param> @@ -615,7 +621,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a visibility by ID. + /// Retrieves a visibility by ID. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="visibilityId">The ID of the visibility.</param> @@ -672,7 +678,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a visibility by ID. + /// Retrieves a visibility by ID. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="visibilityId">The ID of the visibility.</param> @@ -686,7 +692,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves a visibility by ID. + /// Retrieves a visibility by ID. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="visibilityId">The ID of the visibility.</param> diff --git a/src/Coscine.ApiClient.Core/Api/VocabularyApi.cs b/src/Coscine.ApiClient.Core/Api/VocabularyApi.cs index a0dae76e3c7153f5174fdb49e4af3b18862cc0d7..89ececdd37b5150a08de753b865304f320b67e73 100644 --- a/src/Coscine.ApiClient.Core/Api/VocabularyApi.cs +++ b/src/Coscine.ApiClient.Core/Api/VocabularyApi.cs @@ -48,6 +48,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves top-level instances from vocabularies. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="searchTerm">Gets or sets the search term used to filter vocabularies. (optional)</param> /// <param name="language">Gets or sets the language for which the vocabularies are requested. (optional)</param> @@ -62,7 +65,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves top-level instances from vocabularies. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="searchTerm">Gets or sets the search term used to filter vocabularies. (optional)</param> @@ -101,6 +104,9 @@ namespace Coscine.ApiClient.Core.Api /// <summary> /// Retrieves vocabulary instances. /// </summary> + /// <remarks> + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> + /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="varClass">Gets or sets the URI class, which is a required field.</param> /// <param name="searchTerm">Gets or sets the search term used to filter vocabulary instances. (optional)</param> @@ -116,7 +122,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves vocabulary instances. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="varClass">Gets or sets the URI class, which is a required field.</param> @@ -164,7 +170,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves top-level instances from vocabularies. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="searchTerm">Gets or sets the search term used to filter vocabularies. (optional)</param> @@ -181,7 +187,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves top-level instances from vocabularies. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="searchTerm">Gets or sets the search term used to filter vocabularies. (optional)</param> @@ -224,7 +230,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves vocabulary instances. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="varClass">Gets or sets the URI class, which is a required field.</param> @@ -242,7 +248,7 @@ namespace Coscine.ApiClient.Core.Api /// Retrieves vocabulary instances. /// </summary> /// <remarks> - /// + /// <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </remarks> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="varClass">Gets or sets the URI class, which is a required field.</param> @@ -508,7 +514,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves top-level instances from vocabularies. + /// Retrieves top-level instances from vocabularies. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="searchTerm">Gets or sets the search term used to filter vocabularies. (optional)</param> @@ -525,7 +531,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves top-level instances from vocabularies. + /// Retrieves top-level instances from vocabularies. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="searchTerm">Gets or sets the search term used to filter vocabularies. (optional)</param> @@ -605,7 +611,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves top-level instances from vocabularies. + /// Retrieves top-level instances from vocabularies. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="searchTerm">Gets or sets the search term used to filter vocabularies. (optional)</param> @@ -623,7 +629,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves top-level instances from vocabularies. + /// Retrieves top-level instances from vocabularies. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="searchTerm">Gets or sets the search term used to filter vocabularies. (optional)</param> @@ -874,7 +880,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves vocabulary instances. + /// Retrieves vocabulary instances. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="varClass">Gets or sets the URI class, which is a required field.</param> @@ -892,7 +898,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves vocabulary instances. + /// Retrieves vocabulary instances. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="varClass">Gets or sets the URI class, which is a required field.</param> @@ -980,7 +986,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves vocabulary instances. + /// Retrieves vocabulary instances. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="varClass">Gets or sets the URI class, which is a required field.</param> @@ -999,7 +1005,7 @@ namespace Coscine.ApiClient.Core.Api } /// <summary> - /// Retrieves vocabulary instances. + /// Retrieves vocabulary instances. <p><strong>Required JWT roles for access:</strong> <code></code>.</p> /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="varClass">Gets or sets the URI class, which is a required field.</param> diff --git a/src/Coscine.ApiClient.Core/Model/PidValidationDto.cs b/src/Coscine.ApiClient.Core/Model/HandleDto.cs similarity index 63% rename from src/Coscine.ApiClient.Core/Model/PidValidationDto.cs rename to src/Coscine.ApiClient.Core/Model/HandleDto.cs index ac64313b0756752e1ed39be62bbc244885273cd0..707d857d5aef80d311390f1946e64be1a6c7e351 100644 --- a/src/Coscine.ApiClient.Core/Model/PidValidationDto.cs +++ b/src/Coscine.ApiClient.Core/Model/HandleDto.cs @@ -27,34 +27,33 @@ using OpenAPIDateConverter = Coscine.ApiClient.Core.Client.OpenAPIDateConverter; namespace Coscine.ApiClient.Core.Model { /// <summary> - /// Represents a data transfer object (DTO) for validating a PID (Persistent Identifier). + /// HandleDto /// </summary> - [DataContract(Name = "PidValidationDto")] - public partial class PidValidationDto : IEquatable<PidValidationDto>, IValidatableObject + [DataContract(Name = "HandleDto")] + public partial class HandleDto : IEquatable<HandleDto>, IValidatableObject { - - /// <summary> - /// Gets or Sets Type - /// </summary> - [DataMember(Name = "type", EmitDefaultValue = false)] - public PidType? Type { get; set; } /// <summary> - /// Initializes a new instance of the <see cref="PidValidationDto" /> class. + /// Initializes a new instance of the <see cref="HandleDto" /> class. /// </summary> - /// <param name="isValid">Indicates whether the provided PID is valid..</param> - /// <param name="type">type.</param> - public PidValidationDto(bool isValid = default(bool), PidType? type = default(PidType?)) + /// <param name="pid">pid.</param> + /// <param name="values">values.</param> + public HandleDto(PidDto pid = default(PidDto), List<HandleValueDto> values = default(List<HandleValueDto>)) { - this.IsValid = isValid; - this.Type = type; + this.Pid = pid; + this.Values = values; } /// <summary> - /// Indicates whether the provided PID is valid. + /// Gets or Sets Pid + /// </summary> + [DataMember(Name = "pid", EmitDefaultValue = false)] + public PidDto Pid { get; set; } + + /// <summary> + /// Gets or Sets Values /// </summary> - /// <value>Indicates whether the provided PID is valid.</value> - [DataMember(Name = "isValid", EmitDefaultValue = true)] - public bool IsValid { get; set; } + [DataMember(Name = "values", EmitDefaultValue = false)] + public List<HandleValueDto> Values { get; set; } /// <summary> /// Returns the string presentation of the object @@ -63,9 +62,9 @@ namespace Coscine.ApiClient.Core.Model public override string ToString() { StringBuilder sb = new StringBuilder(); - sb.Append("class PidValidationDto {\n"); - sb.Append(" IsValid: ").Append(IsValid).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("class HandleDto {\n"); + sb.Append(" Pid: ").Append(Pid).Append("\n"); + sb.Append(" Values: ").Append(Values).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -86,15 +85,15 @@ namespace Coscine.ApiClient.Core.Model /// <returns>Boolean</returns> public override bool Equals(object input) { - return this.Equals(input as PidValidationDto); + return this.Equals(input as HandleDto); } /// <summary> - /// Returns true if PidValidationDto instances are equal + /// Returns true if HandleDto instances are equal /// </summary> - /// <param name="input">Instance of PidValidationDto to be compared</param> + /// <param name="input">Instance of HandleDto to be compared</param> /// <returns>Boolean</returns> - public bool Equals(PidValidationDto input) + public bool Equals(HandleDto input) { if (input == null) { @@ -102,12 +101,15 @@ namespace Coscine.ApiClient.Core.Model } return ( - this.IsValid == input.IsValid || - this.IsValid.Equals(input.IsValid) + this.Pid == input.Pid || + (this.Pid != null && + this.Pid.Equals(input.Pid)) ) && ( - this.Type == input.Type || - this.Type.Equals(input.Type) + this.Values == input.Values || + this.Values != null && + input.Values != null && + this.Values.SequenceEqual(input.Values) ); } @@ -120,8 +122,14 @@ namespace Coscine.ApiClient.Core.Model unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.IsValid.GetHashCode(); - hashCode = (hashCode * 59) + this.Type.GetHashCode(); + if (this.Pid != null) + { + hashCode = (hashCode * 59) + this.Pid.GetHashCode(); + } + if (this.Values != null) + { + hashCode = (hashCode * 59) + this.Values.GetHashCode(); + } return hashCode; } } diff --git a/src/Coscine.ApiClient.Core/Model/PidValidationDtoResponse.cs b/src/Coscine.ApiClient.Core/Model/HandleDtoResponse.cs similarity index 86% rename from src/Coscine.ApiClient.Core/Model/PidValidationDtoResponse.cs rename to src/Coscine.ApiClient.Core/Model/HandleDtoResponse.cs index 2230b455757e5c714dcf42f5c2dbf7d94d3f872a..0dfefd269991f53696ecc0d075dfdad696c45ea5 100644 --- a/src/Coscine.ApiClient.Core/Model/PidValidationDtoResponse.cs +++ b/src/Coscine.ApiClient.Core/Model/HandleDtoResponse.cs @@ -27,18 +27,18 @@ using OpenAPIDateConverter = Coscine.ApiClient.Core.Client.OpenAPIDateConverter; namespace Coscine.ApiClient.Core.Model { /// <summary> - /// PidValidationDtoResponse + /// HandleDtoResponse /// </summary> - [DataContract(Name = "PidValidationDtoResponse")] - public partial class PidValidationDtoResponse : IEquatable<PidValidationDtoResponse>, IValidatableObject + [DataContract(Name = "HandleDtoResponse")] + public partial class HandleDtoResponse : IEquatable<HandleDtoResponse>, IValidatableObject { /// <summary> - /// Initializes a new instance of the <see cref="PidValidationDtoResponse" /> class. + /// Initializes a new instance of the <see cref="HandleDtoResponse" /> class. /// </summary> /// <param name="data">data.</param> /// <param name="statusCode">statusCode.</param> /// <param name="traceId">traceId.</param> - public PidValidationDtoResponse(PidValidationDto data = default(PidValidationDto), int? statusCode = default(int?), string traceId = default(string)) + public HandleDtoResponse(HandleDto data = default(HandleDto), int? statusCode = default(int?), string traceId = default(string)) { this.Data = data; this.StatusCode = statusCode; @@ -49,7 +49,7 @@ namespace Coscine.ApiClient.Core.Model /// Gets or Sets Data /// </summary> [DataMember(Name = "data", EmitDefaultValue = false)] - public PidValidationDto Data { get; set; } + public HandleDto Data { get; set; } /// <summary> /// Gets or Sets IsSuccess @@ -84,7 +84,7 @@ namespace Coscine.ApiClient.Core.Model public override string ToString() { StringBuilder sb = new StringBuilder(); - sb.Append("class PidValidationDtoResponse {\n"); + sb.Append("class HandleDtoResponse {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append(" IsSuccess: ").Append(IsSuccess).Append("\n"); sb.Append(" StatusCode: ").Append(StatusCode).Append("\n"); @@ -109,15 +109,15 @@ namespace Coscine.ApiClient.Core.Model /// <returns>Boolean</returns> public override bool Equals(object input) { - return this.Equals(input as PidValidationDtoResponse); + return this.Equals(input as HandleDtoResponse); } /// <summary> - /// Returns true if PidValidationDtoResponse instances are equal + /// Returns true if HandleDtoResponse instances are equal /// </summary> - /// <param name="input">Instance of PidValidationDtoResponse to be compared</param> + /// <param name="input">Instance of HandleDtoResponse to be compared</param> /// <returns>Boolean</returns> - public bool Equals(PidValidationDtoResponse input) + public bool Equals(HandleDtoResponse input) { if (input == null) { diff --git a/src/Coscine.ApiClient.Core/Model/HandleForUpdateDto.cs b/src/Coscine.ApiClient.Core/Model/HandleForUpdateDto.cs new file mode 100644 index 0000000000000000000000000000000000000000..00385b21167b583bf08852048775b70538b71aab --- /dev/null +++ b/src/Coscine.ApiClient.Core/Model/HandleForUpdateDto.cs @@ -0,0 +1,130 @@ +/* + * Coscine Web API + * + * Coscine (short for <b>CO</b>llaborative <b>SC</b>ientific <b>IN</b>tegration <b>E</b>nvironment) is the research data management platform for your research project. + * + * The version of the OpenAPI document: 2.0 + * Contact: servicedesk@itc.rwth-aachen.de + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Coscine.ApiClient.Core.Client.OpenAPIDateConverter; + +namespace Coscine.ApiClient.Core.Model +{ + /// <summary> + /// HandleForUpdateDto + /// </summary> + [DataContract(Name = "HandleForUpdateDto")] + public partial class HandleForUpdateDto : IEquatable<HandleForUpdateDto>, IValidatableObject + { + /// <summary> + /// Initializes a new instance of the <see cref="HandleForUpdateDto" /> class. + /// </summary> + /// <param name="values">values.</param> + public HandleForUpdateDto(List<HandleValueForUpdateDto> values = default(List<HandleValueForUpdateDto>)) + { + this.Values = values; + } + + /// <summary> + /// Gets or Sets Values + /// </summary> + [DataMember(Name = "values", EmitDefaultValue = false)] + public List<HandleValueForUpdateDto> Values { get; set; } + + /// <summary> + /// Returns the string presentation of the object + /// </summary> + /// <returns>String presentation of the object</returns> + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class HandleForUpdateDto {\n"); + sb.Append(" Values: ").Append(Values).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// <summary> + /// Returns the JSON string presentation of the object + /// </summary> + /// <returns>JSON string presentation of the object</returns> + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// <summary> + /// Returns true if objects are equal + /// </summary> + /// <param name="input">Object to be compared</param> + /// <returns>Boolean</returns> + public override bool Equals(object input) + { + return this.Equals(input as HandleForUpdateDto); + } + + /// <summary> + /// Returns true if HandleForUpdateDto instances are equal + /// </summary> + /// <param name="input">Instance of HandleForUpdateDto to be compared</param> + /// <returns>Boolean</returns> + public bool Equals(HandleForUpdateDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Values == input.Values || + this.Values != null && + input.Values != null && + this.Values.SequenceEqual(input.Values) + ); + } + + /// <summary> + /// Gets the hash code + /// </summary> + /// <returns>Hash code</returns> + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Values != null) + { + hashCode = (hashCode * 59) + this.Values.GetHashCode(); + } + return hashCode; + } + } + + /// <summary> + /// To validate all properties of the instance + /// </summary> + /// <param name="validationContext">Validation context</param> + /// <returns>Validation Result</returns> + IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/Coscine.ApiClient.Core/Model/HandleValueDto.cs b/src/Coscine.ApiClient.Core/Model/HandleValueDto.cs new file mode 100644 index 0000000000000000000000000000000000000000..45c52f88794e2328ea2fc3a00e9a44b85c37ba50 --- /dev/null +++ b/src/Coscine.ApiClient.Core/Model/HandleValueDto.cs @@ -0,0 +1,262 @@ +/* + * Coscine Web API + * + * Coscine (short for <b>CO</b>llaborative <b>SC</b>ientific <b>IN</b>tegration <b>E</b>nvironment) is the research data management platform for your research project. + * + * The version of the OpenAPI document: 2.0 + * Contact: servicedesk@itc.rwth-aachen.de + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Coscine.ApiClient.Core.Client.OpenAPIDateConverter; + +namespace Coscine.ApiClient.Core.Model +{ + /// <summary> + /// HandleValueDto + /// </summary> + [DataContract(Name = "HandleValueDto")] + public partial class HandleValueDto : IEquatable<HandleValueDto>, IValidatableObject + { + /// <summary> + /// Initializes a new instance of the <see cref="HandleValueDto" /> class. + /// </summary> + /// <param name="idx">idx.</param> + /// <param name="type">type.</param> + /// <param name="parsedData">parsedData.</param> + /// <param name="data">data.</param> + /// <param name="timestamp">timestamp.</param> + /// <param name="ttlType">ttlType.</param> + /// <param name="ttl">ttl.</param> + /// <param name="refs">refs.</param> + /// <param name="privs">privs.</param> + public HandleValueDto(int idx = default(int), string type = default(string), Object parsedData = default(Object), string data = default(string), DateTime timestamp = default(DateTime), int ttlType = default(int), int ttl = default(int), List<Object> refs = default(List<Object>), string privs = default(string)) + { + this.Idx = idx; + this.Type = type; + this.ParsedData = parsedData; + this.Data = data; + this.Timestamp = timestamp; + this.TtlType = ttlType; + this.Ttl = ttl; + this.Refs = refs; + this.Privs = privs; + } + + /// <summary> + /// Gets or Sets Idx + /// </summary> + [DataMember(Name = "idx", EmitDefaultValue = false)] + public int Idx { get; set; } + + /// <summary> + /// Gets or Sets Type + /// </summary> + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// <summary> + /// Gets or Sets ParsedData + /// </summary> + [DataMember(Name = "parsed_data", EmitDefaultValue = true)] + public Object ParsedData { get; set; } + + /// <summary> + /// Gets or Sets Data + /// </summary> + [DataMember(Name = "data", EmitDefaultValue = false)] + public string Data { get; set; } + + /// <summary> + /// Gets or Sets Timestamp + /// </summary> + [DataMember(Name = "timestamp", EmitDefaultValue = false)] + public DateTime Timestamp { get; set; } + + /// <summary> + /// Gets or Sets TtlType + /// </summary> + [DataMember(Name = "ttl_type", EmitDefaultValue = false)] + public int TtlType { get; set; } + + /// <summary> + /// Gets or Sets Ttl + /// </summary> + [DataMember(Name = "ttl", EmitDefaultValue = false)] + public int Ttl { get; set; } + + /// <summary> + /// Gets or Sets Refs + /// </summary> + [DataMember(Name = "refs", EmitDefaultValue = false)] + public List<Object> Refs { get; set; } + + /// <summary> + /// Gets or Sets Privs + /// </summary> + [DataMember(Name = "privs", EmitDefaultValue = false)] + public string Privs { get; set; } + + /// <summary> + /// Returns the string presentation of the object + /// </summary> + /// <returns>String presentation of the object</returns> + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class HandleValueDto {\n"); + sb.Append(" Idx: ").Append(Idx).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" ParsedData: ").Append(ParsedData).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" Timestamp: ").Append(Timestamp).Append("\n"); + sb.Append(" TtlType: ").Append(TtlType).Append("\n"); + sb.Append(" Ttl: ").Append(Ttl).Append("\n"); + sb.Append(" Refs: ").Append(Refs).Append("\n"); + sb.Append(" Privs: ").Append(Privs).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// <summary> + /// Returns the JSON string presentation of the object + /// </summary> + /// <returns>JSON string presentation of the object</returns> + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// <summary> + /// Returns true if objects are equal + /// </summary> + /// <param name="input">Object to be compared</param> + /// <returns>Boolean</returns> + public override bool Equals(object input) + { + return this.Equals(input as HandleValueDto); + } + + /// <summary> + /// Returns true if HandleValueDto instances are equal + /// </summary> + /// <param name="input">Instance of HandleValueDto to be compared</param> + /// <returns>Boolean</returns> + public bool Equals(HandleValueDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Idx == input.Idx || + this.Idx.Equals(input.Idx) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.ParsedData == input.ParsedData || + (this.ParsedData != null && + this.ParsedData.Equals(input.ParsedData)) + ) && + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ) && + ( + this.Timestamp == input.Timestamp || + (this.Timestamp != null && + this.Timestamp.Equals(input.Timestamp)) + ) && + ( + this.TtlType == input.TtlType || + this.TtlType.Equals(input.TtlType) + ) && + ( + this.Ttl == input.Ttl || + this.Ttl.Equals(input.Ttl) + ) && + ( + this.Refs == input.Refs || + this.Refs != null && + input.Refs != null && + this.Refs.SequenceEqual(input.Refs) + ) && + ( + this.Privs == input.Privs || + (this.Privs != null && + this.Privs.Equals(input.Privs)) + ); + } + + /// <summary> + /// Gets the hash code + /// </summary> + /// <returns>Hash code</returns> + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.Idx.GetHashCode(); + if (this.Type != null) + { + hashCode = (hashCode * 59) + this.Type.GetHashCode(); + } + if (this.ParsedData != null) + { + hashCode = (hashCode * 59) + this.ParsedData.GetHashCode(); + } + if (this.Data != null) + { + hashCode = (hashCode * 59) + this.Data.GetHashCode(); + } + if (this.Timestamp != null) + { + hashCode = (hashCode * 59) + this.Timestamp.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TtlType.GetHashCode(); + hashCode = (hashCode * 59) + this.Ttl.GetHashCode(); + if (this.Refs != null) + { + hashCode = (hashCode * 59) + this.Refs.GetHashCode(); + } + if (this.Privs != null) + { + hashCode = (hashCode * 59) + this.Privs.GetHashCode(); + } + return hashCode; + } + } + + /// <summary> + /// To validate all properties of the instance + /// </summary> + /// <param name="validationContext">Validation context</param> + /// <returns>Validation Result</returns> + IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/Coscine.ApiClient.Core/Model/HandleValueForUpdateDto.cs b/src/Coscine.ApiClient.Core/Model/HandleValueForUpdateDto.cs new file mode 100644 index 0000000000000000000000000000000000000000..fcb1ca3e57417cc2b255615e3894ed216cac5ef3 --- /dev/null +++ b/src/Coscine.ApiClient.Core/Model/HandleValueForUpdateDto.cs @@ -0,0 +1,164 @@ +/* + * Coscine Web API + * + * Coscine (short for <b>CO</b>llaborative <b>SC</b>ientific <b>IN</b>tegration <b>E</b>nvironment) is the research data management platform for your research project. + * + * The version of the OpenAPI document: 2.0 + * Contact: servicedesk@itc.rwth-aachen.de + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Coscine.ApiClient.Core.Client.OpenAPIDateConverter; + +namespace Coscine.ApiClient.Core.Model +{ + /// <summary> + /// Data transfer object (DTO) representing updating a handle. + /// </summary> + [DataContract(Name = "HandleValueForUpdateDto")] + public partial class HandleValueForUpdateDto : IEquatable<HandleValueForUpdateDto>, IValidatableObject + { + /// <summary> + /// Initializes a new instance of the <see cref="HandleValueForUpdateDto" /> class. + /// </summary> + /// <param name="type">The data type of the handle..</param> + /// <param name="parsedData">The parsed data of the handle..</param> + /// <param name="idx">The id of the handle..</param> + public HandleValueForUpdateDto(string type = default(string), Object parsedData = default(Object), int idx = default(int)) + { + this.Type = type; + this.ParsedData = parsedData; + this.Idx = idx; + } + + /// <summary> + /// The data type of the handle. + /// </summary> + /// <value>The data type of the handle.</value> + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// <summary> + /// The parsed data of the handle. + /// </summary> + /// <value>The parsed data of the handle.</value> + [DataMember(Name = "parsed_data", EmitDefaultValue = true)] + public Object ParsedData { get; set; } + + /// <summary> + /// The id of the handle. + /// </summary> + /// <value>The id of the handle.</value> + [DataMember(Name = "idx", EmitDefaultValue = false)] + public int Idx { get; set; } + + /// <summary> + /// Returns the string presentation of the object + /// </summary> + /// <returns>String presentation of the object</returns> + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class HandleValueForUpdateDto {\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" ParsedData: ").Append(ParsedData).Append("\n"); + sb.Append(" Idx: ").Append(Idx).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// <summary> + /// Returns the JSON string presentation of the object + /// </summary> + /// <returns>JSON string presentation of the object</returns> + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// <summary> + /// Returns true if objects are equal + /// </summary> + /// <param name="input">Object to be compared</param> + /// <returns>Boolean</returns> + public override bool Equals(object input) + { + return this.Equals(input as HandleValueForUpdateDto); + } + + /// <summary> + /// Returns true if HandleValueForUpdateDto instances are equal + /// </summary> + /// <param name="input">Instance of HandleValueForUpdateDto to be compared</param> + /// <returns>Boolean</returns> + public bool Equals(HandleValueForUpdateDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.ParsedData == input.ParsedData || + (this.ParsedData != null && + this.ParsedData.Equals(input.ParsedData)) + ) && + ( + this.Idx == input.Idx || + this.Idx.Equals(input.Idx) + ); + } + + /// <summary> + /// Gets the hash code + /// </summary> + /// <returns>Hash code</returns> + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Type != null) + { + hashCode = (hashCode * 59) + this.Type.GetHashCode(); + } + if (this.ParsedData != null) + { + hashCode = (hashCode * 59) + this.ParsedData.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Idx.GetHashCode(); + return hashCode; + } + } + + /// <summary> + /// To validate all properties of the instance + /// </summary> + /// <param name="validationContext">Validation context</param> + /// <returns>Validation Result</returns> + IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/Coscine.ApiClient.Core/Model/LicenseDto.cs b/src/Coscine.ApiClient.Core/Model/LicenseDto.cs index 5dc0069f7c93a18a89d4993dfd39ff4f1890824e..534df0f76d8d4bae820246b3fd231c7673326af6 100644 --- a/src/Coscine.ApiClient.Core/Model/LicenseDto.cs +++ b/src/Coscine.ApiClient.Core/Model/LicenseDto.cs @@ -37,10 +37,12 @@ namespace Coscine.ApiClient.Core.Model /// </summary> /// <param name="id">Gets or sets the unique identifier for the license..</param> /// <param name="displayName">Gets or sets the display name of the license..</param> - public LicenseDto(Guid id = default(Guid), string displayName = default(string)) + /// <param name="url">Gets or sets the Uri of the license..</param> + public LicenseDto(Guid id = default(Guid), string displayName = default(string), string url = default(string)) { this.Id = id; this.DisplayName = displayName; + this.Url = url; } /// <summary> @@ -57,6 +59,13 @@ namespace Coscine.ApiClient.Core.Model [DataMember(Name = "displayName", EmitDefaultValue = false)] public string DisplayName { get; set; } + /// <summary> + /// Gets or sets the Uri of the license. + /// </summary> + /// <value>Gets or sets the Uri of the license.</value> + [DataMember(Name = "url", EmitDefaultValue = false)] + public string Url { get; set; } + /// <summary> /// Returns the string presentation of the object /// </summary> @@ -67,6 +76,7 @@ namespace Coscine.ApiClient.Core.Model sb.Append("class LicenseDto {\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); + sb.Append(" Url: ").Append(Url).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -111,6 +121,11 @@ namespace Coscine.ApiClient.Core.Model this.DisplayName == input.DisplayName || (this.DisplayName != null && this.DisplayName.Equals(input.DisplayName)) + ) && + ( + this.Url == input.Url || + (this.Url != null && + this.Url.Equals(input.Url)) ); } @@ -131,6 +146,10 @@ namespace Coscine.ApiClient.Core.Model { hashCode = (hashCode * 59) + this.DisplayName.GetHashCode(); } + if (this.Url != null) + { + hashCode = (hashCode * 59) + this.Url.GetHashCode(); + } return hashCode; } } diff --git a/src/Coscine.ApiClient.Core/Model/MetadataTreeDto.cs b/src/Coscine.ApiClient.Core/Model/MetadataTreeDto.cs index 65b64f8193dbb40852d330bb26b20f50e26a70a2..1b00a14663f969c63023a51d16462ed7def12e0e 100644 --- a/src/Coscine.ApiClient.Core/Model/MetadataTreeDto.cs +++ b/src/Coscine.ApiClient.Core/Model/MetadataTreeDto.cs @@ -46,13 +46,15 @@ namespace Coscine.ApiClient.Core.Model /// <param name="varVersion">Gets or sets the version associated with the metadata..</param> /// <param name="availableVersions">Gets or sets the collection of available versions related to the metadata..</param> /// <param name="definition">definition.</param> - public MetadataTreeDto(string path = default(string), TreeDataType? type = default(TreeDataType?), string varVersion = default(string), List<string> availableVersions = default(List<string>), RdfDefinitionDto definition = default(RdfDefinitionDto)) + /// <param name="extracted">extracted.</param> + public MetadataTreeDto(string path = default(string), TreeDataType? type = default(TreeDataType?), string varVersion = default(string), List<string> availableVersions = default(List<string>), RdfDefinitionDto definition = default(RdfDefinitionDto), MetadataTreeExtractedDto extracted = default(MetadataTreeExtractedDto)) { this.Path = path; this.Type = type; this.VarVersion = varVersion; this.AvailableVersions = availableVersions; this.Definition = definition; + this.Extracted = extracted; } /// <summary> @@ -82,6 +84,12 @@ namespace Coscine.ApiClient.Core.Model [DataMember(Name = "definition", EmitDefaultValue = false)] public RdfDefinitionDto Definition { get; set; } + /// <summary> + /// Gets or Sets Extracted + /// </summary> + [DataMember(Name = "extracted", EmitDefaultValue = false)] + public MetadataTreeExtractedDto Extracted { get; set; } + /// <summary> /// Returns the string presentation of the object /// </summary> @@ -95,6 +103,7 @@ namespace Coscine.ApiClient.Core.Model sb.Append(" VarVersion: ").Append(VarVersion).Append("\n"); sb.Append(" AvailableVersions: ").Append(AvailableVersions).Append("\n"); sb.Append(" Definition: ").Append(Definition).Append("\n"); + sb.Append(" Extracted: ").Append(Extracted).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -154,6 +163,11 @@ namespace Coscine.ApiClient.Core.Model this.Definition == input.Definition || (this.Definition != null && this.Definition.Equals(input.Definition)) + ) && + ( + this.Extracted == input.Extracted || + (this.Extracted != null && + this.Extracted.Equals(input.Extracted)) ); } @@ -183,6 +197,10 @@ namespace Coscine.ApiClient.Core.Model { hashCode = (hashCode * 59) + this.Definition.GetHashCode(); } + if (this.Extracted != null) + { + hashCode = (hashCode * 59) + this.Extracted.GetHashCode(); + } return hashCode; } } diff --git a/src/Coscine.ApiClient.Core/Model/MetadataTreeExtractedDto.cs b/src/Coscine.ApiClient.Core/Model/MetadataTreeExtractedDto.cs new file mode 100644 index 0000000000000000000000000000000000000000..369e8cec22108128728c4c770214140fcc3e3a9c --- /dev/null +++ b/src/Coscine.ApiClient.Core/Model/MetadataTreeExtractedDto.cs @@ -0,0 +1,200 @@ +/* + * Coscine Web API + * + * Coscine (short for <b>CO</b>llaborative <b>SC</b>ientific <b>IN</b>tegration <b>E</b>nvironment) is the research data management platform for your research project. + * + * The version of the OpenAPI document: 2.0 + * Contact: servicedesk@itc.rwth-aachen.de + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Coscine.ApiClient.Core.Client.OpenAPIDateConverter; + +namespace Coscine.ApiClient.Core.Model +{ + /// <summary> + /// Represents a data transfer object (DTO) for extracted metadata within a tree structure, extending the base TreeDto. + /// </summary> + [DataContract(Name = "MetadataTreeExtractedDto")] + public partial class MetadataTreeExtractedDto : IEquatable<MetadataTreeExtractedDto>, IValidatableObject + { + + /// <summary> + /// Gets or Sets Type + /// </summary> + [DataMember(Name = "type", EmitDefaultValue = false)] + public TreeDataType? Type { get; set; } + /// <summary> + /// Initializes a new instance of the <see cref="MetadataTreeExtractedDto" /> class. + /// </summary> + /// <param name="path">The path of the tree item..</param> + /// <param name="type">type.</param> + /// <param name="metadataId">Gets the identifier of the metadata extraction graph..</param> + /// <param name="rawDataId">Gets the identifier of the raw data extraction graph..</param> + /// <param name="definition">definition.</param> + public MetadataTreeExtractedDto(string path = default(string), TreeDataType? type = default(TreeDataType?), string metadataId = default(string), string rawDataId = default(string), RdfDefinitionDto definition = default(RdfDefinitionDto)) + { + this.Path = path; + this.Type = type; + this.MetadataId = metadataId; + this.RawDataId = rawDataId; + this.Definition = definition; + } + + /// <summary> + /// The path of the tree item. + /// </summary> + /// <value>The path of the tree item.</value> + [DataMember(Name = "path", EmitDefaultValue = false)] + public string Path { get; set; } + + /// <summary> + /// Gets the identifier of the metadata extraction graph. + /// </summary> + /// <value>Gets the identifier of the metadata extraction graph.</value> + [DataMember(Name = "metadataId", EmitDefaultValue = false)] + public string MetadataId { get; set; } + + /// <summary> + /// Gets the identifier of the raw data extraction graph. + /// </summary> + /// <value>Gets the identifier of the raw data extraction graph.</value> + [DataMember(Name = "rawDataId", EmitDefaultValue = true)] + public string RawDataId { get; set; } + + /// <summary> + /// Gets or Sets Definition + /// </summary> + [DataMember(Name = "definition", EmitDefaultValue = false)] + public RdfDefinitionDto Definition { get; set; } + + /// <summary> + /// Returns the string presentation of the object + /// </summary> + /// <returns>String presentation of the object</returns> + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class MetadataTreeExtractedDto {\n"); + sb.Append(" Path: ").Append(Path).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" MetadataId: ").Append(MetadataId).Append("\n"); + sb.Append(" RawDataId: ").Append(RawDataId).Append("\n"); + sb.Append(" Definition: ").Append(Definition).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// <summary> + /// Returns the JSON string presentation of the object + /// </summary> + /// <returns>JSON string presentation of the object</returns> + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// <summary> + /// Returns true if objects are equal + /// </summary> + /// <param name="input">Object to be compared</param> + /// <returns>Boolean</returns> + public override bool Equals(object input) + { + return this.Equals(input as MetadataTreeExtractedDto); + } + + /// <summary> + /// Returns true if MetadataTreeExtractedDto instances are equal + /// </summary> + /// <param name="input">Instance of MetadataTreeExtractedDto to be compared</param> + /// <returns>Boolean</returns> + public bool Equals(MetadataTreeExtractedDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Path == input.Path || + (this.Path != null && + this.Path.Equals(input.Path)) + ) && + ( + this.Type == input.Type || + this.Type.Equals(input.Type) + ) && + ( + this.MetadataId == input.MetadataId || + (this.MetadataId != null && + this.MetadataId.Equals(input.MetadataId)) + ) && + ( + this.RawDataId == input.RawDataId || + (this.RawDataId != null && + this.RawDataId.Equals(input.RawDataId)) + ) && + ( + this.Definition == input.Definition || + (this.Definition != null && + this.Definition.Equals(input.Definition)) + ); + } + + /// <summary> + /// Gets the hash code + /// </summary> + /// <returns>Hash code</returns> + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Path != null) + { + hashCode = (hashCode * 59) + this.Path.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Type.GetHashCode(); + if (this.MetadataId != null) + { + hashCode = (hashCode * 59) + this.MetadataId.GetHashCode(); + } + if (this.RawDataId != null) + { + hashCode = (hashCode * 59) + this.RawDataId.GetHashCode(); + } + if (this.Definition != null) + { + hashCode = (hashCode * 59) + this.Definition.GetHashCode(); + } + return hashCode; + } + } + + /// <summary> + /// To validate all properties of the instance + /// </summary> + /// <param name="validationContext">Validation context</param> + /// <returns>Validation Result</returns> + IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/Coscine.ApiClient.Core/Model/OrganizationDto.cs b/src/Coscine.ApiClient.Core/Model/OrganizationDto.cs index 4289874ffda55540f08fa3a50541bfe02d889e8d..4b65d76868d8a30c65f60f291df327ad6ff239fa 100644 --- a/src/Coscine.ApiClient.Core/Model/OrganizationDto.cs +++ b/src/Coscine.ApiClient.Core/Model/OrganizationDto.cs @@ -38,11 +38,13 @@ namespace Coscine.ApiClient.Core.Model /// <param name="uri">The ROR (Research Organization Registry) ID of the organization..</param> /// <param name="displayName">The display name of the organization..</param> /// <param name="email">The email address of the organization..</param> - public OrganizationDto(string uri = default(string), string displayName = default(string), string email = default(string)) + /// <param name="publicationAdvisoryService">publicationAdvisoryService.</param> + public OrganizationDto(string uri = default(string), string displayName = default(string), string email = default(string), PublicationAdvisoryServiceDto publicationAdvisoryService = default(PublicationAdvisoryServiceDto)) { this.Uri = uri; this.DisplayName = displayName; this.Email = email; + this.PublicationAdvisoryService = publicationAdvisoryService; } /// <summary> @@ -66,6 +68,12 @@ namespace Coscine.ApiClient.Core.Model [DataMember(Name = "email", EmitDefaultValue = true)] public string Email { get; set; } + /// <summary> + /// Gets or Sets PublicationAdvisoryService + /// </summary> + [DataMember(Name = "publicationAdvisoryService", EmitDefaultValue = false)] + public PublicationAdvisoryServiceDto PublicationAdvisoryService { get; set; } + /// <summary> /// Returns the string presentation of the object /// </summary> @@ -77,6 +85,7 @@ namespace Coscine.ApiClient.Core.Model sb.Append(" Uri: ").Append(Uri).Append("\n"); sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); sb.Append(" Email: ").Append(Email).Append("\n"); + sb.Append(" PublicationAdvisoryService: ").Append(PublicationAdvisoryService).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -126,6 +135,11 @@ namespace Coscine.ApiClient.Core.Model this.Email == input.Email || (this.Email != null && this.Email.Equals(input.Email)) + ) && + ( + this.PublicationAdvisoryService == input.PublicationAdvisoryService || + (this.PublicationAdvisoryService != null && + this.PublicationAdvisoryService.Equals(input.PublicationAdvisoryService)) ); } @@ -150,6 +164,10 @@ namespace Coscine.ApiClient.Core.Model { hashCode = (hashCode * 59) + this.Email.GetHashCode(); } + if (this.PublicationAdvisoryService != null) + { + hashCode = (hashCode * 59) + this.PublicationAdvisoryService.GetHashCode(); + } return hashCode; } } diff --git a/src/Coscine.ApiClient.Core/Model/PidDto.cs b/src/Coscine.ApiClient.Core/Model/PidDto.cs new file mode 100644 index 0000000000000000000000000000000000000000..7076c44b48def30814daf8a72028f9f52d738c8d --- /dev/null +++ b/src/Coscine.ApiClient.Core/Model/PidDto.cs @@ -0,0 +1,203 @@ +/* + * Coscine Web API + * + * Coscine (short for <b>CO</b>llaborative <b>SC</b>ientific <b>IN</b>tegration <b>E</b>nvironment) is the research data management platform for your research project. + * + * The version of the OpenAPI document: 2.0 + * Contact: servicedesk@itc.rwth-aachen.de + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Coscine.ApiClient.Core.Client.OpenAPIDateConverter; + +namespace Coscine.ApiClient.Core.Model +{ + /// <summary> + /// Represents a data transfer object (DTO) for a PID (Persistent Identifier). + /// </summary> + [DataContract(Name = "PidDto")] + public partial class PidDto : IEquatable<PidDto>, IValidatableObject + { + + /// <summary> + /// Gets or Sets Type + /// </summary> + [DataMember(Name = "type", EmitDefaultValue = false)] + public PidType? Type { get; set; } + /// <summary> + /// Initializes a new instance of the <see cref="PidDto" /> class. + /// </summary> + /// <param name="prefix">Gets or sets the prefix of the PID..</param> + /// <param name="suffix">Gets or sets the suffix of the PID..</param> + /// <param name="type">type.</param> + /// <param name="isEntityValid">Gets or sets a value indicating whether the linked entity is considered valid..</param> + public PidDto(string prefix = default(string), string suffix = default(string), PidType? type = default(PidType?), bool isEntityValid = default(bool)) + { + this.Prefix = prefix; + this.Suffix = suffix; + this.Type = type; + this.IsEntityValid = isEntityValid; + } + + /// <summary> + /// Gets or sets the prefix of the PID. + /// </summary> + /// <value>Gets or sets the prefix of the PID.</value> + [DataMember(Name = "prefix", EmitDefaultValue = false)] + public string Prefix { get; set; } + + /// <summary> + /// Gets or sets the suffix of the PID. + /// </summary> + /// <value>Gets or sets the suffix of the PID.</value> + [DataMember(Name = "suffix", EmitDefaultValue = false)] + public string Suffix { get; set; } + + /// <summary> + /// Gets the constructed PID by combining the prefix and suffix (\"{Prefix}/{Suffix}\"). + /// </summary> + /// <value>Gets the constructed PID by combining the prefix and suffix (\"{Prefix}/{Suffix}\").</value> + [DataMember(Name = "identifier", EmitDefaultValue = false)] + public string Identifier { get; private set; } + + /// <summary> + /// Returns false as Identifier should not be serialized given that it's read-only. + /// </summary> + /// <returns>false (boolean)</returns> + public bool ShouldSerializeIdentifier() + { + return false; + } + /// <summary> + /// Gets or sets a value indicating whether the linked entity is considered valid. + /// </summary> + /// <value>Gets or sets a value indicating whether the linked entity is considered valid.</value> + [DataMember(Name = "isEntityValid", EmitDefaultValue = true)] + public bool IsEntityValid { get; set; } + + /// <summary> + /// Returns the string presentation of the object + /// </summary> + /// <returns>String presentation of the object</returns> + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PidDto {\n"); + sb.Append(" Prefix: ").Append(Prefix).Append("\n"); + sb.Append(" Suffix: ").Append(Suffix).Append("\n"); + sb.Append(" Identifier: ").Append(Identifier).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" IsEntityValid: ").Append(IsEntityValid).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// <summary> + /// Returns the JSON string presentation of the object + /// </summary> + /// <returns>JSON string presentation of the object</returns> + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// <summary> + /// Returns true if objects are equal + /// </summary> + /// <param name="input">Object to be compared</param> + /// <returns>Boolean</returns> + public override bool Equals(object input) + { + return this.Equals(input as PidDto); + } + + /// <summary> + /// Returns true if PidDto instances are equal + /// </summary> + /// <param name="input">Instance of PidDto to be compared</param> + /// <returns>Boolean</returns> + public bool Equals(PidDto input) + { + if (input == null) + { + return false; + } + return + ( + this.Prefix == input.Prefix || + (this.Prefix != null && + this.Prefix.Equals(input.Prefix)) + ) && + ( + this.Suffix == input.Suffix || + (this.Suffix != null && + this.Suffix.Equals(input.Suffix)) + ) && + ( + this.Identifier == input.Identifier || + (this.Identifier != null && + this.Identifier.Equals(input.Identifier)) + ) && + ( + this.Type == input.Type || + this.Type.Equals(input.Type) + ) && + ( + this.IsEntityValid == input.IsEntityValid || + this.IsEntityValid.Equals(input.IsEntityValid) + ); + } + + /// <summary> + /// Gets the hash code + /// </summary> + /// <returns>Hash code</returns> + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Prefix != null) + { + hashCode = (hashCode * 59) + this.Prefix.GetHashCode(); + } + if (this.Suffix != null) + { + hashCode = (hashCode * 59) + this.Suffix.GetHashCode(); + } + if (this.Identifier != null) + { + hashCode = (hashCode * 59) + this.Identifier.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Type.GetHashCode(); + hashCode = (hashCode * 59) + this.IsEntityValid.GetHashCode(); + return hashCode; + } + } + + /// <summary> + /// To validate all properties of the instance + /// </summary> + /// <param name="validationContext">Validation context</param> + /// <returns>Validation Result</returns> + IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/Coscine.ApiClient.Core/Model/PidDtoPagedResponse.cs b/src/Coscine.ApiClient.Core/Model/PidDtoPagedResponse.cs new file mode 100644 index 0000000000000000000000000000000000000000..d4f3cb14fe525e5a454b840949ad365f6cb9f1ab --- /dev/null +++ b/src/Coscine.ApiClient.Core/Model/PidDtoPagedResponse.cs @@ -0,0 +1,204 @@ +/* + * Coscine Web API + * + * Coscine (short for <b>CO</b>llaborative <b>SC</b>ientific <b>IN</b>tegration <b>E</b>nvironment) is the research data management platform for your research project. + * + * The version of the OpenAPI document: 2.0 + * Contact: servicedesk@itc.rwth-aachen.de + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Coscine.ApiClient.Core.Client.OpenAPIDateConverter; + +namespace Coscine.ApiClient.Core.Model +{ + /// <summary> + /// PidDtoPagedResponse + /// </summary> + [DataContract(Name = "PidDtoPagedResponse")] + public partial class PidDtoPagedResponse : IEquatable<PidDtoPagedResponse>, IValidatableObject + { + /// <summary> + /// Initializes a new instance of the <see cref="PidDtoPagedResponse" /> class. + /// </summary> + /// <param name="data">data.</param> + /// <param name="statusCode">statusCode.</param> + /// <param name="traceId">traceId.</param> + /// <param name="pagination">pagination.</param> + public PidDtoPagedResponse(List<PidDto> data = default(List<PidDto>), int? statusCode = default(int?), string traceId = default(string), Pagination pagination = default(Pagination)) + { + this.Data = data; + this.StatusCode = statusCode; + this.TraceId = traceId; + this.Pagination = pagination; + } + + /// <summary> + /// Gets or Sets Data + /// </summary> + [DataMember(Name = "data", EmitDefaultValue = true)] + public List<PidDto> Data { get; set; } + + /// <summary> + /// Gets or Sets IsSuccess + /// </summary> + [DataMember(Name = "isSuccess", EmitDefaultValue = true)] + public bool IsSuccess { get; private set; } + + /// <summary> + /// Returns false as IsSuccess should not be serialized given that it's read-only. + /// </summary> + /// <returns>false (boolean)</returns> + public bool ShouldSerializeIsSuccess() + { + return false; + } + /// <summary> + /// Gets or Sets StatusCode + /// </summary> + [DataMember(Name = "statusCode", EmitDefaultValue = true)] + public int? StatusCode { get; set; } + + /// <summary> + /// Gets or Sets TraceId + /// </summary> + [DataMember(Name = "traceId", EmitDefaultValue = true)] + public string TraceId { get; set; } + + /// <summary> + /// Gets or Sets Pagination + /// </summary> + [DataMember(Name = "pagination", EmitDefaultValue = false)] + public Pagination Pagination { get; set; } + + /// <summary> + /// Returns the string presentation of the object + /// </summary> + /// <returns>String presentation of the object</returns> + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PidDtoPagedResponse {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" IsSuccess: ").Append(IsSuccess).Append("\n"); + sb.Append(" StatusCode: ").Append(StatusCode).Append("\n"); + sb.Append(" TraceId: ").Append(TraceId).Append("\n"); + sb.Append(" Pagination: ").Append(Pagination).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// <summary> + /// Returns the JSON string presentation of the object + /// </summary> + /// <returns>JSON string presentation of the object</returns> + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// <summary> + /// Returns true if objects are equal + /// </summary> + /// <param name="input">Object to be compared</param> + /// <returns>Boolean</returns> + public override bool Equals(object input) + { + return this.Equals(input as PidDtoPagedResponse); + } + + /// <summary> + /// Returns true if PidDtoPagedResponse instances are equal + /// </summary> + /// <param name="input">Instance of PidDtoPagedResponse to be compared</param> + /// <returns>Boolean</returns> + public bool Equals(PidDtoPagedResponse input) + { + if (input == null) + { + return false; + } + return + ( + this.Data == input.Data || + this.Data != null && + input.Data != null && + this.Data.SequenceEqual(input.Data) + ) && + ( + this.IsSuccess == input.IsSuccess || + this.IsSuccess.Equals(input.IsSuccess) + ) && + ( + this.StatusCode == input.StatusCode || + (this.StatusCode != null && + this.StatusCode.Equals(input.StatusCode)) + ) && + ( + this.TraceId == input.TraceId || + (this.TraceId != null && + this.TraceId.Equals(input.TraceId)) + ) && + ( + this.Pagination == input.Pagination || + (this.Pagination != null && + this.Pagination.Equals(input.Pagination)) + ); + } + + /// <summary> + /// Gets the hash code + /// </summary> + /// <returns>Hash code</returns> + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + { + hashCode = (hashCode * 59) + this.Data.GetHashCode(); + } + hashCode = (hashCode * 59) + this.IsSuccess.GetHashCode(); + if (this.StatusCode != null) + { + hashCode = (hashCode * 59) + this.StatusCode.GetHashCode(); + } + if (this.TraceId != null) + { + hashCode = (hashCode * 59) + this.TraceId.GetHashCode(); + } + if (this.Pagination != null) + { + hashCode = (hashCode * 59) + this.Pagination.GetHashCode(); + } + return hashCode; + } + } + + /// <summary> + /// To validate all properties of the instance + /// </summary> + /// <param name="validationContext">Validation context</param> + /// <returns>Validation Result</returns> + IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/Coscine.ApiClient.Core/Model/PidDtoResponse.cs b/src/Coscine.ApiClient.Core/Model/PidDtoResponse.cs new file mode 100644 index 0000000000000000000000000000000000000000..016c69186bf530bcb040e17cc3929e9e5efd3ed9 --- /dev/null +++ b/src/Coscine.ApiClient.Core/Model/PidDtoResponse.cs @@ -0,0 +1,185 @@ +/* + * Coscine Web API + * + * Coscine (short for <b>CO</b>llaborative <b>SC</b>ientific <b>IN</b>tegration <b>E</b>nvironment) is the research data management platform for your research project. + * + * The version of the OpenAPI document: 2.0 + * Contact: servicedesk@itc.rwth-aachen.de + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Coscine.ApiClient.Core.Client.OpenAPIDateConverter; + +namespace Coscine.ApiClient.Core.Model +{ + /// <summary> + /// PidDtoResponse + /// </summary> + [DataContract(Name = "PidDtoResponse")] + public partial class PidDtoResponse : IEquatable<PidDtoResponse>, IValidatableObject + { + /// <summary> + /// Initializes a new instance of the <see cref="PidDtoResponse" /> class. + /// </summary> + /// <param name="data">data.</param> + /// <param name="statusCode">statusCode.</param> + /// <param name="traceId">traceId.</param> + public PidDtoResponse(PidDto data = default(PidDto), int? statusCode = default(int?), string traceId = default(string)) + { + this.Data = data; + this.StatusCode = statusCode; + this.TraceId = traceId; + } + + /// <summary> + /// Gets or Sets Data + /// </summary> + [DataMember(Name = "data", EmitDefaultValue = false)] + public PidDto Data { get; set; } + + /// <summary> + /// Gets or Sets IsSuccess + /// </summary> + [DataMember(Name = "isSuccess", EmitDefaultValue = true)] + public bool IsSuccess { get; private set; } + + /// <summary> + /// Returns false as IsSuccess should not be serialized given that it's read-only. + /// </summary> + /// <returns>false (boolean)</returns> + public bool ShouldSerializeIsSuccess() + { + return false; + } + /// <summary> + /// Gets or Sets StatusCode + /// </summary> + [DataMember(Name = "statusCode", EmitDefaultValue = true)] + public int? StatusCode { get; set; } + + /// <summary> + /// Gets or Sets TraceId + /// </summary> + [DataMember(Name = "traceId", EmitDefaultValue = true)] + public string TraceId { get; set; } + + /// <summary> + /// Returns the string presentation of the object + /// </summary> + /// <returns>String presentation of the object</returns> + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PidDtoResponse {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" IsSuccess: ").Append(IsSuccess).Append("\n"); + sb.Append(" StatusCode: ").Append(StatusCode).Append("\n"); + sb.Append(" TraceId: ").Append(TraceId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// <summary> + /// Returns the JSON string presentation of the object + /// </summary> + /// <returns>JSON string presentation of the object</returns> + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// <summary> + /// Returns true if objects are equal + /// </summary> + /// <param name="input">Object to be compared</param> + /// <returns>Boolean</returns> + public override bool Equals(object input) + { + return this.Equals(input as PidDtoResponse); + } + + /// <summary> + /// Returns true if PidDtoResponse instances are equal + /// </summary> + /// <param name="input">Instance of PidDtoResponse to be compared</param> + /// <returns>Boolean</returns> + public bool Equals(PidDtoResponse input) + { + if (input == null) + { + return false; + } + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ) && + ( + this.IsSuccess == input.IsSuccess || + this.IsSuccess.Equals(input.IsSuccess) + ) && + ( + this.StatusCode == input.StatusCode || + (this.StatusCode != null && + this.StatusCode.Equals(input.StatusCode)) + ) && + ( + this.TraceId == input.TraceId || + (this.TraceId != null && + this.TraceId.Equals(input.TraceId)) + ); + } + + /// <summary> + /// Gets the hash code + /// </summary> + /// <returns>Hash code</returns> + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + { + hashCode = (hashCode * 59) + this.Data.GetHashCode(); + } + hashCode = (hashCode * 59) + this.IsSuccess.GetHashCode(); + if (this.StatusCode != null) + { + hashCode = (hashCode * 59) + this.StatusCode.GetHashCode(); + } + if (this.TraceId != null) + { + hashCode = (hashCode * 59) + this.TraceId.GetHashCode(); + } + return hashCode; + } + } + + /// <summary> + /// To validate all properties of the instance + /// </summary> + /// <param name="validationContext">Validation context</param> + /// <returns>Validation Result</returns> + IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/Coscine.ApiClient.Core/Model/PublicationAdvisoryServiceDto.cs b/src/Coscine.ApiClient.Core/Model/PublicationAdvisoryServiceDto.cs new file mode 100644 index 0000000000000000000000000000000000000000..ac46c0ac3825c7e100ed8e38919b36f4e9390a01 --- /dev/null +++ b/src/Coscine.ApiClient.Core/Model/PublicationAdvisoryServiceDto.cs @@ -0,0 +1,176 @@ +/* + * Coscine Web API + * + * Coscine (short for <b>CO</b>llaborative <b>SC</b>ientific <b>IN</b>tegration <b>E</b>nvironment) is the research data management platform for your research project. + * + * The version of the OpenAPI document: 2.0 + * Contact: servicedesk@itc.rwth-aachen.de + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Coscine.ApiClient.Core.Client.OpenAPIDateConverter; + +namespace Coscine.ApiClient.Core.Model +{ + /// <summary> + /// Data transfer object (DTO) representing the publication advisory service of an organization. + /// </summary> + [DataContract(Name = "PublicationAdvisoryServiceDto")] + public partial class PublicationAdvisoryServiceDto : IEquatable<PublicationAdvisoryServiceDto>, IValidatableObject + { + /// <summary> + /// Initializes a new instance of the <see cref="PublicationAdvisoryServiceDto" /> class. + /// </summary> + [JsonConstructorAttribute] + protected PublicationAdvisoryServiceDto() { } + /// <summary> + /// Initializes a new instance of the <see cref="PublicationAdvisoryServiceDto" /> class. + /// </summary> + /// <param name="displayName">The data publication service's display name. (required).</param> + /// <param name="email">The data publication service's email address. (required).</param> + public PublicationAdvisoryServiceDto(string displayName = default(string), string email = default(string)) + { + // to ensure "displayName" is required (not null) + if (displayName == null) + { + throw new ArgumentNullException("displayName is a required property for PublicationAdvisoryServiceDto and cannot be null"); + } + this.DisplayName = displayName; + // to ensure "email" is required (not null) + if (email == null) + { + throw new ArgumentNullException("email is a required property for PublicationAdvisoryServiceDto and cannot be null"); + } + this.Email = email; + } + + /// <summary> + /// The data publication service's display name. + /// </summary> + /// <value>The data publication service's display name.</value> + [DataMember(Name = "displayName", IsRequired = true, EmitDefaultValue = true)] + public string DisplayName { get; set; } + + /// <summary> + /// The data publication service's email address. + /// </summary> + /// <value>The data publication service's email address.</value> + [DataMember(Name = "email", IsRequired = true, EmitDefaultValue = true)] + public string Email { get; set; } + + /// <summary> + /// Returns the string presentation of the object + /// </summary> + /// <returns>String presentation of the object</returns> + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PublicationAdvisoryServiceDto {\n"); + sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); + sb.Append(" Email: ").Append(Email).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// <summary> + /// Returns the JSON string presentation of the object + /// </summary> + /// <returns>JSON string presentation of the object</returns> + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// <summary> + /// Returns true if objects are equal + /// </summary> + /// <param name="input">Object to be compared</param> + /// <returns>Boolean</returns> + public override bool Equals(object input) + { + return this.Equals(input as PublicationAdvisoryServiceDto); + } + + /// <summary> + /// Returns true if PublicationAdvisoryServiceDto instances are equal + /// </summary> + /// <param name="input">Instance of PublicationAdvisoryServiceDto to be compared</param> + /// <returns>Boolean</returns> + public bool Equals(PublicationAdvisoryServiceDto input) + { + if (input == null) + { + return false; + } + return + ( + this.DisplayName == input.DisplayName || + (this.DisplayName != null && + this.DisplayName.Equals(input.DisplayName)) + ) && + ( + this.Email == input.Email || + (this.Email != null && + this.Email.Equals(input.Email)) + ); + } + + /// <summary> + /// Gets the hash code + /// </summary> + /// <returns>Hash code</returns> + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DisplayName != null) + { + hashCode = (hashCode * 59) + this.DisplayName.GetHashCode(); + } + if (this.Email != null) + { + hashCode = (hashCode * 59) + this.Email.GetHashCode(); + } + return hashCode; + } + } + + /// <summary> + /// To validate all properties of the instance + /// </summary> + /// <param name="validationContext">Validation context</param> + /// <returns>Validation Result</returns> + IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext) + { + // DisplayName (string) minLength + if (this.DisplayName != null && this.DisplayName.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DisplayName, length must be greater than 1.", new [] { "DisplayName" }); + } + + // Email (string) minLength + if (this.Email != null && this.Email.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Email, length must be greater than 1.", new [] { "Email" }); + } + + yield break; + } + } + +} diff --git a/src/Coscine.ApiClient.Core/Model/PublicationRequestForCreationDto.cs b/src/Coscine.ApiClient.Core/Model/PublicationRequestForCreationDto.cs new file mode 100644 index 0000000000000000000000000000000000000000..e0dd96023e8226bfef298f4de7c20a9ba5fadbd8 --- /dev/null +++ b/src/Coscine.ApiClient.Core/Model/PublicationRequestForCreationDto.cs @@ -0,0 +1,190 @@ +/* + * Coscine Web API + * + * Coscine (short for <b>CO</b>llaborative <b>SC</b>ientific <b>IN</b>tegration <b>E</b>nvironment) is the research data management platform for your research project. + * + * The version of the OpenAPI document: 2.0 + * Contact: servicedesk@itc.rwth-aachen.de + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Coscine.ApiClient.Core.Client.OpenAPIDateConverter; + +namespace Coscine.ApiClient.Core.Model +{ + /// <summary> + /// Data transfer object (DTO) representing the creation of a publication request. + /// </summary> + [DataContract(Name = "PublicationRequestForCreationDto")] + public partial class PublicationRequestForCreationDto : IEquatable<PublicationRequestForCreationDto>, IValidatableObject + { + /// <summary> + /// Initializes a new instance of the <see cref="PublicationRequestForCreationDto" /> class. + /// </summary> + [JsonConstructorAttribute] + protected PublicationRequestForCreationDto() { } + /// <summary> + /// Initializes a new instance of the <see cref="PublicationRequestForCreationDto" /> class. + /// </summary> + /// <param name="dataPublicationServiceRorId">The data publication service's ror id. (required).</param> + /// <param name="resourceIds">The resource guids. (required).</param> + /// <param name="message">A message of the requester..</param> + public PublicationRequestForCreationDto(string dataPublicationServiceRorId = default(string), List<Guid> resourceIds = default(List<Guid>), string message = default(string)) + { + // to ensure "dataPublicationServiceRorId" is required (not null) + if (dataPublicationServiceRorId == null) + { + throw new ArgumentNullException("dataPublicationServiceRorId is a required property for PublicationRequestForCreationDto and cannot be null"); + } + this.DataPublicationServiceRorId = dataPublicationServiceRorId; + // to ensure "resourceIds" is required (not null) + if (resourceIds == null) + { + throw new ArgumentNullException("resourceIds is a required property for PublicationRequestForCreationDto and cannot be null"); + } + this.ResourceIds = resourceIds; + this.Message = message; + } + + /// <summary> + /// The data publication service's ror id. + /// </summary> + /// <value>The data publication service's ror id.</value> + [DataMember(Name = "dataPublicationServiceRorId", IsRequired = true, EmitDefaultValue = true)] + public string DataPublicationServiceRorId { get; set; } + + /// <summary> + /// The resource guids. + /// </summary> + /// <value>The resource guids.</value> + [DataMember(Name = "resourceIds", IsRequired = true, EmitDefaultValue = true)] + public List<Guid> ResourceIds { get; set; } + + /// <summary> + /// A message of the requester. + /// </summary> + /// <value>A message of the requester.</value> + [DataMember(Name = "message", EmitDefaultValue = true)] + public string Message { get; set; } + + /// <summary> + /// Returns the string presentation of the object + /// </summary> + /// <returns>String presentation of the object</returns> + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PublicationRequestForCreationDto {\n"); + sb.Append(" DataPublicationServiceRorId: ").Append(DataPublicationServiceRorId).Append("\n"); + sb.Append(" ResourceIds: ").Append(ResourceIds).Append("\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// <summary> + /// Returns the JSON string presentation of the object + /// </summary> + /// <returns>JSON string presentation of the object</returns> + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// <summary> + /// Returns true if objects are equal + /// </summary> + /// <param name="input">Object to be compared</param> + /// <returns>Boolean</returns> + public override bool Equals(object input) + { + return this.Equals(input as PublicationRequestForCreationDto); + } + + /// <summary> + /// Returns true if PublicationRequestForCreationDto instances are equal + /// </summary> + /// <param name="input">Instance of PublicationRequestForCreationDto to be compared</param> + /// <returns>Boolean</returns> + public bool Equals(PublicationRequestForCreationDto input) + { + if (input == null) + { + return false; + } + return + ( + this.DataPublicationServiceRorId == input.DataPublicationServiceRorId || + (this.DataPublicationServiceRorId != null && + this.DataPublicationServiceRorId.Equals(input.DataPublicationServiceRorId)) + ) && + ( + this.ResourceIds == input.ResourceIds || + this.ResourceIds != null && + input.ResourceIds != null && + this.ResourceIds.SequenceEqual(input.ResourceIds) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ); + } + + /// <summary> + /// Gets the hash code + /// </summary> + /// <returns>Hash code</returns> + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DataPublicationServiceRorId != null) + { + hashCode = (hashCode * 59) + this.DataPublicationServiceRorId.GetHashCode(); + } + if (this.ResourceIds != null) + { + hashCode = (hashCode * 59) + this.ResourceIds.GetHashCode(); + } + if (this.Message != null) + { + hashCode = (hashCode * 59) + this.Message.GetHashCode(); + } + return hashCode; + } + } + + /// <summary> + /// To validate all properties of the instance + /// </summary> + /// <param name="validationContext">Validation context</param> + /// <returns>Validation Result</returns> + IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext) + { + // DataPublicationServiceRorId (string) minLength + if (this.DataPublicationServiceRorId != null && this.DataPublicationServiceRorId.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DataPublicationServiceRorId, length must be greater than 1.", new [] { "DataPublicationServiceRorId" }); + } + + yield break; + } + } + +} diff --git a/src/Coscine.ApiClient.Core/Model/PublicationRequestForCreationDtoResponse.cs b/src/Coscine.ApiClient.Core/Model/PublicationRequestForCreationDtoResponse.cs new file mode 100644 index 0000000000000000000000000000000000000000..e95bb5a2c600d7b2a7854587d0f380264b6c53e5 --- /dev/null +++ b/src/Coscine.ApiClient.Core/Model/PublicationRequestForCreationDtoResponse.cs @@ -0,0 +1,185 @@ +/* + * Coscine Web API + * + * Coscine (short for <b>CO</b>llaborative <b>SC</b>ientific <b>IN</b>tegration <b>E</b>nvironment) is the research data management platform for your research project. + * + * The version of the OpenAPI document: 2.0 + * Contact: servicedesk@itc.rwth-aachen.de + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Coscine.ApiClient.Core.Client.OpenAPIDateConverter; + +namespace Coscine.ApiClient.Core.Model +{ + /// <summary> + /// PublicationRequestForCreationDtoResponse + /// </summary> + [DataContract(Name = "PublicationRequestForCreationDtoResponse")] + public partial class PublicationRequestForCreationDtoResponse : IEquatable<PublicationRequestForCreationDtoResponse>, IValidatableObject + { + /// <summary> + /// Initializes a new instance of the <see cref="PublicationRequestForCreationDtoResponse" /> class. + /// </summary> + /// <param name="data">data.</param> + /// <param name="statusCode">statusCode.</param> + /// <param name="traceId">traceId.</param> + public PublicationRequestForCreationDtoResponse(PublicationRequestForCreationDto data = default(PublicationRequestForCreationDto), int? statusCode = default(int?), string traceId = default(string)) + { + this.Data = data; + this.StatusCode = statusCode; + this.TraceId = traceId; + } + + /// <summary> + /// Gets or Sets Data + /// </summary> + [DataMember(Name = "data", EmitDefaultValue = false)] + public PublicationRequestForCreationDto Data { get; set; } + + /// <summary> + /// Gets or Sets IsSuccess + /// </summary> + [DataMember(Name = "isSuccess", EmitDefaultValue = true)] + public bool IsSuccess { get; private set; } + + /// <summary> + /// Returns false as IsSuccess should not be serialized given that it's read-only. + /// </summary> + /// <returns>false (boolean)</returns> + public bool ShouldSerializeIsSuccess() + { + return false; + } + /// <summary> + /// Gets or Sets StatusCode + /// </summary> + [DataMember(Name = "statusCode", EmitDefaultValue = true)] + public int? StatusCode { get; set; } + + /// <summary> + /// Gets or Sets TraceId + /// </summary> + [DataMember(Name = "traceId", EmitDefaultValue = true)] + public string TraceId { get; set; } + + /// <summary> + /// Returns the string presentation of the object + /// </summary> + /// <returns>String presentation of the object</returns> + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PublicationRequestForCreationDtoResponse {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" IsSuccess: ").Append(IsSuccess).Append("\n"); + sb.Append(" StatusCode: ").Append(StatusCode).Append("\n"); + sb.Append(" TraceId: ").Append(TraceId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// <summary> + /// Returns the JSON string presentation of the object + /// </summary> + /// <returns>JSON string presentation of the object</returns> + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// <summary> + /// Returns true if objects are equal + /// </summary> + /// <param name="input">Object to be compared</param> + /// <returns>Boolean</returns> + public override bool Equals(object input) + { + return this.Equals(input as PublicationRequestForCreationDtoResponse); + } + + /// <summary> + /// Returns true if PublicationRequestForCreationDtoResponse instances are equal + /// </summary> + /// <param name="input">Instance of PublicationRequestForCreationDtoResponse to be compared</param> + /// <returns>Boolean</returns> + public bool Equals(PublicationRequestForCreationDtoResponse input) + { + if (input == null) + { + return false; + } + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ) && + ( + this.IsSuccess == input.IsSuccess || + this.IsSuccess.Equals(input.IsSuccess) + ) && + ( + this.StatusCode == input.StatusCode || + (this.StatusCode != null && + this.StatusCode.Equals(input.StatusCode)) + ) && + ( + this.TraceId == input.TraceId || + (this.TraceId != null && + this.TraceId.Equals(input.TraceId)) + ); + } + + /// <summary> + /// Gets the hash code + /// </summary> + /// <returns>Hash code</returns> + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + { + hashCode = (hashCode * 59) + this.Data.GetHashCode(); + } + hashCode = (hashCode * 59) + this.IsSuccess.GetHashCode(); + if (this.StatusCode != null) + { + hashCode = (hashCode * 59) + this.StatusCode.GetHashCode(); + } + if (this.TraceId != null) + { + hashCode = (hashCode * 59) + this.TraceId.GetHashCode(); + } + return hashCode; + } + } + + /// <summary> + /// To validate all properties of the instance + /// </summary> + /// <param name="validationContext">Validation context</param> + /// <returns>Validation Result</returns> + IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/Coscine.ApiClient.Core/Model/TermsOfServiceDto.cs b/src/Coscine.ApiClient.Core/Model/TermsOfServiceDto.cs index ff109108b067ff50463fb2a9eb0a84e813cc6643..d103dd12d2842c2c7bc935327af5af2559bbac01 100644 --- a/src/Coscine.ApiClient.Core/Model/TermsOfServiceDto.cs +++ b/src/Coscine.ApiClient.Core/Model/TermsOfServiceDto.cs @@ -36,10 +36,12 @@ namespace Coscine.ApiClient.Core.Model /// Initializes a new instance of the <see cref="TermsOfServiceDto" /> class. /// </summary> /// <param name="varVersion">The version of the terms of service..</param> + /// <param name="href">The URI point to the content of ToS' version.</param> /// <param name="isCurrent">Indicates whether these terms of service are current or not..</param> - public TermsOfServiceDto(string varVersion = default(string), bool isCurrent = default(bool)) + public TermsOfServiceDto(string varVersion = default(string), string href = default(string), bool isCurrent = default(bool)) { this.VarVersion = varVersion; + this.Href = href; this.IsCurrent = isCurrent; } @@ -50,6 +52,13 @@ namespace Coscine.ApiClient.Core.Model [DataMember(Name = "version", EmitDefaultValue = false)] public string VarVersion { get; set; } + /// <summary> + /// The URI point to the content of ToS' version + /// </summary> + /// <value>The URI point to the content of ToS' version</value> + [DataMember(Name = "href", EmitDefaultValue = false)] + public string Href { get; set; } + /// <summary> /// Indicates whether these terms of service are current or not. /// </summary> @@ -66,6 +75,7 @@ namespace Coscine.ApiClient.Core.Model StringBuilder sb = new StringBuilder(); sb.Append("class TermsOfServiceDto {\n"); sb.Append(" VarVersion: ").Append(VarVersion).Append("\n"); + sb.Append(" Href: ").Append(Href).Append("\n"); sb.Append(" IsCurrent: ").Append(IsCurrent).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -107,6 +117,11 @@ namespace Coscine.ApiClient.Core.Model (this.VarVersion != null && this.VarVersion.Equals(input.VarVersion)) ) && + ( + this.Href == input.Href || + (this.Href != null && + this.Href.Equals(input.Href)) + ) && ( this.IsCurrent == input.IsCurrent || this.IsCurrent.Equals(input.IsCurrent) @@ -126,6 +141,10 @@ namespace Coscine.ApiClient.Core.Model { hashCode = (hashCode * 59) + this.VarVersion.GetHashCode(); } + if (this.Href != null) + { + hashCode = (hashCode * 59) + this.Href.GetHashCode(); + } hashCode = (hashCode * 59) + this.IsCurrent.GetHashCode(); return hashCode; } diff --git a/src/Coscine.ApiClient.Core/Model/UserInstituteDto.cs b/src/Coscine.ApiClient.Core/Model/UserInstituteDto.cs index b74f20308cc52f6136f2bb745c6fb001d01125a1..396c73e0b0473635a213e89792c06cac81a98603 100644 --- a/src/Coscine.ApiClient.Core/Model/UserInstituteDto.cs +++ b/src/Coscine.ApiClient.Core/Model/UserInstituteDto.cs @@ -38,12 +38,14 @@ namespace Coscine.ApiClient.Core.Model /// <param name="uri">The ROR (Research Organization Registry) ID of the organization..</param> /// <param name="displayName">The display name of the organization..</param> /// <param name="email">The email address of the organization..</param> + /// <param name="publicationAdvisoryService">publicationAdvisoryService.</param> /// <param name="varReadOnly">Determines if the organization's details can be modified. Defaults to `true`; manually set to `false`..</param> - public UserInstituteDto(string uri = default(string), string displayName = default(string), string email = default(string), bool varReadOnly = default(bool)) + public UserInstituteDto(string uri = default(string), string displayName = default(string), string email = default(string), PublicationAdvisoryServiceDto publicationAdvisoryService = default(PublicationAdvisoryServiceDto), bool varReadOnly = default(bool)) { this.Uri = uri; this.DisplayName = displayName; this.Email = email; + this.PublicationAdvisoryService = publicationAdvisoryService; this.VarReadOnly = varReadOnly; } @@ -68,6 +70,12 @@ namespace Coscine.ApiClient.Core.Model [DataMember(Name = "email", EmitDefaultValue = true)] public string Email { get; set; } + /// <summary> + /// Gets or Sets PublicationAdvisoryService + /// </summary> + [DataMember(Name = "publicationAdvisoryService", EmitDefaultValue = false)] + public PublicationAdvisoryServiceDto PublicationAdvisoryService { get; set; } + /// <summary> /// Determines if the organization's details can be modified. Defaults to `true`; manually set to `false`. /// </summary> @@ -86,6 +94,7 @@ namespace Coscine.ApiClient.Core.Model sb.Append(" Uri: ").Append(Uri).Append("\n"); sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); sb.Append(" Email: ").Append(Email).Append("\n"); + sb.Append(" PublicationAdvisoryService: ").Append(PublicationAdvisoryService).Append("\n"); sb.Append(" VarReadOnly: ").Append(VarReadOnly).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -137,6 +146,11 @@ namespace Coscine.ApiClient.Core.Model (this.Email != null && this.Email.Equals(input.Email)) ) && + ( + this.PublicationAdvisoryService == input.PublicationAdvisoryService || + (this.PublicationAdvisoryService != null && + this.PublicationAdvisoryService.Equals(input.PublicationAdvisoryService)) + ) && ( this.VarReadOnly == input.VarReadOnly || this.VarReadOnly.Equals(input.VarReadOnly) @@ -164,6 +178,10 @@ namespace Coscine.ApiClient.Core.Model { hashCode = (hashCode * 59) + this.Email.GetHashCode(); } + if (this.PublicationAdvisoryService != null) + { + hashCode = (hashCode * 59) + this.PublicationAdvisoryService.GetHashCode(); + } hashCode = (hashCode * 59) + this.VarReadOnly.GetHashCode(); return hashCode; } diff --git a/src/Coscine.ApiClient.Core/Model/UserOrganizationDto.cs b/src/Coscine.ApiClient.Core/Model/UserOrganizationDto.cs index 7eb4268822c18a4a4051057e5c3151573f0b173c..8ae88346148aedccb1f235f6194ea1b8c913e7c0 100644 --- a/src/Coscine.ApiClient.Core/Model/UserOrganizationDto.cs +++ b/src/Coscine.ApiClient.Core/Model/UserOrganizationDto.cs @@ -38,12 +38,14 @@ namespace Coscine.ApiClient.Core.Model /// <param name="uri">The ROR (Research Organization Registry) ID of the organization..</param> /// <param name="displayName">The display name of the organization..</param> /// <param name="email">The email address of the organization..</param> + /// <param name="publicationAdvisoryService">publicationAdvisoryService.</param> /// <param name="varReadOnly">Determines if the organization's details can be modified..</param> - public UserOrganizationDto(string uri = default(string), string displayName = default(string), string email = default(string), bool varReadOnly = default(bool)) + public UserOrganizationDto(string uri = default(string), string displayName = default(string), string email = default(string), PublicationAdvisoryServiceDto publicationAdvisoryService = default(PublicationAdvisoryServiceDto), bool varReadOnly = default(bool)) { this.Uri = uri; this.DisplayName = displayName; this.Email = email; + this.PublicationAdvisoryService = publicationAdvisoryService; this.VarReadOnly = varReadOnly; } @@ -68,6 +70,12 @@ namespace Coscine.ApiClient.Core.Model [DataMember(Name = "email", EmitDefaultValue = true)] public string Email { get; set; } + /// <summary> + /// Gets or Sets PublicationAdvisoryService + /// </summary> + [DataMember(Name = "publicationAdvisoryService", EmitDefaultValue = false)] + public PublicationAdvisoryServiceDto PublicationAdvisoryService { get; set; } + /// <summary> /// Determines if the organization's details can be modified. /// </summary> @@ -86,6 +94,7 @@ namespace Coscine.ApiClient.Core.Model sb.Append(" Uri: ").Append(Uri).Append("\n"); sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); sb.Append(" Email: ").Append(Email).Append("\n"); + sb.Append(" PublicationAdvisoryService: ").Append(PublicationAdvisoryService).Append("\n"); sb.Append(" VarReadOnly: ").Append(VarReadOnly).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -137,6 +146,11 @@ namespace Coscine.ApiClient.Core.Model (this.Email != null && this.Email.Equals(input.Email)) ) && + ( + this.PublicationAdvisoryService == input.PublicationAdvisoryService || + (this.PublicationAdvisoryService != null && + this.PublicationAdvisoryService.Equals(input.PublicationAdvisoryService)) + ) && ( this.VarReadOnly == input.VarReadOnly || this.VarReadOnly.Equals(input.VarReadOnly) @@ -164,6 +178,10 @@ namespace Coscine.ApiClient.Core.Model { hashCode = (hashCode * 59) + this.Email.GetHashCode(); } + if (this.PublicationAdvisoryService != null) + { + hashCode = (hashCode * 59) + this.PublicationAdvisoryService.GetHashCode(); + } hashCode = (hashCode * 59) + this.VarReadOnly.GetHashCode(); return hashCode; }