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

Merge branch 'Issue/2432-publicationKpi' into 'dev'

New: Activity logs endpoint

See merge request !11
parents 55379156 141c1400
No related branches found
No related tags found
2 merge requests!12merge dev into main,!11New: Activity logs endpoint
Pipeline #1270703 passed
Showing
with 1167 additions and 5 deletions
......@@ -117,6 +117,7 @@ All URIs are relative to *http://localhost:7206/coscine*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*AdminApi* | [**ApiV2AdminOptions**](docs/AdminApi.md#apiv2adminoptions) | **OPTIONS** /api/v2/admin | Responds with the HTTP methods allowed for the endpoint.
*AdminApi* | [**GetAllActivityLogs**](docs/AdminApi.md#getallactivitylogs) | **GET** /api/v2/admin/activity-logs | Retrieves all activity logs.
*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* | [**GetAllUsers**](docs/AdminApi.md#getallusers) | **GET** /api/v2/admin/users | Retrieves all users.
......@@ -231,6 +232,8 @@ Class | Method | HTTP request | Description
## Documentation for Models
- [Model.AcceptedLanguage](docs/AcceptedLanguage.md)
- [Model.ActivityLogDto](docs/ActivityLogDto.md)
- [Model.ActivityLogDtoPagedResponse](docs/ActivityLogDtoPagedResponse.md)
- [Model.ApiTokenDto](docs/ApiTokenDto.md)
- [Model.ApiTokenDtoPagedResponse](docs/ApiTokenDtoPagedResponse.md)
- [Model.ApiTokenDtoResponse](docs/ApiTokenDtoResponse.md)
......@@ -242,6 +245,7 @@ Class | Method | HTTP request | Description
- [Model.ApplicationProfileForCreationDtoResponse](docs/ApplicationProfileForCreationDtoResponse.md)
- [Model.ApplicationProfileForResourceCreationDto](docs/ApplicationProfileForResourceCreationDto.md)
- [Model.ApplicationProfileMinimalDto](docs/ApplicationProfileMinimalDto.md)
- [Model.CoscineHttpMethod](docs/CoscineHttpMethod.md)
- [Model.DisciplineDto](docs/DisciplineDto.md)
- [Model.DisciplineDtoPagedResponse](docs/DisciplineDtoPagedResponse.md)
- [Model.DisciplineDtoResponse](docs/DisciplineDtoResponse.md)
......
......@@ -65,6 +65,26 @@ namespace Coscine.ApiClient.Core.Test.Api
//instance.ApiV2AdminOptions();
}
/// <summary>
/// Test GetAllActivityLogs
/// </summary>
[Fact]
public void GetAllActivityLogsTest()
{
// TODO uncomment below to test the method and replace null with proper value
//DateTime? activityTimestampBefore = null;
//DateTime? activityTimestampAfter = null;
//Guid? guid = null;
//Guid? userId = null;
//string? regularExpression = null;
//CoscineHttpMethod? httpMethod = null;
//int? pageNumber = null;
//int? pageSize = null;
//string? orderBy = null;
//var response = instance.GetAllActivityLogs(activityTimestampBefore, activityTimestampAfter, guid, userId, regularExpression, httpMethod, pageNumber, pageSize, orderBy);
//Assert.IsType<ActivityLogDtoPagedResponse>(response);
}
/// <summary>
/// Test GetAllProjects
/// </summary>
......
......@@ -6,7 +6,7 @@
<TargetFramework>net7.0</TargetFramework>
<IsPackable>false</IsPackable>
<Nullable>annotations</Nullable>
<Version>1.3.3</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 ActivityLogDtoPagedResponse
/// </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 ActivityLogDtoPagedResponseTests : IDisposable
{
// TODO uncomment below to declare an instance variable for ActivityLogDtoPagedResponse
//private ActivityLogDtoPagedResponse instance;
public ActivityLogDtoPagedResponseTests()
{
// TODO uncomment below to create an instance of ActivityLogDtoPagedResponse
//instance = new ActivityLogDtoPagedResponse();
}
public void Dispose()
{
// Cleanup when everything is done.
}
/// <summary>
/// Test an instance of ActivityLogDtoPagedResponse
/// </summary>
[Fact]
public void ActivityLogDtoPagedResponseInstanceTest()
{
// TODO uncomment below to test "IsType" ActivityLogDtoPagedResponse
//Assert.IsType<ActivityLogDtoPagedResponse>(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 ActivityLogDto
/// </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 ActivityLogDtoTests : IDisposable
{
// TODO uncomment below to declare an instance variable for ActivityLogDto
//private ActivityLogDto instance;
public ActivityLogDtoTests()
{
// TODO uncomment below to create an instance of ActivityLogDto
//instance = new ActivityLogDto();
}
public void Dispose()
{
// Cleanup when everything is done.
}
/// <summary>
/// Test an instance of ActivityLogDto
/// </summary>
[Fact]
public void ActivityLogDtoInstanceTest()
{
// TODO uncomment below to test "IsType" ActivityLogDto
//Assert.IsType<ActivityLogDto>(instance);
}
/// <summary>
/// Test the property 'Id'
/// </summary>
[Fact]
public void IdTest()
{
// TODO unit test for the property 'Id'
}
/// <summary>
/// Test the property 'ApiPath'
/// </summary>
[Fact]
public void ApiPathTest()
{
// TODO unit test for the property 'ApiPath'
}
/// <summary>
/// Test the property 'HttpAction'
/// </summary>
[Fact]
public void HttpActionTest()
{
// TODO unit test for the property 'HttpAction'
}
/// <summary>
/// Test the property 'ControllerName'
/// </summary>
[Fact]
public void ControllerNameTest()
{
// TODO unit test for the property 'ControllerName'
}
/// <summary>
/// Test the property 'ActionName'
/// </summary>
[Fact]
public void ActionNameTest()
{
// TODO unit test for the property 'ActionName'
}
/// <summary>
/// Test the property 'UserId'
/// </summary>
[Fact]
public void UserIdTest()
{
// TODO unit test for the property 'UserId'
}
/// <summary>
/// Test the property 'ActivityTimestamp'
/// </summary>
[Fact]
public void ActivityTimestampTest()
{
// TODO unit test for the property 'ActivityTimestamp'
}
}
}
/*
* 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 CoscineHttpMethod
/// </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 CoscineHttpMethodTests : IDisposable
{
// TODO uncomment below to declare an instance variable for CoscineHttpMethod
//private CoscineHttpMethod instance;
public CoscineHttpMethodTests()
{
// TODO uncomment below to create an instance of CoscineHttpMethod
//instance = new CoscineHttpMethod();
}
public void Dispose()
{
// Cleanup when everything is done.
}
/// <summary>
/// Test an instance of CoscineHttpMethod
/// </summary>
[Fact]
public void CoscineHttpMethodInstanceTest()
{
// TODO uncomment below to test "IsType" CoscineHttpMethod
//Assert.IsType<CoscineHttpMethod>(instance);
}
}
}
......@@ -135,5 +135,14 @@ namespace Coscine.ApiClient.Core.Test.Model
{
// TODO unit test for the property 'Actions'
}
/// <summary>
/// Test the property 'Hidden'
/// </summary>
[Fact]
public void HiddenTest()
{
// TODO unit test for the property 'Hidden'
}
}
}
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.3.3</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>
/// Represents a data transfer object (DTO) for an activity log.
/// </summary>
[DataContract(Name = "ActivityLogDto")]
public partial class ActivityLogDto : IEquatable<ActivityLogDto>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ActivityLogDto" /> class.
/// </summary>
/// <param name="id">id.</param>
/// <param name="apiPath">apiPath.</param>
/// <param name="httpAction">httpAction.</param>
/// <param name="controllerName">controllerName.</param>
/// <param name="actionName">actionName.</param>
/// <param name="userId">userId.</param>
/// <param name="activityTimestamp">activityTimestamp.</param>
public ActivityLogDto(Guid id = default(Guid), string apiPath = default(string), string httpAction = default(string), string controllerName = default(string), string actionName = default(string), Guid userId = default(Guid), DateTime activityTimestamp = default(DateTime))
{
this.Id = id;
this.ApiPath = apiPath;
this.HttpAction = httpAction;
this.ControllerName = controllerName;
this.ActionName = actionName;
this.UserId = userId;
this.ActivityTimestamp = activityTimestamp;
}
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name = "id", EmitDefaultValue = false)]
public Guid Id { get; set; }
/// <summary>
/// Gets or Sets ApiPath
/// </summary>
[DataMember(Name = "apiPath", EmitDefaultValue = false)]
public string ApiPath { get; set; }
/// <summary>
/// Gets or Sets HttpAction
/// </summary>
[DataMember(Name = "httpAction", EmitDefaultValue = false)]
public string HttpAction { get; set; }
/// <summary>
/// Gets or Sets ControllerName
/// </summary>
[DataMember(Name = "controllerName", EmitDefaultValue = true)]
public string ControllerName { get; set; }
/// <summary>
/// Gets or Sets ActionName
/// </summary>
[DataMember(Name = "actionName", EmitDefaultValue = true)]
public string ActionName { get; set; }
/// <summary>
/// Gets or Sets UserId
/// </summary>
[DataMember(Name = "userId", EmitDefaultValue = false)]
public Guid UserId { get; set; }
/// <summary>
/// Gets or Sets ActivityTimestamp
/// </summary>
[DataMember(Name = "activityTimestamp", EmitDefaultValue = false)]
public DateTime ActivityTimestamp { 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 ActivityLogDto {\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" ApiPath: ").Append(ApiPath).Append("\n");
sb.Append(" HttpAction: ").Append(HttpAction).Append("\n");
sb.Append(" ControllerName: ").Append(ControllerName).Append("\n");
sb.Append(" ActionName: ").Append(ActionName).Append("\n");
sb.Append(" UserId: ").Append(UserId).Append("\n");
sb.Append(" ActivityTimestamp: ").Append(ActivityTimestamp).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 ActivityLogDto);
}
/// <summary>
/// Returns true if ActivityLogDto instances are equal
/// </summary>
/// <param name="input">Instance of ActivityLogDto to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ActivityLogDto input)
{
if (input == null)
{
return false;
}
return
(
this.Id == input.Id ||
(this.Id != null &&
this.Id.Equals(input.Id))
) &&
(
this.ApiPath == input.ApiPath ||
(this.ApiPath != null &&
this.ApiPath.Equals(input.ApiPath))
) &&
(
this.HttpAction == input.HttpAction ||
(this.HttpAction != null &&
this.HttpAction.Equals(input.HttpAction))
) &&
(
this.ControllerName == input.ControllerName ||
(this.ControllerName != null &&
this.ControllerName.Equals(input.ControllerName))
) &&
(
this.ActionName == input.ActionName ||
(this.ActionName != null &&
this.ActionName.Equals(input.ActionName))
) &&
(
this.UserId == input.UserId ||
(this.UserId != null &&
this.UserId.Equals(input.UserId))
) &&
(
this.ActivityTimestamp == input.ActivityTimestamp ||
(this.ActivityTimestamp != null &&
this.ActivityTimestamp.Equals(input.ActivityTimestamp))
);
}
/// <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.Id != null)
{
hashCode = (hashCode * 59) + this.Id.GetHashCode();
}
if (this.ApiPath != null)
{
hashCode = (hashCode * 59) + this.ApiPath.GetHashCode();
}
if (this.HttpAction != null)
{
hashCode = (hashCode * 59) + this.HttpAction.GetHashCode();
}
if (this.ControllerName != null)
{
hashCode = (hashCode * 59) + this.ControllerName.GetHashCode();
}
if (this.ActionName != null)
{
hashCode = (hashCode * 59) + this.ActionName.GetHashCode();
}
if (this.UserId != null)
{
hashCode = (hashCode * 59) + this.UserId.GetHashCode();
}
if (this.ActivityTimestamp != null)
{
hashCode = (hashCode * 59) + this.ActivityTimestamp.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>
/// ActivityLogDtoPagedResponse
/// </summary>
[DataContract(Name = "ActivityLogDtoPagedResponse")]
public partial class ActivityLogDtoPagedResponse : IEquatable<ActivityLogDtoPagedResponse>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ActivityLogDtoPagedResponse" /> class.
/// </summary>
/// <param name="data">data.</param>
/// <param name="statusCode">statusCode.</param>
/// <param name="traceId">traceId.</param>
/// <param name="pagination">pagination.</param>
public ActivityLogDtoPagedResponse(List<ActivityLogDto> data = default(List<ActivityLogDto>), 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<ActivityLogDto> 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 ActivityLogDtoPagedResponse {\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 ActivityLogDtoPagedResponse);
}
/// <summary>
/// Returns true if ActivityLogDtoPagedResponse instances are equal
/// </summary>
/// <param name="input">Instance of ActivityLogDtoPagedResponse to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ActivityLogDtoPagedResponse 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;
}
}
}
/*
* 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>
/// An enumeration representing the supported HTTP verbs.
/// </summary>
/// <value>An enumeration representing the supported HTTP verbs.</value>
[JsonConverter(typeof(StringEnumConverter))]
public enum CoscineHttpMethod
{
/// <summary>
/// Enum GET for value: GET
/// </summary>
[EnumMember(Value = "GET")]
GET = 1,
/// <summary>
/// Enum HEAD for value: HEAD
/// </summary>
[EnumMember(Value = "HEAD")]
HEAD = 2,
/// <summary>
/// Enum POST for value: POST
/// </summary>
[EnumMember(Value = "POST")]
POST = 3,
/// <summary>
/// Enum PUT for value: PUT
/// </summary>
[EnumMember(Value = "PUT")]
PUT = 4,
/// <summary>
/// Enum DELETE for value: DELETE
/// </summary>
[EnumMember(Value = "DELETE")]
DELETE = 5
}
}
......@@ -50,7 +50,8 @@ namespace Coscine.ApiClient.Core.Model
/// <param name="creationDate">Gets or sets the creation date of the file..</param>
/// <param name="changeDate">Gets or sets the last change date of the file..</param>
/// <param name="actions">actions.</param>
public FileTreeDto(string path = default(string), TreeDataType? type = default(TreeDataType?), string directory = default(string), string name = default(string), string extension = default(string), long size = default(long), DateTime? creationDate = default(DateTime?), DateTime? changeDate = default(DateTime?), FileActionsDto actions = default(FileActionsDto))
/// <param name="hidden">Determines if the specific tree entry is hidden..</param>
public FileTreeDto(string path = default(string), TreeDataType? type = default(TreeDataType?), string directory = default(string), string name = default(string), string extension = default(string), long size = default(long), DateTime? creationDate = default(DateTime?), DateTime? changeDate = default(DateTime?), FileActionsDto actions = default(FileActionsDto), bool hidden = default(bool))
{
this.Path = path;
this.Type = type;
......@@ -61,6 +62,7 @@ namespace Coscine.ApiClient.Core.Model
this.CreationDate = creationDate;
this.ChangeDate = changeDate;
this.Actions = actions;
this.Hidden = hidden;
}
/// <summary>
......@@ -118,6 +120,13 @@ namespace Coscine.ApiClient.Core.Model
[DataMember(Name = "actions", EmitDefaultValue = false)]
public FileActionsDto Actions { get; set; }
/// <summary>
/// Determines if the specific tree entry is hidden.
/// </summary>
/// <value>Determines if the specific tree entry is hidden.</value>
[DataMember(Name = "hidden", EmitDefaultValue = true)]
public bool Hidden { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
......@@ -135,6 +144,7 @@ namespace Coscine.ApiClient.Core.Model
sb.Append(" CreationDate: ").Append(CreationDate).Append("\n");
sb.Append(" ChangeDate: ").Append(ChangeDate).Append("\n");
sb.Append(" Actions: ").Append(Actions).Append("\n");
sb.Append(" Hidden: ").Append(Hidden).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
......@@ -212,6 +222,10 @@ namespace Coscine.ApiClient.Core.Model
this.Actions == input.Actions ||
(this.Actions != null &&
this.Actions.Equals(input.Actions))
) &&
(
this.Hidden == input.Hidden ||
this.Hidden.Equals(input.Hidden)
);
}
......@@ -254,6 +268,7 @@ namespace Coscine.ApiClient.Core.Model
{
hashCode = (hashCode * 59) + this.Actions.GetHashCode();
}
hashCode = (hashCode * 59) + this.Hidden.GetHashCode();
return hashCode;
}
}
......
......@@ -56,7 +56,7 @@ namespace Coscine.ApiClient.Core.Model
/// <param name="deleted">Indicates whether the project is marked as deleted..</param>
/// <param name="projectResources">Collection of minimal project resource details associated with the project..</param>
/// <param name="projectRoles">Collection of minimal project role details associated with the project..</param>
/// <param name="projectQuota">projectQuota.</param>
/// <param name="projectQuota">Collection of project quotas associated with the project..</param>
public ProjectAdminDto(Guid id = default(Guid), string pid = default(string), string name = default(string), string description = default(string), DateTime startDate = default(DateTime), DateTime endDate = default(DateTime), List<string> keywords = default(List<string>), string displayName = default(string), string principleInvestigators = default(string), string grantId = default(string), VisibilityDto visibility = default(VisibilityDto), List<DisciplineDto> disciplines = default(List<DisciplineDto>), List<OrganizationDto> organizations = default(List<OrganizationDto>), string slug = default(string), UserMinimalDto creator = default(UserMinimalDto), DateTime? creationDate = default(DateTime?), List<ProjectDto> subProjects = default(List<ProjectDto>), ProjectMinimalDto parent = default(ProjectMinimalDto), bool deleted = default(bool), List<ProjectResourceMinimalDto> projectResources = default(List<ProjectResourceMinimalDto>), List<ProjectRoleMinimalDto> projectRoles = default(List<ProjectRoleMinimalDto>), List<ProjectQuotaDto> projectQuota = default(List<ProjectQuotaDto>))
{
this.Id = id;
......@@ -228,8 +228,9 @@ namespace Coscine.ApiClient.Core.Model
public List<ProjectRoleMinimalDto> ProjectRoles { get; set; }
/// <summary>
/// Gets or Sets ProjectQuota
/// Collection of project quotas associated with the project.
/// </summary>
/// <value>Collection of project quotas associated with the project.</value>
[DataMember(Name = "projectQuota", EmitDefaultValue = false)]
public List<ProjectQuotaDto> ProjectQuota { get; set; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment