Skip to content
Snippets Groups Projects
Commit 4b793212 authored by Benedikt Heinrichs's avatar Benedikt Heinrichs Committed by Sirieam Marie Hunke
Browse files

New: MetadataExtraction Property

parent 2d113e53
No related branches found
No related tags found
2 merge requests!19merge dev into main,!16New: MetadataExtraction Property
Showing
with 2993 additions and 135 deletions
......@@ -189,6 +189,9 @@ Class | Method | HTTP request | Description
*ProjectResourceQuotaApi* | [**GetQuotaForResourceForProject**](docs/ProjectResourceQuotaApi.md#getquotaforresourceforproject) | **GET** /api/v2/projects/{projectId}/resources/{resourceId}/quota | Retrieves the resource quota for a specific resource in a project.
*ProjectResourceTypeApi* | [**ApiV2ProjectsProjectIdResourceTypesOptions**](docs/ProjectResourceTypeApi.md#apiv2projectsprojectidresourcetypesoptions) | **OPTIONS** /api/v2/projects/{projectId}/resource-types | Responds with the HTTP methods allowed for the endpoint.
*ProjectResourceTypeApi* | [**GetAvailableResourceTypesInformationForProject**](docs/ProjectResourceTypeApi.md#getavailableresourcetypesinformationforproject) | **GET** /api/v2/projects/{projectId}/resource-types | Retrieves the available resource types information for a specific project.
*ProvenanceApi* | [**ApiV2ProjectsProjectIdResourcesResourceIdProvenanceOptions**](docs/ProvenanceApi.md#apiv2projectsprojectidresourcesresourceidprovenanceoptions) | **OPTIONS** /api/v2/projects/{projectId}/resources/{resourceId}/provenance | Responds with the HTTP methods allowed for the endpoint.
*ProvenanceApi* | [**GetSpecificProvenance**](docs/ProvenanceApi.md#getspecificprovenance) | **GET** /api/v2/projects/{projectId}/resources/{resourceId}/provenance/specific | Retrieves the specific provenance information associated with a resource.
*ProvenanceApi* | [**UpdateSpecificProvenance**](docs/ProvenanceApi.md#updatespecificprovenance) | **PUT** /api/v2/projects/{projectId}/resources/{resourceId}/provenance/specific | Updates existing specific provenance information of a resource.
*ResourceApi* | [**ApiV2ResourcesOptions**](docs/ResourceApi.md#apiv2resourcesoptions) | **OPTIONS** /api/v2/resources | Responds with the HTTP methods allowed for the endpoint.
*ResourceApi* | [**GetResource**](docs/ResourceApi.md#getresource) | **GET** /api/v2/resources/{resourceId} | Retrieves a resource by its ID.
*ResourceTypeApi* | [**ApiV2ResourceTypesOptions**](docs/ResourceTypeApi.md#apiv2resourcetypesoptions) | **OPTIONS** /api/v2/resource-types | Responds with the HTTP methods allowed for the endpoint.
......@@ -220,10 +223,13 @@ Class | Method | HTTP request | Description
*TosApi* | [**ApiV2TosOptions**](docs/TosApi.md#apiv2tosoptions) | **OPTIONS** /api/v2/tos | Responds with the HTTP methods allowed for the endpoint.
*TosApi* | [**GetTos**](docs/TosApi.md#gettos) | **GET** /api/v2/tos | Retrieves the current Terms of Service version.
*TreeApi* | [**ApiV2ProjectsProjectIdResourcesResourceIdTreesOptions**](docs/TreeApi.md#apiv2projectsprojectidresourcesresourceidtreesoptions) | **OPTIONS** /api/v2/projects/{projectId}/resources/{resourceId}/trees | Responds with the HTTP methods allowed for the endpoint.
*TreeApi* | [**CreateExtractedMetadataTree**](docs/TreeApi.md#createextractedmetadatatree) | **POST** /api/v2/projects/{projectId}/resources/{resourceId}/trees/metadata/extracted | Creates a new extracted metadata tree for a resource.
*TreeApi* | [**CreateMetadataTree**](docs/TreeApi.md#createmetadatatree) | **POST** /api/v2/projects/{projectId}/resources/{resourceId}/trees/metadata | Creates a new metadata tree for a resource.
*TreeApi* | [**DeleteMetadataTree**](docs/TreeApi.md#deletemetadatatree) | **DELETE** /api/v2/projects/{projectId}/resources/{resourceId}/trees/metadata | Deletes (invalidates) a metadata tree associated with 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* | [**UpdateExtractedMetadataTree**](docs/TreeApi.md#updateextractedmetadatatree) | **PUT** /api/v2/projects/{projectId}/resources/{resourceId}/trees/metadata/extracted | Updates an existing metadata tree of 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.
......@@ -262,6 +268,8 @@ Class | Method | HTTP request | Description
- [Model.DisciplineForProjectManipulationDto](docs/DisciplineForProjectManipulationDto.md)
- [Model.DisciplineForResourceManipulationDto](docs/DisciplineForResourceManipulationDto.md)
- [Model.DisciplineForUserManipulationDto](docs/DisciplineForUserManipulationDto.md)
- [Model.ExtractedMetadataTreeForCreationDto](docs/ExtractedMetadataTreeForCreationDto.md)
- [Model.ExtractedMetadataTreeForUpdateDto](docs/ExtractedMetadataTreeForUpdateDto.md)
- [Model.FileActionDto](docs/FileActionDto.md)
- [Model.FileActionHttpMethod](docs/FileActionHttpMethod.md)
- [Model.FileActionsDto](docs/FileActionsDto.md)
......@@ -281,6 +289,7 @@ Class | Method | HTTP request | Description
- [Model.HandleForUpdateDto](docs/HandleForUpdateDto.md)
- [Model.HandleValueDto](docs/HandleValueDto.md)
- [Model.HandleValueForUpdateDto](docs/HandleValueForUpdateDto.md)
- [Model.HashParametersDto](docs/HashParametersDto.md)
- [Model.IdentityProviderDto](docs/IdentityProviderDto.md)
- [Model.IdentityProviders](docs/IdentityProviders.md)
- [Model.LanguageDto](docs/LanguageDto.md)
......@@ -298,6 +307,7 @@ Class | Method | HTTP request | Description
- [Model.MetadataTreeDtoResponse](docs/MetadataTreeDtoResponse.md)
- [Model.MetadataTreeExtractedDto](docs/MetadataTreeExtractedDto.md)
- [Model.MetadataTreeForCreationDto](docs/MetadataTreeForCreationDto.md)
- [Model.MetadataTreeForDeletionDto](docs/MetadataTreeForDeletionDto.md)
- [Model.MetadataTreeForUpdateDto](docs/MetadataTreeForUpdateDto.md)
- [Model.MetadataUpdateAdminParameters](docs/MetadataUpdateAdminParameters.md)
- [Model.OrganizationDto](docs/OrganizationDto.md)
......@@ -334,6 +344,10 @@ Class | Method | HTTP request | Description
- [Model.ProjectRoleForProjectCreationDto](docs/ProjectRoleForProjectCreationDto.md)
- [Model.ProjectRoleForProjectManipulationDto](docs/ProjectRoleForProjectManipulationDto.md)
- [Model.ProjectRoleMinimalDto](docs/ProjectRoleMinimalDto.md)
- [Model.ProvenanceDto](docs/ProvenanceDto.md)
- [Model.ProvenanceDtoResponse](docs/ProvenanceDtoResponse.md)
- [Model.ProvenanceForUpdateDto](docs/ProvenanceForUpdateDto.md)
- [Model.ProvenanceParametersDto](docs/ProvenanceParametersDto.md)
- [Model.PublicUserDto](docs/PublicUserDto.md)
- [Model.PublicUserDtoIEnumerableResponse](docs/PublicUserDtoIEnumerableResponse.md)
- [Model.PublicationAdvisoryServiceDto](docs/PublicationAdvisoryServiceDto.md)
......@@ -405,6 +419,7 @@ Class | Method | HTTP request | Description
- [Model.UserMinimalDto](docs/UserMinimalDto.md)
- [Model.UserOrganizationDto](docs/UserOrganizationDto.md)
- [Model.UserTermsOfServiceAcceptDto](docs/UserTermsOfServiceAcceptDto.md)
- [Model.VariantDto](docs/VariantDto.md)
- [Model.VisibilityDto](docs/VisibilityDto.md)
- [Model.VisibilityDtoPagedResponse](docs/VisibilityDtoPagedResponse.md)
- [Model.VisibilityDtoResponse](docs/VisibilityDtoResponse.md)
......
/*
* 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 ProvenanceApi
/// </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 ProvenanceApiTests : IDisposable
{
private ProvenanceApi instance;
public ProvenanceApiTests()
{
instance = new ProvenanceApi();
}
public void Dispose()
{
// Cleanup when everything is done.
}
/// <summary>
/// Test an instance of ProvenanceApi
/// </summary>
[Fact]
public void InstanceTest()
{
// TODO uncomment below to test 'IsType' ProvenanceApi
//Assert.IsType<ProvenanceApi>(instance);
}
/// <summary>
/// Test ApiV2ProjectsProjectIdResourcesResourceIdProvenanceOptions
/// </summary>
[Fact]
public void ApiV2ProjectsProjectIdResourcesResourceIdProvenanceOptionsTest()
{
// TODO uncomment below to test the method and replace null with proper value
//string projectId = null;
//string resourceId = null;
//instance.ApiV2ProjectsProjectIdResourcesResourceIdProvenanceOptions(projectId, resourceId);
}
/// <summary>
/// Test GetSpecificProvenance
/// </summary>
[Fact]
public void GetSpecificProvenanceTest()
{
// TODO uncomment below to test the method and replace null with proper value
//string projectId = null;
//Guid resourceId = null;
//string path = null;
//int? varVersion = null;
//var response = instance.GetSpecificProvenance(projectId, resourceId, path, varVersion);
//Assert.IsType<ProvenanceDtoResponse>(response);
}
/// <summary>
/// Test UpdateSpecificProvenance
/// </summary>
[Fact]
public void UpdateSpecificProvenanceTest()
{
// TODO uncomment below to test the method and replace null with proper value
//string projectId = null;
//Guid resourceId = null;
//ProvenanceForUpdateDto? provenanceForUpdateDto = null;
//instance.UpdateSpecificProvenance(projectId, resourceId, provenanceForUpdateDto);
}
}
}
......@@ -67,6 +67,20 @@ namespace Coscine.ApiClient.Core.Test.Api
//instance.ApiV2ProjectsProjectIdResourcesResourceIdTreesOptions(projectId, resourceId);
}
/// <summary>
/// Test CreateExtractedMetadataTree
/// </summary>
[Fact]
public void CreateExtractedMetadataTreeTest()
{
// TODO uncomment below to test the method and replace null with proper value
//string projectId = null;
//Guid resourceId = null;
//ExtractedMetadataTreeForCreationDto? extractedMetadataTreeForCreationDto = null;
//var response = instance.CreateExtractedMetadataTree(projectId, resourceId, extractedMetadataTreeForCreationDto);
//Assert.IsType<MetadataTreeDtoResponse>(response);
}
/// <summary>
/// Test CreateMetadataTree
/// </summary>
......@@ -81,6 +95,19 @@ namespace Coscine.ApiClient.Core.Test.Api
//Assert.IsType<MetadataTreeDtoResponse>(response);
}
/// <summary>
/// Test DeleteMetadataTree
/// </summary>
[Fact]
public void DeleteMetadataTreeTest()
{
// TODO uncomment below to test the method and replace null with proper value
//string projectId = null;
//Guid resourceId = null;
//MetadataTreeForDeletionDto? metadataTreeForDeletionDto = null;
//instance.DeleteMetadataTree(projectId, resourceId, metadataTreeForDeletionDto);
}
/// <summary>
/// Test GetFileTree
/// </summary>
......@@ -110,10 +137,11 @@ namespace Coscine.ApiClient.Core.Test.Api
//string? path = null;
//RdfFormat? format = null;
//bool? includeExtractedMetadata = null;
//bool? includeProvenance = null;
//int? pageNumber = null;
//int? pageSize = null;
//string? orderBy = null;
//var response = instance.GetMetadataTree(projectId, resourceId, path, format, includeExtractedMetadata, pageNumber, pageSize, orderBy);
//var response = instance.GetMetadataTree(projectId, resourceId, path, format, includeExtractedMetadata, includeProvenance, pageNumber, pageSize, orderBy);
//Assert.IsType<MetadataTreeDtoPagedResponse>(response);
}
......@@ -126,14 +154,28 @@ namespace Coscine.ApiClient.Core.Test.Api
// TODO uncomment below to test the method and replace null with proper value
//string projectId = null;
//Guid resourceId = null;
//string? path = null;
//string path = null;
//RdfFormat? format = null;
//bool? includeExtractedMetadata = null;
//bool? includeProvenance = null;
//int? varVersion = null;
//var response = instance.GetSpecificMetadataTree(projectId, resourceId, path, format, includeExtractedMetadata, varVersion);
//var response = instance.GetSpecificMetadataTree(projectId, resourceId, path, format, includeExtractedMetadata, includeProvenance, varVersion);
//Assert.IsType<MetadataTreeDtoResponse>(response);
}
/// <summary>
/// Test UpdateExtractedMetadataTree
/// </summary>
[Fact]
public void UpdateExtractedMetadataTreeTest()
{
// TODO uncomment below to test the method and replace null with proper value
//string projectId = null;
//Guid resourceId = null;
//ExtractedMetadataTreeForUpdateDto? extractedMetadataTreeForUpdateDto = null;
//instance.UpdateExtractedMetadataTree(projectId, resourceId, extractedMetadataTreeForUpdateDto);
}
/// <summary>
/// Test UpdateMetadataTree
/// </summary>
......
......@@ -6,7 +6,7 @@
<TargetFramework>net7.0</TargetFramework>
<IsPackable>false</IsPackable>
<Nullable>annotations</Nullable>
<Version>1.7.0</Version></PropertyGroup>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.3" />
......
/*
* 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 ExtractedMetadataTreeForCreationDto
/// </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 ExtractedMetadataTreeForCreationDtoTests : IDisposable
{
// TODO uncomment below to declare an instance variable for ExtractedMetadataTreeForCreationDto
//private ExtractedMetadataTreeForCreationDto instance;
public ExtractedMetadataTreeForCreationDtoTests()
{
// TODO uncomment below to create an instance of ExtractedMetadataTreeForCreationDto
//instance = new ExtractedMetadataTreeForCreationDto();
}
public void Dispose()
{
// Cleanup when everything is done.
}
/// <summary>
/// Test an instance of ExtractedMetadataTreeForCreationDto
/// </summary>
[Fact]
public void ExtractedMetadataTreeForCreationDtoInstanceTest()
{
// TODO uncomment below to test "IsType" ExtractedMetadataTreeForCreationDto
//Assert.IsType<ExtractedMetadataTreeForCreationDto>(instance);
}
/// <summary>
/// Test the property 'Path'
/// </summary>
[Fact]
public void PathTest()
{
// TODO unit test for the property 'Path'
}
/// <summary>
/// Test the property 'Id'
/// </summary>
[Fact]
public void IdTest()
{
// TODO unit test for the property 'Id'
}
/// <summary>
/// Test the property 'Definition'
/// </summary>
[Fact]
public void DefinitionTest()
{
// TODO unit test for the property 'Definition'
}
/// <summary>
/// Test the property 'Provenance'
/// </summary>
[Fact]
public void ProvenanceTest()
{
// TODO unit test for the property 'Provenance'
}
}
}
/*
* 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 ExtractedMetadataTreeForUpdateDto
/// </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 ExtractedMetadataTreeForUpdateDtoTests : IDisposable
{
// TODO uncomment below to declare an instance variable for ExtractedMetadataTreeForUpdateDto
//private ExtractedMetadataTreeForUpdateDto instance;
public ExtractedMetadataTreeForUpdateDtoTests()
{
// TODO uncomment below to create an instance of ExtractedMetadataTreeForUpdateDto
//instance = new ExtractedMetadataTreeForUpdateDto();
}
public void Dispose()
{
// Cleanup when everything is done.
}
/// <summary>
/// Test an instance of ExtractedMetadataTreeForUpdateDto
/// </summary>
[Fact]
public void ExtractedMetadataTreeForUpdateDtoInstanceTest()
{
// TODO uncomment below to test "IsType" ExtractedMetadataTreeForUpdateDto
//Assert.IsType<ExtractedMetadataTreeForUpdateDto>(instance);
}
/// <summary>
/// Test the property 'Path'
/// </summary>
[Fact]
public void PathTest()
{
// TODO unit test for the property 'Path'
}
/// <summary>
/// Test the property 'Id'
/// </summary>
[Fact]
public void IdTest()
{
// TODO unit test for the property 'Id'
}
/// <summary>
/// Test the property 'Definition'
/// </summary>
[Fact]
public void DefinitionTest()
{
// TODO unit test for the property 'Definition'
}
/// <summary>
/// Test the property 'Provenance'
/// </summary>
[Fact]
public void ProvenanceTest()
{
// TODO unit test for the property 'Provenance'
}
/// <summary>
/// Test the property 'ForceNewMetadataVersion'
/// </summary>
[Fact]
public void ForceNewMetadataVersionTest()
{
// TODO unit test for the property 'ForceNewMetadataVersion'
}
}
}
/*
* 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 HashParametersDto
/// </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 HashParametersDtoTests : IDisposable
{
// TODO uncomment below to declare an instance variable for HashParametersDto
//private HashParametersDto instance;
public HashParametersDtoTests()
{
// TODO uncomment below to create an instance of HashParametersDto
//instance = new HashParametersDto();
}
public void Dispose()
{
// Cleanup when everything is done.
}
/// <summary>
/// Test an instance of HashParametersDto
/// </summary>
[Fact]
public void HashParametersDtoInstanceTest()
{
// TODO uncomment below to test "IsType" HashParametersDto
//Assert.IsType<HashParametersDto>(instance);
}
/// <summary>
/// Test the property 'AlgorithmName'
/// </summary>
[Fact]
public void AlgorithmNameTest()
{
// TODO unit test for the property 'AlgorithmName'
}
/// <summary>
/// Test the property 'Value'
/// </summary>
[Fact]
public void ValueTest()
{
// TODO unit test for the property 'Value'
}
}
}
......@@ -73,6 +73,15 @@ namespace Coscine.ApiClient.Core.Test.Model
// TODO unit test for the property 'Type'
}
/// <summary>
/// Test the property 'Id'
/// </summary>
[Fact]
public void IdTest()
{
// TODO unit test for the property 'Id'
}
/// <summary>
/// Test the property 'VarVersion'
/// </summary>
......@@ -108,5 +117,14 @@ namespace Coscine.ApiClient.Core.Test.Model
{
// TODO unit test for the property 'Extracted'
}
/// <summary>
/// Test the property 'Provenance'
/// </summary>
[Fact]
public void ProvenanceTest()
{
// TODO unit test for the property 'Provenance'
}
}
}
/*
* 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 MetadataTreeForDeletionDto
/// </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 MetadataTreeForDeletionDtoTests : IDisposable
{
// TODO uncomment below to declare an instance variable for MetadataTreeForDeletionDto
//private MetadataTreeForDeletionDto instance;
public MetadataTreeForDeletionDtoTests()
{
// TODO uncomment below to create an instance of MetadataTreeForDeletionDto
//instance = new MetadataTreeForDeletionDto();
}
public void Dispose()
{
// Cleanup when everything is done.
}
/// <summary>
/// Test an instance of MetadataTreeForDeletionDto
/// </summary>
[Fact]
public void MetadataTreeForDeletionDtoInstanceTest()
{
// TODO uncomment below to test "IsType" MetadataTreeForDeletionDto
//Assert.IsType<MetadataTreeForDeletionDto>(instance);
}
/// <summary>
/// Test the property 'Path'
/// </summary>
[Fact]
public void PathTest()
{
// TODO unit test for the property 'Path'
}
/// <summary>
/// Test the property 'VarVersion'
/// </summary>
[Fact]
public void VarVersionTest()
{
// TODO unit test for the property 'VarVersion'
}
/// <summary>
/// Test the property 'InvalidatedBy'
/// </summary>
[Fact]
public void InvalidatedByTest()
{
// TODO unit test for the property 'InvalidatedBy'
}
}
}
/*
* 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 ProvenanceDtoResponse
/// </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 ProvenanceDtoResponseTests : IDisposable
{
// TODO uncomment below to declare an instance variable for ProvenanceDtoResponse
//private ProvenanceDtoResponse instance;
public ProvenanceDtoResponseTests()
{
// TODO uncomment below to create an instance of ProvenanceDtoResponse
//instance = new ProvenanceDtoResponse();
}
public void Dispose()
{
// Cleanup when everything is done.
}
/// <summary>
/// Test an instance of ProvenanceDtoResponse
/// </summary>
[Fact]
public void ProvenanceDtoResponseInstanceTest()
{
// TODO uncomment below to test "IsType" ProvenanceDtoResponse
//Assert.IsType<ProvenanceDtoResponse>(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'
}
}
}
/*
* 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 ProvenanceDto
/// </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 ProvenanceDtoTests : IDisposable
{
// TODO uncomment below to declare an instance variable for ProvenanceDto
//private ProvenanceDto instance;
public ProvenanceDtoTests()
{
// TODO uncomment below to create an instance of ProvenanceDto
//instance = new ProvenanceDto();
}
public void Dispose()
{
// Cleanup when everything is done.
}
/// <summary>
/// Test an instance of ProvenanceDto
/// </summary>
[Fact]
public void ProvenanceDtoInstanceTest()
{
// TODO uncomment below to test "IsType" ProvenanceDto
//Assert.IsType<ProvenanceDto>(instance);
}
/// <summary>
/// Test the property 'Id'
/// </summary>
[Fact]
public void IdTest()
{
// TODO unit test for the property 'Id'
}
/// <summary>
/// Test the property 'GeneratedAt'
/// </summary>
[Fact]
public void GeneratedAtTest()
{
// TODO unit test for the property 'GeneratedAt'
}
/// <summary>
/// Test the property 'WasRevisionOf'
/// </summary>
[Fact]
public void WasRevisionOfTest()
{
// TODO unit test for the property 'WasRevisionOf'
}
/// <summary>
/// Test the property 'Variants'
/// </summary>
[Fact]
public void VariantsTest()
{
// TODO unit test for the property 'Variants'
}
/// <summary>
/// Test the property 'SimilarityToLastVersion'
/// </summary>
[Fact]
public void SimilarityToLastVersionTest()
{
// TODO unit test for the property 'SimilarityToLastVersion'
}
/// <summary>
/// Test the property 'WasInvalidatedBy'
/// </summary>
[Fact]
public void WasInvalidatedByTest()
{
// TODO unit test for the property 'WasInvalidatedBy'
}
/// <summary>
/// Test the property 'HashParameters'
/// </summary>
[Fact]
public void HashParametersTest()
{
// TODO unit test for the property 'HashParameters'
}
}
}
/*
* 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 ProvenanceForUpdateDto
/// </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 ProvenanceForUpdateDtoTests : IDisposable
{
// TODO uncomment below to declare an instance variable for ProvenanceForUpdateDto
//private ProvenanceForUpdateDto instance;
public ProvenanceForUpdateDtoTests()
{
// TODO uncomment below to create an instance of ProvenanceForUpdateDto
//instance = new ProvenanceForUpdateDto();
}
public void Dispose()
{
// Cleanup when everything is done.
}
/// <summary>
/// Test an instance of ProvenanceForUpdateDto
/// </summary>
[Fact]
public void ProvenanceForUpdateDtoInstanceTest()
{
// TODO uncomment below to test "IsType" ProvenanceForUpdateDto
//Assert.IsType<ProvenanceForUpdateDto>(instance);
}
/// <summary>
/// Test the property 'WasRevisionOf'
/// </summary>
[Fact]
public void WasRevisionOfTest()
{
// TODO unit test for the property 'WasRevisionOf'
}
/// <summary>
/// Test the property 'Variants'
/// </summary>
[Fact]
public void VariantsTest()
{
// TODO unit test for the property 'Variants'
}
/// <summary>
/// Test the property 'WasInvalidatedBy'
/// </summary>
[Fact]
public void WasInvalidatedByTest()
{
// TODO unit test for the property 'WasInvalidatedBy'
}
/// <summary>
/// Test the property 'SimilarityToLastVersion'
/// </summary>
[Fact]
public void SimilarityToLastVersionTest()
{
// TODO unit test for the property 'SimilarityToLastVersion'
}
/// <summary>
/// Test the property 'MetadataExtractorVersion'
/// </summary>
[Fact]
public void MetadataExtractorVersionTest()
{
// TODO unit test for the property 'MetadataExtractorVersion'
}
/// <summary>
/// Test the property 'HashParameters'
/// </summary>
[Fact]
public void HashParametersTest()
{
// TODO unit test for the property 'HashParameters'
}
/// <summary>
/// Test the property 'Id'
/// </summary>
[Fact]
public void IdTest()
{
// TODO unit test for the property 'Id'
}
}
}
/*
* 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 ProvenanceParametersDto
/// </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 ProvenanceParametersDtoTests : IDisposable
{
// TODO uncomment below to declare an instance variable for ProvenanceParametersDto
//private ProvenanceParametersDto instance;
public ProvenanceParametersDtoTests()
{
// TODO uncomment below to create an instance of ProvenanceParametersDto
//instance = new ProvenanceParametersDto();
}
public void Dispose()
{
// Cleanup when everything is done.
}
/// <summary>
/// Test an instance of ProvenanceParametersDto
/// </summary>
[Fact]
public void ProvenanceParametersDtoInstanceTest()
{
// TODO uncomment below to test "IsType" ProvenanceParametersDto
//Assert.IsType<ProvenanceParametersDto>(instance);
}
/// <summary>
/// Test the property 'WasRevisionOf'
/// </summary>
[Fact]
public void WasRevisionOfTest()
{
// TODO unit test for the property 'WasRevisionOf'
}
/// <summary>
/// Test the property 'Variants'
/// </summary>
[Fact]
public void VariantsTest()
{
// TODO unit test for the property 'Variants'
}
/// <summary>
/// Test the property 'WasInvalidatedBy'
/// </summary>
[Fact]
public void WasInvalidatedByTest()
{
// TODO unit test for the property 'WasInvalidatedBy'
}
/// <summary>
/// Test the property 'SimilarityToLastVersion'
/// </summary>
[Fact]
public void SimilarityToLastVersionTest()
{
// TODO unit test for the property 'SimilarityToLastVersion'
}
/// <summary>
/// Test the property 'MetadataExtractorVersion'
/// </summary>
[Fact]
public void MetadataExtractorVersionTest()
{
// TODO unit test for the property 'MetadataExtractorVersion'
}
/// <summary>
/// Test the property 'HashParameters'
/// </summary>
[Fact]
public void HashParametersTest()
{
// TODO unit test for the property 'HashParameters'
}
}
}
......@@ -145,6 +145,15 @@ namespace Coscine.ApiClient.Core.Test.Model
// TODO unit test for the property 'MetadataLocalCopy'
}
/// <summary>
/// Test the property 'MetadataExtraction'
/// </summary>
[Fact]
public void MetadataExtractionTest()
{
// TODO unit test for the property 'MetadataExtraction'
}
/// <summary>
/// Test the property 'ApplicationProfile'
/// </summary>
......
......@@ -145,6 +145,15 @@ namespace Coscine.ApiClient.Core.Test.Model
// TODO unit test for the property 'MetadataLocalCopy'
}
/// <summary>
/// Test the property 'MetadataExtraction'
/// </summary>
[Fact]
public void MetadataExtractionTest()
{
// TODO unit test for the property 'MetadataExtraction'
}
/// <summary>
/// Test the property 'ApplicationProfile'
/// </summary>
......
/*
* 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 VariantDto
/// </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 VariantDtoTests : IDisposable
{
// TODO uncomment below to declare an instance variable for VariantDto
//private VariantDto instance;
public VariantDtoTests()
{
// TODO uncomment below to create an instance of VariantDto
//instance = new VariantDto();
}
public void Dispose()
{
// Cleanup when everything is done.
}
/// <summary>
/// Test an instance of VariantDto
/// </summary>
[Fact]
public void VariantDtoInstanceTest()
{
// TODO uncomment below to test "IsType" VariantDto
//Assert.IsType<VariantDto>(instance);
}
/// <summary>
/// Test the property 'GraphName'
/// </summary>
[Fact]
public void GraphNameTest()
{
// TODO unit test for the property 'GraphName'
}
/// <summary>
/// Test the property 'Similarity'
/// </summary>
[Fact]
public void SimilarityTest()
{
// TODO unit test for the property 'Similarity'
}
}
}
This diff is collapsed.
This diff is collapsed.
......@@ -12,7 +12,7 @@
<Description>A library generated from a OpenAPI doc</Description>
<Copyright>No Copyright</Copyright>
<RootNamespace>Coscine.ApiClient.Core</RootNamespace>
<Version>1.7.0</Version>
<Version>1.0.0</Version>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\Coscine.ApiClient.Core.xml</DocumentationFile>
<RepositoryUrl>https://github.com/GIT_USER_ID/GIT_REPO_ID.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
......
/*
* 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 metadata tree. Extends the base class Coscine.Api.Core.Shared.DataTransferObjects.ParameterObjects.MetadataTreeForManipulationDto.
/// </summary>
[DataContract(Name = "ExtractedMetadataTreeForCreationDto")]
public partial class ExtractedMetadataTreeForCreationDto : IEquatable<ExtractedMetadataTreeForCreationDto>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ExtractedMetadataTreeForCreationDto" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ExtractedMetadataTreeForCreationDto() { }
/// <summary>
/// Initializes a new instance of the <see cref="ExtractedMetadataTreeForCreationDto" /> class.
/// </summary>
/// <param name="path">Gets or initializes the path of the metadata tree. (required).</param>
/// <param name="id">Gets or sets the id of the new metadata tree. (required).</param>
/// <param name="definition">definition (required).</param>
/// <param name="provenance">provenance (required).</param>
public ExtractedMetadataTreeForCreationDto(string path = default(string), string id = default(string), RdfDefinitionForManipulationDto definition = default(RdfDefinitionForManipulationDto), ProvenanceParametersDto provenance = default(ProvenanceParametersDto))
{
// to ensure "path" is required (not null)
if (path == null)
{
throw new ArgumentNullException("path is a required property for ExtractedMetadataTreeForCreationDto and cannot be null");
}
this.Path = path;
// to ensure "id" is required (not null)
if (id == null)
{
throw new ArgumentNullException("id is a required property for ExtractedMetadataTreeForCreationDto and cannot be null");
}
this.Id = id;
// to ensure "definition" is required (not null)
if (definition == null)
{
throw new ArgumentNullException("definition is a required property for ExtractedMetadataTreeForCreationDto and cannot be null");
}
this.Definition = definition;
// to ensure "provenance" is required (not null)
if (provenance == null)
{
throw new ArgumentNullException("provenance is a required property for ExtractedMetadataTreeForCreationDto and cannot be null");
}
this.Provenance = provenance;
}
/// <summary>
/// Gets or initializes the path of the metadata tree.
/// </summary>
/// <value>Gets or initializes the path of the metadata tree.</value>
[DataMember(Name = "path", IsRequired = true, EmitDefaultValue = true)]
public string Path { get; set; }
/// <summary>
/// Gets or sets the id of the new metadata tree.
/// </summary>
/// <value>Gets or sets the id of the new metadata tree.</value>
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
public string Id { get; set; }
/// <summary>
/// Gets or Sets Definition
/// </summary>
[DataMember(Name = "definition", IsRequired = true, EmitDefaultValue = true)]
public RdfDefinitionForManipulationDto Definition { get; set; }
/// <summary>
/// Gets or Sets Provenance
/// </summary>
[DataMember(Name = "provenance", IsRequired = true, EmitDefaultValue = true)]
public ProvenanceParametersDto Provenance { 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 ExtractedMetadataTreeForCreationDto {\n");
sb.Append(" Path: ").Append(Path).Append("\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" Definition: ").Append(Definition).Append("\n");
sb.Append(" Provenance: ").Append(Provenance).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 ExtractedMetadataTreeForCreationDto);
}
/// <summary>
/// Returns true if ExtractedMetadataTreeForCreationDto instances are equal
/// </summary>
/// <param name="input">Instance of ExtractedMetadataTreeForCreationDto to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ExtractedMetadataTreeForCreationDto input)
{
if (input == null)
{
return false;
}
return
(
this.Path == input.Path ||
(this.Path != null &&
this.Path.Equals(input.Path))
) &&
(
this.Id == input.Id ||
(this.Id != null &&
this.Id.Equals(input.Id))
) &&
(
this.Definition == input.Definition ||
(this.Definition != null &&
this.Definition.Equals(input.Definition))
) &&
(
this.Provenance == input.Provenance ||
(this.Provenance != null &&
this.Provenance.Equals(input.Provenance))
);
}
/// <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();
}
if (this.Id != null)
{
hashCode = (hashCode * 59) + this.Id.GetHashCode();
}
if (this.Definition != null)
{
hashCode = (hashCode * 59) + this.Definition.GetHashCode();
}
if (this.Provenance != null)
{
hashCode = (hashCode * 59) + this.Provenance.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)
{
// Path (string) minLength
if (this.Path != null && this.Path.Length < 1)
{
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Path, length must be greater than 1.", new [] { "Path" });
}
yield break;
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment