Skip to content
Snippets Groups Projects
Commit 15136f2e authored by Benedikt Heinrichs's avatar Benedikt Heinrichs
Browse files

Merge branch 'dev' into Issue/2769-migrateCron

parents 22818eb1 2d113e53
No related branches found
No related tags found
1 merge request!16New: MetadataExtraction Property
Pipeline #1313874 passed
...@@ -121,6 +121,7 @@ Class | Method | HTTP request | Description ...@@ -121,6 +121,7 @@ Class | Method | HTTP request | Description
*AdminApi* | [**GetAllProjects**](docs/AdminApi.md#getallprojects) | **GET** /api/v2/admin/projects | Retrieves all projects. *AdminApi* | [**GetAllProjects**](docs/AdminApi.md#getallprojects) | **GET** /api/v2/admin/projects | Retrieves all projects.
*AdminApi* | [**GetAllResources**](docs/AdminApi.md#getallresources) | **GET** /api/v2/admin/resources | Retrieves all resources. *AdminApi* | [**GetAllResources**](docs/AdminApi.md#getallresources) | **GET** /api/v2/admin/resources | Retrieves all resources.
*AdminApi* | [**GetAllUsers**](docs/AdminApi.md#getallusers) | **GET** /api/v2/admin/users | Retrieves all users. *AdminApi* | [**GetAllUsers**](docs/AdminApi.md#getallusers) | **GET** /api/v2/admin/users | Retrieves all users.
*AdminApi* | [**GetDeployedGraphs**](docs/AdminApi.md#getdeployedgraphs) | **GET** /api/v2/admin/graphs | Gets all deployed graphs.
*AdminApi* | [**GetMetadataGraph**](docs/AdminApi.md#getmetadatagraph) | **GET** /api/v2/admin/metadata/{graph} | Gets a metadata graph. *AdminApi* | [**GetMetadataGraph**](docs/AdminApi.md#getmetadatagraph) | **GET** /api/v2/admin/metadata/{graph} | Gets a metadata graph.
*AdminApi* | [**PatchMetadata**](docs/AdminApi.md#patchmetadata) | **PATCH** /api/v2/admin/metadata/{graph} | Patches a metadata graph. *AdminApi* | [**PatchMetadata**](docs/AdminApi.md#patchmetadata) | **PATCH** /api/v2/admin/metadata/{graph} | Patches a metadata graph.
*AdminApi* | [**UpdateMetadataGraph**](docs/AdminApi.md#updatemetadatagraph) | **PUT** /api/v2/admin/metadata/{graph} | Updates a metadata graph. *AdminApi* | [**UpdateMetadataGraph**](docs/AdminApi.md#updatemetadatagraph) | **PUT** /api/v2/admin/metadata/{graph} | Updates a metadata graph.
...@@ -255,6 +256,8 @@ Class | Method | HTTP request | Description ...@@ -255,6 +256,8 @@ Class | Method | HTTP request | Description
- [Model.ApplicationProfileForResourceCreationDto](docs/ApplicationProfileForResourceCreationDto.md) - [Model.ApplicationProfileForResourceCreationDto](docs/ApplicationProfileForResourceCreationDto.md)
- [Model.ApplicationProfileMinimalDto](docs/ApplicationProfileMinimalDto.md) - [Model.ApplicationProfileMinimalDto](docs/ApplicationProfileMinimalDto.md)
- [Model.CoscineHttpMethod](docs/CoscineHttpMethod.md) - [Model.CoscineHttpMethod](docs/CoscineHttpMethod.md)
- [Model.DeployedGraphDto](docs/DeployedGraphDto.md)
- [Model.DeployedGraphDtoPagedResponse](docs/DeployedGraphDtoPagedResponse.md)
- [Model.DisciplineDto](docs/DisciplineDto.md) - [Model.DisciplineDto](docs/DisciplineDto.md)
- [Model.DisciplineDtoPagedResponse](docs/DisciplineDtoPagedResponse.md) - [Model.DisciplineDtoPagedResponse](docs/DisciplineDtoPagedResponse.md)
- [Model.DisciplineDtoResponse](docs/DisciplineDtoResponse.md) - [Model.DisciplineDtoResponse](docs/DisciplineDtoResponse.md)
......
...@@ -133,6 +133,20 @@ namespace Coscine.ApiClient.Core.Test.Api ...@@ -133,6 +133,20 @@ namespace Coscine.ApiClient.Core.Test.Api
//Assert.IsType<UserDtoPagedResponse>(response); //Assert.IsType<UserDtoPagedResponse>(response);
} }
/// <summary>
/// Test GetDeployedGraphs
/// </summary>
[Fact]
public void GetDeployedGraphsTest()
{
// TODO uncomment below to test the method and replace null with proper value
//int? pageNumber = null;
//int? pageSize = null;
//string? orderBy = null;
//var response = instance.GetDeployedGraphs(pageNumber, pageSize, orderBy);
//Assert.IsType<DeployedGraphDtoPagedResponse>(response);
}
/// <summary> /// <summary>
/// Test GetMetadataGraph /// Test GetMetadataGraph
/// </summary> /// </summary>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<TargetFramework>net7.0</TargetFramework> <TargetFramework>net7.0</TargetFramework>
<IsPackable>false</IsPackable> <IsPackable>false</IsPackable>
<Nullable>annotations</Nullable> <Nullable>annotations</Nullable>
</PropertyGroup> <Version>1.7.0</Version></PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.3" /> <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 DeployedGraphDtoPagedResponse
/// </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 DeployedGraphDtoPagedResponseTests : IDisposable
{
// TODO uncomment below to declare an instance variable for DeployedGraphDtoPagedResponse
//private DeployedGraphDtoPagedResponse instance;
public DeployedGraphDtoPagedResponseTests()
{
// TODO uncomment below to create an instance of DeployedGraphDtoPagedResponse
//instance = new DeployedGraphDtoPagedResponse();
}
public void Dispose()
{
// Cleanup when everything is done.
}
/// <summary>
/// Test an instance of DeployedGraphDtoPagedResponse
/// </summary>
[Fact]
public void DeployedGraphDtoPagedResponseInstanceTest()
{
// TODO uncomment below to test "IsType" DeployedGraphDtoPagedResponse
//Assert.IsType<DeployedGraphDtoPagedResponse>(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'
}
}
}
/*
* 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 DeployedGraphDto
/// </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 DeployedGraphDtoTests : IDisposable
{
// TODO uncomment below to declare an instance variable for DeployedGraphDto
//private DeployedGraphDto instance;
public DeployedGraphDtoTests()
{
// TODO uncomment below to create an instance of DeployedGraphDto
//instance = new DeployedGraphDto();
}
public void Dispose()
{
// Cleanup when everything is done.
}
/// <summary>
/// Test an instance of DeployedGraphDto
/// </summary>
[Fact]
public void DeployedGraphDtoInstanceTest()
{
// TODO uncomment below to test "IsType" DeployedGraphDto
//Assert.IsType<DeployedGraphDto>(instance);
}
/// <summary>
/// Test the property 'Uri'
/// </summary>
[Fact]
public void UriTest()
{
// TODO unit test for the property 'Uri'
}
/// <summary>
/// Test the property 'FileHashes'
/// </summary>
[Fact]
public void FileHashesTest()
{
// TODO unit test for the property 'FileHashes'
}
}
}
...@@ -178,6 +178,33 @@ namespace Coscine.ApiClient.Core.Api ...@@ -178,6 +178,33 @@ namespace Coscine.ApiClient.Core.Api
/// <returns>ApiResponse of UserDtoPagedResponse</returns> /// <returns>ApiResponse of UserDtoPagedResponse</returns>
ApiResponse<UserDtoPagedResponse> GetAllUsersWithHttpInfo(bool? tosAccepted = default(bool?), int? pageSize = default(int?), int? pageNumber = default(int?), string? orderBy = default(string?), int operationIndex = 0); ApiResponse<UserDtoPagedResponse> GetAllUsersWithHttpInfo(bool? tosAccepted = default(bool?), int? pageSize = default(int?), int? pageNumber = default(int?), string? orderBy = default(string?), int operationIndex = 0);
/// <summary> /// <summary>
/// Gets all deployed graphs.
/// </summary>
/// <remarks>
/// &lt;p&gt;&lt;strong&gt;Required JWT roles for access:&lt;/strong&gt; &lt;code&gt;administrator&lt;/code&gt;.&lt;/p&gt;
/// </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>
/// <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 \&quot;asc\&quot; or \&quot;desc\&quot; and separate properties by commas. Default is asc. (optional)</param>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>DeployedGraphDtoPagedResponse</returns>
DeployedGraphDtoPagedResponse GetDeployedGraphs(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0);
/// <summary>
/// Gets all deployed graphs.
/// </summary>
/// <remarks>
/// &lt;p&gt;&lt;strong&gt;Required JWT roles for access:&lt;/strong&gt; &lt;code&gt;administrator&lt;/code&gt;.&lt;/p&gt;
/// </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>
/// <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 \&quot;asc\&quot; or \&quot;desc\&quot; and separate properties by commas. Default is asc. (optional)</param>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>ApiResponse of DeployedGraphDtoPagedResponse</returns>
ApiResponse<DeployedGraphDtoPagedResponse> GetDeployedGraphsWithHttpInfo(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0);
/// <summary>
/// Gets a metadata graph. /// Gets a metadata graph.
/// </summary> /// </summary>
/// <remarks> /// <remarks>
...@@ -425,6 +452,35 @@ namespace Coscine.ApiClient.Core.Api ...@@ -425,6 +452,35 @@ namespace Coscine.ApiClient.Core.Api
/// <returns>Task of ApiResponse (UserDtoPagedResponse)</returns> /// <returns>Task of ApiResponse (UserDtoPagedResponse)</returns>
System.Threading.Tasks.Task<ApiResponse<UserDtoPagedResponse>> GetAllUsersWithHttpInfoAsync(bool? tosAccepted = default(bool?), int? pageSize = default(int?), int? pageNumber = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); System.Threading.Tasks.Task<ApiResponse<UserDtoPagedResponse>> GetAllUsersWithHttpInfoAsync(bool? tosAccepted = default(bool?), int? pageSize = default(int?), int? pageNumber = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
/// <summary> /// <summary>
/// Gets all deployed graphs.
/// </summary>
/// <remarks>
/// &lt;p&gt;&lt;strong&gt;Required JWT roles for access:&lt;/strong&gt; &lt;code&gt;administrator&lt;/code&gt;.&lt;/p&gt;
/// </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>
/// <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 \&quot;asc\&quot; or \&quot;desc\&quot; 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 DeployedGraphDtoPagedResponse</returns>
System.Threading.Tasks.Task<DeployedGraphDtoPagedResponse> GetDeployedGraphsAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
/// <summary>
/// Gets all deployed graphs.
/// </summary>
/// <remarks>
/// &lt;p&gt;&lt;strong&gt;Required JWT roles for access:&lt;/strong&gt; &lt;code&gt;administrator&lt;/code&gt;.&lt;/p&gt;
/// </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>
/// <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 \&quot;asc\&quot; or \&quot;desc\&quot; 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 (DeployedGraphDtoPagedResponse)</returns>
System.Threading.Tasks.Task<ApiResponse<DeployedGraphDtoPagedResponse>> GetDeployedGraphsWithHttpInfoAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
/// <summary>
/// Gets a metadata graph. /// Gets a metadata graph.
/// </summary> /// </summary>
/// <remarks> /// <remarks>
...@@ -1597,6 +1653,180 @@ namespace Coscine.ApiClient.Core.Api ...@@ -1597,6 +1653,180 @@ namespace Coscine.ApiClient.Core.Api
return localVarResponse; return localVarResponse;
} }
/// <summary>
/// Gets all deployed graphs. &lt;p&gt;&lt;strong&gt;Required JWT roles for access:&lt;/strong&gt; &lt;code&gt;administrator&lt;/code&gt;.&lt;/p&gt;
/// </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>
/// <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 \&quot;asc\&quot; or \&quot;desc\&quot; and separate properties by commas. Default is asc. (optional)</param>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>DeployedGraphDtoPagedResponse</returns>
public DeployedGraphDtoPagedResponse GetDeployedGraphs(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0)
{
Coscine.ApiClient.Core.Client.ApiResponse<DeployedGraphDtoPagedResponse> localVarResponse = GetDeployedGraphsWithHttpInfo(pageNumber, pageSize, orderBy);
return localVarResponse.Data;
}
/// <summary>
/// Gets all deployed graphs. &lt;p&gt;&lt;strong&gt;Required JWT roles for access:&lt;/strong&gt; &lt;code&gt;administrator&lt;/code&gt;.&lt;/p&gt;
/// </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>
/// <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 \&quot;asc\&quot; or \&quot;desc\&quot; and separate properties by commas. Default is asc. (optional)</param>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>ApiResponse of DeployedGraphDtoPagedResponse</returns>
public Coscine.ApiClient.Core.Client.ApiResponse<DeployedGraphDtoPagedResponse> GetDeployedGraphsWithHttpInfo(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 (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 = "AdminApi.GetDeployedGraphs";
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<DeployedGraphDtoPagedResponse>("/api/v2/admin/graphs", localVarRequestOptions, this.Configuration);
if (this.ExceptionFactory != null)
{
Exception _exception = this.ExceptionFactory("GetDeployedGraphs", localVarResponse);
if (_exception != null)
{
throw _exception;
}
}
return localVarResponse;
}
/// <summary>
/// Gets all deployed graphs. &lt;p&gt;&lt;strong&gt;Required JWT roles for access:&lt;/strong&gt; &lt;code&gt;administrator&lt;/code&gt;.&lt;/p&gt;
/// </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>
/// <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 \&quot;asc\&quot; or \&quot;desc\&quot; 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 DeployedGraphDtoPagedResponse</returns>
public async System.Threading.Tasks.Task<DeployedGraphDtoPagedResponse> GetDeployedGraphsAsync(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<DeployedGraphDtoPagedResponse> localVarResponse = await GetDeployedGraphsWithHttpInfoAsync(pageNumber, pageSize, orderBy, operationIndex, cancellationToken).ConfigureAwait(false);
return localVarResponse.Data;
}
/// <summary>
/// Gets all deployed graphs. &lt;p&gt;&lt;strong&gt;Required JWT roles for access:&lt;/strong&gt; &lt;code&gt;administrator&lt;/code&gt;.&lt;/p&gt;
/// </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>
/// <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 \&quot;asc\&quot; or \&quot;desc\&quot; 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 (DeployedGraphDtoPagedResponse)</returns>
public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<DeployedGraphDtoPagedResponse>> GetDeployedGraphsWithHttpInfoAsync(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 (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 = "AdminApi.GetDeployedGraphs";
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<DeployedGraphDtoPagedResponse>("/api/v2/admin/graphs", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
if (this.ExceptionFactory != null)
{
Exception _exception = this.ExceptionFactory("GetDeployedGraphs", localVarResponse);
if (_exception != null)
{
throw _exception;
}
}
return localVarResponse;
}
/// <summary> /// <summary>
/// Gets a metadata graph. &lt;p&gt;&lt;strong&gt;Required JWT roles for access:&lt;/strong&gt; &lt;code&gt;administrator&lt;/code&gt;.&lt;/p&gt; /// Gets a metadata graph. &lt;p&gt;&lt;strong&gt;Required JWT roles for access:&lt;/strong&gt; &lt;code&gt;administrator&lt;/code&gt;.&lt;/p&gt;
/// </summary> /// </summary>
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<Description>A library generated from a OpenAPI doc</Description> <Description>A library generated from a OpenAPI doc</Description>
<Copyright>No Copyright</Copyright> <Copyright>No Copyright</Copyright>
<RootNamespace>Coscine.ApiClient.Core</RootNamespace> <RootNamespace>Coscine.ApiClient.Core</RootNamespace>
<Version>1.0.0</Version> <Version>1.7.0</Version>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\Coscine.ApiClient.Core.xml</DocumentationFile> <DocumentationFile>bin\$(Configuration)\$(TargetFramework)\Coscine.ApiClient.Core.xml</DocumentationFile>
<RepositoryUrl>https://github.com/GIT_USER_ID/GIT_REPO_ID.git</RepositoryUrl> <RepositoryUrl>https://github.com/GIT_USER_ID/GIT_REPO_ID.git</RepositoryUrl>
<RepositoryType>git</RepositoryType> <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>
/// Represents a Data Transfer Object (DTO) for deployed graph details.
/// </summary>
[DataContract(Name = "DeployedGraphDto")]
public partial class DeployedGraphDto : IEquatable<DeployedGraphDto>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="DeployedGraphDto" /> class.
/// </summary>
/// <param name="uri">Graph URI and identifier..</param>
/// <param name="fileHashes">Collection of file hashes associated with the graph..</param>
public DeployedGraphDto(string uri = default(string), List<string> fileHashes = default(List<string>))
{
this.Uri = uri;
this.FileHashes = fileHashes;
}
/// <summary>
/// Graph URI and identifier.
/// </summary>
/// <value>Graph URI and identifier.</value>
[DataMember(Name = "uri", EmitDefaultValue = false)]
public string Uri { get; set; }
/// <summary>
/// Collection of file hashes associated with the graph.
/// </summary>
/// <value>Collection of file hashes associated with the graph.</value>
[DataMember(Name = "fileHashes", EmitDefaultValue = false)]
public List<string> FileHashes { 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 DeployedGraphDto {\n");
sb.Append(" Uri: ").Append(Uri).Append("\n");
sb.Append(" FileHashes: ").Append(FileHashes).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 DeployedGraphDto);
}
/// <summary>
/// Returns true if DeployedGraphDto instances are equal
/// </summary>
/// <param name="input">Instance of DeployedGraphDto to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(DeployedGraphDto input)
{
if (input == null)
{
return false;
}
return
(
this.Uri == input.Uri ||
(this.Uri != null &&
this.Uri.Equals(input.Uri))
) &&
(
this.FileHashes == input.FileHashes ||
this.FileHashes != null &&
input.FileHashes != null &&
this.FileHashes.SequenceEqual(input.FileHashes)
);
}
/// <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.Uri != null)
{
hashCode = (hashCode * 59) + this.Uri.GetHashCode();
}
if (this.FileHashes != null)
{
hashCode = (hashCode * 59) + this.FileHashes.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;
}
}
}
/*
* 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>
/// DeployedGraphDtoPagedResponse
/// </summary>
[DataContract(Name = "DeployedGraphDtoPagedResponse")]
public partial class DeployedGraphDtoPagedResponse : IEquatable<DeployedGraphDtoPagedResponse>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="DeployedGraphDtoPagedResponse" /> class.
/// </summary>
/// <param name="data">data.</param>
/// <param name="statusCode">statusCode.</param>
/// <param name="traceId">traceId.</param>
/// <param name="pagination">pagination.</param>
public DeployedGraphDtoPagedResponse(List<DeployedGraphDto> data = default(List<DeployedGraphDto>), 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<DeployedGraphDto> 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 DeployedGraphDtoPagedResponse {\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 DeployedGraphDtoPagedResponse);
}
/// <summary>
/// Returns true if DeployedGraphDtoPagedResponse instances are equal
/// </summary>
/// <param name="input">Instance of DeployedGraphDtoPagedResponse to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(DeployedGraphDtoPagedResponse 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;
}
}
}
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<RootNamespace>Coscine.ApiClient</RootNamespace> <RootNamespace>Coscine.ApiClient</RootNamespace>
<AssemblyName>Coscine.ApiClient</AssemblyName> <AssemblyName>Coscine.ApiClient</AssemblyName>
<TargetFramework>net7.0</TargetFramework> <TargetFramework>net7.0</TargetFramework>
<Version>1.6.0</Version> <Version>1.7.0</Version>
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment