From ec841696d7a1c681f325fb4864658913a1a341c0 Mon Sep 17 00:00:00 2001 From: Petar Hristov <hristov@itc.rwth-aachen.de> Date: Tue, 14 Jan 2025 08:00:10 +0000 Subject: [PATCH] Update: Regenerate client --- README.md | 12 +- docs/AdminApi.md | 20 +- docs/ApplicationProfileApi.md | 4 +- docs/DisciplineApi.md | 4 +- docs/FileSystemStorageOptionsDto.md | 11 + docs/LanguageApi.md | 4 +- docs/LicenseApi.md | 4 +- docs/OrganizationApi.md | 4 +- docs/PidApi.md | 4 +- docs/ProjectApi.md | 4 +- docs/ProjectInvitationApi.md | 4 +- docs/ProjectMemberApi.md | 4 +- docs/ProjectQuotaApi.md | 4 +- docs/ProjectResourceApi.md | 4 +- docs/ResourceTypeApi.md | 298 ----- docs/ResourceTypeGitLabApi.md | 391 +++++++ docs/ResourceTypeOptionsDto.md | 1 + docs/RoleApi.md | 4 +- docs/SearchApi.md | 4 +- docs/SelfApiTokenApi.md | 4 +- docs/SystemStatusApi.md | 8 +- docs/TitleApi.md | 4 +- docs/TreeApi.md | 8 +- docs/VisibilityApi.md | 4 +- docs/VocabularyApi.md | 8 +- .../Api/ResourceTypeApiTests.cs | 41 - .../Api/ResourceTypeGitLabApiTests.cs | 109 ++ .../Coscine.ApiClient.Core.Test.csproj | 6 +- .../Model/FileSystemStorageOptionsDtoTests.cs | 67 ++ .../Model/ResourceTypeOptionsDtoTests.cs | 9 + src/Coscine.ApiClient.Core/Api/AdminApi.cs | 161 +-- .../Api/ApplicationProfileApi.cs | 61 +- src/Coscine.ApiClient.Core/Api/BlobApi.cs | 45 +- .../Api/DisciplineApi.cs | 43 +- src/Coscine.ApiClient.Core/Api/HandleApi.cs | 27 +- src/Coscine.ApiClient.Core/Api/LanguageApi.cs | 43 +- src/Coscine.ApiClient.Core/Api/LicenseApi.cs | 43 +- .../Api/MaintenanceApi.cs | 18 +- .../Api/OrganizationApi.cs | 43 +- src/Coscine.ApiClient.Core/Api/PidApi.cs | 52 +- src/Coscine.ApiClient.Core/Api/ProjectApi.cs | 70 +- .../Api/ProjectInvitationApi.cs | 61 +- .../Api/ProjectMemberApi.cs | 70 +- .../Api/ProjectPublicationRequestApi.cs | 27 +- .../Api/ProjectQuotaApi.cs | 52 +- .../Api/ProjectResourceApi.cs | 70 +- .../Api/ProjectResourceQuotaApi.cs | 18 +- .../Api/ProjectResourceTypeApi.cs | 18 +- .../Api/ProvenanceApi.cs | 27 +- src/Coscine.ApiClient.Core/Api/ResourceApi.cs | 18 +- .../Api/ResourceTypeApi.cs | 716 +----------- .../Api/ResourceTypeGitLabApi.cs | 1026 +++++++++++++++++ src/Coscine.ApiClient.Core/Api/RoleApi.cs | 43 +- src/Coscine.ApiClient.Core/Api/SearchApi.cs | 34 +- src/Coscine.ApiClient.Core/Api/SelfApi.cs | 63 +- .../Api/SelfApiTokenApi.cs | 61 +- .../Api/SelfSessionApi.cs | 45 +- .../Api/SystemStatusApi.cs | 59 +- src/Coscine.ApiClient.Core/Api/TitleApi.cs | 43 +- src/Coscine.ApiClient.Core/Api/TosApi.cs | 18 +- src/Coscine.ApiClient.Core/Api/TreeApi.cs | 113 +- src/Coscine.ApiClient.Core/Api/UserApi.cs | 18 +- .../Api/VisibilityApi.cs | 43 +- .../Api/VocabularyApi.cs | 68 +- .../Client/ApiClient.cs | 59 +- .../Client/ClientUtils.cs | 8 +- .../Client/Configuration.cs | 10 +- .../Client/IAsynchronousClient.cs | 14 +- .../Client/IReadableConfiguration.cs | 4 +- .../Coscine.ApiClient.Core.csproj | 4 +- .../Model/FileSystemStorageOptionsDto.cs | 94 ++ src/Coscine.ApiClient.Core/Model/QuotaUnit.cs | 24 +- .../Model/ResourceTypeOptionsDto.cs | 11 +- 73 files changed, 2714 insertions(+), 1884 deletions(-) create mode 100644 docs/FileSystemStorageOptionsDto.md create mode 100644 docs/ResourceTypeGitLabApi.md create mode 100644 src/Coscine.ApiClient.Core.Test/Api/ResourceTypeGitLabApiTests.cs create mode 100644 src/Coscine.ApiClient.Core.Test/Model/FileSystemStorageOptionsDtoTests.cs create mode 100644 src/Coscine.ApiClient.Core/Api/ResourceTypeGitLabApi.cs create mode 100644 src/Coscine.ApiClient.Core/Model/FileSystemStorageOptionsDto.cs diff --git a/README.md b/README.md index 88cf5b5..2de8cda 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ This C# SDK is automatically generated by the [OpenAPI Generator](https://openap - API version: 2.0 - SDK version: 1.0.0 -- Generator version: 7.8.0-SNAPSHOT +- Generator version: 7.11.0-SNAPSHOT - Build package: org.openapitools.codegen.languages.CSharpClientCodegen <a id="frameworks-supported"></a> @@ -15,7 +15,7 @@ This C# SDK is automatically generated by the [OpenAPI Generator](https://openap <a id="dependencies"></a> ## Dependencies -- [RestSharp](https://www.nuget.org/packages/RestSharp) - 106.13.0 or later +- [RestSharp](https://www.nuget.org/packages/RestSharp) - 112.0.0 or later - [Json.NET](https://www.nuget.org/packages/Newtonsoft.Json/) - 13.0.2 or later - [JsonSubTypes](https://www.nuget.org/packages/JsonSubTypes/) - 1.8.0 or later - [System.ComponentModel.Annotations](https://www.nuget.org/packages/System.ComponentModel.Annotations) - 5.0.0 or later @@ -197,11 +197,12 @@ Class | Method | HTTP request | Description *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. -*ResourceTypeApi* | [**GetAllGitlabBranchesForProject**](docs/ResourceTypeApi.md#getallgitlabbranchesforproject) | **GET** /api/v2/resource-types/gitlab/projects/{gitlabProjectId}/branches | Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. -*ResourceTypeApi* | [**GetAllGitlabProjects**](docs/ResourceTypeApi.md#getallgitlabprojects) | **GET** /api/v2/resource-types/gitlab/projects | Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. *ResourceTypeApi* | [**GetAllResourceTypesInformation**](docs/ResourceTypeApi.md#getallresourcetypesinformation) | **GET** /api/v2/resource-types/types | Retrieves the entire global resource types information. -*ResourceTypeApi* | [**GetGitlabProject**](docs/ResourceTypeApi.md#getgitlabproject) | **GET** /api/v2/resource-types/gitlab/projects/{gitlabProjectId} | Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. *ResourceTypeApi* | [**GetResourceTypeInformation**](docs/ResourceTypeApi.md#getresourcetypeinformation) | **GET** /api/v2/resource-types/types/{resourceTypeId} | Retrieves the resource type information for a specific resource type. +*ResourceTypeGitLabApi* | [**ApiV2ResourceTypesGitlabOptions**](docs/ResourceTypeGitLabApi.md#apiv2resourcetypesgitlaboptions) | **OPTIONS** /api/v2/resource-types/gitlab | Responds with the HTTP methods allowed for the endpoint. +*ResourceTypeGitLabApi* | [**GetAllGitlabBranchesForProject**](docs/ResourceTypeGitLabApi.md#getallgitlabbranchesforproject) | **GET** /api/v2/resource-types/gitlab/projects/{gitlabProjectId}/branches | Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. +*ResourceTypeGitLabApi* | [**GetAllGitlabProjects**](docs/ResourceTypeGitLabApi.md#getallgitlabprojects) | **GET** /api/v2/resource-types/gitlab/projects | Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. +*ResourceTypeGitLabApi* | [**GetGitlabProject**](docs/ResourceTypeGitLabApi.md#getgitlabproject) | **GET** /api/v2/resource-types/gitlab/projects/{gitlabProjectId} | Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. *RoleApi* | [**ApiV2RolesOptions**](docs/RoleApi.md#apiv2rolesoptions) | **OPTIONS** /api/v2/roles | Responds with the HTTP methods allowed for the endpoint. *RoleApi* | [**GetRole**](docs/RoleApi.md#getrole) | **GET** /api/v2/roles/{roleId} | Retrieves a role by ID. *RoleApi* | [**GetRoles**](docs/RoleApi.md#getroles) | **GET** /api/v2/roles | Retrieves all roles. @@ -283,6 +284,7 @@ Class | Method | HTTP request | Description - [Model.FileActionDto](docs/FileActionDto.md) - [Model.FileActionHttpMethod](docs/FileActionHttpMethod.md) - [Model.FileActionsDto](docs/FileActionsDto.md) + - [Model.FileSystemStorageOptionsDto](docs/FileSystemStorageOptionsDto.md) - [Model.FileTreeDto](docs/FileTreeDto.md) - [Model.FileTreeDtoPagedResponse](docs/FileTreeDtoPagedResponse.md) - [Model.FixedValueForResourceManipulationDto](docs/FixedValueForResourceManipulationDto.md) diff --git a/docs/AdminApi.md b/docs/AdminApi.md index 1decc56..c81531f 100644 --- a/docs/AdminApi.md +++ b/docs/AdminApi.md @@ -137,7 +137,7 @@ namespace Example var httpMethod = new CoscineHttpMethod?(); // CoscineHttpMethod? | The http method to filter activity logs by. (optional) var pageNumber = 56; // int? | The desired page number. Should be greater than or equal to 1. Default is 1. (optional) var pageSize = 56; // int? | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional) - var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) + var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) try { @@ -188,7 +188,7 @@ catch (ApiException e) | **httpMethod** | [**CoscineHttpMethod?**](CoscineHttpMethod?.md) | The http method to filter activity logs by. | [optional] | | **pageNumber** | **int?** | The desired page number. Should be greater than or equal to 1. Default is 1. | [optional] | | **pageSize** | **int?** | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. | [optional] | -| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | +| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | ### Return type @@ -247,7 +247,7 @@ namespace Example var includePublicationRequests = true; // bool? | Gets or sets a value indicating whether to include project publication requests in the results. (optional) var pageSize = 56; // int? | Number of items per page. The maximum number of items per page is `250`. (optional) var pageNumber = 56; // int? | The desired page number. Should be greater than or equal to 1. Default is 1. (optional) - var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) + var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) try { @@ -296,7 +296,7 @@ catch (ApiException e) | **includePublicationRequests** | **bool?** | Gets or sets a value indicating whether to include project publication requests in the results. | [optional] | | **pageSize** | **int?** | Number of items per page. The maximum number of items per page is `250`. | [optional] | | **pageNumber** | **int?** | The desired page number. Should be greater than or equal to 1. Default is 1. | [optional] | -| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | +| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | ### Return type @@ -354,7 +354,7 @@ namespace Example var includeQuotas = true; // bool? | Value indicating whether to include individual resource quotas. (optional) var pageSize = 56; // int? | Number of items per page. The maximum number of items per page is `250`. (optional) var pageNumber = 56; // int? | The desired page number. Should be greater than or equal to 1. Default is 1. (optional) - var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) + var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) try { @@ -401,7 +401,7 @@ catch (ApiException e) | **includeQuotas** | **bool?** | Value indicating whether to include individual resource quotas. | [optional] | | **pageSize** | **int?** | Number of items per page. The maximum number of items per page is `250`. | [optional] | | **pageNumber** | **int?** | The desired page number. Should be greater than or equal to 1. Default is 1. | [optional] | -| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | +| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | ### Return type @@ -458,7 +458,7 @@ namespace Example var tosAccepted = true; // bool? | Gets or sets a value indicating whether the terms of service have been accepted by the user. (optional) var pageSize = 56; // int? | Number of items per page. The maximum number of items per page is `250`. (optional) var pageNumber = 56; // int? | The desired page number. Should be greater than or equal to 1. Default is 1. (optional) - var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) + var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) try { @@ -504,7 +504,7 @@ catch (ApiException e) | **tosAccepted** | **bool?** | Gets or sets a value indicating whether the terms of service have been accepted by the user. | [optional] | | **pageSize** | **int?** | Number of items per page. The maximum number of items per page is `250`. | [optional] | | **pageNumber** | **int?** | The desired page number. Should be greater than or equal to 1. Default is 1. | [optional] | -| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | +| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | ### Return type @@ -560,7 +560,7 @@ namespace Example var apiInstance = new AdminApi(config); var pageNumber = 56; // int? | The desired page number. Should be greater than or equal to 1. Default is 1. (optional) var pageSize = 56; // int? | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional) - var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) + var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) try { @@ -605,7 +605,7 @@ catch (ApiException e) |------|------|-------------|-------| | **pageNumber** | **int?** | The desired page number. Should be greater than or equal to 1. Default is 1. | [optional] | | **pageSize** | **int?** | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. | [optional] | -| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | +| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | ### Return type diff --git a/docs/ApplicationProfileApi.md b/docs/ApplicationProfileApi.md index 6129dca..e0e99ac 100644 --- a/docs/ApplicationProfileApi.md +++ b/docs/ApplicationProfileApi.md @@ -324,7 +324,7 @@ namespace Example var modules = true; // bool? | Gets or sets a value indicating whether to include modules in the application profiles. (optional) var pageNumber = 56; // int? | The desired page number. Should be greater than or equal to 1. Default is 1. (optional) var pageSize = 56; // int? | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional) - var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) + var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) try { @@ -372,7 +372,7 @@ catch (ApiException e) | **modules** | **bool?** | Gets or sets a value indicating whether to include modules in the application profiles. | [optional] | | **pageNumber** | **int?** | The desired page number. Should be greater than or equal to 1. Default is 1. | [optional] | | **pageSize** | **int?** | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. | [optional] | -| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | +| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | ### Return type diff --git a/docs/DisciplineApi.md b/docs/DisciplineApi.md index b0fd8ff..8380e37 100644 --- a/docs/DisciplineApi.md +++ b/docs/DisciplineApi.md @@ -218,7 +218,7 @@ namespace Example var apiInstance = new DisciplineApi(config); var pageNumber = 56; // int? | The desired page number. Should be greater than or equal to 1. Default is 1. (optional) var pageSize = 56; // int? | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional) - var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) + var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) try { @@ -263,7 +263,7 @@ catch (ApiException e) |------|------|-------------|-------| | **pageNumber** | **int?** | The desired page number. Should be greater than or equal to 1. Default is 1. | [optional] | | **pageSize** | **int?** | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. | [optional] | -| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | +| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | ### Return type diff --git a/docs/FileSystemStorageOptionsDto.md b/docs/FileSystemStorageOptionsDto.md new file mode 100644 index 0000000..ca82f66 --- /dev/null +++ b/docs/FileSystemStorageOptionsDto.md @@ -0,0 +1,11 @@ +# Coscine.ApiClient.Core.Model.FileSystemStorageOptionsDto +Represents the data transfer object (DTO) for FileSystemStorage options. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Directory** | **string** | The directory where the files are stored. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/LanguageApi.md b/docs/LanguageApi.md index d2d8e62..a30d5ca 100644 --- a/docs/LanguageApi.md +++ b/docs/LanguageApi.md @@ -218,7 +218,7 @@ namespace Example var apiInstance = new LanguageApi(config); var pageNumber = 56; // int? | The desired page number. Should be greater than or equal to 1. Default is 1. (optional) var pageSize = 56; // int? | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional) - var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) + var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) try { @@ -263,7 +263,7 @@ catch (ApiException e) |------|------|-------------|-------| | **pageNumber** | **int?** | The desired page number. Should be greater than or equal to 1. Default is 1. | [optional] | | **pageSize** | **int?** | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. | [optional] | -| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | +| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | ### Return type diff --git a/docs/LicenseApi.md b/docs/LicenseApi.md index c63cb38..94535af 100644 --- a/docs/LicenseApi.md +++ b/docs/LicenseApi.md @@ -218,7 +218,7 @@ namespace Example var apiInstance = new LicenseApi(config); var pageNumber = 56; // int? | The desired page number. Should be greater than or equal to 1. Default is 1. (optional) var pageSize = 56; // int? | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional) - var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) + var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) try { @@ -263,7 +263,7 @@ catch (ApiException e) |------|------|-------------|-------| | **pageNumber** | **int?** | The desired page number. Should be greater than or equal to 1. Default is 1. | [optional] | | **pageSize** | **int?** | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. | [optional] | -| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | +| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | ### Return type diff --git a/docs/OrganizationApi.md b/docs/OrganizationApi.md index a6cbbe4..07f5555 100644 --- a/docs/OrganizationApi.md +++ b/docs/OrganizationApi.md @@ -220,7 +220,7 @@ namespace Example var filterByPublicationService = true; // bool? | Gets or sets the option to find only organizations having the publication service set. (optional) var pageNumber = 56; // int? | The desired page number. Should be greater than or equal to 1. Default is 1. (optional) var pageSize = 56; // int? | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional) - var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) + var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) try { @@ -268,7 +268,7 @@ catch (ApiException e) | **filterByPublicationService** | **bool?** | Gets or sets the option to find only organizations having the publication service set. | [optional] | | **pageNumber** | **int?** | The desired page number. Should be greater than or equal to 1. Default is 1. | [optional] | | **pageSize** | **int?** | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. | [optional] | -| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | +| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | ### Return type diff --git a/docs/PidApi.md b/docs/PidApi.md index cbc58d6..2d14b56 100644 --- a/docs/PidApi.md +++ b/docs/PidApi.md @@ -227,7 +227,7 @@ namespace Example var includeDeleted = true; // bool? | Gets or sets a value indicating whether to include deleted pid information. (optional) var pageNumber = 56; // int? | The desired page number. Should be greater than or equal to 1. Default is 1. (optional) var pageSize = 56; // int? | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional) - var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) + var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) try { @@ -275,7 +275,7 @@ catch (ApiException e) | **includeDeleted** | **bool?** | Gets or sets a value indicating whether to include deleted pid information. | [optional] | | **pageNumber** | **int?** | The desired page number. Should be greater than or equal to 1. Default is 1. | [optional] | | **pageSize** | **int?** | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. | [optional] | -| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | +| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | ### Return type diff --git a/docs/ProjectApi.md b/docs/ProjectApi.md index cb81719..bb3af6e 100644 --- a/docs/ProjectApi.md +++ b/docs/ProjectApi.md @@ -417,7 +417,7 @@ namespace Example var topLevel = true; // bool? | Gets or sets a value indicating whether to retrieve only top-level projects. (optional) var pageNumber = 56; // int? | The desired page number. Should be greater than or equal to 1. Default is 1. (optional) var pageSize = 56; // int? | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional) - var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) + var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) try { @@ -464,7 +464,7 @@ catch (ApiException e) | **topLevel** | **bool?** | Gets or sets a value indicating whether to retrieve only top-level projects. | [optional] | | **pageNumber** | **int?** | The desired page number. Should be greater than or equal to 1. Default is 1. | [optional] | | **pageSize** | **int?** | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. | [optional] | -| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | +| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | ### Return type diff --git a/docs/ProjectInvitationApi.md b/docs/ProjectInvitationApi.md index 376b4ee..25f0760 100644 --- a/docs/ProjectInvitationApi.md +++ b/docs/ProjectInvitationApi.md @@ -421,7 +421,7 @@ namespace Example var projectId = "projectId_example"; // string | The Id or slug of the project. var pageNumber = 56; // int? | The desired page number. Should be greater than or equal to 1. Default is 1. (optional) var pageSize = 56; // int? | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional) - var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) + var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) try { @@ -467,7 +467,7 @@ catch (ApiException e) | **projectId** | **string** | The Id or slug of the project. | | | **pageNumber** | **int?** | The desired page number. Should be greater than or equal to 1. Default is 1. | [optional] | | **pageSize** | **int?** | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. | [optional] | -| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | +| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | ### Return type diff --git a/docs/ProjectMemberApi.md b/docs/ProjectMemberApi.md index 6827710..359020c 100644 --- a/docs/ProjectMemberApi.md +++ b/docs/ProjectMemberApi.md @@ -422,7 +422,7 @@ namespace Example var projectId = "projectId_example"; // string | The Id or slug of the project. var pageNumber = 56; // int? | The desired page number. Should be greater than or equal to 1. Default is 1. (optional) var pageSize = 56; // int? | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional) - var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) + var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) try { @@ -468,7 +468,7 @@ catch (ApiException e) | **projectId** | **string** | The Id or slug of the project. | | | **pageNumber** | **int?** | The desired page number. Should be greater than or equal to 1. Default is 1. | [optional] | | **pageSize** | **int?** | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. | [optional] | -| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | +| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | ### Return type diff --git a/docs/ProjectQuotaApi.md b/docs/ProjectQuotaApi.md index d0e9a33..74af517 100644 --- a/docs/ProjectQuotaApi.md +++ b/docs/ProjectQuotaApi.md @@ -227,7 +227,7 @@ namespace Example var projectId = "projectId_example"; // string | The Id or slug of the project. var pageNumber = 56; // int? | The desired page number. Should be greater than or equal to 1. Default is 1. (optional) var pageSize = 56; // int? | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional) - var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) + var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) try { @@ -273,7 +273,7 @@ catch (ApiException e) | **projectId** | **string** | The Id or slug of the project. | | | **pageNumber** | **int?** | The desired page number. Should be greater than or equal to 1. Default is 1. | [optional] | | **pageSize** | **int?** | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. | [optional] | -| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | +| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | ### Return type diff --git a/docs/ProjectResourceApi.md b/docs/ProjectResourceApi.md index 944e54a..f755b8f 100644 --- a/docs/ProjectResourceApi.md +++ b/docs/ProjectResourceApi.md @@ -425,7 +425,7 @@ namespace Example var projectId = "projectId_example"; // string | The Id or slug of the project. var pageNumber = 56; // int? | The desired page number. Should be greater than or equal to 1. Default is 1. (optional) var pageSize = 56; // int? | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional) - var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) + var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) try { @@ -471,7 +471,7 @@ catch (ApiException e) | **projectId** | **string** | The Id or slug of the project. | | | **pageNumber** | **int?** | The desired page number. Should be greater than or equal to 1. Default is 1. | [optional] | | **pageSize** | **int?** | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. | [optional] | -| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | +| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | ### Return type diff --git a/docs/ResourceTypeApi.md b/docs/ResourceTypeApi.md index 5391f53..d3b988f 100644 --- a/docs/ResourceTypeApi.md +++ b/docs/ResourceTypeApi.md @@ -5,10 +5,7 @@ All URIs are relative to *https://coscine-api-hristov.web.vulcanus.otc.coscine.d | Method | HTTP request | Description | |--------|--------------|-------------| | [**ApiV2ResourceTypesOptions**](ResourceTypeApi.md#apiv2resourcetypesoptions) | **OPTIONS** /api/v2/resource-types | Responds with the HTTP methods allowed for the endpoint. | -| [**GetAllGitlabBranchesForProject**](ResourceTypeApi.md#getallgitlabbranchesforproject) | **GET** /api/v2/resource-types/gitlab/projects/{gitlabProjectId}/branches | Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. | -| [**GetAllGitlabProjects**](ResourceTypeApi.md#getallgitlabprojects) | **GET** /api/v2/resource-types/gitlab/projects | Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. | | [**GetAllResourceTypesInformation**](ResourceTypeApi.md#getallresourcetypesinformation) | **GET** /api/v2/resource-types/types | Retrieves the entire global resource types information. | -| [**GetGitlabProject**](ResourceTypeApi.md#getgitlabproject) | **GET** /api/v2/resource-types/gitlab/projects/{gitlabProjectId} | Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. | | [**GetResourceTypeInformation**](ResourceTypeApi.md#getresourcetypeinformation) | **GET** /api/v2/resource-types/types/{resourceTypeId} | Retrieves the resource type information for a specific resource type. | <a id="apiv2resourcetypesoptions"></a> @@ -96,202 +93,6 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -<a id="getallgitlabbranchesforproject"></a> -# **GetAllGitlabBranchesForProject** -> GitlabBranchDtoIEnumerableResponse GetAllGitlabBranchesForProject (int gitlabProjectId, string domain, string accessToken) - -Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using Coscine.ApiClient.Core.Api; -using Coscine.ApiClient.Core.Client; -using Coscine.ApiClient.Core.Model; - -namespace Example -{ - public class GetAllGitlabBranchesForProjectExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.BasePath = "https://coscine-api-hristov.web.vulcanus.otc.coscine.dev/coscine"; - // Configure API key authorization: Bearer - config.AddApiKey("Authorization", "YOUR_API_KEY"); - // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed - // config.AddApiKeyPrefix("Authorization", "Bearer"); - - var apiInstance = new ResourceTypeApi(config); - var gitlabProjectId = 56; // int | The ID of the GitLab project. - var domain = https://git.rwth-aachen.de/; // string | Domain/Host of the GitLab Provider. - var accessToken = "accessToken_example"; // string | GitLab Project or Group Access Token. - - try - { - // Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. - GitlabBranchDtoIEnumerableResponse result = apiInstance.GetAllGitlabBranchesForProject(gitlabProjectId, domain, accessToken); - Debug.WriteLine(result); - } - catch (ApiException e) - { - Debug.Print("Exception when calling ResourceTypeApi.GetAllGitlabBranchesForProject: " + e.Message); - Debug.Print("Status Code: " + e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -#### Using the GetAllGitlabBranchesForProjectWithHttpInfo variant -This returns an ApiResponse object which contains the response data, status code and headers. - -```csharp -try -{ - // Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. - ApiResponse<GitlabBranchDtoIEnumerableResponse> response = apiInstance.GetAllGitlabBranchesForProjectWithHttpInfo(gitlabProjectId, domain, accessToken); - Debug.Write("Status Code: " + response.StatusCode); - Debug.Write("Response Headers: " + response.Headers); - Debug.Write("Response Body: " + response.Data); -} -catch (ApiException e) -{ - Debug.Print("Exception when calling ResourceTypeApi.GetAllGitlabBranchesForProjectWithHttpInfo: " + e.Message); - Debug.Print("Status Code: " + e.ErrorCode); - Debug.Print(e.StackTrace); -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **gitlabProjectId** | **int** | The ID of the GitLab project. | | -| **domain** | **string** | Domain/Host of the GitLab Provider. | | -| **accessToken** | **string** | GitLab Project or Group Access Token. | | - -### Return type - -[**GitlabBranchDtoIEnumerableResponse**](GitlabBranchDtoIEnumerableResponse.md) - -### Authorization - -[Bearer](../README.md#Bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, text/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Returns the GitLab project. | - | -| **403** | GitLab access token is invalid. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -<a id="getallgitlabprojects"></a> -# **GetAllGitlabProjects** -> GitlabProjectDtoIEnumerableResponse GetAllGitlabProjects (string domain, string accessToken) - -Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using Coscine.ApiClient.Core.Api; -using Coscine.ApiClient.Core.Client; -using Coscine.ApiClient.Core.Model; - -namespace Example -{ - public class GetAllGitlabProjectsExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.BasePath = "https://coscine-api-hristov.web.vulcanus.otc.coscine.dev/coscine"; - // Configure API key authorization: Bearer - config.AddApiKey("Authorization", "YOUR_API_KEY"); - // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed - // config.AddApiKeyPrefix("Authorization", "Bearer"); - - var apiInstance = new ResourceTypeApi(config); - var domain = https://git.rwth-aachen.de/; // string | Domain/Host of the GitLab Provider. - var accessToken = "accessToken_example"; // string | GitLab Project or Group Access Token. - - try - { - // Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. - GitlabProjectDtoIEnumerableResponse result = apiInstance.GetAllGitlabProjects(domain, accessToken); - Debug.WriteLine(result); - } - catch (ApiException e) - { - Debug.Print("Exception when calling ResourceTypeApi.GetAllGitlabProjects: " + e.Message); - Debug.Print("Status Code: " + e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -#### Using the GetAllGitlabProjectsWithHttpInfo variant -This returns an ApiResponse object which contains the response data, status code and headers. - -```csharp -try -{ - // Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. - ApiResponse<GitlabProjectDtoIEnumerableResponse> response = apiInstance.GetAllGitlabProjectsWithHttpInfo(domain, accessToken); - Debug.Write("Status Code: " + response.StatusCode); - Debug.Write("Response Headers: " + response.Headers); - Debug.Write("Response Body: " + response.Data); -} -catch (ApiException e) -{ - Debug.Print("Exception when calling ResourceTypeApi.GetAllGitlabProjectsWithHttpInfo: " + e.Message); - Debug.Print("Status Code: " + e.ErrorCode); - Debug.Print(e.StackTrace); -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **domain** | **string** | Domain/Host of the GitLab Provider. | | -| **accessToken** | **string** | GitLab Project or Group Access Token. | | - -### Return type - -[**GitlabProjectDtoIEnumerableResponse**](GitlabProjectDtoIEnumerableResponse.md) - -### Authorization - -[Bearer](../README.md#Bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, text/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Returns the GitLab projects. | - | -| **403** | GitLab access token is invalid. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - <a id="getallresourcetypesinformation"></a> # **GetAllResourceTypesInformation** > ResourceTypeInformationDtoIEnumerableResponse GetAllResourceTypesInformation () @@ -381,105 +182,6 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -<a id="getgitlabproject"></a> -# **GetGitlabProject** -> GitlabProjectDtoResponse GetGitlabProject (int gitlabProjectId, string domain, string accessToken) - -Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using Coscine.ApiClient.Core.Api; -using Coscine.ApiClient.Core.Client; -using Coscine.ApiClient.Core.Model; - -namespace Example -{ - public class GetGitlabProjectExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.BasePath = "https://coscine-api-hristov.web.vulcanus.otc.coscine.dev/coscine"; - // Configure API key authorization: Bearer - config.AddApiKey("Authorization", "YOUR_API_KEY"); - // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed - // config.AddApiKeyPrefix("Authorization", "Bearer"); - - var apiInstance = new ResourceTypeApi(config); - var gitlabProjectId = 56; // int | The ID of the GitLab project. - var domain = https://git.rwth-aachen.de/; // string | Domain/Host of the GitLab Provider. - var accessToken = "accessToken_example"; // string | GitLab Project or Group Access Token. - - try - { - // Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. - GitlabProjectDtoResponse result = apiInstance.GetGitlabProject(gitlabProjectId, domain, accessToken); - Debug.WriteLine(result); - } - catch (ApiException e) - { - Debug.Print("Exception when calling ResourceTypeApi.GetGitlabProject: " + e.Message); - Debug.Print("Status Code: " + e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -#### Using the GetGitlabProjectWithHttpInfo variant -This returns an ApiResponse object which contains the response data, status code and headers. - -```csharp -try -{ - // Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. - ApiResponse<GitlabProjectDtoResponse> response = apiInstance.GetGitlabProjectWithHttpInfo(gitlabProjectId, domain, accessToken); - Debug.Write("Status Code: " + response.StatusCode); - Debug.Write("Response Headers: " + response.Headers); - Debug.Write("Response Body: " + response.Data); -} -catch (ApiException e) -{ - Debug.Print("Exception when calling ResourceTypeApi.GetGitlabProjectWithHttpInfo: " + e.Message); - Debug.Print("Status Code: " + e.ErrorCode); - Debug.Print(e.StackTrace); -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **gitlabProjectId** | **int** | The ID of the GitLab project. | | -| **domain** | **string** | Domain/Host of the GitLab Provider. | | -| **accessToken** | **string** | GitLab Project or Group Access Token. | | - -### Return type - -[**GitlabProjectDtoResponse**](GitlabProjectDtoResponse.md) - -### Authorization - -[Bearer](../README.md#Bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, text/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Returns the GitLab project. | - | -| **403** | GitLab access token is invalid. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - <a id="getresourcetypeinformation"></a> # **GetResourceTypeInformation** > ResourceTypeInformationDtoResponse GetResourceTypeInformation (Guid resourceTypeId) diff --git a/docs/ResourceTypeGitLabApi.md b/docs/ResourceTypeGitLabApi.md new file mode 100644 index 0000000..b607937 --- /dev/null +++ b/docs/ResourceTypeGitLabApi.md @@ -0,0 +1,391 @@ +# Coscine.ApiClient.Core.Api.ResourceTypeGitLabApi + +All URIs are relative to *https://coscine-api-hristov.web.vulcanus.otc.coscine.dev/coscine* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**ApiV2ResourceTypesGitlabOptions**](ResourceTypeGitLabApi.md#apiv2resourcetypesgitlaboptions) | **OPTIONS** /api/v2/resource-types/gitlab | Responds with the HTTP methods allowed for the endpoint. | +| [**GetAllGitlabBranchesForProject**](ResourceTypeGitLabApi.md#getallgitlabbranchesforproject) | **GET** /api/v2/resource-types/gitlab/projects/{gitlabProjectId}/branches | Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. | +| [**GetAllGitlabProjects**](ResourceTypeGitLabApi.md#getallgitlabprojects) | **GET** /api/v2/resource-types/gitlab/projects | Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. | +| [**GetGitlabProject**](ResourceTypeGitLabApi.md#getgitlabproject) | **GET** /api/v2/resource-types/gitlab/projects/{gitlabProjectId} | Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. | + +<a id="apiv2resourcetypesgitlaboptions"></a> +# **ApiV2ResourceTypesGitlabOptions** +> void ApiV2ResourceTypesGitlabOptions () + +Responds with the HTTP methods allowed for the endpoint. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Coscine.ApiClient.Core.Api; +using Coscine.ApiClient.Core.Client; +using Coscine.ApiClient.Core.Model; + +namespace Example +{ + public class ApiV2ResourceTypesGitlabOptionsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://coscine-api-hristov.web.vulcanus.otc.coscine.dev/coscine"; + // Configure API key authorization: Bearer + config.AddApiKey("Authorization", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("Authorization", "Bearer"); + + var apiInstance = new ResourceTypeGitLabApi(config); + + try + { + // Responds with the HTTP methods allowed for the endpoint. + apiInstance.ApiV2ResourceTypesGitlabOptions(); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ResourceTypeGitLabApi.ApiV2ResourceTypesGitlabOptions: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ApiV2ResourceTypesGitlabOptionsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Responds with the HTTP methods allowed for the endpoint. + apiInstance.ApiV2ResourceTypesGitlabOptionsWithHttpInfo(); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ResourceTypeGitLabApi.ApiV2ResourceTypesGitlabOptionsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters +This endpoint does not need any parameter. +### Return type + +void (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +<a id="getallgitlabbranchesforproject"></a> +# **GetAllGitlabBranchesForProject** +> GitlabBranchDtoIEnumerableResponse GetAllGitlabBranchesForProject (int gitlabProjectId, string domain, string accessToken) + +Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Coscine.ApiClient.Core.Api; +using Coscine.ApiClient.Core.Client; +using Coscine.ApiClient.Core.Model; + +namespace Example +{ + public class GetAllGitlabBranchesForProjectExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://coscine-api-hristov.web.vulcanus.otc.coscine.dev/coscine"; + // Configure API key authorization: Bearer + config.AddApiKey("Authorization", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("Authorization", "Bearer"); + + var apiInstance = new ResourceTypeGitLabApi(config); + var gitlabProjectId = 56; // int | The ID of the GitLab project. + var domain = https://git.rwth-aachen.de/; // string | Domain/Host of the GitLab Provider. + var accessToken = "accessToken_example"; // string | GitLab Project or Group Access Token. + + try + { + // Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. + GitlabBranchDtoIEnumerableResponse result = apiInstance.GetAllGitlabBranchesForProject(gitlabProjectId, domain, accessToken); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ResourceTypeGitLabApi.GetAllGitlabBranchesForProject: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetAllGitlabBranchesForProjectWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. + ApiResponse<GitlabBranchDtoIEnumerableResponse> response = apiInstance.GetAllGitlabBranchesForProjectWithHttpInfo(gitlabProjectId, domain, accessToken); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ResourceTypeGitLabApi.GetAllGitlabBranchesForProjectWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **gitlabProjectId** | **int** | The ID of the GitLab project. | | +| **domain** | **string** | Domain/Host of the GitLab Provider. | | +| **accessToken** | **string** | GitLab Project or Group Access Token. | | + +### Return type + +[**GitlabBranchDtoIEnumerableResponse**](GitlabBranchDtoIEnumerableResponse.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Returns the GitLab project. | - | +| **403** | GitLab access token is invalid. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +<a id="getallgitlabprojects"></a> +# **GetAllGitlabProjects** +> GitlabProjectDtoIEnumerableResponse GetAllGitlabProjects (string domain, string accessToken) + +Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Coscine.ApiClient.Core.Api; +using Coscine.ApiClient.Core.Client; +using Coscine.ApiClient.Core.Model; + +namespace Example +{ + public class GetAllGitlabProjectsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://coscine-api-hristov.web.vulcanus.otc.coscine.dev/coscine"; + // Configure API key authorization: Bearer + config.AddApiKey("Authorization", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("Authorization", "Bearer"); + + var apiInstance = new ResourceTypeGitLabApi(config); + var domain = https://git.rwth-aachen.de/; // string | Domain/Host of the GitLab Provider. + var accessToken = "accessToken_example"; // string | GitLab Project or Group Access Token. + + try + { + // Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. + GitlabProjectDtoIEnumerableResponse result = apiInstance.GetAllGitlabProjects(domain, accessToken); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ResourceTypeGitLabApi.GetAllGitlabProjects: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetAllGitlabProjectsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. + ApiResponse<GitlabProjectDtoIEnumerableResponse> response = apiInstance.GetAllGitlabProjectsWithHttpInfo(domain, accessToken); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ResourceTypeGitLabApi.GetAllGitlabProjectsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **domain** | **string** | Domain/Host of the GitLab Provider. | | +| **accessToken** | **string** | GitLab Project or Group Access Token. | | + +### Return type + +[**GitlabProjectDtoIEnumerableResponse**](GitlabProjectDtoIEnumerableResponse.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Returns the GitLab projects. | - | +| **403** | GitLab access token is invalid. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +<a id="getgitlabproject"></a> +# **GetGitlabProject** +> GitlabProjectDtoResponse GetGitlabProject (int gitlabProjectId, string domain, string accessToken) + +Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Coscine.ApiClient.Core.Api; +using Coscine.ApiClient.Core.Client; +using Coscine.ApiClient.Core.Model; + +namespace Example +{ + public class GetGitlabProjectExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://coscine-api-hristov.web.vulcanus.otc.coscine.dev/coscine"; + // Configure API key authorization: Bearer + config.AddApiKey("Authorization", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("Authorization", "Bearer"); + + var apiInstance = new ResourceTypeGitLabApi(config); + var gitlabProjectId = 56; // int | The ID of the GitLab project. + var domain = https://git.rwth-aachen.de/; // string | Domain/Host of the GitLab Provider. + var accessToken = "accessToken_example"; // string | GitLab Project or Group Access Token. + + try + { + // Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. + GitlabProjectDtoResponse result = apiInstance.GetGitlabProject(gitlabProjectId, domain, accessToken); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ResourceTypeGitLabApi.GetGitlabProject: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetGitlabProjectWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. + ApiResponse<GitlabProjectDtoResponse> response = apiInstance.GetGitlabProjectWithHttpInfo(gitlabProjectId, domain, accessToken); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ResourceTypeGitLabApi.GetGitlabProjectWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **gitlabProjectId** | **int** | The ID of the GitLab project. | | +| **domain** | **string** | Domain/Host of the GitLab Provider. | | +| **accessToken** | **string** | GitLab Project or Group Access Token. | | + +### Return type + +[**GitlabProjectDtoResponse**](GitlabProjectDtoResponse.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Returns the GitLab project. | - | +| **403** | GitLab access token is invalid. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/ResourceTypeOptionsDto.md b/docs/ResourceTypeOptionsDto.md index 86dc23c..2b1e9cc 100644 --- a/docs/ResourceTypeOptionsDto.md +++ b/docs/ResourceTypeOptionsDto.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **Rds** | [**RdsOptionsDto**](RdsOptionsDto.md) | | [optional] **RdsS3** | [**RdsS3OptionsDto**](RdsS3OptionsDto.md) | | [optional] **RdsS3Worm** | [**RdsS3WormOptionsDto**](RdsS3WormOptionsDto.md) | | [optional] +**FileSystemStorage** | [**FileSystemStorageOptionsDto**](FileSystemStorageOptionsDto.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/RoleApi.md b/docs/RoleApi.md index 3b87f26..9684126 100644 --- a/docs/RoleApi.md +++ b/docs/RoleApi.md @@ -218,7 +218,7 @@ namespace Example var apiInstance = new RoleApi(config); var pageNumber = 56; // int? | The desired page number. Should be greater than or equal to 1. Default is 1. (optional) var pageSize = 56; // int? | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional) - var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) + var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) try { @@ -263,7 +263,7 @@ catch (ApiException e) |------|------|-------------|-------| | **pageNumber** | **int?** | The desired page number. Should be greater than or equal to 1. Default is 1. | [optional] | | **pageSize** | **int?** | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. | [optional] | -| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | +| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | ### Return type diff --git a/docs/SearchApi.md b/docs/SearchApi.md index 9c8ac31..e6f53d2 100644 --- a/docs/SearchApi.md +++ b/docs/SearchApi.md @@ -126,7 +126,7 @@ namespace Example var category = new SearchCategoryType?(); // SearchCategoryType? | Set the category filter (optional) var pageNumber = 56; // int? | The desired page number. Should be greater than or equal to 1. Default is 1. (optional) var pageSize = 56; // int? | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional) - var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) + var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) try { @@ -175,7 +175,7 @@ catch (ApiException e) | **category** | [**SearchCategoryType?**](SearchCategoryType?.md) | Set the category filter | [optional] | | **pageNumber** | **int?** | The desired page number. Should be greater than or equal to 1. Default is 1. | [optional] | | **pageSize** | **int?** | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. | [optional] | -| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | +| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | ### Return type diff --git a/docs/SelfApiTokenApi.md b/docs/SelfApiTokenApi.md index 3d2b974..c535ad4 100644 --- a/docs/SelfApiTokenApi.md +++ b/docs/SelfApiTokenApi.md @@ -221,7 +221,7 @@ namespace Example var apiInstance = new SelfApiTokenApi(config); var pageNumber = 56; // int? | The desired page number. Should be greater than or equal to 1. Default is 1. (optional) var pageSize = 56; // int? | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional) - var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) + var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) try { @@ -266,7 +266,7 @@ catch (ApiException e) |------|------|-------------|-------| | **pageNumber** | **int?** | The desired page number. Should be greater than or equal to 1. Default is 1. | [optional] | | **pageSize** | **int?** | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. | [optional] | -| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | +| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | ### Return type diff --git a/docs/SystemStatusApi.md b/docs/SystemStatusApi.md index 8c00d02..95ef09b 100644 --- a/docs/SystemStatusApi.md +++ b/docs/SystemStatusApi.md @@ -129,7 +129,7 @@ namespace Example var searchTerm = "searchTerm_example"; // string? | Filter messages by text contained in the messages or title. (optional) var pageNumber = 56; // int? | The desired page number. Should be greater than or equal to 1. Default is 1. (optional) var pageSize = 56; // int? | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional) - var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) + var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) try { @@ -180,7 +180,7 @@ catch (ApiException e) | **searchTerm** | **string?** | Filter messages by text contained in the messages or title. | [optional] | | **pageNumber** | **int?** | The desired page number. Should be greater than or equal to 1. Default is 1. | [optional] | | **pageSize** | **int?** | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. | [optional] | -| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | +| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | ### Return type @@ -239,7 +239,7 @@ namespace Example var searchTerm = "searchTerm_example"; // string? | Filter messages by text contained in the messages or title. (optional) var pageNumber = 56; // int? | The desired page number. Should be greater than or equal to 1. Default is 1. (optional) var pageSize = 56; // int? | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional) - var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) + var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) try { @@ -290,7 +290,7 @@ catch (ApiException e) | **searchTerm** | **string?** | Filter messages by text contained in the messages or title. | [optional] | | **pageNumber** | **int?** | The desired page number. Should be greater than or equal to 1. Default is 1. | [optional] | | **pageSize** | **int?** | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. | [optional] | -| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | +| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | ### Return type diff --git a/docs/TitleApi.md b/docs/TitleApi.md index f6fcb09..c4bbd2f 100644 --- a/docs/TitleApi.md +++ b/docs/TitleApi.md @@ -218,7 +218,7 @@ namespace Example var apiInstance = new TitleApi(config); var pageNumber = 56; // int? | The desired page number. Should be greater than or equal to 1. Default is 1. (optional) var pageSize = 56; // int? | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional) - var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) + var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) try { @@ -263,7 +263,7 @@ catch (ApiException e) |------|------|-------------|-------| | **pageNumber** | **int?** | The desired page number. Should be greater than or equal to 1. Default is 1. | [optional] | | **pageSize** | **int?** | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. | [optional] | -| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | +| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | ### Return type diff --git a/docs/TreeApi.md b/docs/TreeApi.md index 1e9eae4..bc8bd1e 100644 --- a/docs/TreeApi.md +++ b/docs/TreeApi.md @@ -444,7 +444,7 @@ namespace Example var path = "path_example"; // string? | Gets or sets the path of the file tree. (optional) var pageNumber = 56; // int? | The desired page number. Should be greater than or equal to 1. Default is 1. (optional) var pageSize = 56; // int? | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional) - var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) + var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) try { @@ -492,7 +492,7 @@ catch (ApiException e) | **path** | **string?** | Gets or sets the path of the file tree. | [optional] | | **pageNumber** | **int?** | The desired page number. Should be greater than or equal to 1. Default is 1. | [optional] | | **pageSize** | **int?** | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. | [optional] | -| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | +| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | ### Return type @@ -554,7 +554,7 @@ namespace Example var includeProvenance = true; // bool? | Gets or sets if provenance metadata should be included. (optional) var pageNumber = 56; // int? | The desired page number. Should be greater than or equal to 1. Default is 1. (optional) var pageSize = 56; // int? | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional) - var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) + var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) try { @@ -605,7 +605,7 @@ catch (ApiException e) | **includeProvenance** | **bool?** | Gets or sets if provenance metadata should be included. | [optional] | | **pageNumber** | **int?** | The desired page number. Should be greater than or equal to 1. Default is 1. | [optional] | | **pageSize** | **int?** | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. | [optional] | -| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | +| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | ### Return type diff --git a/docs/VisibilityApi.md b/docs/VisibilityApi.md index 8bd5622..0cdd24f 100644 --- a/docs/VisibilityApi.md +++ b/docs/VisibilityApi.md @@ -123,7 +123,7 @@ namespace Example var apiInstance = new VisibilityApi(config); var pageNumber = 56; // int? | The desired page number. Should be greater than or equal to 1. Default is 1. (optional) var pageSize = 56; // int? | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional) - var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) + var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) try { @@ -168,7 +168,7 @@ catch (ApiException e) |------|------|-------------|-------| | **pageNumber** | **int?** | The desired page number. Should be greater than or equal to 1. Default is 1. | [optional] | | **pageSize** | **int?** | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. | [optional] | -| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | +| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | ### Return type diff --git a/docs/VocabularyApi.md b/docs/VocabularyApi.md index 242e3dd..c67ca64 100644 --- a/docs/VocabularyApi.md +++ b/docs/VocabularyApi.md @@ -126,7 +126,7 @@ namespace Example var language = new AcceptedLanguage?(); // AcceptedLanguage? | Gets or sets the language for which the vocabularies are requested. (optional) var pageNumber = 56; // int? | The desired page number. Should be greater than or equal to 1. Default is 1. (optional) var pageSize = 56; // int? | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional) - var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) + var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) try { @@ -173,7 +173,7 @@ catch (ApiException e) | **language** | [**AcceptedLanguage?**](AcceptedLanguage?.md) | Gets or sets the language for which the vocabularies are requested. | [optional] | | **pageNumber** | **int?** | The desired page number. Should be greater than or equal to 1. Default is 1. | [optional] | | **pageSize** | **int?** | The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. | [optional] | -| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | +| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | ### Return type @@ -327,7 +327,7 @@ namespace Example var language = new AcceptedLanguage?(); // AcceptedLanguage? | Gets or sets the language for which the vocabulary instances are requested. (optional) var pageSize = 56; // int? | Number of items per page. The maximum number of items per page is `150`. (optional) var pageNumber = 56; // int? | The desired page number. Should be greater than or equal to 1. Default is 1. (optional) - var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) + var orderBy = "propertyA asc, propertyB desc"; // string? | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional) try { @@ -375,7 +375,7 @@ catch (ApiException e) | **language** | [**AcceptedLanguage?**](AcceptedLanguage?.md) | Gets or sets the language for which the vocabulary instances are requested. | [optional] | | **pageSize** | **int?** | Number of items per page. The maximum number of items per page is `150`. | [optional] | | **pageNumber** | **int?** | The desired page number. Should be greater than or equal to 1. Default is 1. | [optional] | -| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | +| **orderBy** | **string?** | Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. | [optional] | ### Return type diff --git a/src/Coscine.ApiClient.Core.Test/Api/ResourceTypeApiTests.cs b/src/Coscine.ApiClient.Core.Test/Api/ResourceTypeApiTests.cs index 57fcb35..a670328 100644 --- a/src/Coscine.ApiClient.Core.Test/Api/ResourceTypeApiTests.cs +++ b/src/Coscine.ApiClient.Core.Test/Api/ResourceTypeApiTests.cs @@ -65,33 +65,6 @@ namespace Coscine.ApiClient.Core.Test.Api //instance.ApiV2ResourceTypesOptions(); } - /// <summary> - /// Test GetAllGitlabBranchesForProject - /// </summary> - [Fact] - public void GetAllGitlabBranchesForProjectTest() - { - // TODO uncomment below to test the method and replace null with proper value - //int gitlabProjectId = null; - //string domain = null; - //string accessToken = null; - //var response = instance.GetAllGitlabBranchesForProject(gitlabProjectId, domain, accessToken); - //Assert.IsType<GitlabBranchDtoIEnumerableResponse>(response); - } - - /// <summary> - /// Test GetAllGitlabProjects - /// </summary> - [Fact] - public void GetAllGitlabProjectsTest() - { - // TODO uncomment below to test the method and replace null with proper value - //string domain = null; - //string accessToken = null; - //var response = instance.GetAllGitlabProjects(domain, accessToken); - //Assert.IsType<GitlabProjectDtoIEnumerableResponse>(response); - } - /// <summary> /// Test GetAllResourceTypesInformation /// </summary> @@ -103,20 +76,6 @@ namespace Coscine.ApiClient.Core.Test.Api //Assert.IsType<ResourceTypeInformationDtoIEnumerableResponse>(response); } - /// <summary> - /// Test GetGitlabProject - /// </summary> - [Fact] - public void GetGitlabProjectTest() - { - // TODO uncomment below to test the method and replace null with proper value - //int gitlabProjectId = null; - //string domain = null; - //string accessToken = null; - //var response = instance.GetGitlabProject(gitlabProjectId, domain, accessToken); - //Assert.IsType<GitlabProjectDtoResponse>(response); - } - /// <summary> /// Test GetResourceTypeInformation /// </summary> diff --git a/src/Coscine.ApiClient.Core.Test/Api/ResourceTypeGitLabApiTests.cs b/src/Coscine.ApiClient.Core.Test/Api/ResourceTypeGitLabApiTests.cs new file mode 100644 index 0000000..be39a28 --- /dev/null +++ b/src/Coscine.ApiClient.Core.Test/Api/ResourceTypeGitLabApiTests.cs @@ -0,0 +1,109 @@ +/* + * 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 ResourceTypeGitLabApi + /// </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 ResourceTypeGitLabApiTests : IDisposable + { + private ResourceTypeGitLabApi instance; + + public ResourceTypeGitLabApiTests() + { + instance = new ResourceTypeGitLabApi(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// <summary> + /// Test an instance of ResourceTypeGitLabApi + /// </summary> + [Fact] + public void InstanceTest() + { + // TODO uncomment below to test 'IsType' ResourceTypeGitLabApi + //Assert.IsType<ResourceTypeGitLabApi>(instance); + } + + /// <summary> + /// Test ApiV2ResourceTypesGitlabOptions + /// </summary> + [Fact] + public void ApiV2ResourceTypesGitlabOptionsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //instance.ApiV2ResourceTypesGitlabOptions(); + } + + /// <summary> + /// Test GetAllGitlabBranchesForProject + /// </summary> + [Fact] + public void GetAllGitlabBranchesForProjectTest() + { + // TODO uncomment below to test the method and replace null with proper value + //int gitlabProjectId = null; + //string domain = null; + //string accessToken = null; + //var response = instance.GetAllGitlabBranchesForProject(gitlabProjectId, domain, accessToken); + //Assert.IsType<GitlabBranchDtoIEnumerableResponse>(response); + } + + /// <summary> + /// Test GetAllGitlabProjects + /// </summary> + [Fact] + public void GetAllGitlabProjectsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //string domain = null; + //string accessToken = null; + //var response = instance.GetAllGitlabProjects(domain, accessToken); + //Assert.IsType<GitlabProjectDtoIEnumerableResponse>(response); + } + + /// <summary> + /// Test GetGitlabProject + /// </summary> + [Fact] + public void GetGitlabProjectTest() + { + // TODO uncomment below to test the method and replace null with proper value + //int gitlabProjectId = null; + //string domain = null; + //string accessToken = null; + //var response = instance.GetGitlabProject(gitlabProjectId, domain, accessToken); + //Assert.IsType<GitlabProjectDtoResponse>(response); + } + } +} diff --git a/src/Coscine.ApiClient.Core.Test/Coscine.ApiClient.Core.Test.csproj b/src/Coscine.ApiClient.Core.Test/Coscine.ApiClient.Core.Test.csproj index 4f5781e..23c8537 100644 --- a/src/Coscine.ApiClient.Core.Test/Coscine.ApiClient.Core.Test.csproj +++ b/src/Coscine.ApiClient.Core.Test/Coscine.ApiClient.Core.Test.csproj @@ -9,9 +9,9 @@ </PropertyGroup> <ItemGroup> - <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" /> - <PackageReference Include="xunit" Version="2.7.0" /> - <PackageReference Include="xunit.runner.visualstudio" Version="2.5.7" /> + <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" /> + <PackageReference Include="xunit" Version="2.9.2" /> + <PackageReference Include="xunit.runner.visualstudio" Version="2.8.2" /> </ItemGroup> <ItemGroup> diff --git a/src/Coscine.ApiClient.Core.Test/Model/FileSystemStorageOptionsDtoTests.cs b/src/Coscine.ApiClient.Core.Test/Model/FileSystemStorageOptionsDtoTests.cs new file mode 100644 index 0000000..f2d892f --- /dev/null +++ b/src/Coscine.ApiClient.Core.Test/Model/FileSystemStorageOptionsDtoTests.cs @@ -0,0 +1,67 @@ +/* + * Coscine Web API + * + * Coscine (short for <b>CO</b>llaborative <b>SC</b>ientific <b>IN</b>tegration <b>E</b>nvironment) is the research data management platform for your research project. + * + * The version of the OpenAPI document: 2.0 + * Contact: servicedesk@itc.rwth-aachen.de + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using Coscine.ApiClient.Core.Model; +using Coscine.ApiClient.Core.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace Coscine.ApiClient.Core.Test.Model +{ + /// <summary> + /// Class for testing FileSystemStorageOptionsDto + /// </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 FileSystemStorageOptionsDtoTests : IDisposable + { + // TODO uncomment below to declare an instance variable for FileSystemStorageOptionsDto + //private FileSystemStorageOptionsDto instance; + + public FileSystemStorageOptionsDtoTests() + { + // TODO uncomment below to create an instance of FileSystemStorageOptionsDto + //instance = new FileSystemStorageOptionsDto(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// <summary> + /// Test an instance of FileSystemStorageOptionsDto + /// </summary> + [Fact] + public void FileSystemStorageOptionsDtoInstanceTest() + { + // TODO uncomment below to test "IsType" FileSystemStorageOptionsDto + //Assert.IsType<FileSystemStorageOptionsDto>(instance); + } + + /// <summary> + /// Test the property 'Directory' + /// </summary> + [Fact] + public void DirectoryTest() + { + // TODO unit test for the property 'Directory' + } + } +} diff --git a/src/Coscine.ApiClient.Core.Test/Model/ResourceTypeOptionsDtoTests.cs b/src/Coscine.ApiClient.Core.Test/Model/ResourceTypeOptionsDtoTests.cs index cd157b5..856d0d5 100644 --- a/src/Coscine.ApiClient.Core.Test/Model/ResourceTypeOptionsDtoTests.cs +++ b/src/Coscine.ApiClient.Core.Test/Model/ResourceTypeOptionsDtoTests.cs @@ -99,5 +99,14 @@ namespace Coscine.ApiClient.Core.Test.Model { // TODO unit test for the property 'RdsS3Worm' } + + /// <summary> + /// Test the property 'FileSystemStorage' + /// </summary> + [Fact] + public void FileSystemStorageTest() + { + // TODO unit test for the property 'FileSystemStorage' + } } } diff --git a/src/Coscine.ApiClient.Core/Api/AdminApi.cs b/src/Coscine.ApiClient.Core/Api/AdminApi.cs index c29e655..843817e 100644 --- a/src/Coscine.ApiClient.Core/Api/AdminApi.cs +++ b/src/Coscine.ApiClient.Core/Api/AdminApi.cs @@ -60,7 +60,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="httpMethod">The http method to filter activity logs by. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ActivityLogDtoPagedResponse</returns> ActivityLogDtoPagedResponse GetAllActivityLogs(DateTime? activityTimestampBefore = default(DateTime?), DateTime? activityTimestampAfter = default(DateTime?), Guid? guid = default(Guid?), Guid? userId = default(Guid?), string? regularExpression = default(string?), CoscineHttpMethod? httpMethod = default(CoscineHttpMethod?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -80,7 +80,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="httpMethod">The http method to filter activity logs by. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of ActivityLogDtoPagedResponse</returns> ApiResponse<ActivityLogDtoPagedResponse> GetAllActivityLogsWithHttpInfo(DateTime? activityTimestampBefore = default(DateTime?), DateTime? activityTimestampAfter = default(DateTime?), Guid? guid = default(Guid?), Guid? userId = default(Guid?), string? regularExpression = default(string?), CoscineHttpMethod? httpMethod = default(CoscineHttpMethod?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -97,7 +97,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="includePublicationRequests">Gets or sets a value indicating whether to include project publication requests in the results. (optional)</param> /// <param name="pageSize">Number of items per page. The maximum number of items per page is `250`. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ProjectAdminDtoPagedResponse</returns> ProjectAdminDtoPagedResponse GetAllProjects(bool? topLevel = default(bool?), bool? includeDeleted = default(bool?), bool? includeQuotas = default(bool?), bool? includePublicationRequests = default(bool?), int? pageSize = default(int?), int? pageNumber = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -115,7 +115,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="includePublicationRequests">Gets or sets a value indicating whether to include project publication requests in the results. (optional)</param> /// <param name="pageSize">Number of items per page. The maximum number of items per page is `250`. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of ProjectAdminDtoPagedResponse</returns> ApiResponse<ProjectAdminDtoPagedResponse> GetAllProjectsWithHttpInfo(bool? topLevel = default(bool?), bool? includeDeleted = default(bool?), bool? includeQuotas = default(bool?), bool? includePublicationRequests = default(bool?), int? pageSize = default(int?), int? pageNumber = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -130,7 +130,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="includeQuotas">Value indicating whether to include individual resource quotas. (optional)</param> /// <param name="pageSize">Number of items per page. The maximum number of items per page is `250`. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ResourceAdminDtoPagedResponse</returns> ResourceAdminDtoPagedResponse GetAllResources(bool? includeDeleted = default(bool?), bool? includeQuotas = default(bool?), int? pageSize = default(int?), int? pageNumber = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -146,7 +146,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="includeQuotas">Value indicating whether to include individual resource quotas. (optional)</param> /// <param name="pageSize">Number of items per page. The maximum number of items per page is `250`. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of ResourceAdminDtoPagedResponse</returns> ApiResponse<ResourceAdminDtoPagedResponse> GetAllResourcesWithHttpInfo(bool? includeDeleted = default(bool?), bool? includeQuotas = default(bool?), int? pageSize = default(int?), int? pageNumber = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -160,7 +160,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="tosAccepted">Gets or sets a value indicating whether the terms of service have been accepted by the user. (optional)</param> /// <param name="pageSize">Number of items per page. The maximum number of items per page is `250`. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>UserDtoPagedResponse</returns> UserDtoPagedResponse GetAllUsers(bool? tosAccepted = default(bool?), int? pageSize = default(int?), int? pageNumber = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -175,7 +175,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="tosAccepted">Gets or sets a value indicating whether the terms of service have been accepted by the user. (optional)</param> /// <param name="pageSize">Number of items per page. The maximum number of items per page is `250`. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of UserDtoPagedResponse</returns> ApiResponse<UserDtoPagedResponse> GetAllUsersWithHttpInfo(bool? tosAccepted = default(bool?), int? pageSize = default(int?), int? pageNumber = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -188,7 +188,7 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>DeployedGraphDtoPagedResponse</returns> DeployedGraphDtoPagedResponse GetDeployedGraphs(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -202,7 +202,7 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of DeployedGraphDtoPagedResponse</returns> ApiResponse<DeployedGraphDtoPagedResponse> GetDeployedGraphsWithHttpInfo(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -300,7 +300,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task ApiV2AdminOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2AdminOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Responds with the HTTP methods allowed for the endpoint. @@ -312,7 +312,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2AdminOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2AdminOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all activity logs. /// </summary> @@ -328,11 +328,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="httpMethod">The http method to filter activity logs by. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ActivityLogDtoPagedResponse</returns> - System.Threading.Tasks.Task<ActivityLogDtoPagedResponse> GetAllActivityLogsAsync(DateTime? activityTimestampBefore = default(DateTime?), DateTime? activityTimestampAfter = default(DateTime?), Guid? guid = default(Guid?), Guid? userId = default(Guid?), string? regularExpression = default(string?), CoscineHttpMethod? httpMethod = default(CoscineHttpMethod?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ActivityLogDtoPagedResponse> GetAllActivityLogsAsync(DateTime? activityTimestampBefore = default(DateTime?), DateTime? activityTimestampAfter = default(DateTime?), Guid? guid = default(Guid?), Guid? userId = default(Guid?), string? regularExpression = default(string?), CoscineHttpMethod? httpMethod = default(CoscineHttpMethod?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all activity logs. @@ -349,11 +349,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="httpMethod">The http method to filter activity logs by. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ActivityLogDtoPagedResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<ActivityLogDtoPagedResponse>> GetAllActivityLogsWithHttpInfoAsync(DateTime? activityTimestampBefore = default(DateTime?), DateTime? activityTimestampAfter = default(DateTime?), Guid? guid = default(Guid?), Guid? userId = default(Guid?), string? regularExpression = default(string?), CoscineHttpMethod? httpMethod = default(CoscineHttpMethod?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<ActivityLogDtoPagedResponse>> GetAllActivityLogsWithHttpInfoAsync(DateTime? activityTimestampBefore = default(DateTime?), DateTime? activityTimestampAfter = default(DateTime?), Guid? guid = default(Guid?), Guid? userId = default(Guid?), string? regularExpression = default(string?), CoscineHttpMethod? httpMethod = default(CoscineHttpMethod?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all projects. /// </summary> @@ -367,11 +367,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="includePublicationRequests">Gets or sets a value indicating whether to include project publication requests in the results. (optional)</param> /// <param name="pageSize">Number of items per page. The maximum number of items per page is `250`. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ProjectAdminDtoPagedResponse</returns> - System.Threading.Tasks.Task<ProjectAdminDtoPagedResponse> GetAllProjectsAsync(bool? topLevel = default(bool?), bool? includeDeleted = default(bool?), bool? includeQuotas = default(bool?), bool? includePublicationRequests = 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<ProjectAdminDtoPagedResponse> GetAllProjectsAsync(bool? topLevel = default(bool?), bool? includeDeleted = default(bool?), bool? includeQuotas = default(bool?), bool? includePublicationRequests = default(bool?), int? pageSize = default(int?), int? pageNumber = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all projects. @@ -386,11 +386,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="includePublicationRequests">Gets or sets a value indicating whether to include project publication requests in the results. (optional)</param> /// <param name="pageSize">Number of items per page. The maximum number of items per page is `250`. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ProjectAdminDtoPagedResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<ProjectAdminDtoPagedResponse>> GetAllProjectsWithHttpInfoAsync(bool? topLevel = default(bool?), bool? includeDeleted = default(bool?), bool? includeQuotas = default(bool?), bool? includePublicationRequests = 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<ProjectAdminDtoPagedResponse>> GetAllProjectsWithHttpInfoAsync(bool? topLevel = default(bool?), bool? includeDeleted = default(bool?), bool? includeQuotas = default(bool?), bool? includePublicationRequests = default(bool?), int? pageSize = default(int?), int? pageNumber = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all resources. /// </summary> @@ -402,11 +402,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="includeQuotas">Value indicating whether to include individual resource quotas. (optional)</param> /// <param name="pageSize">Number of items per page. The maximum number of items per page is `250`. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ResourceAdminDtoPagedResponse</returns> - System.Threading.Tasks.Task<ResourceAdminDtoPagedResponse> GetAllResourcesAsync(bool? includeDeleted = default(bool?), bool? includeQuotas = 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<ResourceAdminDtoPagedResponse> GetAllResourcesAsync(bool? includeDeleted = default(bool?), bool? includeQuotas = default(bool?), int? pageSize = default(int?), int? pageNumber = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all resources. @@ -419,11 +419,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="includeQuotas">Value indicating whether to include individual resource quotas. (optional)</param> /// <param name="pageSize">Number of items per page. The maximum number of items per page is `250`. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ResourceAdminDtoPagedResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<ResourceAdminDtoPagedResponse>> GetAllResourcesWithHttpInfoAsync(bool? includeDeleted = default(bool?), bool? includeQuotas = 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<ResourceAdminDtoPagedResponse>> GetAllResourcesWithHttpInfoAsync(bool? includeDeleted = default(bool?), bool? includeQuotas = default(bool?), int? pageSize = default(int?), int? pageNumber = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all users. /// </summary> @@ -434,11 +434,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="tosAccepted">Gets or sets a value indicating whether the terms of service have been accepted by the user. (optional)</param> /// <param name="pageSize">Number of items per page. The maximum number of items per page is `250`. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of UserDtoPagedResponse</returns> - System.Threading.Tasks.Task<UserDtoPagedResponse> GetAllUsersAsync(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<UserDtoPagedResponse> GetAllUsersAsync(bool? tosAccepted = default(bool?), int? pageSize = default(int?), int? pageNumber = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all users. @@ -450,11 +450,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="tosAccepted">Gets or sets a value indicating whether the terms of service have been accepted by the user. (optional)</param> /// <param name="pageSize">Number of items per page. The maximum number of items per page is `250`. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (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(global::System.Threading.CancellationToken)); /// <summary> /// Gets all deployed graphs. /// </summary> @@ -464,11 +464,11 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of 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)); + 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(global::System.Threading.CancellationToken)); /// <summary> /// Gets all deployed graphs. @@ -479,11 +479,11 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (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)); + 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(global::System.Threading.CancellationToken)); /// <summary> /// Gets a metadata graph. /// </summary> @@ -496,7 +496,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of RdfDefinitionDtoResponse</returns> - System.Threading.Tasks.Task<RdfDefinitionDtoResponse> GetMetadataGraphAsync(string graph, RdfFormat? format = default(RdfFormat?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<RdfDefinitionDtoResponse> GetMetadataGraphAsync(string graph, RdfFormat? format = default(RdfFormat?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Gets a metadata graph. @@ -510,7 +510,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (RdfDefinitionDtoResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<RdfDefinitionDtoResponse>> GetMetadataGraphWithHttpInfoAsync(string graph, RdfFormat? format = default(RdfFormat?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<RdfDefinitionDtoResponse>> GetMetadataGraphWithHttpInfoAsync(string graph, RdfFormat? format = default(RdfFormat?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Patches a metadata graph. /// </summary> @@ -523,7 +523,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task PatchMetadataAsync(string graph, RdfPatchDocumentDto? rdfPatchDocumentDto = default(RdfPatchDocumentDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task PatchMetadataAsync(string graph, RdfPatchDocumentDto? rdfPatchDocumentDto = default(RdfPatchDocumentDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Patches a metadata graph. @@ -537,7 +537,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> PatchMetadataWithHttpInfoAsync(string graph, RdfPatchDocumentDto? rdfPatchDocumentDto = default(RdfPatchDocumentDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> PatchMetadataWithHttpInfoAsync(string graph, RdfPatchDocumentDto? rdfPatchDocumentDto = default(RdfPatchDocumentDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Updates a metadata graph. /// </summary> @@ -550,7 +550,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task UpdateMetadataGraphAsync(string graph, MetadataUpdateAdminParameters? metadataUpdateAdminParameters = default(MetadataUpdateAdminParameters?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdateMetadataGraphAsync(string graph, MetadataUpdateAdminParameters? metadataUpdateAdminParameters = default(MetadataUpdateAdminParameters?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Updates a metadata graph. @@ -564,7 +564,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> UpdateMetadataGraphWithHttpInfoAsync(string graph, MetadataUpdateAdminParameters? metadataUpdateAdminParameters = default(MetadataUpdateAdminParameters?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> UpdateMetadataGraphWithHttpInfoAsync(string graph, MetadataUpdateAdminParameters? metadataUpdateAdminParameters = default(MetadataUpdateAdminParameters?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -714,6 +714,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -756,7 +757,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task ApiV2AdminOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2AdminOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ApiV2AdminOptionsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); } @@ -768,7 +769,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2AdminOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2AdminOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -829,7 +830,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="httpMethod">The http method to filter activity logs by. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ActivityLogDtoPagedResponse</returns> public ActivityLogDtoPagedResponse GetAllActivityLogs(DateTime? activityTimestampBefore = default(DateTime?), DateTime? activityTimestampAfter = default(DateTime?), Guid? guid = default(Guid?), Guid? userId = default(Guid?), string? regularExpression = default(string?), CoscineHttpMethod? httpMethod = default(CoscineHttpMethod?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -850,7 +851,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="httpMethod">The http method to filter activity logs by. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of ActivityLogDtoPagedResponse</returns> public Coscine.ApiClient.Core.Client.ApiResponse<ActivityLogDtoPagedResponse> GetAllActivityLogsWithHttpInfo(DateTime? activityTimestampBefore = default(DateTime?), DateTime? activityTimestampAfter = default(DateTime?), Guid? guid = default(Guid?), Guid? userId = default(Guid?), string? regularExpression = default(string?), CoscineHttpMethod? httpMethod = default(CoscineHttpMethod?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -867,6 +868,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -950,11 +952,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="httpMethod">The http method to filter activity logs by. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ActivityLogDtoPagedResponse</returns> - public async System.Threading.Tasks.Task<ActivityLogDtoPagedResponse> GetAllActivityLogsAsync(DateTime? activityTimestampBefore = default(DateTime?), DateTime? activityTimestampAfter = default(DateTime?), Guid? guid = default(Guid?), Guid? userId = default(Guid?), string? regularExpression = default(string?), CoscineHttpMethod? httpMethod = default(CoscineHttpMethod?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<ActivityLogDtoPagedResponse> GetAllActivityLogsAsync(DateTime? activityTimestampBefore = default(DateTime?), DateTime? activityTimestampAfter = default(DateTime?), Guid? guid = default(Guid?), Guid? userId = default(Guid?), string? regularExpression = default(string?), CoscineHttpMethod? httpMethod = default(CoscineHttpMethod?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<ActivityLogDtoPagedResponse> localVarResponse = await GetAllActivityLogsWithHttpInfoAsync(activityTimestampBefore, activityTimestampAfter, guid, userId, regularExpression, httpMethod, pageNumber, pageSize, orderBy, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -972,11 +974,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="httpMethod">The http method to filter activity logs by. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ActivityLogDtoPagedResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ActivityLogDtoPagedResponse>> GetAllActivityLogsWithHttpInfoAsync(DateTime? activityTimestampBefore = default(DateTime?), DateTime? activityTimestampAfter = default(DateTime?), Guid? guid = default(Guid?), Guid? userId = default(Guid?), string? regularExpression = default(string?), CoscineHttpMethod? httpMethod = default(CoscineHttpMethod?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ActivityLogDtoPagedResponse>> GetAllActivityLogsWithHttpInfoAsync(DateTime? activityTimestampBefore = default(DateTime?), DateTime? activityTimestampAfter = default(DateTime?), Guid? guid = default(Guid?), Guid? userId = default(Guid?), string? regularExpression = default(string?), CoscineHttpMethod? httpMethod = default(CoscineHttpMethod?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -1073,7 +1075,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="includePublicationRequests">Gets or sets a value indicating whether to include project publication requests in the results. (optional)</param> /// <param name="pageSize">Number of items per page. The maximum number of items per page is `250`. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ProjectAdminDtoPagedResponse</returns> public ProjectAdminDtoPagedResponse GetAllProjects(bool? topLevel = default(bool?), bool? includeDeleted = default(bool?), bool? includeQuotas = default(bool?), bool? includePublicationRequests = default(bool?), int? pageSize = default(int?), int? pageNumber = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -1092,7 +1094,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="includePublicationRequests">Gets or sets a value indicating whether to include project publication requests in the results. (optional)</param> /// <param name="pageSize">Number of items per page. The maximum number of items per page is `250`. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of ProjectAdminDtoPagedResponse</returns> public Coscine.ApiClient.Core.Client.ApiResponse<ProjectAdminDtoPagedResponse> GetAllProjectsWithHttpInfo(bool? topLevel = default(bool?), bool? includeDeleted = default(bool?), bool? includeQuotas = default(bool?), bool? includePublicationRequests = default(bool?), int? pageSize = default(int?), int? pageNumber = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -1109,6 +1111,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1182,11 +1185,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="includePublicationRequests">Gets or sets a value indicating whether to include project publication requests in the results. (optional)</param> /// <param name="pageSize">Number of items per page. The maximum number of items per page is `250`. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ProjectAdminDtoPagedResponse</returns> - public async System.Threading.Tasks.Task<ProjectAdminDtoPagedResponse> GetAllProjectsAsync(bool? topLevel = default(bool?), bool? includeDeleted = default(bool?), bool? includeQuotas = default(bool?), bool? includePublicationRequests = 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)) + public async System.Threading.Tasks.Task<ProjectAdminDtoPagedResponse> GetAllProjectsAsync(bool? topLevel = default(bool?), bool? includeDeleted = default(bool?), bool? includeQuotas = default(bool?), bool? includePublicationRequests = default(bool?), int? pageSize = default(int?), int? pageNumber = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<ProjectAdminDtoPagedResponse> localVarResponse = await GetAllProjectsWithHttpInfoAsync(topLevel, includeDeleted, includeQuotas, includePublicationRequests, pageSize, pageNumber, orderBy, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1202,11 +1205,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="includePublicationRequests">Gets or sets a value indicating whether to include project publication requests in the results. (optional)</param> /// <param name="pageSize">Number of items per page. The maximum number of items per page is `250`. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ProjectAdminDtoPagedResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ProjectAdminDtoPagedResponse>> GetAllProjectsWithHttpInfoAsync(bool? topLevel = default(bool?), bool? includeDeleted = default(bool?), bool? includeQuotas = default(bool?), bool? includePublicationRequests = 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)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ProjectAdminDtoPagedResponse>> GetAllProjectsWithHttpInfoAsync(bool? topLevel = default(bool?), bool? includeDeleted = default(bool?), bool? includeQuotas = default(bool?), bool? includePublicationRequests = default(bool?), int? pageSize = default(int?), int? pageNumber = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -1293,7 +1296,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="includeQuotas">Value indicating whether to include individual resource quotas. (optional)</param> /// <param name="pageSize">Number of items per page. The maximum number of items per page is `250`. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ResourceAdminDtoPagedResponse</returns> public ResourceAdminDtoPagedResponse GetAllResources(bool? includeDeleted = default(bool?), bool? includeQuotas = default(bool?), int? pageSize = default(int?), int? pageNumber = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -1310,7 +1313,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="includeQuotas">Value indicating whether to include individual resource quotas. (optional)</param> /// <param name="pageSize">Number of items per page. The maximum number of items per page is `250`. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of ResourceAdminDtoPagedResponse</returns> public Coscine.ApiClient.Core.Client.ApiResponse<ResourceAdminDtoPagedResponse> GetAllResourcesWithHttpInfo(bool? includeDeleted = default(bool?), bool? includeQuotas = default(bool?), int? pageSize = default(int?), int? pageNumber = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -1327,6 +1330,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1390,11 +1394,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="includeQuotas">Value indicating whether to include individual resource quotas. (optional)</param> /// <param name="pageSize">Number of items per page. The maximum number of items per page is `250`. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ResourceAdminDtoPagedResponse</returns> - public async System.Threading.Tasks.Task<ResourceAdminDtoPagedResponse> GetAllResourcesAsync(bool? includeDeleted = default(bool?), bool? includeQuotas = 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)) + public async System.Threading.Tasks.Task<ResourceAdminDtoPagedResponse> GetAllResourcesAsync(bool? includeDeleted = default(bool?), bool? includeQuotas = default(bool?), int? pageSize = default(int?), int? pageNumber = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<ResourceAdminDtoPagedResponse> localVarResponse = await GetAllResourcesWithHttpInfoAsync(includeDeleted, includeQuotas, pageSize, pageNumber, orderBy, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1408,11 +1412,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="includeQuotas">Value indicating whether to include individual resource quotas. (optional)</param> /// <param name="pageSize">Number of items per page. The maximum number of items per page is `250`. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ResourceAdminDtoPagedResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ResourceAdminDtoPagedResponse>> GetAllResourcesWithHttpInfoAsync(bool? includeDeleted = default(bool?), bool? includeQuotas = 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)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ResourceAdminDtoPagedResponse>> GetAllResourcesWithHttpInfoAsync(bool? includeDeleted = default(bool?), bool? includeQuotas = default(bool?), int? pageSize = default(int?), int? pageNumber = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -1490,7 +1494,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="tosAccepted">Gets or sets a value indicating whether the terms of service have been accepted by the user. (optional)</param> /// <param name="pageSize">Number of items per page. The maximum number of items per page is `250`. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>UserDtoPagedResponse</returns> public UserDtoPagedResponse GetAllUsers(bool? tosAccepted = default(bool?), int? pageSize = default(int?), int? pageNumber = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -1506,7 +1510,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="tosAccepted">Gets or sets a value indicating whether the terms of service have been accepted by the user. (optional)</param> /// <param name="pageSize">Number of items per page. The maximum number of items per page is `250`. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of UserDtoPagedResponse</returns> public Coscine.ApiClient.Core.Client.ApiResponse<UserDtoPagedResponse> GetAllUsersWithHttpInfo(bool? tosAccepted = default(bool?), int? pageSize = default(int?), int? pageNumber = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -1523,6 +1527,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1581,11 +1586,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="tosAccepted">Gets or sets a value indicating whether the terms of service have been accepted by the user. (optional)</param> /// <param name="pageSize">Number of items per page. The maximum number of items per page is `250`. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of UserDtoPagedResponse</returns> - public async System.Threading.Tasks.Task<UserDtoPagedResponse> GetAllUsersAsync(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)) + public async System.Threading.Tasks.Task<UserDtoPagedResponse> GetAllUsersAsync(bool? tosAccepted = default(bool?), int? pageSize = default(int?), int? pageNumber = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<UserDtoPagedResponse> localVarResponse = await GetAllUsersWithHttpInfoAsync(tosAccepted, pageSize, pageNumber, orderBy, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1598,11 +1603,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="tosAccepted">Gets or sets a value indicating whether the terms of service have been accepted by the user. (optional)</param> /// <param name="pageSize">Number of items per page. The maximum number of items per page is `250`. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (UserDtoPagedResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.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)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.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(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -1675,7 +1680,7 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>DeployedGraphDtoPagedResponse</returns> public DeployedGraphDtoPagedResponse GetDeployedGraphs(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -1690,7 +1695,7 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of 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) @@ -1707,6 +1712,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1760,11 +1766,11 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of 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)) + 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(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<DeployedGraphDtoPagedResponse> localVarResponse = await GetDeployedGraphsWithHttpInfoAsync(pageNumber, pageSize, orderBy, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1776,11 +1782,11 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (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)) + 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(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -1885,6 +1891,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1934,7 +1941,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of RdfDefinitionDtoResponse</returns> - public async System.Threading.Tasks.Task<RdfDefinitionDtoResponse> GetMetadataGraphAsync(string graph, RdfFormat? format = default(RdfFormat?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<RdfDefinitionDtoResponse> GetMetadataGraphAsync(string graph, RdfFormat? format = default(RdfFormat?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<RdfDefinitionDtoResponse> localVarResponse = await GetMetadataGraphWithHttpInfoAsync(graph, format, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1949,7 +1956,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (RdfDefinitionDtoResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<RdfDefinitionDtoResponse>> GetMetadataGraphWithHttpInfoAsync(string graph, RdfFormat? format = default(RdfFormat?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<RdfDefinitionDtoResponse>> GetMetadataGraphWithHttpInfoAsync(string graph, RdfFormat? format = default(RdfFormat?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'graph' is set if (graph == null) @@ -2053,6 +2060,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -2099,7 +2107,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task PatchMetadataAsync(string graph, RdfPatchDocumentDto? rdfPatchDocumentDto = default(RdfPatchDocumentDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task PatchMetadataAsync(string graph, RdfPatchDocumentDto? rdfPatchDocumentDto = default(RdfPatchDocumentDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await PatchMetadataWithHttpInfoAsync(graph, rdfPatchDocumentDto, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -2113,7 +2121,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> PatchMetadataWithHttpInfoAsync(string graph, RdfPatchDocumentDto? rdfPatchDocumentDto = default(RdfPatchDocumentDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> PatchMetadataWithHttpInfoAsync(string graph, RdfPatchDocumentDto? rdfPatchDocumentDto = default(RdfPatchDocumentDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'graph' is set if (graph == null) @@ -2215,6 +2223,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -2261,7 +2270,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task UpdateMetadataGraphAsync(string graph, MetadataUpdateAdminParameters? metadataUpdateAdminParameters = default(MetadataUpdateAdminParameters?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdateMetadataGraphAsync(string graph, MetadataUpdateAdminParameters? metadataUpdateAdminParameters = default(MetadataUpdateAdminParameters?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await UpdateMetadataGraphWithHttpInfoAsync(graph, metadataUpdateAdminParameters, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -2275,7 +2284,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> UpdateMetadataGraphWithHttpInfoAsync(string graph, MetadataUpdateAdminParameters? metadataUpdateAdminParameters = default(MetadataUpdateAdminParameters?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> UpdateMetadataGraphWithHttpInfoAsync(string graph, MetadataUpdateAdminParameters? metadataUpdateAdminParameters = default(MetadataUpdateAdminParameters?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'graph' is set if (graph == null) diff --git a/src/Coscine.ApiClient.Core/Api/ApplicationProfileApi.cs b/src/Coscine.ApiClient.Core/Api/ApplicationProfileApi.cs index 80437c3..a0f6d08 100644 --- a/src/Coscine.ApiClient.Core/Api/ApplicationProfileApi.cs +++ b/src/Coscine.ApiClient.Core/Api/ApplicationProfileApi.cs @@ -98,7 +98,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="modules">Gets or sets a value indicating whether to include modules in the application profiles. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApplicationProfileDtoPagedResponse</returns> ApplicationProfileDtoPagedResponse GetApplicationProfiles(string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), bool? modules = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -115,7 +115,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="modules">Gets or sets a value indicating whether to include modules in the application profiles. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of ApplicationProfileDtoPagedResponse</returns> ApiResponse<ApplicationProfileDtoPagedResponse> GetApplicationProfilesWithHttpInfo(string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), bool? modules = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -158,7 +158,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task ApiV2ApplicationProfilesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2ApplicationProfilesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Responds with the HTTP methods allowed for the endpoint. @@ -170,7 +170,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2ApplicationProfilesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2ApplicationProfilesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Submits a request to create a new application profile. /// </summary> @@ -182,7 +182,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApplicationProfileForCreationDtoResponse</returns> - System.Threading.Tasks.Task<ApplicationProfileForCreationDtoResponse> CreateApplicationProfileRequestAsync(ApplicationProfileForCreationDto? applicationProfileForCreationDto = default(ApplicationProfileForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApplicationProfileForCreationDtoResponse> CreateApplicationProfileRequestAsync(ApplicationProfileForCreationDto? applicationProfileForCreationDto = default(ApplicationProfileForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Submits a request to create a new application profile. @@ -195,7 +195,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ApplicationProfileForCreationDtoResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<ApplicationProfileForCreationDtoResponse>> CreateApplicationProfileRequestWithHttpInfoAsync(ApplicationProfileForCreationDto? applicationProfileForCreationDto = default(ApplicationProfileForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<ApplicationProfileForCreationDtoResponse>> CreateApplicationProfileRequestWithHttpInfoAsync(ApplicationProfileForCreationDto? applicationProfileForCreationDto = default(ApplicationProfileForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves an application profile by its URI. /// </summary> @@ -209,7 +209,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApplicationProfileDtoResponse</returns> - System.Threading.Tasks.Task<ApplicationProfileDtoResponse> GetApplicationProfileAsync(string profile, RdfFormat? format = default(RdfFormat?), AcceptedLanguage? acceptLanguage = default(AcceptedLanguage?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApplicationProfileDtoResponse> GetApplicationProfileAsync(string profile, RdfFormat? format = default(RdfFormat?), AcceptedLanguage? acceptLanguage = default(AcceptedLanguage?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves an application profile by its URI. @@ -224,7 +224,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ApplicationProfileDtoResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<ApplicationProfileDtoResponse>> GetApplicationProfileWithHttpInfoAsync(string profile, RdfFormat? format = default(RdfFormat?), AcceptedLanguage? acceptLanguage = default(AcceptedLanguage?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<ApplicationProfileDtoResponse>> GetApplicationProfileWithHttpInfoAsync(string profile, RdfFormat? format = default(RdfFormat?), AcceptedLanguage? acceptLanguage = default(AcceptedLanguage?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all application profiles. /// </summary> @@ -237,11 +237,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="modules">Gets or sets a value indicating whether to include modules in the application profiles. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApplicationProfileDtoPagedResponse</returns> - System.Threading.Tasks.Task<ApplicationProfileDtoPagedResponse> GetApplicationProfilesAsync(string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), bool? modules = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApplicationProfileDtoPagedResponse> GetApplicationProfilesAsync(string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), bool? modules = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all application profiles. @@ -255,11 +255,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="modules">Gets or sets a value indicating whether to include modules in the application profiles. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ApplicationProfileDtoPagedResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<ApplicationProfileDtoPagedResponse>> GetApplicationProfilesWithHttpInfoAsync(string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), bool? modules = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<ApplicationProfileDtoPagedResponse>> GetApplicationProfilesWithHttpInfoAsync(string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), bool? modules = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves the `raw` application profile definition by its URI. /// </summary> @@ -271,7 +271,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of string</returns> - System.Threading.Tasks.Task<string> GetRawApplicationProfileAsync(string profile, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<string> GetRawApplicationProfileAsync(string profile, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves the `raw` application profile definition by its URI. @@ -284,7 +284,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (string)</returns> - System.Threading.Tasks.Task<ApiResponse<string>> GetRawApplicationProfileWithHttpInfoAsync(string profile, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<string>> GetRawApplicationProfileWithHttpInfoAsync(string profile, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -434,6 +434,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -476,7 +477,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task ApiV2ApplicationProfilesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2ApplicationProfilesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ApiV2ApplicationProfilesOptionsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); } @@ -488,7 +489,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2ApplicationProfilesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2ApplicationProfilesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -574,6 +575,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -618,7 +620,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApplicationProfileForCreationDtoResponse</returns> - public async System.Threading.Tasks.Task<ApplicationProfileForCreationDtoResponse> CreateApplicationProfileRequestAsync(ApplicationProfileForCreationDto? applicationProfileForCreationDto = default(ApplicationProfileForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<ApplicationProfileForCreationDtoResponse> CreateApplicationProfileRequestAsync(ApplicationProfileForCreationDto? applicationProfileForCreationDto = default(ApplicationProfileForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<ApplicationProfileForCreationDtoResponse> localVarResponse = await CreateApplicationProfileRequestWithHttpInfoAsync(applicationProfileForCreationDto, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -632,7 +634,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ApplicationProfileForCreationDtoResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ApplicationProfileForCreationDtoResponse>> CreateApplicationProfileRequestWithHttpInfoAsync(ApplicationProfileForCreationDto? applicationProfileForCreationDto = default(ApplicationProfileForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ApplicationProfileForCreationDtoResponse>> CreateApplicationProfileRequestWithHttpInfoAsync(ApplicationProfileForCreationDto? applicationProfileForCreationDto = default(ApplicationProfileForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -731,6 +733,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -785,7 +788,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApplicationProfileDtoResponse</returns> - public async System.Threading.Tasks.Task<ApplicationProfileDtoResponse> GetApplicationProfileAsync(string profile, RdfFormat? format = default(RdfFormat?), AcceptedLanguage? acceptLanguage = default(AcceptedLanguage?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<ApplicationProfileDtoResponse> GetApplicationProfileAsync(string profile, RdfFormat? format = default(RdfFormat?), AcceptedLanguage? acceptLanguage = default(AcceptedLanguage?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<ApplicationProfileDtoResponse> localVarResponse = await GetApplicationProfileWithHttpInfoAsync(profile, format, acceptLanguage, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -801,7 +804,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ApplicationProfileDtoResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ApplicationProfileDtoResponse>> GetApplicationProfileWithHttpInfoAsync(string profile, RdfFormat? format = default(RdfFormat?), AcceptedLanguage? acceptLanguage = default(AcceptedLanguage?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ApplicationProfileDtoResponse>> GetApplicationProfileWithHttpInfoAsync(string profile, RdfFormat? format = default(RdfFormat?), AcceptedLanguage? acceptLanguage = default(AcceptedLanguage?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'profile' is set if (profile == null) @@ -876,7 +879,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="modules">Gets or sets a value indicating whether to include modules in the application profiles. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApplicationProfileDtoPagedResponse</returns> public ApplicationProfileDtoPagedResponse GetApplicationProfiles(string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), bool? modules = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -894,7 +897,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="modules">Gets or sets a value indicating whether to include modules in the application profiles. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of ApplicationProfileDtoPagedResponse</returns> public Coscine.ApiClient.Core.Client.ApiResponse<ApplicationProfileDtoPagedResponse> GetApplicationProfilesWithHttpInfo(string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), bool? modules = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -911,6 +914,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -979,11 +983,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="modules">Gets or sets a value indicating whether to include modules in the application profiles. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApplicationProfileDtoPagedResponse</returns> - public async System.Threading.Tasks.Task<ApplicationProfileDtoPagedResponse> GetApplicationProfilesAsync(string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), bool? modules = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<ApplicationProfileDtoPagedResponse> GetApplicationProfilesAsync(string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), bool? modules = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<ApplicationProfileDtoPagedResponse> localVarResponse = await GetApplicationProfilesWithHttpInfoAsync(searchTerm, language, modules, pageNumber, pageSize, orderBy, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -998,11 +1002,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="modules">Gets or sets a value indicating whether to include modules in the application profiles. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ApplicationProfileDtoPagedResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ApplicationProfileDtoPagedResponse>> GetApplicationProfilesWithHttpInfoAsync(string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), bool? modules = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ApplicationProfileDtoPagedResponse>> GetApplicationProfilesWithHttpInfoAsync(string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), bool? modules = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -1117,6 +1121,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1161,7 +1166,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of string</returns> - public async System.Threading.Tasks.Task<string> GetRawApplicationProfileAsync(string profile, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<string> GetRawApplicationProfileAsync(string profile, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<string> localVarResponse = await GetRawApplicationProfileWithHttpInfoAsync(profile, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1175,7 +1180,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (string)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<string>> GetRawApplicationProfileWithHttpInfoAsync(string profile, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<string>> GetRawApplicationProfileWithHttpInfoAsync(string profile, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'profile' is set if (profile == null) diff --git a/src/Coscine.ApiClient.Core/Api/BlobApi.cs b/src/Coscine.ApiClient.Core/Api/BlobApi.cs index 8ee2457..2937574 100644 --- a/src/Coscine.ApiClient.Core/Api/BlobApi.cs +++ b/src/Coscine.ApiClient.Core/Api/BlobApi.cs @@ -169,7 +169,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task ApiV2ProjectsProjectIdResourcesResourceIdBlobsOptionsAsync(string projectId, string resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2ProjectsProjectIdResourcesResourceIdBlobsOptionsAsync(string projectId, string resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Responds with the HTTP methods allowed for the endpoint. @@ -183,7 +183,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2ProjectsProjectIdResourcesResourceIdBlobsOptionsWithHttpInfoAsync(string projectId, string resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2ProjectsProjectIdResourcesResourceIdBlobsOptionsWithHttpInfoAsync(string projectId, string resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Creates a new blob for a resource. /// </summary> @@ -198,7 +198,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task CreateBlobAsync(string projectId, Guid resourceId, string key, System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task CreateBlobAsync(string projectId, Guid resourceId, string key, System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Creates a new blob for a resource. @@ -214,7 +214,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> CreateBlobWithHttpInfoAsync(string projectId, Guid resourceId, string key, System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> CreateBlobWithHttpInfoAsync(string projectId, Guid resourceId, string key, System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Deletes a blob from a resource. /// </summary> @@ -228,7 +228,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task DeleteBlobAsync(string projectId, Guid resourceId, string key, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task DeleteBlobAsync(string projectId, Guid resourceId, string key, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Deletes a blob from a resource. @@ -243,7 +243,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> DeleteBlobWithHttpInfoAsync(string projectId, Guid resourceId, string key, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> DeleteBlobWithHttpInfoAsync(string projectId, Guid resourceId, string key, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Download a blob from a resource. /// </summary> @@ -257,7 +257,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of System.IO.Stream</returns> - System.Threading.Tasks.Task<System.IO.Stream> GetBlobAsync(string projectId, Guid resourceId, string key, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<System.IO.Stream> GetBlobAsync(string projectId, Guid resourceId, string key, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Download a blob from a resource. @@ -272,7 +272,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (System.IO.Stream)</returns> - System.Threading.Tasks.Task<ApiResponse<System.IO.Stream>> GetBlobWithHttpInfoAsync(string projectId, Guid resourceId, string key, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<System.IO.Stream>> GetBlobWithHttpInfoAsync(string projectId, Guid resourceId, string key, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Updates an existing blob of a resource. /// </summary> @@ -287,7 +287,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task UpdateBlobAsync(string projectId, Guid resourceId, string key, System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdateBlobAsync(string projectId, Guid resourceId, string key, System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Updates an existing blob of a resource. @@ -303,7 +303,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> UpdateBlobWithHttpInfoAsync(string projectId, Guid resourceId, string key, System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> UpdateBlobWithHttpInfoAsync(string projectId, Guid resourceId, string key, System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -469,6 +469,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -515,7 +516,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task ApiV2ProjectsProjectIdResourcesResourceIdBlobsOptionsAsync(string projectId, string resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2ProjectsProjectIdResourcesResourceIdBlobsOptionsAsync(string projectId, string resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ApiV2ProjectsProjectIdResourcesResourceIdBlobsOptionsWithHttpInfoAsync(projectId, resourceId, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -529,7 +530,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2ProjectsProjectIdResourcesResourceIdBlobsOptionsWithHttpInfoAsync(string projectId, string resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2ProjectsProjectIdResourcesResourceIdBlobsOptionsWithHttpInfoAsync(string projectId, string resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) @@ -642,6 +643,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -695,7 +697,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task CreateBlobAsync(string projectId, Guid resourceId, string key, System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task CreateBlobAsync(string projectId, Guid resourceId, string key, System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await CreateBlobWithHttpInfoAsync(projectId, resourceId, key, file, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -711,7 +713,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> CreateBlobWithHttpInfoAsync(string projectId, Guid resourceId, string key, System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> CreateBlobWithHttpInfoAsync(string projectId, Guid resourceId, string key, System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) @@ -827,6 +829,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -875,7 +878,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task DeleteBlobAsync(string projectId, Guid resourceId, string key, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task DeleteBlobAsync(string projectId, Guid resourceId, string key, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await DeleteBlobWithHttpInfoAsync(projectId, resourceId, key, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -890,7 +893,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> DeleteBlobWithHttpInfoAsync(string projectId, Guid resourceId, string key, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> DeleteBlobWithHttpInfoAsync(string projectId, Guid resourceId, string key, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) @@ -1003,6 +1006,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1051,7 +1055,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of System.IO.Stream</returns> - public async System.Threading.Tasks.Task<System.IO.Stream> GetBlobAsync(string projectId, Guid resourceId, string key, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<System.IO.Stream> GetBlobAsync(string projectId, Guid resourceId, string key, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<System.IO.Stream> localVarResponse = await GetBlobWithHttpInfoAsync(projectId, resourceId, key, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1067,7 +1071,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (System.IO.Stream)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<System.IO.Stream>> GetBlobWithHttpInfoAsync(string projectId, Guid resourceId, string key, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<System.IO.Stream>> GetBlobWithHttpInfoAsync(string projectId, Guid resourceId, string key, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) @@ -1182,6 +1186,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1235,7 +1240,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task UpdateBlobAsync(string projectId, Guid resourceId, string key, System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdateBlobAsync(string projectId, Guid resourceId, string key, System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await UpdateBlobWithHttpInfoAsync(projectId, resourceId, key, file, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -1251,7 +1256,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> UpdateBlobWithHttpInfoAsync(string projectId, Guid resourceId, string key, System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> UpdateBlobWithHttpInfoAsync(string projectId, Guid resourceId, string key, System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) diff --git a/src/Coscine.ApiClient.Core/Api/DisciplineApi.cs b/src/Coscine.ApiClient.Core/Api/DisciplineApi.cs index fdcace7..424d425 100644 --- a/src/Coscine.ApiClient.Core/Api/DisciplineApi.cs +++ b/src/Coscine.ApiClient.Core/Api/DisciplineApi.cs @@ -71,7 +71,7 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>DisciplineDtoPagedResponse</returns> DisciplineDtoPagedResponse GetDisciplines(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -85,7 +85,7 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of DisciplineDtoPagedResponse</returns> ApiResponse<DisciplineDtoPagedResponse> GetDisciplinesWithHttpInfo(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -108,7 +108,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task ApiV2DisciplinesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2DisciplinesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Responds with the HTTP methods allowed for the endpoint. @@ -120,7 +120,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2DisciplinesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2DisciplinesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves a discipline with the specified ID. /// </summary> @@ -132,7 +132,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of DisciplineDtoResponse</returns> - System.Threading.Tasks.Task<DisciplineDtoResponse> GetDisciplineAsync(Guid disciplineId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<DisciplineDtoResponse> GetDisciplineAsync(Guid disciplineId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves a discipline with the specified ID. @@ -145,7 +145,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (DisciplineDtoResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<DisciplineDtoResponse>> GetDisciplineWithHttpInfoAsync(Guid disciplineId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<DisciplineDtoResponse>> GetDisciplineWithHttpInfoAsync(Guid disciplineId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all disciplines. /// </summary> @@ -155,11 +155,11 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of DisciplineDtoPagedResponse</returns> - System.Threading.Tasks.Task<DisciplineDtoPagedResponse> GetDisciplinesAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<DisciplineDtoPagedResponse> GetDisciplinesAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all disciplines. @@ -170,11 +170,11 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (DisciplineDtoPagedResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<DisciplineDtoPagedResponse>> GetDisciplinesWithHttpInfoAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<DisciplineDtoPagedResponse>> GetDisciplinesWithHttpInfoAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -324,6 +324,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -366,7 +367,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task ApiV2DisciplinesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2DisciplinesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ApiV2DisciplinesOptionsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); } @@ -378,7 +379,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2DisciplinesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2DisciplinesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -461,6 +462,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -505,7 +507,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of DisciplineDtoResponse</returns> - public async System.Threading.Tasks.Task<DisciplineDtoResponse> GetDisciplineAsync(Guid disciplineId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<DisciplineDtoResponse> GetDisciplineAsync(Guid disciplineId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<DisciplineDtoResponse> localVarResponse = await GetDisciplineWithHttpInfoAsync(disciplineId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -519,7 +521,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (DisciplineDtoResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<DisciplineDtoResponse>> GetDisciplineWithHttpInfoAsync(Guid disciplineId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<DisciplineDtoResponse>> GetDisciplineWithHttpInfoAsync(Guid disciplineId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -577,7 +579,7 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>DisciplineDtoPagedResponse</returns> public DisciplineDtoPagedResponse GetDisciplines(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -592,7 +594,7 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of DisciplineDtoPagedResponse</returns> public Coscine.ApiClient.Core.Client.ApiResponse<DisciplineDtoPagedResponse> GetDisciplinesWithHttpInfo(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -609,6 +611,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -662,11 +665,11 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of DisciplineDtoPagedResponse</returns> - public async System.Threading.Tasks.Task<DisciplineDtoPagedResponse> GetDisciplinesAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<DisciplineDtoPagedResponse> GetDisciplinesAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<DisciplineDtoPagedResponse> localVarResponse = await GetDisciplinesWithHttpInfoAsync(pageNumber, pageSize, orderBy, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -678,11 +681,11 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (DisciplineDtoPagedResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<DisciplineDtoPagedResponse>> GetDisciplinesWithHttpInfoAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<DisciplineDtoPagedResponse>> GetDisciplinesWithHttpInfoAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); diff --git a/src/Coscine.ApiClient.Core/Api/HandleApi.cs b/src/Coscine.ApiClient.Core/Api/HandleApi.cs index 939f741..f250c0c 100644 --- a/src/Coscine.ApiClient.Core/Api/HandleApi.cs +++ b/src/Coscine.ApiClient.Core/Api/HandleApi.cs @@ -113,7 +113,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task ApiV2HandlesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2HandlesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Responds with the HTTP methods allowed for the endpoint. @@ -125,7 +125,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2HandlesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2HandlesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all values of a handle by its PID. /// </summary> @@ -138,7 +138,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of HandleDtoResponse</returns> - System.Threading.Tasks.Task<HandleDtoResponse> GetHandleAsync(string prefix, string suffix, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<HandleDtoResponse> GetHandleAsync(string prefix, string suffix, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all values of a handle by its PID. @@ -152,7 +152,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (HandleDtoResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<HandleDtoResponse>> GetHandleWithHttpInfoAsync(string prefix, string suffix, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<HandleDtoResponse>> GetHandleWithHttpInfoAsync(string prefix, string suffix, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Updates a handle. /// </summary> @@ -166,7 +166,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task UpdateHandleAsync(string prefix, string suffix, HandleForUpdateDto? handleForUpdateDto = default(HandleForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdateHandleAsync(string prefix, string suffix, HandleForUpdateDto? handleForUpdateDto = default(HandleForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Updates a handle. @@ -181,7 +181,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> UpdateHandleWithHttpInfoAsync(string prefix, string suffix, HandleForUpdateDto? handleForUpdateDto = default(HandleForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> UpdateHandleWithHttpInfoAsync(string prefix, string suffix, HandleForUpdateDto? handleForUpdateDto = default(HandleForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -331,6 +331,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -373,7 +374,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task ApiV2HandlesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2HandlesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ApiV2HandlesOptionsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); } @@ -385,7 +386,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2HandlesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2HandlesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -482,6 +483,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -528,7 +530,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of HandleDtoResponse</returns> - public async System.Threading.Tasks.Task<HandleDtoResponse> GetHandleAsync(string prefix, string suffix, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<HandleDtoResponse> GetHandleAsync(string prefix, string suffix, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<HandleDtoResponse> localVarResponse = await GetHandleWithHttpInfoAsync(prefix, suffix, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -543,7 +545,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (HandleDtoResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<HandleDtoResponse>> GetHandleWithHttpInfoAsync(string prefix, string suffix, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<HandleDtoResponse>> GetHandleWithHttpInfoAsync(string prefix, string suffix, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'prefix' is set if (prefix == null) @@ -658,6 +660,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -706,7 +709,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task UpdateHandleAsync(string prefix, string suffix, HandleForUpdateDto? handleForUpdateDto = default(HandleForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdateHandleAsync(string prefix, string suffix, HandleForUpdateDto? handleForUpdateDto = default(HandleForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await UpdateHandleWithHttpInfoAsync(prefix, suffix, handleForUpdateDto, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -721,7 +724,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> UpdateHandleWithHttpInfoAsync(string prefix, string suffix, HandleForUpdateDto? handleForUpdateDto = default(HandleForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> UpdateHandleWithHttpInfoAsync(string prefix, string suffix, HandleForUpdateDto? handleForUpdateDto = default(HandleForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'prefix' is set if (prefix == null) diff --git a/src/Coscine.ApiClient.Core/Api/LanguageApi.cs b/src/Coscine.ApiClient.Core/Api/LanguageApi.cs index b208cd1..86882b8 100644 --- a/src/Coscine.ApiClient.Core/Api/LanguageApi.cs +++ b/src/Coscine.ApiClient.Core/Api/LanguageApi.cs @@ -71,7 +71,7 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>LanguageDtoIEnumerableResponse</returns> LanguageDtoIEnumerableResponse GetLanguages(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -85,7 +85,7 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of LanguageDtoIEnumerableResponse</returns> ApiResponse<LanguageDtoIEnumerableResponse> GetLanguagesWithHttpInfo(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -108,7 +108,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task ApiV2LanguagesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2LanguagesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Responds with the HTTP methods allowed for the endpoint. @@ -120,7 +120,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2LanguagesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2LanguagesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves a language by ID. /// </summary> @@ -132,7 +132,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of LanguageDtoResponse</returns> - System.Threading.Tasks.Task<LanguageDtoResponse> GetLanguageAsync(Guid languageId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<LanguageDtoResponse> GetLanguageAsync(Guid languageId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves a language by ID. @@ -145,7 +145,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (LanguageDtoResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<LanguageDtoResponse>> GetLanguageWithHttpInfoAsync(Guid languageId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<LanguageDtoResponse>> GetLanguageWithHttpInfoAsync(Guid languageId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all languages. /// </summary> @@ -155,11 +155,11 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of LanguageDtoIEnumerableResponse</returns> - System.Threading.Tasks.Task<LanguageDtoIEnumerableResponse> GetLanguagesAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<LanguageDtoIEnumerableResponse> GetLanguagesAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all languages. @@ -170,11 +170,11 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (LanguageDtoIEnumerableResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<LanguageDtoIEnumerableResponse>> GetLanguagesWithHttpInfoAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<LanguageDtoIEnumerableResponse>> GetLanguagesWithHttpInfoAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -324,6 +324,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -366,7 +367,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task ApiV2LanguagesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2LanguagesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ApiV2LanguagesOptionsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); } @@ -378,7 +379,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2LanguagesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2LanguagesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -461,6 +462,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -505,7 +507,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of LanguageDtoResponse</returns> - public async System.Threading.Tasks.Task<LanguageDtoResponse> GetLanguageAsync(Guid languageId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<LanguageDtoResponse> GetLanguageAsync(Guid languageId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<LanguageDtoResponse> localVarResponse = await GetLanguageWithHttpInfoAsync(languageId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -519,7 +521,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (LanguageDtoResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<LanguageDtoResponse>> GetLanguageWithHttpInfoAsync(Guid languageId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<LanguageDtoResponse>> GetLanguageWithHttpInfoAsync(Guid languageId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -577,7 +579,7 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>LanguageDtoIEnumerableResponse</returns> public LanguageDtoIEnumerableResponse GetLanguages(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -592,7 +594,7 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of LanguageDtoIEnumerableResponse</returns> public Coscine.ApiClient.Core.Client.ApiResponse<LanguageDtoIEnumerableResponse> GetLanguagesWithHttpInfo(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -609,6 +611,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -662,11 +665,11 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of LanguageDtoIEnumerableResponse</returns> - public async System.Threading.Tasks.Task<LanguageDtoIEnumerableResponse> GetLanguagesAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<LanguageDtoIEnumerableResponse> GetLanguagesAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<LanguageDtoIEnumerableResponse> localVarResponse = await GetLanguagesWithHttpInfoAsync(pageNumber, pageSize, orderBy, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -678,11 +681,11 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (LanguageDtoIEnumerableResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<LanguageDtoIEnumerableResponse>> GetLanguagesWithHttpInfoAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<LanguageDtoIEnumerableResponse>> GetLanguagesWithHttpInfoAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); diff --git a/src/Coscine.ApiClient.Core/Api/LicenseApi.cs b/src/Coscine.ApiClient.Core/Api/LicenseApi.cs index a951fac..05bf211 100644 --- a/src/Coscine.ApiClient.Core/Api/LicenseApi.cs +++ b/src/Coscine.ApiClient.Core/Api/LicenseApi.cs @@ -71,7 +71,7 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>LicenseDtoPagedResponse</returns> LicenseDtoPagedResponse GetLicenses(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -85,7 +85,7 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of LicenseDtoPagedResponse</returns> ApiResponse<LicenseDtoPagedResponse> GetLicensesWithHttpInfo(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -108,7 +108,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task ApiV2LicensesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2LicensesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Responds with the HTTP methods allowed for the endpoint. @@ -120,7 +120,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2LicensesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2LicensesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves a license with the specified ID. /// </summary> @@ -132,7 +132,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of LicenseDtoResponse</returns> - System.Threading.Tasks.Task<LicenseDtoResponse> GetLicenseAsync(Guid licenseId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<LicenseDtoResponse> GetLicenseAsync(Guid licenseId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves a license with the specified ID. @@ -145,7 +145,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (LicenseDtoResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<LicenseDtoResponse>> GetLicenseWithHttpInfoAsync(Guid licenseId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<LicenseDtoResponse>> GetLicenseWithHttpInfoAsync(Guid licenseId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all licenses. /// </summary> @@ -155,11 +155,11 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of LicenseDtoPagedResponse</returns> - System.Threading.Tasks.Task<LicenseDtoPagedResponse> GetLicensesAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<LicenseDtoPagedResponse> GetLicensesAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all licenses. @@ -170,11 +170,11 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (LicenseDtoPagedResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<LicenseDtoPagedResponse>> GetLicensesWithHttpInfoAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<LicenseDtoPagedResponse>> GetLicensesWithHttpInfoAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -324,6 +324,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -366,7 +367,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task ApiV2LicensesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2LicensesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ApiV2LicensesOptionsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); } @@ -378,7 +379,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2LicensesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2LicensesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -461,6 +462,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -505,7 +507,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of LicenseDtoResponse</returns> - public async System.Threading.Tasks.Task<LicenseDtoResponse> GetLicenseAsync(Guid licenseId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<LicenseDtoResponse> GetLicenseAsync(Guid licenseId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<LicenseDtoResponse> localVarResponse = await GetLicenseWithHttpInfoAsync(licenseId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -519,7 +521,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (LicenseDtoResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<LicenseDtoResponse>> GetLicenseWithHttpInfoAsync(Guid licenseId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<LicenseDtoResponse>> GetLicenseWithHttpInfoAsync(Guid licenseId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -577,7 +579,7 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>LicenseDtoPagedResponse</returns> public LicenseDtoPagedResponse GetLicenses(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -592,7 +594,7 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of LicenseDtoPagedResponse</returns> public Coscine.ApiClient.Core.Client.ApiResponse<LicenseDtoPagedResponse> GetLicensesWithHttpInfo(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -609,6 +611,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -662,11 +665,11 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of LicenseDtoPagedResponse</returns> - public async System.Threading.Tasks.Task<LicenseDtoPagedResponse> GetLicensesAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<LicenseDtoPagedResponse> GetLicensesAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<LicenseDtoPagedResponse> localVarResponse = await GetLicensesWithHttpInfoAsync(pageNumber, pageSize, orderBy, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -678,11 +681,11 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (LicenseDtoPagedResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<LicenseDtoPagedResponse>> GetLicensesWithHttpInfoAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<LicenseDtoPagedResponse>> GetLicensesWithHttpInfoAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); diff --git a/src/Coscine.ApiClient.Core/Api/MaintenanceApi.cs b/src/Coscine.ApiClient.Core/Api/MaintenanceApi.cs index 4239cf4..0dd640c 100644 --- a/src/Coscine.ApiClient.Core/Api/MaintenanceApi.cs +++ b/src/Coscine.ApiClient.Core/Api/MaintenanceApi.cs @@ -84,7 +84,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task ApiV2MaintenancesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2MaintenancesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Responds with the HTTP methods allowed for the endpoint. @@ -96,7 +96,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2MaintenancesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2MaintenancesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves the current maintenance messages. /// </summary> @@ -108,7 +108,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of MaintenanceDtoPagedResponse</returns> [Obsolete] - System.Threading.Tasks.Task<MaintenanceDtoPagedResponse> GetCurrentMaintenancesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<MaintenanceDtoPagedResponse> GetCurrentMaintenancesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves the current maintenance messages. @@ -121,7 +121,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (MaintenanceDtoPagedResponse)</returns> [Obsolete] - System.Threading.Tasks.Task<ApiResponse<MaintenanceDtoPagedResponse>> GetCurrentMaintenancesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<MaintenanceDtoPagedResponse>> GetCurrentMaintenancesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -271,6 +271,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -313,7 +314,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task ApiV2MaintenancesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2MaintenancesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ApiV2MaintenancesOptionsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); } @@ -325,7 +326,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2MaintenancesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2MaintenancesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -408,6 +409,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -451,7 +453,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of MaintenanceDtoPagedResponse</returns> [Obsolete] - public async System.Threading.Tasks.Task<MaintenanceDtoPagedResponse> GetCurrentMaintenancesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<MaintenanceDtoPagedResponse> GetCurrentMaintenancesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<MaintenanceDtoPagedResponse> localVarResponse = await GetCurrentMaintenancesWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -465,7 +467,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (MaintenanceDtoPagedResponse)</returns> [Obsolete] - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<MaintenanceDtoPagedResponse>> GetCurrentMaintenancesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<MaintenanceDtoPagedResponse>> GetCurrentMaintenancesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); diff --git a/src/Coscine.ApiClient.Core/Api/OrganizationApi.cs b/src/Coscine.ApiClient.Core/Api/OrganizationApi.cs index 8d1b6a7..71f640a 100644 --- a/src/Coscine.ApiClient.Core/Api/OrganizationApi.cs +++ b/src/Coscine.ApiClient.Core/Api/OrganizationApi.cs @@ -74,7 +74,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="filterByPublicationService">Gets or sets the option to find only organizations having the publication service set. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>OrganizationDtoPagedResponse</returns> OrganizationDtoPagedResponse GetOrganizations(string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), bool? filterByPublicationService = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -91,7 +91,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="filterByPublicationService">Gets or sets the option to find only organizations having the publication service set. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of OrganizationDtoPagedResponse</returns> ApiResponse<OrganizationDtoPagedResponse> GetOrganizationsWithHttpInfo(string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), bool? filterByPublicationService = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -114,7 +114,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task ApiV2OrganizationsOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2OrganizationsOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Responds with the HTTP methods allowed for the endpoint. @@ -126,7 +126,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2OrganizationsOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2OrganizationsOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves an organization. /// </summary> @@ -138,7 +138,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of OrganizationDtoResponse</returns> - System.Threading.Tasks.Task<OrganizationDtoResponse> GetOrganizationAsync(string organizationRorUri, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<OrganizationDtoResponse> GetOrganizationAsync(string organizationRorUri, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves an organization. @@ -151,7 +151,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (OrganizationDtoResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<OrganizationDtoResponse>> GetOrganizationWithHttpInfoAsync(string organizationRorUri, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<OrganizationDtoResponse>> GetOrganizationWithHttpInfoAsync(string organizationRorUri, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all organizations. /// </summary> @@ -164,11 +164,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="filterByPublicationService">Gets or sets the option to find only organizations having the publication service set. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of OrganizationDtoPagedResponse</returns> - System.Threading.Tasks.Task<OrganizationDtoPagedResponse> GetOrganizationsAsync(string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), bool? filterByPublicationService = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<OrganizationDtoPagedResponse> GetOrganizationsAsync(string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), bool? filterByPublicationService = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all organizations. @@ -182,11 +182,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="filterByPublicationService">Gets or sets the option to find only organizations having the publication service set. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (OrganizationDtoPagedResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<OrganizationDtoPagedResponse>> GetOrganizationsWithHttpInfoAsync(string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), bool? filterByPublicationService = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<OrganizationDtoPagedResponse>> GetOrganizationsWithHttpInfoAsync(string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), bool? filterByPublicationService = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -336,6 +336,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -378,7 +379,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task ApiV2OrganizationsOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2OrganizationsOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ApiV2OrganizationsOptionsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); } @@ -390,7 +391,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2OrganizationsOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2OrganizationsOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -479,6 +480,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -523,7 +525,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of OrganizationDtoResponse</returns> - public async System.Threading.Tasks.Task<OrganizationDtoResponse> GetOrganizationAsync(string organizationRorUri, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<OrganizationDtoResponse> GetOrganizationAsync(string organizationRorUri, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<OrganizationDtoResponse> localVarResponse = await GetOrganizationWithHttpInfoAsync(organizationRorUri, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -537,7 +539,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (OrganizationDtoResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<OrganizationDtoResponse>> GetOrganizationWithHttpInfoAsync(string organizationRorUri, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<OrganizationDtoResponse>> GetOrganizationWithHttpInfoAsync(string organizationRorUri, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'organizationRorUri' is set if (organizationRorUri == null) @@ -604,7 +606,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="filterByPublicationService">Gets or sets the option to find only organizations having the publication service set. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>OrganizationDtoPagedResponse</returns> public OrganizationDtoPagedResponse GetOrganizations(string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), bool? filterByPublicationService = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -622,7 +624,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="filterByPublicationService">Gets or sets the option to find only organizations having the publication service set. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of OrganizationDtoPagedResponse</returns> public Coscine.ApiClient.Core.Client.ApiResponse<OrganizationDtoPagedResponse> GetOrganizationsWithHttpInfo(string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), bool? filterByPublicationService = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -639,6 +641,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -707,11 +710,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="filterByPublicationService">Gets or sets the option to find only organizations having the publication service set. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of OrganizationDtoPagedResponse</returns> - public async System.Threading.Tasks.Task<OrganizationDtoPagedResponse> GetOrganizationsAsync(string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), bool? filterByPublicationService = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<OrganizationDtoPagedResponse> GetOrganizationsAsync(string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), bool? filterByPublicationService = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<OrganizationDtoPagedResponse> localVarResponse = await GetOrganizationsWithHttpInfoAsync(searchTerm, language, filterByPublicationService, pageNumber, pageSize, orderBy, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -726,11 +729,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="filterByPublicationService">Gets or sets the option to find only organizations having the publication service set. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (OrganizationDtoPagedResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<OrganizationDtoPagedResponse>> GetOrganizationsWithHttpInfoAsync(string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), bool? filterByPublicationService = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<OrganizationDtoPagedResponse>> GetOrganizationsWithHttpInfoAsync(string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), bool? filterByPublicationService = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); diff --git a/src/Coscine.ApiClient.Core/Api/PidApi.cs b/src/Coscine.ApiClient.Core/Api/PidApi.cs index 900a008..4d65401 100644 --- a/src/Coscine.ApiClient.Core/Api/PidApi.cs +++ b/src/Coscine.ApiClient.Core/Api/PidApi.cs @@ -79,7 +79,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="includeDeleted">Gets or sets a value indicating whether to include deleted pid information. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>PidDtoPagedResponse</returns> PidDtoPagedResponse GetPids(bool? includeProjects = default(bool?), bool? includeResources = default(bool?), bool? includeDeleted = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -96,7 +96,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="includeDeleted">Gets or sets a value indicating whether to include deleted pid information. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of PidDtoPagedResponse</returns> ApiResponse<PidDtoPagedResponse> GetPidsWithHttpInfo(bool? includeProjects = default(bool?), bool? includeResources = default(bool?), bool? includeDeleted = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -143,7 +143,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task ApiV2PidsOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2PidsOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Responds with the HTTP methods allowed for the endpoint. @@ -155,7 +155,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2PidsOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2PidsOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves the Persistent Identifier (PID) for a given prefix and suffix. /// </summary> @@ -168,7 +168,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of PidDtoResponse</returns> - System.Threading.Tasks.Task<PidDtoResponse> GetPidAsync(string prefix, Guid suffix, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<PidDtoResponse> GetPidAsync(string prefix, Guid suffix, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves the Persistent Identifier (PID) for a given prefix and suffix. @@ -182,7 +182,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (PidDtoResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<PidDtoResponse>> GetPidWithHttpInfoAsync(string prefix, Guid suffix, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<PidDtoResponse>> GetPidWithHttpInfoAsync(string prefix, Guid suffix, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all PIDs. /// </summary> @@ -195,11 +195,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="includeDeleted">Gets or sets a value indicating whether to include deleted pid information. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of PidDtoPagedResponse</returns> - System.Threading.Tasks.Task<PidDtoPagedResponse> GetPidsAsync(bool? includeProjects = default(bool?), bool? includeResources = default(bool?), bool? includeDeleted = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<PidDtoPagedResponse> GetPidsAsync(bool? includeProjects = default(bool?), bool? includeResources = default(bool?), bool? includeDeleted = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all PIDs. @@ -213,11 +213,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="includeDeleted">Gets or sets a value indicating whether to include deleted pid information. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (PidDtoPagedResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<PidDtoPagedResponse>> GetPidsWithHttpInfoAsync(bool? includeProjects = default(bool?), bool? includeResources = default(bool?), bool? includeDeleted = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<PidDtoPagedResponse>> GetPidsWithHttpInfoAsync(bool? includeProjects = default(bool?), bool? includeResources = default(bool?), bool? includeDeleted = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Sends an inquiry to the owner of the given PID. /// </summary> @@ -231,7 +231,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task SendRequestToOwnerAsync(string prefix, Guid suffix, PidRequestDto? pidRequestDto = default(PidRequestDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task SendRequestToOwnerAsync(string prefix, Guid suffix, PidRequestDto? pidRequestDto = default(PidRequestDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Sends an inquiry to the owner of the given PID. @@ -246,7 +246,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> SendRequestToOwnerWithHttpInfoAsync(string prefix, Guid suffix, PidRequestDto? pidRequestDto = default(PidRequestDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> SendRequestToOwnerWithHttpInfoAsync(string prefix, Guid suffix, PidRequestDto? pidRequestDto = default(PidRequestDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -396,6 +396,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -438,7 +439,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task ApiV2PidsOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2PidsOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ApiV2PidsOptionsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); } @@ -450,7 +451,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2PidsOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2PidsOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -541,6 +542,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -587,7 +589,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of PidDtoResponse</returns> - public async System.Threading.Tasks.Task<PidDtoResponse> GetPidAsync(string prefix, Guid suffix, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<PidDtoResponse> GetPidAsync(string prefix, Guid suffix, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<PidDtoResponse> localVarResponse = await GetPidWithHttpInfoAsync(prefix, suffix, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -602,7 +604,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (PidDtoResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<PidDtoResponse>> GetPidWithHttpInfoAsync(string prefix, Guid suffix, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<PidDtoResponse>> GetPidWithHttpInfoAsync(string prefix, Guid suffix, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'prefix' is set if (prefix == null) @@ -670,7 +672,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="includeDeleted">Gets or sets a value indicating whether to include deleted pid information. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>PidDtoPagedResponse</returns> public PidDtoPagedResponse GetPids(bool? includeProjects = default(bool?), bool? includeResources = default(bool?), bool? includeDeleted = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -688,7 +690,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="includeDeleted">Gets or sets a value indicating whether to include deleted pid information. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of PidDtoPagedResponse</returns> public Coscine.ApiClient.Core.Client.ApiResponse<PidDtoPagedResponse> GetPidsWithHttpInfo(bool? includeProjects = default(bool?), bool? includeResources = default(bool?), bool? includeDeleted = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -705,6 +707,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -773,11 +776,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="includeDeleted">Gets or sets a value indicating whether to include deleted pid information. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of PidDtoPagedResponse</returns> - public async System.Threading.Tasks.Task<PidDtoPagedResponse> GetPidsAsync(bool? includeProjects = default(bool?), bool? includeResources = default(bool?), bool? includeDeleted = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<PidDtoPagedResponse> GetPidsAsync(bool? includeProjects = default(bool?), bool? includeResources = default(bool?), bool? includeDeleted = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<PidDtoPagedResponse> localVarResponse = await GetPidsWithHttpInfoAsync(includeProjects, includeResources, includeDeleted, pageNumber, pageSize, orderBy, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -792,11 +795,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="includeDeleted">Gets or sets a value indicating whether to include deleted pid information. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (PidDtoPagedResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<PidDtoPagedResponse>> GetPidsWithHttpInfoAsync(bool? includeProjects = default(bool?), bool? includeResources = default(bool?), bool? includeDeleted = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<PidDtoPagedResponse>> GetPidsWithHttpInfoAsync(bool? includeProjects = default(bool?), bool? includeResources = default(bool?), bool? includeDeleted = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -915,6 +918,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -963,7 +967,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task SendRequestToOwnerAsync(string prefix, Guid suffix, PidRequestDto? pidRequestDto = default(PidRequestDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SendRequestToOwnerAsync(string prefix, Guid suffix, PidRequestDto? pidRequestDto = default(PidRequestDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await SendRequestToOwnerWithHttpInfoAsync(prefix, suffix, pidRequestDto, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -978,7 +982,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> SendRequestToOwnerWithHttpInfoAsync(string prefix, Guid suffix, PidRequestDto? pidRequestDto = default(PidRequestDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> SendRequestToOwnerWithHttpInfoAsync(string prefix, Guid suffix, PidRequestDto? pidRequestDto = default(PidRequestDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'prefix' is set if (prefix == null) diff --git a/src/Coscine.ApiClient.Core/Api/ProjectApi.cs b/src/Coscine.ApiClient.Core/Api/ProjectApi.cs index c4f7bbf..9179ddb 100644 --- a/src/Coscine.ApiClient.Core/Api/ProjectApi.cs +++ b/src/Coscine.ApiClient.Core/Api/ProjectApi.cs @@ -115,7 +115,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="topLevel">Gets or sets a value indicating whether to retrieve only top-level projects. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ProjectDtoPagedResponse</returns> ProjectDtoPagedResponse GetProjects(bool? includeOrganizations = default(bool?), bool? topLevel = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -131,7 +131,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="topLevel">Gets or sets a value indicating whether to retrieve only top-level projects. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of ProjectDtoPagedResponse</returns> ApiResponse<ProjectDtoPagedResponse> GetProjectsWithHttpInfo(bool? includeOrganizations = default(bool?), bool? topLevel = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -176,7 +176,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task ApiV2ProjectsOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2ProjectsOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Responds with the HTTP methods allowed for the endpoint. @@ -188,7 +188,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2ProjectsOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2ProjectsOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Creates a new project. /// </summary> @@ -200,7 +200,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ProjectDtoResponse</returns> - System.Threading.Tasks.Task<ProjectDtoResponse> CreateProjectAsync(ProjectForCreationDto? projectForCreationDto = default(ProjectForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ProjectDtoResponse> CreateProjectAsync(ProjectForCreationDto? projectForCreationDto = default(ProjectForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Creates a new project. @@ -213,7 +213,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ProjectDtoResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<ProjectDtoResponse>> CreateProjectWithHttpInfoAsync(ProjectForCreationDto? projectForCreationDto = default(ProjectForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<ProjectDtoResponse>> CreateProjectWithHttpInfoAsync(ProjectForCreationDto? projectForCreationDto = default(ProjectForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Deletes a project. /// </summary> @@ -225,7 +225,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task DeleteProjectAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task DeleteProjectAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Deletes a project. @@ -238,7 +238,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> DeleteProjectWithHttpInfoAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> DeleteProjectWithHttpInfoAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves a project. /// </summary> @@ -251,7 +251,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ProjectDtoResponse</returns> - System.Threading.Tasks.Task<ProjectDtoResponse> GetProjectAsync(string projectId, bool? includeSubProjects = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ProjectDtoResponse> GetProjectAsync(string projectId, bool? includeSubProjects = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves a project. @@ -265,7 +265,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ProjectDtoResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<ProjectDtoResponse>> GetProjectWithHttpInfoAsync(string projectId, bool? includeSubProjects = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<ProjectDtoResponse>> GetProjectWithHttpInfoAsync(string projectId, bool? includeSubProjects = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all projects. /// </summary> @@ -277,11 +277,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="topLevel">Gets or sets a value indicating whether to retrieve only top-level projects. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ProjectDtoPagedResponse</returns> - System.Threading.Tasks.Task<ProjectDtoPagedResponse> GetProjectsAsync(bool? includeOrganizations = default(bool?), bool? topLevel = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ProjectDtoPagedResponse> GetProjectsAsync(bool? includeOrganizations = default(bool?), bool? topLevel = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all projects. @@ -294,11 +294,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="topLevel">Gets or sets a value indicating whether to retrieve only top-level projects. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ProjectDtoPagedResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<ProjectDtoPagedResponse>> GetProjectsWithHttpInfoAsync(bool? includeOrganizations = default(bool?), bool? topLevel = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<ProjectDtoPagedResponse>> GetProjectsWithHttpInfoAsync(bool? includeOrganizations = default(bool?), bool? topLevel = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Updates a project. /// </summary> @@ -311,7 +311,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task UpdateProjectAsync(string projectId, ProjectForUpdateDto? projectForUpdateDto = default(ProjectForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdateProjectAsync(string projectId, ProjectForUpdateDto? projectForUpdateDto = default(ProjectForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Updates a project. @@ -325,7 +325,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> UpdateProjectWithHttpInfoAsync(string projectId, ProjectForUpdateDto? projectForUpdateDto = default(ProjectForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> UpdateProjectWithHttpInfoAsync(string projectId, ProjectForUpdateDto? projectForUpdateDto = default(ProjectForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -475,6 +475,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -517,7 +518,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task ApiV2ProjectsOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2ProjectsOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ApiV2ProjectsOptionsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); } @@ -529,7 +530,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2ProjectsOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2ProjectsOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -615,6 +616,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -659,7 +661,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ProjectDtoResponse</returns> - public async System.Threading.Tasks.Task<ProjectDtoResponse> CreateProjectAsync(ProjectForCreationDto? projectForCreationDto = default(ProjectForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<ProjectDtoResponse> CreateProjectAsync(ProjectForCreationDto? projectForCreationDto = default(ProjectForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<ProjectDtoResponse> localVarResponse = await CreateProjectWithHttpInfoAsync(projectForCreationDto, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -673,7 +675,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ProjectDtoResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ProjectDtoResponse>> CreateProjectWithHttpInfoAsync(ProjectForCreationDto? projectForCreationDto = default(ProjectForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ProjectDtoResponse>> CreateProjectWithHttpInfoAsync(ProjectForCreationDto? projectForCreationDto = default(ProjectForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -765,6 +767,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -809,7 +812,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task DeleteProjectAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task DeleteProjectAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await DeleteProjectWithHttpInfoAsync(projectId, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -822,7 +825,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> DeleteProjectWithHttpInfoAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> DeleteProjectWithHttpInfoAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) @@ -920,6 +923,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -969,7 +973,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ProjectDtoResponse</returns> - public async System.Threading.Tasks.Task<ProjectDtoResponse> GetProjectAsync(string projectId, bool? includeSubProjects = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<ProjectDtoResponse> GetProjectAsync(string projectId, bool? includeSubProjects = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<ProjectDtoResponse> localVarResponse = await GetProjectWithHttpInfoAsync(projectId, includeSubProjects, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -984,7 +988,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ProjectDtoResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ProjectDtoResponse>> GetProjectWithHttpInfoAsync(string projectId, bool? includeSubProjects = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ProjectDtoResponse>> GetProjectWithHttpInfoAsync(string projectId, bool? includeSubProjects = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) @@ -1054,7 +1058,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="topLevel">Gets or sets a value indicating whether to retrieve only top-level projects. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ProjectDtoPagedResponse</returns> public ProjectDtoPagedResponse GetProjects(bool? includeOrganizations = default(bool?), bool? topLevel = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -1071,7 +1075,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="topLevel">Gets or sets a value indicating whether to retrieve only top-level projects. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of ProjectDtoPagedResponse</returns> public Coscine.ApiClient.Core.Client.ApiResponse<ProjectDtoPagedResponse> GetProjectsWithHttpInfo(bool? includeOrganizations = default(bool?), bool? topLevel = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -1088,6 +1092,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1151,11 +1156,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="topLevel">Gets or sets a value indicating whether to retrieve only top-level projects. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ProjectDtoPagedResponse</returns> - public async System.Threading.Tasks.Task<ProjectDtoPagedResponse> GetProjectsAsync(bool? includeOrganizations = default(bool?), bool? topLevel = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<ProjectDtoPagedResponse> GetProjectsAsync(bool? includeOrganizations = default(bool?), bool? topLevel = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<ProjectDtoPagedResponse> localVarResponse = await GetProjectsWithHttpInfoAsync(includeOrganizations, topLevel, pageNumber, pageSize, orderBy, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1169,11 +1174,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="topLevel">Gets or sets a value indicating whether to retrieve only top-level projects. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ProjectDtoPagedResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ProjectDtoPagedResponse>> GetProjectsWithHttpInfoAsync(bool? includeOrganizations = default(bool?), bool? topLevel = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ProjectDtoPagedResponse>> GetProjectsWithHttpInfoAsync(bool? includeOrganizations = default(bool?), bool? topLevel = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -1286,6 +1291,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1332,7 +1338,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task UpdateProjectAsync(string projectId, ProjectForUpdateDto? projectForUpdateDto = default(ProjectForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdateProjectAsync(string projectId, ProjectForUpdateDto? projectForUpdateDto = default(ProjectForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await UpdateProjectWithHttpInfoAsync(projectId, projectForUpdateDto, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -1346,7 +1352,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> UpdateProjectWithHttpInfoAsync(string projectId, ProjectForUpdateDto? projectForUpdateDto = default(ProjectForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> UpdateProjectWithHttpInfoAsync(string projectId, ProjectForUpdateDto? projectForUpdateDto = default(ProjectForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) diff --git a/src/Coscine.ApiClient.Core/Api/ProjectInvitationApi.cs b/src/Coscine.ApiClient.Core/Api/ProjectInvitationApi.cs index 69c2825..be0fe22 100644 --- a/src/Coscine.ApiClient.Core/Api/ProjectInvitationApi.cs +++ b/src/Coscine.ApiClient.Core/Api/ProjectInvitationApi.cs @@ -120,7 +120,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="projectId">The Id or slug of the project.</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ProjectInvitationDtoPagedResponse</returns> ProjectInvitationDtoPagedResponse GetProjectInvitations(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -135,7 +135,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="projectId">The Id or slug of the project.</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of ProjectInvitationDtoPagedResponse</returns> ApiResponse<ProjectInvitationDtoPagedResponse> GetProjectInvitationsWithHttpInfo(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -159,7 +159,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task ApiV2ProjectsProjectIdInvitationsOptionsAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2ProjectsProjectIdInvitationsOptionsAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Responds with the HTTP methods allowed for the endpoint. @@ -172,7 +172,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2ProjectsProjectIdInvitationsOptionsWithHttpInfoAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2ProjectsProjectIdInvitationsOptionsWithHttpInfoAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Creates a project invitation for a specified project. /// </summary> @@ -185,7 +185,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ProjectInvitationDtoResponse</returns> - System.Threading.Tasks.Task<ProjectInvitationDtoResponse> CreateProjectInvitationAsync(string projectId, ProjectInvitationForProjectManipulationDto? projectInvitationForProjectManipulationDto = default(ProjectInvitationForProjectManipulationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ProjectInvitationDtoResponse> CreateProjectInvitationAsync(string projectId, ProjectInvitationForProjectManipulationDto? projectInvitationForProjectManipulationDto = default(ProjectInvitationForProjectManipulationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Creates a project invitation for a specified project. @@ -199,7 +199,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ProjectInvitationDtoResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<ProjectInvitationDtoResponse>> CreateProjectInvitationWithHttpInfoAsync(string projectId, ProjectInvitationForProjectManipulationDto? projectInvitationForProjectManipulationDto = default(ProjectInvitationForProjectManipulationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<ProjectInvitationDtoResponse>> CreateProjectInvitationWithHttpInfoAsync(string projectId, ProjectInvitationForProjectManipulationDto? projectInvitationForProjectManipulationDto = default(ProjectInvitationForProjectManipulationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Deletes a project invitation for a specified project. /// </summary> @@ -212,7 +212,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task DeleteProjectInvitationAsync(string projectId, Guid projectInvitationId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task DeleteProjectInvitationAsync(string projectId, Guid projectInvitationId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Deletes a project invitation for a specified project. @@ -226,7 +226,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> DeleteProjectInvitationWithHttpInfoAsync(string projectId, Guid projectInvitationId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> DeleteProjectInvitationWithHttpInfoAsync(string projectId, Guid projectInvitationId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves a project invitation for a specified project. /// </summary> @@ -239,7 +239,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ProjectInvitationDtoResponse</returns> - System.Threading.Tasks.Task<ProjectInvitationDtoResponse> GetProjectInvitationAsync(string projectId, Guid projectInvitationId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ProjectInvitationDtoResponse> GetProjectInvitationAsync(string projectId, Guid projectInvitationId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves a project invitation for a specified project. @@ -253,7 +253,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ProjectInvitationDtoResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<ProjectInvitationDtoResponse>> GetProjectInvitationWithHttpInfoAsync(string projectId, Guid projectInvitationId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<ProjectInvitationDtoResponse>> GetProjectInvitationWithHttpInfoAsync(string projectId, Guid projectInvitationId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all project invitations for a specified project. /// </summary> @@ -264,11 +264,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="projectId">The Id or slug of the project.</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ProjectInvitationDtoPagedResponse</returns> - System.Threading.Tasks.Task<ProjectInvitationDtoPagedResponse> GetProjectInvitationsAsync(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ProjectInvitationDtoPagedResponse> GetProjectInvitationsAsync(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all project invitations for a specified project. @@ -280,11 +280,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="projectId">The Id or slug of the project.</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ProjectInvitationDtoPagedResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<ProjectInvitationDtoPagedResponse>> GetProjectInvitationsWithHttpInfoAsync(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<ProjectInvitationDtoPagedResponse>> GetProjectInvitationsWithHttpInfoAsync(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -442,6 +442,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -486,7 +487,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task ApiV2ProjectsProjectIdInvitationsOptionsAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2ProjectsProjectIdInvitationsOptionsAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ApiV2ProjectsProjectIdInvitationsOptionsWithHttpInfoAsync(projectId, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -499,7 +500,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2ProjectsProjectIdInvitationsOptionsWithHttpInfoAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2ProjectsProjectIdInvitationsOptionsWithHttpInfoAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) @@ -600,6 +601,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -646,7 +648,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ProjectInvitationDtoResponse</returns> - public async System.Threading.Tasks.Task<ProjectInvitationDtoResponse> CreateProjectInvitationAsync(string projectId, ProjectInvitationForProjectManipulationDto? projectInvitationForProjectManipulationDto = default(ProjectInvitationForProjectManipulationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<ProjectInvitationDtoResponse> CreateProjectInvitationAsync(string projectId, ProjectInvitationForProjectManipulationDto? projectInvitationForProjectManipulationDto = default(ProjectInvitationForProjectManipulationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<ProjectInvitationDtoResponse> localVarResponse = await CreateProjectInvitationWithHttpInfoAsync(projectId, projectInvitationForProjectManipulationDto, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -661,7 +663,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ProjectInvitationDtoResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ProjectInvitationDtoResponse>> CreateProjectInvitationWithHttpInfoAsync(string projectId, ProjectInvitationForProjectManipulationDto? projectInvitationForProjectManipulationDto = default(ProjectInvitationForProjectManipulationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ProjectInvitationDtoResponse>> CreateProjectInvitationWithHttpInfoAsync(string projectId, ProjectInvitationForProjectManipulationDto? projectInvitationForProjectManipulationDto = default(ProjectInvitationForProjectManipulationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) @@ -762,6 +764,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -808,7 +811,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task DeleteProjectInvitationAsync(string projectId, Guid projectInvitationId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task DeleteProjectInvitationAsync(string projectId, Guid projectInvitationId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await DeleteProjectInvitationWithHttpInfoAsync(projectId, projectInvitationId, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -822,7 +825,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> DeleteProjectInvitationWithHttpInfoAsync(string projectId, Guid projectInvitationId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> DeleteProjectInvitationWithHttpInfoAsync(string projectId, Guid projectInvitationId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) @@ -921,6 +924,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -967,7 +971,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ProjectInvitationDtoResponse</returns> - public async System.Threading.Tasks.Task<ProjectInvitationDtoResponse> GetProjectInvitationAsync(string projectId, Guid projectInvitationId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<ProjectInvitationDtoResponse> GetProjectInvitationAsync(string projectId, Guid projectInvitationId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<ProjectInvitationDtoResponse> localVarResponse = await GetProjectInvitationWithHttpInfoAsync(projectId, projectInvitationId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -982,7 +986,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ProjectInvitationDtoResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ProjectInvitationDtoResponse>> GetProjectInvitationWithHttpInfoAsync(string projectId, Guid projectInvitationId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ProjectInvitationDtoResponse>> GetProjectInvitationWithHttpInfoAsync(string projectId, Guid projectInvitationId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) @@ -1048,7 +1052,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="projectId">The Id or slug of the project.</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ProjectInvitationDtoPagedResponse</returns> public ProjectInvitationDtoPagedResponse GetProjectInvitations(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -1064,7 +1068,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="projectId">The Id or slug of the project.</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of ProjectInvitationDtoPagedResponse</returns> public Coscine.ApiClient.Core.Client.ApiResponse<ProjectInvitationDtoPagedResponse> GetProjectInvitationsWithHttpInfo(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -1087,6 +1091,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1142,11 +1147,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="projectId">The Id or slug of the project.</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ProjectInvitationDtoPagedResponse</returns> - public async System.Threading.Tasks.Task<ProjectInvitationDtoPagedResponse> GetProjectInvitationsAsync(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<ProjectInvitationDtoPagedResponse> GetProjectInvitationsAsync(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<ProjectInvitationDtoPagedResponse> localVarResponse = await GetProjectInvitationsWithHttpInfoAsync(projectId, pageNumber, pageSize, orderBy, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1159,11 +1164,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="projectId">The Id or slug of the project.</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ProjectInvitationDtoPagedResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ProjectInvitationDtoPagedResponse>> GetProjectInvitationsWithHttpInfoAsync(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ProjectInvitationDtoPagedResponse>> GetProjectInvitationsWithHttpInfoAsync(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) diff --git a/src/Coscine.ApiClient.Core/Api/ProjectMemberApi.cs b/src/Coscine.ApiClient.Core/Api/ProjectMemberApi.cs index febaf2a..ad78fa2 100644 --- a/src/Coscine.ApiClient.Core/Api/ProjectMemberApi.cs +++ b/src/Coscine.ApiClient.Core/Api/ProjectMemberApi.cs @@ -120,7 +120,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="projectId">The Id or slug of the project.</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ProjectRoleDtoPagedResponse</returns> ProjectRoleDtoPagedResponse GetMemberships(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -135,7 +135,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="projectId">The Id or slug of the project.</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of ProjectRoleDtoPagedResponse</returns> ApiResponse<ProjectRoleDtoPagedResponse> GetMembershipsWithHttpInfo(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -184,7 +184,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ProjectRoleDtoResponse</returns> - System.Threading.Tasks.Task<ProjectRoleDtoResponse> AddMembershipAsync(string projectId, ProjectRoleForProjectCreationDto? projectRoleForProjectCreationDto = default(ProjectRoleForProjectCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ProjectRoleDtoResponse> AddMembershipAsync(string projectId, ProjectRoleForProjectCreationDto? projectRoleForProjectCreationDto = default(ProjectRoleForProjectCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Creates a project membership for a specified project. @@ -198,7 +198,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ProjectRoleDtoResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<ProjectRoleDtoResponse>> AddMembershipWithHttpInfoAsync(string projectId, ProjectRoleForProjectCreationDto? projectRoleForProjectCreationDto = default(ProjectRoleForProjectCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<ProjectRoleDtoResponse>> AddMembershipWithHttpInfoAsync(string projectId, ProjectRoleForProjectCreationDto? projectRoleForProjectCreationDto = default(ProjectRoleForProjectCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Responds with the HTTP methods allowed for the endpoint. /// </summary> @@ -210,7 +210,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task ApiV2ProjectsProjectIdMembersOptionsAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2ProjectsProjectIdMembersOptionsAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Responds with the HTTP methods allowed for the endpoint. @@ -223,7 +223,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2ProjectsProjectIdMembersOptionsWithHttpInfoAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2ProjectsProjectIdMembersOptionsWithHttpInfoAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Deletes a project membership for a specified project. /// </summary> @@ -236,7 +236,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task DeleteMembershipAsync(string projectId, Guid membershipId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task DeleteMembershipAsync(string projectId, Guid membershipId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Deletes a project membership for a specified project. @@ -250,7 +250,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> DeleteMembershipWithHttpInfoAsync(string projectId, Guid membershipId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> DeleteMembershipWithHttpInfoAsync(string projectId, Guid membershipId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves a project membership for a specified project. /// </summary> @@ -263,7 +263,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ProjectRoleDtoResponse</returns> - System.Threading.Tasks.Task<ProjectRoleDtoResponse> GetMembershipAsync(string projectId, Guid membershipId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ProjectRoleDtoResponse> GetMembershipAsync(string projectId, Guid membershipId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves a project membership for a specified project. @@ -277,7 +277,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ProjectRoleDtoResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<ProjectRoleDtoResponse>> GetMembershipWithHttpInfoAsync(string projectId, Guid membershipId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<ProjectRoleDtoResponse>> GetMembershipWithHttpInfoAsync(string projectId, Guid membershipId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all project memberships for a specified project. /// </summary> @@ -288,11 +288,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="projectId">The Id or slug of the project.</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ProjectRoleDtoPagedResponse</returns> - System.Threading.Tasks.Task<ProjectRoleDtoPagedResponse> GetMembershipsAsync(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ProjectRoleDtoPagedResponse> GetMembershipsAsync(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all project memberships for a specified project. @@ -304,11 +304,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="projectId">The Id or slug of the project.</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ProjectRoleDtoPagedResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<ProjectRoleDtoPagedResponse>> GetMembershipsWithHttpInfoAsync(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<ProjectRoleDtoPagedResponse>> GetMembershipsWithHttpInfoAsync(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Updates a project membership for a specified project. /// </summary> @@ -322,7 +322,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task UpdateMembershipAsync(string projectId, Guid membershipId, ProjectRoleForProjectManipulationDto? projectRoleForProjectManipulationDto = default(ProjectRoleForProjectManipulationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdateMembershipAsync(string projectId, Guid membershipId, ProjectRoleForProjectManipulationDto? projectRoleForProjectManipulationDto = default(ProjectRoleForProjectManipulationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Updates a project membership for a specified project. @@ -337,7 +337,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> UpdateMembershipWithHttpInfoAsync(string projectId, Guid membershipId, ProjectRoleForProjectManipulationDto? projectRoleForProjectManipulationDto = default(ProjectRoleForProjectManipulationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> UpdateMembershipWithHttpInfoAsync(string projectId, Guid membershipId, ProjectRoleForProjectManipulationDto? projectRoleForProjectManipulationDto = default(ProjectRoleForProjectManipulationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -503,6 +503,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -549,7 +550,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ProjectRoleDtoResponse</returns> - public async System.Threading.Tasks.Task<ProjectRoleDtoResponse> AddMembershipAsync(string projectId, ProjectRoleForProjectCreationDto? projectRoleForProjectCreationDto = default(ProjectRoleForProjectCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<ProjectRoleDtoResponse> AddMembershipAsync(string projectId, ProjectRoleForProjectCreationDto? projectRoleForProjectCreationDto = default(ProjectRoleForProjectCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<ProjectRoleDtoResponse> localVarResponse = await AddMembershipWithHttpInfoAsync(projectId, projectRoleForProjectCreationDto, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -564,7 +565,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ProjectRoleDtoResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ProjectRoleDtoResponse>> AddMembershipWithHttpInfoAsync(string projectId, ProjectRoleForProjectCreationDto? projectRoleForProjectCreationDto = default(ProjectRoleForProjectCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ProjectRoleDtoResponse>> AddMembershipWithHttpInfoAsync(string projectId, ProjectRoleForProjectCreationDto? projectRoleForProjectCreationDto = default(ProjectRoleForProjectCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) @@ -663,6 +664,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -707,7 +709,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task ApiV2ProjectsProjectIdMembersOptionsAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2ProjectsProjectIdMembersOptionsAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ApiV2ProjectsProjectIdMembersOptionsWithHttpInfoAsync(projectId, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -720,7 +722,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2ProjectsProjectIdMembersOptionsWithHttpInfoAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2ProjectsProjectIdMembersOptionsWithHttpInfoAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) @@ -815,6 +817,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -861,7 +864,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task DeleteMembershipAsync(string projectId, Guid membershipId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task DeleteMembershipAsync(string projectId, Guid membershipId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await DeleteMembershipWithHttpInfoAsync(projectId, membershipId, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -875,7 +878,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> DeleteMembershipWithHttpInfoAsync(string projectId, Guid membershipId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> DeleteMembershipWithHttpInfoAsync(string projectId, Guid membershipId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) @@ -974,6 +977,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1020,7 +1024,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ProjectRoleDtoResponse</returns> - public async System.Threading.Tasks.Task<ProjectRoleDtoResponse> GetMembershipAsync(string projectId, Guid membershipId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<ProjectRoleDtoResponse> GetMembershipAsync(string projectId, Guid membershipId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<ProjectRoleDtoResponse> localVarResponse = await GetMembershipWithHttpInfoAsync(projectId, membershipId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1035,7 +1039,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ProjectRoleDtoResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ProjectRoleDtoResponse>> GetMembershipWithHttpInfoAsync(string projectId, Guid membershipId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ProjectRoleDtoResponse>> GetMembershipWithHttpInfoAsync(string projectId, Guid membershipId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) @@ -1101,7 +1105,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="projectId">The Id or slug of the project.</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ProjectRoleDtoPagedResponse</returns> public ProjectRoleDtoPagedResponse GetMemberships(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -1117,7 +1121,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="projectId">The Id or slug of the project.</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of ProjectRoleDtoPagedResponse</returns> public Coscine.ApiClient.Core.Client.ApiResponse<ProjectRoleDtoPagedResponse> GetMembershipsWithHttpInfo(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -1140,6 +1144,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1195,11 +1200,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="projectId">The Id or slug of the project.</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ProjectRoleDtoPagedResponse</returns> - public async System.Threading.Tasks.Task<ProjectRoleDtoPagedResponse> GetMembershipsAsync(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<ProjectRoleDtoPagedResponse> GetMembershipsAsync(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<ProjectRoleDtoPagedResponse> localVarResponse = await GetMembershipsWithHttpInfoAsync(projectId, pageNumber, pageSize, orderBy, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1212,11 +1217,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="projectId">The Id or slug of the project.</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ProjectRoleDtoPagedResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ProjectRoleDtoPagedResponse>> GetMembershipsWithHttpInfoAsync(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ProjectRoleDtoPagedResponse>> GetMembershipsWithHttpInfoAsync(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) @@ -1330,6 +1335,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1378,7 +1384,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task UpdateMembershipAsync(string projectId, Guid membershipId, ProjectRoleForProjectManipulationDto? projectRoleForProjectManipulationDto = default(ProjectRoleForProjectManipulationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdateMembershipAsync(string projectId, Guid membershipId, ProjectRoleForProjectManipulationDto? projectRoleForProjectManipulationDto = default(ProjectRoleForProjectManipulationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await UpdateMembershipWithHttpInfoAsync(projectId, membershipId, projectRoleForProjectManipulationDto, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -1393,7 +1399,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> UpdateMembershipWithHttpInfoAsync(string projectId, Guid membershipId, ProjectRoleForProjectManipulationDto? projectRoleForProjectManipulationDto = default(ProjectRoleForProjectManipulationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> UpdateMembershipWithHttpInfoAsync(string projectId, Guid membershipId, ProjectRoleForProjectManipulationDto? projectRoleForProjectManipulationDto = default(ProjectRoleForProjectManipulationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) diff --git a/src/Coscine.ApiClient.Core/Api/ProjectPublicationRequestApi.cs b/src/Coscine.ApiClient.Core/Api/ProjectPublicationRequestApi.cs index 7a8f19a..605df36 100644 --- a/src/Coscine.ApiClient.Core/Api/ProjectPublicationRequestApi.cs +++ b/src/Coscine.ApiClient.Core/Api/ProjectPublicationRequestApi.cs @@ -111,7 +111,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task ApiV2ProjectsProjectIdPublicationsRequestsOptionsAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2ProjectsProjectIdPublicationsRequestsOptionsAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Responds with the HTTP methods allowed for the endpoint. @@ -124,7 +124,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2ProjectsProjectIdPublicationsRequestsOptionsWithHttpInfoAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2ProjectsProjectIdPublicationsRequestsOptionsWithHttpInfoAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Creates a new publication request. /// </summary> @@ -137,7 +137,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ProjectPublicationRequestDtoResponse</returns> - System.Threading.Tasks.Task<ProjectPublicationRequestDtoResponse> CreatePublicationRequestAsync(string projectId, PublicationRequestForCreationDto? publicationRequestForCreationDto = default(PublicationRequestForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ProjectPublicationRequestDtoResponse> CreatePublicationRequestAsync(string projectId, PublicationRequestForCreationDto? publicationRequestForCreationDto = default(PublicationRequestForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Creates a new publication request. @@ -151,7 +151,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ProjectPublicationRequestDtoResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<ProjectPublicationRequestDtoResponse>> CreatePublicationRequestWithHttpInfoAsync(string projectId, PublicationRequestForCreationDto? publicationRequestForCreationDto = default(PublicationRequestForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<ProjectPublicationRequestDtoResponse>> CreatePublicationRequestWithHttpInfoAsync(string projectId, PublicationRequestForCreationDto? publicationRequestForCreationDto = default(PublicationRequestForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves a publication request. /// </summary> @@ -164,7 +164,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ProjectPublicationRequestDtoResponse</returns> - System.Threading.Tasks.Task<ProjectPublicationRequestDtoResponse> GetPublicationRequestAsync(string projectId, Guid publicationRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ProjectPublicationRequestDtoResponse> GetPublicationRequestAsync(string projectId, Guid publicationRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves a publication request. @@ -178,7 +178,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ProjectPublicationRequestDtoResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<ProjectPublicationRequestDtoResponse>> GetPublicationRequestWithHttpInfoAsync(string projectId, Guid publicationRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<ProjectPublicationRequestDtoResponse>> GetPublicationRequestWithHttpInfoAsync(string projectId, Guid publicationRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -336,6 +336,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -380,7 +381,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task ApiV2ProjectsProjectIdPublicationsRequestsOptionsAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2ProjectsProjectIdPublicationsRequestsOptionsAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ApiV2ProjectsProjectIdPublicationsRequestsOptionsWithHttpInfoAsync(projectId, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -393,7 +394,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2ProjectsProjectIdPublicationsRequestsOptionsWithHttpInfoAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2ProjectsProjectIdPublicationsRequestsOptionsWithHttpInfoAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) @@ -494,6 +495,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -540,7 +542,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ProjectPublicationRequestDtoResponse</returns> - public async System.Threading.Tasks.Task<ProjectPublicationRequestDtoResponse> CreatePublicationRequestAsync(string projectId, PublicationRequestForCreationDto? publicationRequestForCreationDto = default(PublicationRequestForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<ProjectPublicationRequestDtoResponse> CreatePublicationRequestAsync(string projectId, PublicationRequestForCreationDto? publicationRequestForCreationDto = default(PublicationRequestForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<ProjectPublicationRequestDtoResponse> localVarResponse = await CreatePublicationRequestWithHttpInfoAsync(projectId, publicationRequestForCreationDto, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -555,7 +557,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ProjectPublicationRequestDtoResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ProjectPublicationRequestDtoResponse>> CreatePublicationRequestWithHttpInfoAsync(string projectId, PublicationRequestForCreationDto? publicationRequestForCreationDto = default(PublicationRequestForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ProjectPublicationRequestDtoResponse>> CreatePublicationRequestWithHttpInfoAsync(string projectId, PublicationRequestForCreationDto? publicationRequestForCreationDto = default(PublicationRequestForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) @@ -659,6 +661,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -705,7 +708,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ProjectPublicationRequestDtoResponse</returns> - public async System.Threading.Tasks.Task<ProjectPublicationRequestDtoResponse> GetPublicationRequestAsync(string projectId, Guid publicationRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<ProjectPublicationRequestDtoResponse> GetPublicationRequestAsync(string projectId, Guid publicationRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<ProjectPublicationRequestDtoResponse> localVarResponse = await GetPublicationRequestWithHttpInfoAsync(projectId, publicationRequestId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -720,7 +723,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ProjectPublicationRequestDtoResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ProjectPublicationRequestDtoResponse>> GetPublicationRequestWithHttpInfoAsync(string projectId, Guid publicationRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ProjectPublicationRequestDtoResponse>> GetPublicationRequestWithHttpInfoAsync(string projectId, Guid publicationRequestId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) diff --git a/src/Coscine.ApiClient.Core/Api/ProjectQuotaApi.cs b/src/Coscine.ApiClient.Core/Api/ProjectQuotaApi.cs index b94ae8d..78c20ca 100644 --- a/src/Coscine.ApiClient.Core/Api/ProjectQuotaApi.cs +++ b/src/Coscine.ApiClient.Core/Api/ProjectQuotaApi.cs @@ -76,7 +76,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="projectId">The Id or slug of the project.</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ProjectQuotaDtoPagedResponse</returns> ProjectQuotaDtoPagedResponse GetProjectQuotas(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -91,7 +91,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="projectId">The Id or slug of the project.</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of ProjectQuotaDtoPagedResponse</returns> ApiResponse<ProjectQuotaDtoPagedResponse> GetProjectQuotasWithHttpInfo(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -139,7 +139,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task ApiV2ProjectsProjectIdQuotasOptionsAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2ProjectsProjectIdQuotasOptionsAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Responds with the HTTP methods allowed for the endpoint. @@ -152,7 +152,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2ProjectsProjectIdQuotasOptionsWithHttpInfoAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2ProjectsProjectIdQuotasOptionsWithHttpInfoAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves a project quota for a specified project and resource type. /// </summary> @@ -165,7 +165,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ProjectQuotaDtoResponse</returns> - System.Threading.Tasks.Task<ProjectQuotaDtoResponse> GetProjectQuotaAsync(string projectId, Guid resourceTypeId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ProjectQuotaDtoResponse> GetProjectQuotaAsync(string projectId, Guid resourceTypeId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves a project quota for a specified project and resource type. @@ -179,7 +179,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ProjectQuotaDtoResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<ProjectQuotaDtoResponse>> GetProjectQuotaWithHttpInfoAsync(string projectId, Guid resourceTypeId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<ProjectQuotaDtoResponse>> GetProjectQuotaWithHttpInfoAsync(string projectId, Guid resourceTypeId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all project quotas for a specified project. /// </summary> @@ -190,11 +190,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="projectId">The Id or slug of the project.</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ProjectQuotaDtoPagedResponse</returns> - System.Threading.Tasks.Task<ProjectQuotaDtoPagedResponse> GetProjectQuotasAsync(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ProjectQuotaDtoPagedResponse> GetProjectQuotasAsync(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all project quotas for a specified project. @@ -206,11 +206,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="projectId">The Id or slug of the project.</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ProjectQuotaDtoPagedResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<ProjectQuotaDtoPagedResponse>> GetProjectQuotasWithHttpInfoAsync(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<ProjectQuotaDtoPagedResponse>> GetProjectQuotasWithHttpInfoAsync(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Updates a project quota for a specified project and resource type. /// </summary> @@ -224,7 +224,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task UpdateProjectQuotaAsync(string projectId, Guid resourceTypeId, ProjectQuotaForUpdateDto? projectQuotaForUpdateDto = default(ProjectQuotaForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdateProjectQuotaAsync(string projectId, Guid resourceTypeId, ProjectQuotaForUpdateDto? projectQuotaForUpdateDto = default(ProjectQuotaForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Updates a project quota for a specified project and resource type. @@ -239,7 +239,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> UpdateProjectQuotaWithHttpInfoAsync(string projectId, Guid resourceTypeId, ProjectQuotaForUpdateDto? projectQuotaForUpdateDto = default(ProjectQuotaForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> UpdateProjectQuotaWithHttpInfoAsync(string projectId, Guid resourceTypeId, ProjectQuotaForUpdateDto? projectQuotaForUpdateDto = default(ProjectQuotaForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -397,6 +397,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -441,7 +442,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task ApiV2ProjectsProjectIdQuotasOptionsAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2ProjectsProjectIdQuotasOptionsAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ApiV2ProjectsProjectIdQuotasOptionsWithHttpInfoAsync(projectId, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -454,7 +455,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2ProjectsProjectIdQuotasOptionsWithHttpInfoAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2ProjectsProjectIdQuotasOptionsWithHttpInfoAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) @@ -552,6 +553,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -598,7 +600,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ProjectQuotaDtoResponse</returns> - public async System.Threading.Tasks.Task<ProjectQuotaDtoResponse> GetProjectQuotaAsync(string projectId, Guid resourceTypeId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<ProjectQuotaDtoResponse> GetProjectQuotaAsync(string projectId, Guid resourceTypeId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<ProjectQuotaDtoResponse> localVarResponse = await GetProjectQuotaWithHttpInfoAsync(projectId, resourceTypeId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -613,7 +615,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ProjectQuotaDtoResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ProjectQuotaDtoResponse>> GetProjectQuotaWithHttpInfoAsync(string projectId, Guid resourceTypeId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ProjectQuotaDtoResponse>> GetProjectQuotaWithHttpInfoAsync(string projectId, Guid resourceTypeId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) @@ -679,7 +681,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="projectId">The Id or slug of the project.</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ProjectQuotaDtoPagedResponse</returns> public ProjectQuotaDtoPagedResponse GetProjectQuotas(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -695,7 +697,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="projectId">The Id or slug of the project.</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of ProjectQuotaDtoPagedResponse</returns> public Coscine.ApiClient.Core.Client.ApiResponse<ProjectQuotaDtoPagedResponse> GetProjectQuotasWithHttpInfo(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -718,6 +720,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -773,11 +776,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="projectId">The Id or slug of the project.</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ProjectQuotaDtoPagedResponse</returns> - public async System.Threading.Tasks.Task<ProjectQuotaDtoPagedResponse> GetProjectQuotasAsync(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<ProjectQuotaDtoPagedResponse> GetProjectQuotasAsync(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<ProjectQuotaDtoPagedResponse> localVarResponse = await GetProjectQuotasWithHttpInfoAsync(projectId, pageNumber, pageSize, orderBy, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -790,11 +793,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="projectId">The Id or slug of the project.</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ProjectQuotaDtoPagedResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ProjectQuotaDtoPagedResponse>> GetProjectQuotasWithHttpInfoAsync(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ProjectQuotaDtoPagedResponse>> GetProjectQuotasWithHttpInfoAsync(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) @@ -908,6 +911,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -956,7 +960,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task UpdateProjectQuotaAsync(string projectId, Guid resourceTypeId, ProjectQuotaForUpdateDto? projectQuotaForUpdateDto = default(ProjectQuotaForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdateProjectQuotaAsync(string projectId, Guid resourceTypeId, ProjectQuotaForUpdateDto? projectQuotaForUpdateDto = default(ProjectQuotaForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await UpdateProjectQuotaWithHttpInfoAsync(projectId, resourceTypeId, projectQuotaForUpdateDto, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -971,7 +975,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> UpdateProjectQuotaWithHttpInfoAsync(string projectId, Guid resourceTypeId, ProjectQuotaForUpdateDto? projectQuotaForUpdateDto = default(ProjectQuotaForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> UpdateProjectQuotaWithHttpInfoAsync(string projectId, Guid resourceTypeId, ProjectQuotaForUpdateDto? projectQuotaForUpdateDto = default(ProjectQuotaForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) diff --git a/src/Coscine.ApiClient.Core/Api/ProjectResourceApi.cs b/src/Coscine.ApiClient.Core/Api/ProjectResourceApi.cs index d03ff31..b186f22 100644 --- a/src/Coscine.ApiClient.Core/Api/ProjectResourceApi.cs +++ b/src/Coscine.ApiClient.Core/Api/ProjectResourceApi.cs @@ -120,7 +120,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="projectId">The Id or slug of the project.</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ResourceDtoPagedResponse</returns> ResourceDtoPagedResponse GetResourcesForProject(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -135,7 +135,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="projectId">The Id or slug of the project.</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of ResourceDtoPagedResponse</returns> ApiResponse<ResourceDtoPagedResponse> GetResourcesForProjectWithHttpInfo(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -183,7 +183,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task ApiV2ProjectsProjectIdResourcesOptionsAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2ProjectsProjectIdResourcesOptionsAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Responds with the HTTP methods allowed for the endpoint. @@ -196,7 +196,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2ProjectsProjectIdResourcesOptionsWithHttpInfoAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2ProjectsProjectIdResourcesOptionsWithHttpInfoAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Creates a new resource for a specified project. /// </summary> @@ -209,7 +209,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ResourceDtoResponse</returns> - System.Threading.Tasks.Task<ResourceDtoResponse> CreateResourceForProjectAsync(string projectId, ResourceForCreationDto? resourceForCreationDto = default(ResourceForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ResourceDtoResponse> CreateResourceForProjectAsync(string projectId, ResourceForCreationDto? resourceForCreationDto = default(ResourceForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Creates a new resource for a specified project. @@ -223,7 +223,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ResourceDtoResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<ResourceDtoResponse>> CreateResourceForProjectWithHttpInfoAsync(string projectId, ResourceForCreationDto? resourceForCreationDto = default(ResourceForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<ResourceDtoResponse>> CreateResourceForProjectWithHttpInfoAsync(string projectId, ResourceForCreationDto? resourceForCreationDto = default(ResourceForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Deletes a resource for a specified project. /// </summary> @@ -236,7 +236,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task DeleteResourceForProjectAsync(string projectId, Guid resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task DeleteResourceForProjectAsync(string projectId, Guid resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Deletes a resource for a specified project. @@ -250,7 +250,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> DeleteResourceForProjectWithHttpInfoAsync(string projectId, Guid resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> DeleteResourceForProjectWithHttpInfoAsync(string projectId, Guid resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves a resource for a specified project. /// </summary> @@ -263,7 +263,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ResourceDtoResponse</returns> - System.Threading.Tasks.Task<ResourceDtoResponse> GetResourceForProjectAsync(string projectId, Guid resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ResourceDtoResponse> GetResourceForProjectAsync(string projectId, Guid resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves a resource for a specified project. @@ -277,7 +277,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ResourceDtoResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<ResourceDtoResponse>> GetResourceForProjectWithHttpInfoAsync(string projectId, Guid resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<ResourceDtoResponse>> GetResourceForProjectWithHttpInfoAsync(string projectId, Guid resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all resources for a specified project. /// </summary> @@ -288,11 +288,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="projectId">The Id or slug of the project.</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ResourceDtoPagedResponse</returns> - System.Threading.Tasks.Task<ResourceDtoPagedResponse> GetResourcesForProjectAsync(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ResourceDtoPagedResponse> GetResourcesForProjectAsync(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all resources for a specified project. @@ -304,11 +304,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="projectId">The Id or slug of the project.</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ResourceDtoPagedResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<ResourceDtoPagedResponse>> GetResourcesForProjectWithHttpInfoAsync(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<ResourceDtoPagedResponse>> GetResourcesForProjectWithHttpInfoAsync(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Updates a resource for a specified project. /// </summary> @@ -322,7 +322,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task UpdateResourceForProjectAsync(string projectId, Guid resourceId, ResourceForUpdateDto? resourceForUpdateDto = default(ResourceForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdateResourceForProjectAsync(string projectId, Guid resourceId, ResourceForUpdateDto? resourceForUpdateDto = default(ResourceForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Updates a resource for a specified project. @@ -337,7 +337,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> UpdateResourceForProjectWithHttpInfoAsync(string projectId, Guid resourceId, ResourceForUpdateDto? resourceForUpdateDto = default(ResourceForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> UpdateResourceForProjectWithHttpInfoAsync(string projectId, Guid resourceId, ResourceForUpdateDto? resourceForUpdateDto = default(ResourceForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -495,6 +495,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -539,7 +540,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task ApiV2ProjectsProjectIdResourcesOptionsAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2ProjectsProjectIdResourcesOptionsAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ApiV2ProjectsProjectIdResourcesOptionsWithHttpInfoAsync(projectId, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -552,7 +553,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2ProjectsProjectIdResourcesOptionsWithHttpInfoAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2ProjectsProjectIdResourcesOptionsWithHttpInfoAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) @@ -653,6 +654,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -699,7 +701,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ResourceDtoResponse</returns> - public async System.Threading.Tasks.Task<ResourceDtoResponse> CreateResourceForProjectAsync(string projectId, ResourceForCreationDto? resourceForCreationDto = default(ResourceForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<ResourceDtoResponse> CreateResourceForProjectAsync(string projectId, ResourceForCreationDto? resourceForCreationDto = default(ResourceForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<ResourceDtoResponse> localVarResponse = await CreateResourceForProjectWithHttpInfoAsync(projectId, resourceForCreationDto, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -714,7 +716,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ResourceDtoResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ResourceDtoResponse>> CreateResourceForProjectWithHttpInfoAsync(string projectId, ResourceForCreationDto? resourceForCreationDto = default(ResourceForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ResourceDtoResponse>> CreateResourceForProjectWithHttpInfoAsync(string projectId, ResourceForCreationDto? resourceForCreationDto = default(ResourceForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) @@ -815,6 +817,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -861,7 +864,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task DeleteResourceForProjectAsync(string projectId, Guid resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task DeleteResourceForProjectAsync(string projectId, Guid resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await DeleteResourceForProjectWithHttpInfoAsync(projectId, resourceId, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -875,7 +878,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> DeleteResourceForProjectWithHttpInfoAsync(string projectId, Guid resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> DeleteResourceForProjectWithHttpInfoAsync(string projectId, Guid resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) @@ -974,6 +977,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1020,7 +1024,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ResourceDtoResponse</returns> - public async System.Threading.Tasks.Task<ResourceDtoResponse> GetResourceForProjectAsync(string projectId, Guid resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<ResourceDtoResponse> GetResourceForProjectAsync(string projectId, Guid resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<ResourceDtoResponse> localVarResponse = await GetResourceForProjectWithHttpInfoAsync(projectId, resourceId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1035,7 +1039,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ResourceDtoResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ResourceDtoResponse>> GetResourceForProjectWithHttpInfoAsync(string projectId, Guid resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ResourceDtoResponse>> GetResourceForProjectWithHttpInfoAsync(string projectId, Guid resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) @@ -1101,7 +1105,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="projectId">The Id or slug of the project.</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ResourceDtoPagedResponse</returns> public ResourceDtoPagedResponse GetResourcesForProject(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -1117,7 +1121,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="projectId">The Id or slug of the project.</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of ResourceDtoPagedResponse</returns> public Coscine.ApiClient.Core.Client.ApiResponse<ResourceDtoPagedResponse> GetResourcesForProjectWithHttpInfo(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -1140,6 +1144,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1195,11 +1200,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="projectId">The Id or slug of the project.</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ResourceDtoPagedResponse</returns> - public async System.Threading.Tasks.Task<ResourceDtoPagedResponse> GetResourcesForProjectAsync(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<ResourceDtoPagedResponse> GetResourcesForProjectAsync(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<ResourceDtoPagedResponse> localVarResponse = await GetResourcesForProjectWithHttpInfoAsync(projectId, pageNumber, pageSize, orderBy, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1212,11 +1217,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="projectId">The Id or slug of the project.</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ResourceDtoPagedResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ResourceDtoPagedResponse>> GetResourcesForProjectWithHttpInfoAsync(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ResourceDtoPagedResponse>> GetResourcesForProjectWithHttpInfoAsync(string projectId, int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) @@ -1330,6 +1335,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1378,7 +1384,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task UpdateResourceForProjectAsync(string projectId, Guid resourceId, ResourceForUpdateDto? resourceForUpdateDto = default(ResourceForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdateResourceForProjectAsync(string projectId, Guid resourceId, ResourceForUpdateDto? resourceForUpdateDto = default(ResourceForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await UpdateResourceForProjectWithHttpInfoAsync(projectId, resourceId, resourceForUpdateDto, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -1393,7 +1399,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> UpdateResourceForProjectWithHttpInfoAsync(string projectId, Guid resourceId, ResourceForUpdateDto? resourceForUpdateDto = default(ResourceForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> UpdateResourceForProjectWithHttpInfoAsync(string projectId, Guid resourceId, ResourceForUpdateDto? resourceForUpdateDto = default(ResourceForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) diff --git a/src/Coscine.ApiClient.Core/Api/ProjectResourceQuotaApi.cs b/src/Coscine.ApiClient.Core/Api/ProjectResourceQuotaApi.cs index 25901cb..c4d7d3d 100644 --- a/src/Coscine.ApiClient.Core/Api/ProjectResourceQuotaApi.cs +++ b/src/Coscine.ApiClient.Core/Api/ProjectResourceQuotaApi.cs @@ -92,7 +92,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task ApiV2ProjectsProjectIdResourcesResourceIdQuotaOptionsAsync(string projectId, string resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2ProjectsProjectIdResourcesResourceIdQuotaOptionsAsync(string projectId, string resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Responds with the HTTP methods allowed for the endpoint. @@ -106,7 +106,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2ProjectsProjectIdResourcesResourceIdQuotaOptionsWithHttpInfoAsync(string projectId, string resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2ProjectsProjectIdResourcesResourceIdQuotaOptionsWithHttpInfoAsync(string projectId, string resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves the resource quota for a specific resource in a project. /// </summary> @@ -119,7 +119,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ResourceQuotaDtoResponse</returns> - System.Threading.Tasks.Task<ResourceQuotaDtoResponse> GetQuotaForResourceForProjectAsync(string projectId, Guid resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ResourceQuotaDtoResponse> GetQuotaForResourceForProjectAsync(string projectId, Guid resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves the resource quota for a specific resource in a project. @@ -133,7 +133,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ResourceQuotaDtoResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<ResourceQuotaDtoResponse>> GetQuotaForResourceForProjectWithHttpInfoAsync(string projectId, Guid resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<ResourceQuotaDtoResponse>> GetQuotaForResourceForProjectWithHttpInfoAsync(string projectId, Guid resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -299,6 +299,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -345,7 +346,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task ApiV2ProjectsProjectIdResourcesResourceIdQuotaOptionsAsync(string projectId, string resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2ProjectsProjectIdResourcesResourceIdQuotaOptionsAsync(string projectId, string resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ApiV2ProjectsProjectIdResourcesResourceIdQuotaOptionsWithHttpInfoAsync(projectId, resourceId, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -359,7 +360,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2ProjectsProjectIdResourcesResourceIdQuotaOptionsWithHttpInfoAsync(string projectId, string resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2ProjectsProjectIdResourcesResourceIdQuotaOptionsWithHttpInfoAsync(string projectId, string resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) @@ -464,6 +465,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -510,7 +512,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ResourceQuotaDtoResponse</returns> - public async System.Threading.Tasks.Task<ResourceQuotaDtoResponse> GetQuotaForResourceForProjectAsync(string projectId, Guid resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<ResourceQuotaDtoResponse> GetQuotaForResourceForProjectAsync(string projectId, Guid resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<ResourceQuotaDtoResponse> localVarResponse = await GetQuotaForResourceForProjectWithHttpInfoAsync(projectId, resourceId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -525,7 +527,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ResourceQuotaDtoResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ResourceQuotaDtoResponse>> GetQuotaForResourceForProjectWithHttpInfoAsync(string projectId, Guid resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ResourceQuotaDtoResponse>> GetQuotaForResourceForProjectWithHttpInfoAsync(string projectId, Guid resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) diff --git a/src/Coscine.ApiClient.Core/Api/ProjectResourceTypeApi.cs b/src/Coscine.ApiClient.Core/Api/ProjectResourceTypeApi.cs index 78593e8..a331335 100644 --- a/src/Coscine.ApiClient.Core/Api/ProjectResourceTypeApi.cs +++ b/src/Coscine.ApiClient.Core/Api/ProjectResourceTypeApi.cs @@ -87,7 +87,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task ApiV2ProjectsProjectIdResourceTypesOptionsAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2ProjectsProjectIdResourceTypesOptionsAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Responds with the HTTP methods allowed for the endpoint. @@ -100,7 +100,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2ProjectsProjectIdResourceTypesOptionsWithHttpInfoAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2ProjectsProjectIdResourceTypesOptionsWithHttpInfoAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves the available resource types information for a specific project. /// </summary> @@ -112,7 +112,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ResourceTypeInformationDtoIEnumerableResponse</returns> - System.Threading.Tasks.Task<ResourceTypeInformationDtoIEnumerableResponse> GetAvailableResourceTypesInformationForProjectAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ResourceTypeInformationDtoIEnumerableResponse> GetAvailableResourceTypesInformationForProjectAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves the available resource types information for a specific project. @@ -125,7 +125,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ResourceTypeInformationDtoIEnumerableResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<ResourceTypeInformationDtoIEnumerableResponse>> GetAvailableResourceTypesInformationForProjectWithHttpInfoAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<ResourceTypeInformationDtoIEnumerableResponse>> GetAvailableResourceTypesInformationForProjectWithHttpInfoAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -283,6 +283,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -327,7 +328,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task ApiV2ProjectsProjectIdResourceTypesOptionsAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2ProjectsProjectIdResourceTypesOptionsAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ApiV2ProjectsProjectIdResourceTypesOptionsWithHttpInfoAsync(projectId, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -340,7 +341,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2ProjectsProjectIdResourceTypesOptionsWithHttpInfoAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2ProjectsProjectIdResourceTypesOptionsWithHttpInfoAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) @@ -436,6 +437,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -480,7 +482,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ResourceTypeInformationDtoIEnumerableResponse</returns> - public async System.Threading.Tasks.Task<ResourceTypeInformationDtoIEnumerableResponse> GetAvailableResourceTypesInformationForProjectAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<ResourceTypeInformationDtoIEnumerableResponse> GetAvailableResourceTypesInformationForProjectAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<ResourceTypeInformationDtoIEnumerableResponse> localVarResponse = await GetAvailableResourceTypesInformationForProjectWithHttpInfoAsync(projectId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -494,7 +496,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ResourceTypeInformationDtoIEnumerableResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ResourceTypeInformationDtoIEnumerableResponse>> GetAvailableResourceTypesInformationForProjectWithHttpInfoAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ResourceTypeInformationDtoIEnumerableResponse>> GetAvailableResourceTypesInformationForProjectWithHttpInfoAsync(string projectId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) diff --git a/src/Coscine.ApiClient.Core/Api/ProvenanceApi.cs b/src/Coscine.ApiClient.Core/Api/ProvenanceApi.cs index 57a832b..f02b006 100644 --- a/src/Coscine.ApiClient.Core/Api/ProvenanceApi.cs +++ b/src/Coscine.ApiClient.Core/Api/ProvenanceApi.cs @@ -123,7 +123,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task ApiV2ProjectsProjectIdResourcesResourceIdProvenanceOptionsAsync(string projectId, string resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2ProjectsProjectIdResourcesResourceIdProvenanceOptionsAsync(string projectId, string resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Responds with the HTTP methods allowed for the endpoint. @@ -137,7 +137,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2ProjectsProjectIdResourcesResourceIdProvenanceOptionsWithHttpInfoAsync(string projectId, string resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2ProjectsProjectIdResourcesResourceIdProvenanceOptionsWithHttpInfoAsync(string projectId, string resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves the specific provenance information associated with a resource. /// </summary> @@ -152,7 +152,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ProvenanceDtoResponse</returns> - System.Threading.Tasks.Task<ProvenanceDtoResponse> GetSpecificProvenanceAsync(string projectId, Guid resourceId, string path, int? version = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ProvenanceDtoResponse> GetSpecificProvenanceAsync(string projectId, Guid resourceId, string path, int? version = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves the specific provenance information associated with a resource. @@ -168,7 +168,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ProvenanceDtoResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<ProvenanceDtoResponse>> GetSpecificProvenanceWithHttpInfoAsync(string projectId, Guid resourceId, string path, int? version = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<ProvenanceDtoResponse>> GetSpecificProvenanceWithHttpInfoAsync(string projectId, Guid resourceId, string path, int? version = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Updates existing specific provenance information of a resource. /// </summary> @@ -182,7 +182,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task UpdateSpecificProvenanceAsync(string projectId, Guid resourceId, ProvenanceForUpdateDto? provenanceForUpdateDto = default(ProvenanceForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdateSpecificProvenanceAsync(string projectId, Guid resourceId, ProvenanceForUpdateDto? provenanceForUpdateDto = default(ProvenanceForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Updates existing specific provenance information of a resource. @@ -197,7 +197,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> UpdateSpecificProvenanceWithHttpInfoAsync(string projectId, Guid resourceId, ProvenanceForUpdateDto? provenanceForUpdateDto = default(ProvenanceForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> UpdateSpecificProvenanceWithHttpInfoAsync(string projectId, Guid resourceId, ProvenanceForUpdateDto? provenanceForUpdateDto = default(ProvenanceForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -363,6 +363,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -409,7 +410,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task ApiV2ProjectsProjectIdResourcesResourceIdProvenanceOptionsAsync(string projectId, string resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2ProjectsProjectIdResourcesResourceIdProvenanceOptionsAsync(string projectId, string resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ApiV2ProjectsProjectIdResourcesResourceIdProvenanceOptionsWithHttpInfoAsync(projectId, resourceId, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -423,7 +424,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2ProjectsProjectIdResourcesResourceIdProvenanceOptionsWithHttpInfoAsync(string projectId, string resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2ProjectsProjectIdResourcesResourceIdProvenanceOptionsWithHttpInfoAsync(string projectId, string resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) @@ -538,6 +539,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -591,7 +593,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ProvenanceDtoResponse</returns> - public async System.Threading.Tasks.Task<ProvenanceDtoResponse> GetSpecificProvenanceAsync(string projectId, Guid resourceId, string path, int? version = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<ProvenanceDtoResponse> GetSpecificProvenanceAsync(string projectId, Guid resourceId, string path, int? version = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<ProvenanceDtoResponse> localVarResponse = await GetSpecificProvenanceWithHttpInfoAsync(projectId, resourceId, path, version, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -608,7 +610,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ProvenanceDtoResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ProvenanceDtoResponse>> GetSpecificProvenanceWithHttpInfoAsync(string projectId, Guid resourceId, string path, int? version = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ProvenanceDtoResponse>> GetSpecificProvenanceWithHttpInfoAsync(string projectId, Guid resourceId, string path, int? version = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) @@ -722,6 +724,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -770,7 +773,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task UpdateSpecificProvenanceAsync(string projectId, Guid resourceId, ProvenanceForUpdateDto? provenanceForUpdateDto = default(ProvenanceForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdateSpecificProvenanceAsync(string projectId, Guid resourceId, ProvenanceForUpdateDto? provenanceForUpdateDto = default(ProvenanceForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await UpdateSpecificProvenanceWithHttpInfoAsync(projectId, resourceId, provenanceForUpdateDto, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -785,7 +788,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> UpdateSpecificProvenanceWithHttpInfoAsync(string projectId, Guid resourceId, ProvenanceForUpdateDto? provenanceForUpdateDto = default(ProvenanceForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> UpdateSpecificProvenanceWithHttpInfoAsync(string projectId, Guid resourceId, ProvenanceForUpdateDto? provenanceForUpdateDto = default(ProvenanceForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) diff --git a/src/Coscine.ApiClient.Core/Api/ResourceApi.cs b/src/Coscine.ApiClient.Core/Api/ResourceApi.cs index 3af8243..f88baf1 100644 --- a/src/Coscine.ApiClient.Core/Api/ResourceApi.cs +++ b/src/Coscine.ApiClient.Core/Api/ResourceApi.cs @@ -84,7 +84,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task ApiV2ResourcesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2ResourcesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Responds with the HTTP methods allowed for the endpoint. @@ -96,7 +96,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2ResourcesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2ResourcesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves a resource by its ID. /// </summary> @@ -108,7 +108,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ResourceDtoResponse</returns> - System.Threading.Tasks.Task<ResourceDtoResponse> GetResourceAsync(Guid resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ResourceDtoResponse> GetResourceAsync(Guid resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves a resource by its ID. @@ -121,7 +121,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ResourceDtoResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<ResourceDtoResponse>> GetResourceWithHttpInfoAsync(Guid resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<ResourceDtoResponse>> GetResourceWithHttpInfoAsync(Guid resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -271,6 +271,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -313,7 +314,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task ApiV2ResourcesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2ResourcesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ApiV2ResourcesOptionsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); } @@ -325,7 +326,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2ResourcesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2ResourcesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -408,6 +409,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -452,7 +454,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ResourceDtoResponse</returns> - public async System.Threading.Tasks.Task<ResourceDtoResponse> GetResourceAsync(Guid resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<ResourceDtoResponse> GetResourceAsync(Guid resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<ResourceDtoResponse> localVarResponse = await GetResourceWithHttpInfoAsync(resourceId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -466,7 +468,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ResourceDtoResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ResourceDtoResponse>> GetResourceWithHttpInfoAsync(Guid resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ResourceDtoResponse>> GetResourceWithHttpInfoAsync(Guid resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); diff --git a/src/Coscine.ApiClient.Core/Api/ResourceTypeApi.cs b/src/Coscine.ApiClient.Core/Api/ResourceTypeApi.cs index 5c050b4..57c0de0 100644 --- a/src/Coscine.ApiClient.Core/Api/ResourceTypeApi.cs +++ b/src/Coscine.ApiClient.Core/Api/ResourceTypeApi.cs @@ -46,52 +46,6 @@ namespace Coscine.ApiClient.Core.Api /// <returns>ApiResponse of Object(void)</returns> ApiResponse<Object> ApiV2ResourceTypesOptionsWithHttpInfo(int operationIndex = 0); /// <summary> - /// Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. - /// </summary> - /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> - /// <param name="gitlabProjectId">The ID of the GitLab project.</param> - /// <param name="domain">Domain/Host of the GitLab Provider.</param> - /// <param name="accessToken">GitLab Project or Group Access Token.</param> - /// <param name="operationIndex">Index associated with the operation.</param> - /// <returns>GitlabBranchDtoIEnumerableResponse</returns> - GitlabBranchDtoIEnumerableResponse GetAllGitlabBranchesForProject(int gitlabProjectId, string domain, string accessToken, int operationIndex = 0); - - /// <summary> - /// Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. - /// </summary> - /// <remarks> - /// - /// </remarks> - /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> - /// <param name="gitlabProjectId">The ID of the GitLab project.</param> - /// <param name="domain">Domain/Host of the GitLab Provider.</param> - /// <param name="accessToken">GitLab Project or Group Access Token.</param> - /// <param name="operationIndex">Index associated with the operation.</param> - /// <returns>ApiResponse of GitlabBranchDtoIEnumerableResponse</returns> - ApiResponse<GitlabBranchDtoIEnumerableResponse> GetAllGitlabBranchesForProjectWithHttpInfo(int gitlabProjectId, string domain, string accessToken, int operationIndex = 0); - /// <summary> - /// Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. - /// </summary> - /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> - /// <param name="domain">Domain/Host of the GitLab Provider.</param> - /// <param name="accessToken">GitLab Project or Group Access Token.</param> - /// <param name="operationIndex">Index associated with the operation.</param> - /// <returns>GitlabProjectDtoIEnumerableResponse</returns> - GitlabProjectDtoIEnumerableResponse GetAllGitlabProjects(string domain, string accessToken, int operationIndex = 0); - - /// <summary> - /// Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. - /// </summary> - /// <remarks> - /// - /// </remarks> - /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> - /// <param name="domain">Domain/Host of the GitLab Provider.</param> - /// <param name="accessToken">GitLab Project or Group Access Token.</param> - /// <param name="operationIndex">Index associated with the operation.</param> - /// <returns>ApiResponse of GitlabProjectDtoIEnumerableResponse</returns> - ApiResponse<GitlabProjectDtoIEnumerableResponse> GetAllGitlabProjectsWithHttpInfo(string domain, string accessToken, int operationIndex = 0); - /// <summary> /// Retrieves the entire global resource types information. /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> @@ -110,30 +64,6 @@ namespace Coscine.ApiClient.Core.Api /// <returns>ApiResponse of ResourceTypeInformationDtoIEnumerableResponse</returns> ApiResponse<ResourceTypeInformationDtoIEnumerableResponse> GetAllResourceTypesInformationWithHttpInfo(int operationIndex = 0); /// <summary> - /// Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. - /// </summary> - /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> - /// <param name="gitlabProjectId">The ID of the GitLab project.</param> - /// <param name="domain">Domain/Host of the GitLab Provider.</param> - /// <param name="accessToken">GitLab Project or Group Access Token.</param> - /// <param name="operationIndex">Index associated with the operation.</param> - /// <returns>GitlabProjectDtoResponse</returns> - GitlabProjectDtoResponse GetGitlabProject(int gitlabProjectId, string domain, string accessToken, int operationIndex = 0); - - /// <summary> - /// Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. - /// </summary> - /// <remarks> - /// - /// </remarks> - /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> - /// <param name="gitlabProjectId">The ID of the GitLab project.</param> - /// <param name="domain">Domain/Host of the GitLab Provider.</param> - /// <param name="accessToken">GitLab Project or Group Access Token.</param> - /// <param name="operationIndex">Index associated with the operation.</param> - /// <returns>ApiResponse of GitlabProjectDtoResponse</returns> - ApiResponse<GitlabProjectDtoResponse> GetGitlabProjectWithHttpInfo(int gitlabProjectId, string domain, string accessToken, int operationIndex = 0); - /// <summary> /// Retrieves the resource type information for a specific resource type. /// </summary> /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> @@ -172,7 +102,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task ApiV2ResourceTypesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2ResourceTypesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Responds with the HTTP methods allowed for the endpoint. @@ -184,63 +114,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2ResourceTypesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - /// <summary> - /// Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. - /// </summary> - /// <remarks> - /// - /// </remarks> - /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> - /// <param name="gitlabProjectId">The ID of the GitLab project.</param> - /// <param name="domain">Domain/Host of the GitLab Provider.</param> - /// <param name="accessToken">GitLab Project or Group Access Token.</param> - /// <param name="operationIndex">Index associated with the operation.</param> - /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> - /// <returns>Task of GitlabBranchDtoIEnumerableResponse</returns> - System.Threading.Tasks.Task<GitlabBranchDtoIEnumerableResponse> GetAllGitlabBranchesForProjectAsync(int gitlabProjectId, string domain, string accessToken, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// <summary> - /// Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. - /// </summary> - /// <remarks> - /// - /// </remarks> - /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> - /// <param name="gitlabProjectId">The ID of the GitLab project.</param> - /// <param name="domain">Domain/Host of the GitLab Provider.</param> - /// <param name="accessToken">GitLab Project or Group Access Token.</param> - /// <param name="operationIndex">Index associated with the operation.</param> - /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> - /// <returns>Task of ApiResponse (GitlabBranchDtoIEnumerableResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<GitlabBranchDtoIEnumerableResponse>> GetAllGitlabBranchesForProjectWithHttpInfoAsync(int gitlabProjectId, string domain, string accessToken, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - /// <summary> - /// Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. - /// </summary> - /// <remarks> - /// - /// </remarks> - /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> - /// <param name="domain">Domain/Host of the GitLab Provider.</param> - /// <param name="accessToken">GitLab Project or Group Access Token.</param> - /// <param name="operationIndex">Index associated with the operation.</param> - /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> - /// <returns>Task of GitlabProjectDtoIEnumerableResponse</returns> - System.Threading.Tasks.Task<GitlabProjectDtoIEnumerableResponse> GetAllGitlabProjectsAsync(string domain, string accessToken, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// <summary> - /// Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. - /// </summary> - /// <remarks> - /// - /// </remarks> - /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> - /// <param name="domain">Domain/Host of the GitLab Provider.</param> - /// <param name="accessToken">GitLab Project or Group Access Token.</param> - /// <param name="operationIndex">Index associated with the operation.</param> - /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> - /// <returns>Task of ApiResponse (GitlabProjectDtoIEnumerableResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<GitlabProjectDtoIEnumerableResponse>> GetAllGitlabProjectsWithHttpInfoAsync(string domain, string accessToken, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2ResourceTypesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves the entire global resource types information. /// </summary> @@ -251,7 +125,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ResourceTypeInformationDtoIEnumerableResponse</returns> - System.Threading.Tasks.Task<ResourceTypeInformationDtoIEnumerableResponse> GetAllResourceTypesInformationAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ResourceTypeInformationDtoIEnumerableResponse> GetAllResourceTypesInformationAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves the entire global resource types information. @@ -263,36 +137,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ResourceTypeInformationDtoIEnumerableResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<ResourceTypeInformationDtoIEnumerableResponse>> GetAllResourceTypesInformationWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - /// <summary> - /// Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. - /// </summary> - /// <remarks> - /// - /// </remarks> - /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> - /// <param name="gitlabProjectId">The ID of the GitLab project.</param> - /// <param name="domain">Domain/Host of the GitLab Provider.</param> - /// <param name="accessToken">GitLab Project or Group Access Token.</param> - /// <param name="operationIndex">Index associated with the operation.</param> - /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> - /// <returns>Task of GitlabProjectDtoResponse</returns> - System.Threading.Tasks.Task<GitlabProjectDtoResponse> GetGitlabProjectAsync(int gitlabProjectId, string domain, string accessToken, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// <summary> - /// Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. - /// </summary> - /// <remarks> - /// - /// </remarks> - /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> - /// <param name="gitlabProjectId">The ID of the GitLab project.</param> - /// <param name="domain">Domain/Host of the GitLab Provider.</param> - /// <param name="accessToken">GitLab Project or Group Access Token.</param> - /// <param name="operationIndex">Index associated with the operation.</param> - /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> - /// <returns>Task of ApiResponse (GitlabProjectDtoResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<GitlabProjectDtoResponse>> GetGitlabProjectWithHttpInfoAsync(int gitlabProjectId, string domain, string accessToken, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<ResourceTypeInformationDtoIEnumerableResponse>> GetAllResourceTypesInformationWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves the resource type information for a specific resource type. /// </summary> @@ -304,7 +149,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ResourceTypeInformationDtoResponse</returns> - System.Threading.Tasks.Task<ResourceTypeInformationDtoResponse> GetResourceTypeInformationAsync(Guid resourceTypeId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ResourceTypeInformationDtoResponse> GetResourceTypeInformationAsync(Guid resourceTypeId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves the resource type information for a specific resource type. @@ -317,7 +162,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ResourceTypeInformationDtoResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<ResourceTypeInformationDtoResponse>> GetResourceTypeInformationWithHttpInfoAsync(Guid resourceTypeId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<ResourceTypeInformationDtoResponse>> GetResourceTypeInformationWithHttpInfoAsync(Guid resourceTypeId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -467,6 +312,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -509,7 +355,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task ApiV2ResourceTypesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2ResourceTypesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ApiV2ResourceTypesOptionsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); } @@ -521,7 +367,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2ResourceTypesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2ResourceTypesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -570,360 +416,6 @@ namespace Coscine.ApiClient.Core.Api return localVarResponse; } - /// <summary> - /// Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. - /// </summary> - /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> - /// <param name="gitlabProjectId">The ID of the GitLab project.</param> - /// <param name="domain">Domain/Host of the GitLab Provider.</param> - /// <param name="accessToken">GitLab Project or Group Access Token.</param> - /// <param name="operationIndex">Index associated with the operation.</param> - /// <returns>GitlabBranchDtoIEnumerableResponse</returns> - public GitlabBranchDtoIEnumerableResponse GetAllGitlabBranchesForProject(int gitlabProjectId, string domain, string accessToken, int operationIndex = 0) - { - Coscine.ApiClient.Core.Client.ApiResponse<GitlabBranchDtoIEnumerableResponse> localVarResponse = GetAllGitlabBranchesForProjectWithHttpInfo(gitlabProjectId, domain, accessToken); - return localVarResponse.Data; - } - - /// <summary> - /// Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. - /// </summary> - /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> - /// <param name="gitlabProjectId">The ID of the GitLab project.</param> - /// <param name="domain">Domain/Host of the GitLab Provider.</param> - /// <param name="accessToken">GitLab Project or Group Access Token.</param> - /// <param name="operationIndex">Index associated with the operation.</param> - /// <returns>ApiResponse of GitlabBranchDtoIEnumerableResponse</returns> - public Coscine.ApiClient.Core.Client.ApiResponse<GitlabBranchDtoIEnumerableResponse> GetAllGitlabBranchesForProjectWithHttpInfo(int gitlabProjectId, string domain, string accessToken, int operationIndex = 0) - { - // verify the required parameter 'domain' is set - if (domain == null) - { - throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'domain' when calling ResourceTypeApi->GetAllGitlabBranchesForProject"); - } - - // verify the required parameter 'accessToken' is set - if (accessToken == null) - { - throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'accessToken' when calling ResourceTypeApi->GetAllGitlabBranchesForProject"); - } - - Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "application/json", - "text/json" - }; - - var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("gitlabProjectId", Coscine.ApiClient.Core.Client.ClientUtils.ParameterToString(gitlabProjectId)); // path parameter - localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "Domain", domain)); - localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "AccessToken", accessToken)); - - localVarRequestOptions.Operation = "ResourceTypeApi.GetAllGitlabBranchesForProject"; - 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<GitlabBranchDtoIEnumerableResponse>("/api/v2/resource-types/gitlab/projects/{gitlabProjectId}/branches", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetAllGitlabBranchesForProject", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// <summary> - /// Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. - /// </summary> - /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> - /// <param name="gitlabProjectId">The ID of the GitLab project.</param> - /// <param name="domain">Domain/Host of the GitLab Provider.</param> - /// <param name="accessToken">GitLab Project or Group Access Token.</param> - /// <param name="operationIndex">Index associated with the operation.</param> - /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> - /// <returns>Task of GitlabBranchDtoIEnumerableResponse</returns> - public async System.Threading.Tasks.Task<GitlabBranchDtoIEnumerableResponse> GetAllGitlabBranchesForProjectAsync(int gitlabProjectId, string domain, string accessToken, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - Coscine.ApiClient.Core.Client.ApiResponse<GitlabBranchDtoIEnumerableResponse> localVarResponse = await GetAllGitlabBranchesForProjectWithHttpInfoAsync(gitlabProjectId, domain, accessToken, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// <summary> - /// Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. - /// </summary> - /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> - /// <param name="gitlabProjectId">The ID of the GitLab project.</param> - /// <param name="domain">Domain/Host of the GitLab Provider.</param> - /// <param name="accessToken">GitLab Project or Group Access Token.</param> - /// <param name="operationIndex">Index associated with the operation.</param> - /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> - /// <returns>Task of ApiResponse (GitlabBranchDtoIEnumerableResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<GitlabBranchDtoIEnumerableResponse>> GetAllGitlabBranchesForProjectWithHttpInfoAsync(int gitlabProjectId, string domain, string accessToken, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - // verify the required parameter 'domain' is set - if (domain == null) - { - throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'domain' when calling ResourceTypeApi->GetAllGitlabBranchesForProject"); - } - - // verify the required parameter 'accessToken' is set - if (accessToken == null) - { - throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'accessToken' when calling ResourceTypeApi->GetAllGitlabBranchesForProject"); - } - - - Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "application/json", - "text/json" - }; - - var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("gitlabProjectId", Coscine.ApiClient.Core.Client.ClientUtils.ParameterToString(gitlabProjectId)); // path parameter - localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "Domain", domain)); - localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "AccessToken", accessToken)); - - localVarRequestOptions.Operation = "ResourceTypeApi.GetAllGitlabBranchesForProject"; - 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<GitlabBranchDtoIEnumerableResponse>("/api/v2/resource-types/gitlab/projects/{gitlabProjectId}/branches", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetAllGitlabBranchesForProject", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// <summary> - /// Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. - /// </summary> - /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> - /// <param name="domain">Domain/Host of the GitLab Provider.</param> - /// <param name="accessToken">GitLab Project or Group Access Token.</param> - /// <param name="operationIndex">Index associated with the operation.</param> - /// <returns>GitlabProjectDtoIEnumerableResponse</returns> - public GitlabProjectDtoIEnumerableResponse GetAllGitlabProjects(string domain, string accessToken, int operationIndex = 0) - { - Coscine.ApiClient.Core.Client.ApiResponse<GitlabProjectDtoIEnumerableResponse> localVarResponse = GetAllGitlabProjectsWithHttpInfo(domain, accessToken); - return localVarResponse.Data; - } - - /// <summary> - /// Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. - /// </summary> - /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> - /// <param name="domain">Domain/Host of the GitLab Provider.</param> - /// <param name="accessToken">GitLab Project or Group Access Token.</param> - /// <param name="operationIndex">Index associated with the operation.</param> - /// <returns>ApiResponse of GitlabProjectDtoIEnumerableResponse</returns> - public Coscine.ApiClient.Core.Client.ApiResponse<GitlabProjectDtoIEnumerableResponse> GetAllGitlabProjectsWithHttpInfo(string domain, string accessToken, int operationIndex = 0) - { - // verify the required parameter 'domain' is set - if (domain == null) - { - throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'domain' when calling ResourceTypeApi->GetAllGitlabProjects"); - } - - // verify the required parameter 'accessToken' is set - if (accessToken == null) - { - throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'accessToken' when calling ResourceTypeApi->GetAllGitlabProjects"); - } - - Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "application/json", - "text/json" - }; - - var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "Domain", domain)); - localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "AccessToken", accessToken)); - - localVarRequestOptions.Operation = "ResourceTypeApi.GetAllGitlabProjects"; - 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<GitlabProjectDtoIEnumerableResponse>("/api/v2/resource-types/gitlab/projects", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetAllGitlabProjects", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// <summary> - /// Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. - /// </summary> - /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> - /// <param name="domain">Domain/Host of the GitLab Provider.</param> - /// <param name="accessToken">GitLab Project or Group Access Token.</param> - /// <param name="operationIndex">Index associated with the operation.</param> - /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> - /// <returns>Task of GitlabProjectDtoIEnumerableResponse</returns> - public async System.Threading.Tasks.Task<GitlabProjectDtoIEnumerableResponse> GetAllGitlabProjectsAsync(string domain, string accessToken, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - Coscine.ApiClient.Core.Client.ApiResponse<GitlabProjectDtoIEnumerableResponse> localVarResponse = await GetAllGitlabProjectsWithHttpInfoAsync(domain, accessToken, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// <summary> - /// Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. - /// </summary> - /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> - /// <param name="domain">Domain/Host of the GitLab Provider.</param> - /// <param name="accessToken">GitLab Project or Group Access Token.</param> - /// <param name="operationIndex">Index associated with the operation.</param> - /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> - /// <returns>Task of ApiResponse (GitlabProjectDtoIEnumerableResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<GitlabProjectDtoIEnumerableResponse>> GetAllGitlabProjectsWithHttpInfoAsync(string domain, string accessToken, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - // verify the required parameter 'domain' is set - if (domain == null) - { - throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'domain' when calling ResourceTypeApi->GetAllGitlabProjects"); - } - - // verify the required parameter 'accessToken' is set - if (accessToken == null) - { - throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'accessToken' when calling ResourceTypeApi->GetAllGitlabProjects"); - } - - - Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "application/json", - "text/json" - }; - - var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "Domain", domain)); - localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "AccessToken", accessToken)); - - localVarRequestOptions.Operation = "ResourceTypeApi.GetAllGitlabProjects"; - 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<GitlabProjectDtoIEnumerableResponse>("/api/v2/resource-types/gitlab/projects", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetAllGitlabProjects", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - /// <summary> /// Retrieves the entire global resource types information. /// </summary> @@ -956,6 +448,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -998,7 +491,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ResourceTypeInformationDtoIEnumerableResponse</returns> - public async System.Threading.Tasks.Task<ResourceTypeInformationDtoIEnumerableResponse> GetAllResourceTypesInformationAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<ResourceTypeInformationDtoIEnumerableResponse> GetAllResourceTypesInformationAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<ResourceTypeInformationDtoIEnumerableResponse> localVarResponse = await GetAllResourceTypesInformationWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1011,7 +504,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ResourceTypeInformationDtoIEnumerableResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ResourceTypeInformationDtoIEnumerableResponse>> GetAllResourceTypesInformationWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ResourceTypeInformationDtoIEnumerableResponse>> GetAllResourceTypesInformationWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -1062,186 +555,6 @@ namespace Coscine.ApiClient.Core.Api return localVarResponse; } - /// <summary> - /// Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. - /// </summary> - /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> - /// <param name="gitlabProjectId">The ID of the GitLab project.</param> - /// <param name="domain">Domain/Host of the GitLab Provider.</param> - /// <param name="accessToken">GitLab Project or Group Access Token.</param> - /// <param name="operationIndex">Index associated with the operation.</param> - /// <returns>GitlabProjectDtoResponse</returns> - public GitlabProjectDtoResponse GetGitlabProject(int gitlabProjectId, string domain, string accessToken, int operationIndex = 0) - { - Coscine.ApiClient.Core.Client.ApiResponse<GitlabProjectDtoResponse> localVarResponse = GetGitlabProjectWithHttpInfo(gitlabProjectId, domain, accessToken); - return localVarResponse.Data; - } - - /// <summary> - /// Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. - /// </summary> - /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> - /// <param name="gitlabProjectId">The ID of the GitLab project.</param> - /// <param name="domain">Domain/Host of the GitLab Provider.</param> - /// <param name="accessToken">GitLab Project or Group Access Token.</param> - /// <param name="operationIndex">Index associated with the operation.</param> - /// <returns>ApiResponse of GitlabProjectDtoResponse</returns> - public Coscine.ApiClient.Core.Client.ApiResponse<GitlabProjectDtoResponse> GetGitlabProjectWithHttpInfo(int gitlabProjectId, string domain, string accessToken, int operationIndex = 0) - { - // verify the required parameter 'domain' is set - if (domain == null) - { - throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'domain' when calling ResourceTypeApi->GetGitlabProject"); - } - - // verify the required parameter 'accessToken' is set - if (accessToken == null) - { - throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'accessToken' when calling ResourceTypeApi->GetGitlabProject"); - } - - Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "application/json", - "text/json" - }; - - var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("gitlabProjectId", Coscine.ApiClient.Core.Client.ClientUtils.ParameterToString(gitlabProjectId)); // path parameter - localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "Domain", domain)); - localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "AccessToken", accessToken)); - - localVarRequestOptions.Operation = "ResourceTypeApi.GetGitlabProject"; - 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<GitlabProjectDtoResponse>("/api/v2/resource-types/gitlab/projects/{gitlabProjectId}", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGitlabProject", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// <summary> - /// Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. - /// </summary> - /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> - /// <param name="gitlabProjectId">The ID of the GitLab project.</param> - /// <param name="domain">Domain/Host of the GitLab Provider.</param> - /// <param name="accessToken">GitLab Project or Group Access Token.</param> - /// <param name="operationIndex">Index associated with the operation.</param> - /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> - /// <returns>Task of GitlabProjectDtoResponse</returns> - public async System.Threading.Tasks.Task<GitlabProjectDtoResponse> GetGitlabProjectAsync(int gitlabProjectId, string domain, string accessToken, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - Coscine.ApiClient.Core.Client.ApiResponse<GitlabProjectDtoResponse> localVarResponse = await GetGitlabProjectWithHttpInfoAsync(gitlabProjectId, domain, accessToken, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// <summary> - /// Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. - /// </summary> - /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> - /// <param name="gitlabProjectId">The ID of the GitLab project.</param> - /// <param name="domain">Domain/Host of the GitLab Provider.</param> - /// <param name="accessToken">GitLab Project or Group Access Token.</param> - /// <param name="operationIndex">Index associated with the operation.</param> - /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> - /// <returns>Task of ApiResponse (GitlabProjectDtoResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<GitlabProjectDtoResponse>> GetGitlabProjectWithHttpInfoAsync(int gitlabProjectId, string domain, string accessToken, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - // verify the required parameter 'domain' is set - if (domain == null) - { - throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'domain' when calling ResourceTypeApi->GetGitlabProject"); - } - - // verify the required parameter 'accessToken' is set - if (accessToken == null) - { - throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'accessToken' when calling ResourceTypeApi->GetGitlabProject"); - } - - - Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "application/json", - "text/json" - }; - - var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - localVarRequestOptions.PathParameters.Add("gitlabProjectId", Coscine.ApiClient.Core.Client.ClientUtils.ParameterToString(gitlabProjectId)); // path parameter - localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "Domain", domain)); - localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "AccessToken", accessToken)); - - localVarRequestOptions.Operation = "ResourceTypeApi.GetGitlabProject"; - 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<GitlabProjectDtoResponse>("/api/v2/resource-types/gitlab/projects/{gitlabProjectId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetGitlabProject", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - /// <summary> /// Retrieves the resource type information for a specific resource type. /// </summary> @@ -1276,6 +589,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1320,7 +634,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ResourceTypeInformationDtoResponse</returns> - public async System.Threading.Tasks.Task<ResourceTypeInformationDtoResponse> GetResourceTypeInformationAsync(Guid resourceTypeId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<ResourceTypeInformationDtoResponse> GetResourceTypeInformationAsync(Guid resourceTypeId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<ResourceTypeInformationDtoResponse> localVarResponse = await GetResourceTypeInformationWithHttpInfoAsync(resourceTypeId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1334,7 +648,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ResourceTypeInformationDtoResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ResourceTypeInformationDtoResponse>> GetResourceTypeInformationWithHttpInfoAsync(Guid resourceTypeId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ResourceTypeInformationDtoResponse>> GetResourceTypeInformationWithHttpInfoAsync(Guid resourceTypeId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); diff --git a/src/Coscine.ApiClient.Core/Api/ResourceTypeGitLabApi.cs b/src/Coscine.ApiClient.Core/Api/ResourceTypeGitLabApi.cs new file mode 100644 index 0000000..a35e6eb --- /dev/null +++ b/src/Coscine.ApiClient.Core/Api/ResourceTypeGitLabApi.cs @@ -0,0 +1,1026 @@ +/* + * Coscine Web API + * + * Coscine (short for <b>CO</b>llaborative <b>SC</b>ientific <b>IN</b>tegration <b>E</b>nvironment) is the research data management platform for your research project. + * + * The version of the OpenAPI document: 2.0 + * Contact: servicedesk@itc.rwth-aachen.de + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using Coscine.ApiClient.Core.Client; +using Coscine.ApiClient.Core.Model; + +namespace Coscine.ApiClient.Core.Api +{ + + /// <summary> + /// Represents a collection of functions to interact with the API endpoints + /// </summary> + public interface IResourceTypeGitLabApiSync : IApiAccessor + { + #region Synchronous Operations + /// <summary> + /// Responds with the HTTP methods allowed for the endpoint. + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns></returns> + void ApiV2ResourceTypesGitlabOptions(int operationIndex = 0); + + /// <summary> + /// Responds with the HTTP methods allowed for the endpoint. + /// </summary> + /// <remarks> + /// + /// </remarks> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns>ApiResponse of Object(void)</returns> + ApiResponse<Object> ApiV2ResourceTypesGitlabOptionsWithHttpInfo(int operationIndex = 0); + /// <summary> + /// Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="gitlabProjectId">The ID of the GitLab project.</param> + /// <param name="domain">Domain/Host of the GitLab Provider.</param> + /// <param name="accessToken">GitLab Project or Group Access Token.</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns>GitlabBranchDtoIEnumerableResponse</returns> + GitlabBranchDtoIEnumerableResponse GetAllGitlabBranchesForProject(int gitlabProjectId, string domain, string accessToken, int operationIndex = 0); + + /// <summary> + /// Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. + /// </summary> + /// <remarks> + /// + /// </remarks> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="gitlabProjectId">The ID of the GitLab project.</param> + /// <param name="domain">Domain/Host of the GitLab Provider.</param> + /// <param name="accessToken">GitLab Project or Group Access Token.</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns>ApiResponse of GitlabBranchDtoIEnumerableResponse</returns> + ApiResponse<GitlabBranchDtoIEnumerableResponse> GetAllGitlabBranchesForProjectWithHttpInfo(int gitlabProjectId, string domain, string accessToken, int operationIndex = 0); + /// <summary> + /// Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="domain">Domain/Host of the GitLab Provider.</param> + /// <param name="accessToken">GitLab Project or Group Access Token.</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns>GitlabProjectDtoIEnumerableResponse</returns> + GitlabProjectDtoIEnumerableResponse GetAllGitlabProjects(string domain, string accessToken, int operationIndex = 0); + + /// <summary> + /// Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. + /// </summary> + /// <remarks> + /// + /// </remarks> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="domain">Domain/Host of the GitLab Provider.</param> + /// <param name="accessToken">GitLab Project or Group Access Token.</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns>ApiResponse of GitlabProjectDtoIEnumerableResponse</returns> + ApiResponse<GitlabProjectDtoIEnumerableResponse> GetAllGitlabProjectsWithHttpInfo(string domain, string accessToken, int operationIndex = 0); + /// <summary> + /// Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="gitlabProjectId">The ID of the GitLab project.</param> + /// <param name="domain">Domain/Host of the GitLab Provider.</param> + /// <param name="accessToken">GitLab Project or Group Access Token.</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns>GitlabProjectDtoResponse</returns> + GitlabProjectDtoResponse GetGitlabProject(int gitlabProjectId, string domain, string accessToken, int operationIndex = 0); + + /// <summary> + /// Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. + /// </summary> + /// <remarks> + /// + /// </remarks> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="gitlabProjectId">The ID of the GitLab project.</param> + /// <param name="domain">Domain/Host of the GitLab Provider.</param> + /// <param name="accessToken">GitLab Project or Group Access Token.</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns>ApiResponse of GitlabProjectDtoResponse</returns> + ApiResponse<GitlabProjectDtoResponse> GetGitlabProjectWithHttpInfo(int gitlabProjectId, string domain, string accessToken, int operationIndex = 0); + #endregion Synchronous Operations + } + + /// <summary> + /// Represents a collection of functions to interact with the API endpoints + /// </summary> + public interface IResourceTypeGitLabApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// <summary> + /// Responds with the HTTP methods allowed for the endpoint. + /// </summary> + /// <remarks> + /// + /// </remarks> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of void</returns> + System.Threading.Tasks.Task ApiV2ResourceTypesGitlabOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// <summary> + /// Responds with the HTTP methods allowed for the endpoint. + /// </summary> + /// <remarks> + /// + /// </remarks> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of ApiResponse</returns> + System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2ResourceTypesGitlabOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// <summary> + /// Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. + /// </summary> + /// <remarks> + /// + /// </remarks> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="gitlabProjectId">The ID of the GitLab project.</param> + /// <param name="domain">Domain/Host of the GitLab Provider.</param> + /// <param name="accessToken">GitLab Project or Group Access Token.</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of GitlabBranchDtoIEnumerableResponse</returns> + System.Threading.Tasks.Task<GitlabBranchDtoIEnumerableResponse> GetAllGitlabBranchesForProjectAsync(int gitlabProjectId, string domain, string accessToken, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// <summary> + /// Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. + /// </summary> + /// <remarks> + /// + /// </remarks> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="gitlabProjectId">The ID of the GitLab project.</param> + /// <param name="domain">Domain/Host of the GitLab Provider.</param> + /// <param name="accessToken">GitLab Project or Group Access Token.</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of ApiResponse (GitlabBranchDtoIEnumerableResponse)</returns> + System.Threading.Tasks.Task<ApiResponse<GitlabBranchDtoIEnumerableResponse>> GetAllGitlabBranchesForProjectWithHttpInfoAsync(int gitlabProjectId, string domain, string accessToken, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// <summary> + /// Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. + /// </summary> + /// <remarks> + /// + /// </remarks> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="domain">Domain/Host of the GitLab Provider.</param> + /// <param name="accessToken">GitLab Project or Group Access Token.</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of GitlabProjectDtoIEnumerableResponse</returns> + System.Threading.Tasks.Task<GitlabProjectDtoIEnumerableResponse> GetAllGitlabProjectsAsync(string domain, string accessToken, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// <summary> + /// Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. + /// </summary> + /// <remarks> + /// + /// </remarks> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="domain">Domain/Host of the GitLab Provider.</param> + /// <param name="accessToken">GitLab Project or Group Access Token.</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of ApiResponse (GitlabProjectDtoIEnumerableResponse)</returns> + System.Threading.Tasks.Task<ApiResponse<GitlabProjectDtoIEnumerableResponse>> GetAllGitlabProjectsWithHttpInfoAsync(string domain, string accessToken, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// <summary> + /// Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. + /// </summary> + /// <remarks> + /// + /// </remarks> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="gitlabProjectId">The ID of the GitLab project.</param> + /// <param name="domain">Domain/Host of the GitLab Provider.</param> + /// <param name="accessToken">GitLab Project or Group Access Token.</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of GitlabProjectDtoResponse</returns> + System.Threading.Tasks.Task<GitlabProjectDtoResponse> GetGitlabProjectAsync(int gitlabProjectId, string domain, string accessToken, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// <summary> + /// Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. + /// </summary> + /// <remarks> + /// + /// </remarks> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="gitlabProjectId">The ID of the GitLab project.</param> + /// <param name="domain">Domain/Host of the GitLab Provider.</param> + /// <param name="accessToken">GitLab Project or Group Access Token.</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of ApiResponse (GitlabProjectDtoResponse)</returns> + System.Threading.Tasks.Task<ApiResponse<GitlabProjectDtoResponse>> GetGitlabProjectWithHttpInfoAsync(int gitlabProjectId, string domain, string accessToken, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// <summary> + /// Represents a collection of functions to interact with the API endpoints + /// </summary> + public interface IResourceTypeGitLabApi : IResourceTypeGitLabApiSync, IResourceTypeGitLabApiAsync + { + + } + + /// <summary> + /// Represents a collection of functions to interact with the API endpoints + /// </summary> + public partial class ResourceTypeGitLabApi : IResourceTypeGitLabApi + { + private Coscine.ApiClient.Core.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// <summary> + /// Initializes a new instance of the <see cref="ResourceTypeGitLabApi"/> class. + /// </summary> + /// <returns></returns> + public ResourceTypeGitLabApi() : this((string)null) + { + } + + /// <summary> + /// Initializes a new instance of the <see cref="ResourceTypeGitLabApi"/> class. + /// </summary> + /// <returns></returns> + public ResourceTypeGitLabApi(string basePath) + { + this.Configuration = Coscine.ApiClient.Core.Client.Configuration.MergeConfigurations( + Coscine.ApiClient.Core.Client.GlobalConfiguration.Instance, + new Coscine.ApiClient.Core.Client.Configuration { BasePath = basePath } + ); + this.Client = new Coscine.ApiClient.Core.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new Coscine.ApiClient.Core.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = Coscine.ApiClient.Core.Client.Configuration.DefaultExceptionFactory; + } + + /// <summary> + /// Initializes a new instance of the <see cref="ResourceTypeGitLabApi"/> class + /// using Configuration object + /// </summary> + /// <param name="configuration">An instance of Configuration</param> + /// <returns></returns> + public ResourceTypeGitLabApi(Coscine.ApiClient.Core.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = Coscine.ApiClient.Core.Client.Configuration.MergeConfigurations( + Coscine.ApiClient.Core.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new Coscine.ApiClient.Core.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new Coscine.ApiClient.Core.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = Coscine.ApiClient.Core.Client.Configuration.DefaultExceptionFactory; + } + + /// <summary> + /// Initializes a new instance of the <see cref="ResourceTypeGitLabApi"/> class + /// using a Configuration object and client instance. + /// </summary> + /// <param name="client">The client interface for synchronous API access.</param> + /// <param name="asyncClient">The client interface for asynchronous API access.</param> + /// <param name="configuration">The configuration object.</param> + public ResourceTypeGitLabApi(Coscine.ApiClient.Core.Client.ISynchronousClient client, Coscine.ApiClient.Core.Client.IAsynchronousClient asyncClient, Coscine.ApiClient.Core.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = Coscine.ApiClient.Core.Client.Configuration.DefaultExceptionFactory; + } + + /// <summary> + /// The client for accessing this underlying API asynchronously. + /// </summary> + public Coscine.ApiClient.Core.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// <summary> + /// The client for accessing this underlying API synchronously. + /// </summary> + public Coscine.ApiClient.Core.Client.ISynchronousClient Client { get; set; } + + /// <summary> + /// Gets the base path of the API client. + /// </summary> + /// <value>The base path</value> + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// <summary> + /// Gets or sets the configuration object + /// </summary> + /// <value>An instance of the Configuration</value> + public Coscine.ApiClient.Core.Client.IReadableConfiguration Configuration { get; set; } + + /// <summary> + /// Provides a factory method hook for the creation of exceptions. + /// </summary> + public Coscine.ApiClient.Core.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// <summary> + /// Responds with the HTTP methods allowed for the endpoint. + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns></returns> + public void ApiV2ResourceTypesGitlabOptions(int operationIndex = 0) + { + ApiV2ResourceTypesGitlabOptionsWithHttpInfo(); + } + + /// <summary> + /// Responds with the HTTP methods allowed for the endpoint. + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns>ApiResponse of Object(void)</returns> + public Coscine.ApiClient.Core.Client.ApiResponse<Object> ApiV2ResourceTypesGitlabOptionsWithHttpInfo(int operationIndex = 0) + { + Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ResourceTypeGitLabApi.ApiV2ResourceTypesGitlabOptions"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (Bearer) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Options<Object>("/api/v2/resource-types/gitlab", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2ResourceTypesGitlabOptions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// <summary> + /// Responds with the HTTP methods allowed for the endpoint. + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of void</returns> + public async System.Threading.Tasks.Task ApiV2ResourceTypesGitlabOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + await ApiV2ResourceTypesGitlabOptionsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + } + + /// <summary> + /// Responds with the HTTP methods allowed for the endpoint. + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of ApiResponse</returns> + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2ResourceTypesGitlabOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + }; + + var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ResourceTypeGitLabApi.ApiV2ResourceTypesGitlabOptions"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (Bearer) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.OptionsAsync<Object>("/api/v2/resource-types/gitlab", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2ResourceTypesGitlabOptions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// <summary> + /// Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="gitlabProjectId">The ID of the GitLab project.</param> + /// <param name="domain">Domain/Host of the GitLab Provider.</param> + /// <param name="accessToken">GitLab Project or Group Access Token.</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns>GitlabBranchDtoIEnumerableResponse</returns> + public GitlabBranchDtoIEnumerableResponse GetAllGitlabBranchesForProject(int gitlabProjectId, string domain, string accessToken, int operationIndex = 0) + { + Coscine.ApiClient.Core.Client.ApiResponse<GitlabBranchDtoIEnumerableResponse> localVarResponse = GetAllGitlabBranchesForProjectWithHttpInfo(gitlabProjectId, domain, accessToken); + return localVarResponse.Data; + } + + /// <summary> + /// Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="gitlabProjectId">The ID of the GitLab project.</param> + /// <param name="domain">Domain/Host of the GitLab Provider.</param> + /// <param name="accessToken">GitLab Project or Group Access Token.</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns>ApiResponse of GitlabBranchDtoIEnumerableResponse</returns> + public Coscine.ApiClient.Core.Client.ApiResponse<GitlabBranchDtoIEnumerableResponse> GetAllGitlabBranchesForProjectWithHttpInfo(int gitlabProjectId, string domain, string accessToken, int operationIndex = 0) + { + // verify the required parameter 'domain' is set + if (domain == null) + { + throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'domain' when calling ResourceTypeGitLabApi->GetAllGitlabBranchesForProject"); + } + + // verify the required parameter 'accessToken' is set + if (accessToken == null) + { + throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'accessToken' when calling ResourceTypeGitLabApi->GetAllGitlabBranchesForProject"); + } + + 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); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("gitlabProjectId", Coscine.ApiClient.Core.Client.ClientUtils.ParameterToString(gitlabProjectId)); // path parameter + localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "Domain", domain)); + localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "AccessToken", accessToken)); + + localVarRequestOptions.Operation = "ResourceTypeGitLabApi.GetAllGitlabBranchesForProject"; + 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<GitlabBranchDtoIEnumerableResponse>("/api/v2/resource-types/gitlab/projects/{gitlabProjectId}/branches", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAllGitlabBranchesForProject", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// <summary> + /// Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="gitlabProjectId">The ID of the GitLab project.</param> + /// <param name="domain">Domain/Host of the GitLab Provider.</param> + /// <param name="accessToken">GitLab Project or Group Access Token.</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of GitlabBranchDtoIEnumerableResponse</returns> + public async System.Threading.Tasks.Task<GitlabBranchDtoIEnumerableResponse> GetAllGitlabBranchesForProjectAsync(int gitlabProjectId, string domain, string accessToken, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Coscine.ApiClient.Core.Client.ApiResponse<GitlabBranchDtoIEnumerableResponse> localVarResponse = await GetAllGitlabBranchesForProjectWithHttpInfoAsync(gitlabProjectId, domain, accessToken, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// <summary> + /// Retrieves all branches of a GitLab project, that the user is a member of, based on the provided credentials. + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="gitlabProjectId">The ID of the GitLab project.</param> + /// <param name="domain">Domain/Host of the GitLab Provider.</param> + /// <param name="accessToken">GitLab Project or Group Access Token.</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of ApiResponse (GitlabBranchDtoIEnumerableResponse)</returns> + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<GitlabBranchDtoIEnumerableResponse>> GetAllGitlabBranchesForProjectWithHttpInfoAsync(int gitlabProjectId, string domain, string accessToken, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'domain' is set + if (domain == null) + { + throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'domain' when calling ResourceTypeGitLabApi->GetAllGitlabBranchesForProject"); + } + + // verify the required parameter 'accessToken' is set + if (accessToken == null) + { + throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'accessToken' when calling ResourceTypeGitLabApi->GetAllGitlabBranchesForProject"); + } + + + Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json", + "text/json" + }; + + var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("gitlabProjectId", Coscine.ApiClient.Core.Client.ClientUtils.ParameterToString(gitlabProjectId)); // path parameter + localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "Domain", domain)); + localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "AccessToken", accessToken)); + + localVarRequestOptions.Operation = "ResourceTypeGitLabApi.GetAllGitlabBranchesForProject"; + 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<GitlabBranchDtoIEnumerableResponse>("/api/v2/resource-types/gitlab/projects/{gitlabProjectId}/branches", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAllGitlabBranchesForProject", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// <summary> + /// Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="domain">Domain/Host of the GitLab Provider.</param> + /// <param name="accessToken">GitLab Project or Group Access Token.</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns>GitlabProjectDtoIEnumerableResponse</returns> + public GitlabProjectDtoIEnumerableResponse GetAllGitlabProjects(string domain, string accessToken, int operationIndex = 0) + { + Coscine.ApiClient.Core.Client.ApiResponse<GitlabProjectDtoIEnumerableResponse> localVarResponse = GetAllGitlabProjectsWithHttpInfo(domain, accessToken); + return localVarResponse.Data; + } + + /// <summary> + /// Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="domain">Domain/Host of the GitLab Provider.</param> + /// <param name="accessToken">GitLab Project or Group Access Token.</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns>ApiResponse of GitlabProjectDtoIEnumerableResponse</returns> + public Coscine.ApiClient.Core.Client.ApiResponse<GitlabProjectDtoIEnumerableResponse> GetAllGitlabProjectsWithHttpInfo(string domain, string accessToken, int operationIndex = 0) + { + // verify the required parameter 'domain' is set + if (domain == null) + { + throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'domain' when calling ResourceTypeGitLabApi->GetAllGitlabProjects"); + } + + // verify the required parameter 'accessToken' is set + if (accessToken == null) + { + throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'accessToken' when calling ResourceTypeGitLabApi->GetAllGitlabProjects"); + } + + 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); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "Domain", domain)); + localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "AccessToken", accessToken)); + + localVarRequestOptions.Operation = "ResourceTypeGitLabApi.GetAllGitlabProjects"; + 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<GitlabProjectDtoIEnumerableResponse>("/api/v2/resource-types/gitlab/projects", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAllGitlabProjects", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// <summary> + /// Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="domain">Domain/Host of the GitLab Provider.</param> + /// <param name="accessToken">GitLab Project or Group Access Token.</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of GitlabProjectDtoIEnumerableResponse</returns> + public async System.Threading.Tasks.Task<GitlabProjectDtoIEnumerableResponse> GetAllGitlabProjectsAsync(string domain, string accessToken, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Coscine.ApiClient.Core.Client.ApiResponse<GitlabProjectDtoIEnumerableResponse> localVarResponse = await GetAllGitlabProjectsWithHttpInfoAsync(domain, accessToken, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// <summary> + /// Retrieves all GitLab projects, that the user is a member of, based on the provided credentials. + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="domain">Domain/Host of the GitLab Provider.</param> + /// <param name="accessToken">GitLab Project or Group Access Token.</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of ApiResponse (GitlabProjectDtoIEnumerableResponse)</returns> + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<GitlabProjectDtoIEnumerableResponse>> GetAllGitlabProjectsWithHttpInfoAsync(string domain, string accessToken, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'domain' is set + if (domain == null) + { + throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'domain' when calling ResourceTypeGitLabApi->GetAllGitlabProjects"); + } + + // verify the required parameter 'accessToken' is set + if (accessToken == null) + { + throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'accessToken' when calling ResourceTypeGitLabApi->GetAllGitlabProjects"); + } + + + Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json", + "text/json" + }; + + var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "Domain", domain)); + localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "AccessToken", accessToken)); + + localVarRequestOptions.Operation = "ResourceTypeGitLabApi.GetAllGitlabProjects"; + 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<GitlabProjectDtoIEnumerableResponse>("/api/v2/resource-types/gitlab/projects", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAllGitlabProjects", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// <summary> + /// Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="gitlabProjectId">The ID of the GitLab project.</param> + /// <param name="domain">Domain/Host of the GitLab Provider.</param> + /// <param name="accessToken">GitLab Project or Group Access Token.</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns>GitlabProjectDtoResponse</returns> + public GitlabProjectDtoResponse GetGitlabProject(int gitlabProjectId, string domain, string accessToken, int operationIndex = 0) + { + Coscine.ApiClient.Core.Client.ApiResponse<GitlabProjectDtoResponse> localVarResponse = GetGitlabProjectWithHttpInfo(gitlabProjectId, domain, accessToken); + return localVarResponse.Data; + } + + /// <summary> + /// Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="gitlabProjectId">The ID of the GitLab project.</param> + /// <param name="domain">Domain/Host of the GitLab Provider.</param> + /// <param name="accessToken">GitLab Project or Group Access Token.</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <returns>ApiResponse of GitlabProjectDtoResponse</returns> + public Coscine.ApiClient.Core.Client.ApiResponse<GitlabProjectDtoResponse> GetGitlabProjectWithHttpInfo(int gitlabProjectId, string domain, string accessToken, int operationIndex = 0) + { + // verify the required parameter 'domain' is set + if (domain == null) + { + throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'domain' when calling ResourceTypeGitLabApi->GetGitlabProject"); + } + + // verify the required parameter 'accessToken' is set + if (accessToken == null) + { + throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'accessToken' when calling ResourceTypeGitLabApi->GetGitlabProject"); + } + + 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); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("gitlabProjectId", Coscine.ApiClient.Core.Client.ClientUtils.ParameterToString(gitlabProjectId)); // path parameter + localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "Domain", domain)); + localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "AccessToken", accessToken)); + + localVarRequestOptions.Operation = "ResourceTypeGitLabApi.GetGitlabProject"; + 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<GitlabProjectDtoResponse>("/api/v2/resource-types/gitlab/projects/{gitlabProjectId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGitlabProject", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// <summary> + /// Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="gitlabProjectId">The ID of the GitLab project.</param> + /// <param name="domain">Domain/Host of the GitLab Provider.</param> + /// <param name="accessToken">GitLab Project or Group Access Token.</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of GitlabProjectDtoResponse</returns> + public async System.Threading.Tasks.Task<GitlabProjectDtoResponse> GetGitlabProjectAsync(int gitlabProjectId, string domain, string accessToken, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + Coscine.ApiClient.Core.Client.ApiResponse<GitlabProjectDtoResponse> localVarResponse = await GetGitlabProjectWithHttpInfoAsync(gitlabProjectId, domain, accessToken, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// <summary> + /// Retrieves a single GitLab project, that the user is a member of, based on the provided credentials. + /// </summary> + /// <exception cref="Coscine.ApiClient.Core.Client.ApiException">Thrown when fails to make API call</exception> + /// <param name="gitlabProjectId">The ID of the GitLab project.</param> + /// <param name="domain">Domain/Host of the GitLab Provider.</param> + /// <param name="accessToken">GitLab Project or Group Access Token.</param> + /// <param name="operationIndex">Index associated with the operation.</param> + /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> + /// <returns>Task of ApiResponse (GitlabProjectDtoResponse)</returns> + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<GitlabProjectDtoResponse>> GetGitlabProjectWithHttpInfoAsync(int gitlabProjectId, string domain, string accessToken, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'domain' is set + if (domain == null) + { + throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'domain' when calling ResourceTypeGitLabApi->GetGitlabProject"); + } + + // verify the required parameter 'accessToken' is set + if (accessToken == null) + { + throw new Coscine.ApiClient.Core.Client.ApiException(400, "Missing required parameter 'accessToken' when calling ResourceTypeGitLabApi->GetGitlabProject"); + } + + + Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json", + "text/json" + }; + + var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("gitlabProjectId", Coscine.ApiClient.Core.Client.ClientUtils.ParameterToString(gitlabProjectId)); // path parameter + localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "Domain", domain)); + localVarRequestOptions.QueryParameters.Add(Coscine.ApiClient.Core.Client.ClientUtils.ParameterToMultiMap("", "AccessToken", accessToken)); + + localVarRequestOptions.Operation = "ResourceTypeGitLabApi.GetGitlabProject"; + 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<GitlabProjectDtoResponse>("/api/v2/resource-types/gitlab/projects/{gitlabProjectId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetGitlabProject", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + } +} diff --git a/src/Coscine.ApiClient.Core/Api/RoleApi.cs b/src/Coscine.ApiClient.Core/Api/RoleApi.cs index f6d2493..e3c55c6 100644 --- a/src/Coscine.ApiClient.Core/Api/RoleApi.cs +++ b/src/Coscine.ApiClient.Core/Api/RoleApi.cs @@ -71,7 +71,7 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>RoleDtoPagedResponse</returns> RoleDtoPagedResponse GetRoles(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -85,7 +85,7 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of RoleDtoPagedResponse</returns> ApiResponse<RoleDtoPagedResponse> GetRolesWithHttpInfo(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -108,7 +108,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task ApiV2RolesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2RolesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Responds with the HTTP methods allowed for the endpoint. @@ -120,7 +120,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2RolesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2RolesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves a role by ID. /// </summary> @@ -132,7 +132,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of RoleDtoResponse</returns> - System.Threading.Tasks.Task<RoleDtoResponse> GetRoleAsync(Guid roleId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<RoleDtoResponse> GetRoleAsync(Guid roleId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves a role by ID. @@ -145,7 +145,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (RoleDtoResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<RoleDtoResponse>> GetRoleWithHttpInfoAsync(Guid roleId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<RoleDtoResponse>> GetRoleWithHttpInfoAsync(Guid roleId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all roles. /// </summary> @@ -155,11 +155,11 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of RoleDtoPagedResponse</returns> - System.Threading.Tasks.Task<RoleDtoPagedResponse> GetRolesAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<RoleDtoPagedResponse> GetRolesAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all roles. @@ -170,11 +170,11 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (RoleDtoPagedResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<RoleDtoPagedResponse>> GetRolesWithHttpInfoAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<RoleDtoPagedResponse>> GetRolesWithHttpInfoAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -324,6 +324,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -366,7 +367,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task ApiV2RolesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2RolesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ApiV2RolesOptionsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); } @@ -378,7 +379,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2RolesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2RolesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -461,6 +462,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -505,7 +507,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of RoleDtoResponse</returns> - public async System.Threading.Tasks.Task<RoleDtoResponse> GetRoleAsync(Guid roleId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<RoleDtoResponse> GetRoleAsync(Guid roleId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<RoleDtoResponse> localVarResponse = await GetRoleWithHttpInfoAsync(roleId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -519,7 +521,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (RoleDtoResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<RoleDtoResponse>> GetRoleWithHttpInfoAsync(Guid roleId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<RoleDtoResponse>> GetRoleWithHttpInfoAsync(Guid roleId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -577,7 +579,7 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>RoleDtoPagedResponse</returns> public RoleDtoPagedResponse GetRoles(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -592,7 +594,7 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of RoleDtoPagedResponse</returns> public Coscine.ApiClient.Core.Client.ApiResponse<RoleDtoPagedResponse> GetRolesWithHttpInfo(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -609,6 +611,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -662,11 +665,11 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of RoleDtoPagedResponse</returns> - public async System.Threading.Tasks.Task<RoleDtoPagedResponse> GetRolesAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<RoleDtoPagedResponse> GetRolesAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<RoleDtoPagedResponse> localVarResponse = await GetRolesWithHttpInfoAsync(pageNumber, pageSize, orderBy, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -678,11 +681,11 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (RoleDtoPagedResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<RoleDtoPagedResponse>> GetRolesWithHttpInfoAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<RoleDtoPagedResponse>> GetRolesWithHttpInfoAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); diff --git a/src/Coscine.ApiClient.Core/Api/SearchApi.cs b/src/Coscine.ApiClient.Core/Api/SearchApi.cs index c326d8f..d4f0e01 100644 --- a/src/Coscine.ApiClient.Core/Api/SearchApi.cs +++ b/src/Coscine.ApiClient.Core/Api/SearchApi.cs @@ -55,7 +55,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="category">Set the category filter (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>SearchResultDtoPagedSearchResponse</returns> SearchResultDtoPagedSearchResponse GetSearchResults(string? query = default(string?), bool? useAdvancedSyntax = default(bool?), List<string>? languages = default(List<string>?), SearchCategoryType? category = default(SearchCategoryType?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -73,7 +73,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="category">Set the category filter (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of SearchResultDtoPagedSearchResponse</returns> ApiResponse<SearchResultDtoPagedSearchResponse> GetSearchResultsWithHttpInfo(string? query = default(string?), bool? useAdvancedSyntax = default(bool?), List<string>? languages = default(List<string>?), SearchCategoryType? category = default(SearchCategoryType?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -96,7 +96,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task ApiV2SearchOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2SearchOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Responds with the HTTP methods allowed for the endpoint. @@ -108,7 +108,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2SearchOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2SearchOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves a search result by given search parameters. /// </summary> @@ -122,11 +122,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="category">Set the category filter (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of SearchResultDtoPagedSearchResponse</returns> - System.Threading.Tasks.Task<SearchResultDtoPagedSearchResponse> GetSearchResultsAsync(string? query = default(string?), bool? useAdvancedSyntax = default(bool?), List<string>? languages = default(List<string>?), SearchCategoryType? category = default(SearchCategoryType?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<SearchResultDtoPagedSearchResponse> GetSearchResultsAsync(string? query = default(string?), bool? useAdvancedSyntax = default(bool?), List<string>? languages = default(List<string>?), SearchCategoryType? category = default(SearchCategoryType?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves a search result by given search parameters. @@ -141,11 +141,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="category">Set the category filter (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (SearchResultDtoPagedSearchResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<SearchResultDtoPagedSearchResponse>> GetSearchResultsWithHttpInfoAsync(string? query = default(string?), bool? useAdvancedSyntax = default(bool?), List<string>? languages = default(List<string>?), SearchCategoryType? category = default(SearchCategoryType?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<SearchResultDtoPagedSearchResponse>> GetSearchResultsWithHttpInfoAsync(string? query = default(string?), bool? useAdvancedSyntax = default(bool?), List<string>? languages = default(List<string>?), SearchCategoryType? category = default(SearchCategoryType?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -295,6 +295,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -337,7 +338,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task ApiV2SearchOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2SearchOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ApiV2SearchOptionsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); } @@ -349,7 +350,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2SearchOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2SearchOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -408,7 +409,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="category">Set the category filter (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>SearchResultDtoPagedSearchResponse</returns> public SearchResultDtoPagedSearchResponse GetSearchResults(string? query = default(string?), bool? useAdvancedSyntax = default(bool?), List<string>? languages = default(List<string>?), SearchCategoryType? category = default(SearchCategoryType?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -427,7 +428,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="category">Set the category filter (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of SearchResultDtoPagedSearchResponse</returns> public Coscine.ApiClient.Core.Client.ApiResponse<SearchResultDtoPagedSearchResponse> GetSearchResultsWithHttpInfo(string? query = default(string?), bool? useAdvancedSyntax = default(bool?), List<string>? languages = default(List<string>?), SearchCategoryType? category = default(SearchCategoryType?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -444,6 +445,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -517,11 +519,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="category">Set the category filter (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of SearchResultDtoPagedSearchResponse</returns> - public async System.Threading.Tasks.Task<SearchResultDtoPagedSearchResponse> GetSearchResultsAsync(string? query = default(string?), bool? useAdvancedSyntax = default(bool?), List<string>? languages = default(List<string>?), SearchCategoryType? category = default(SearchCategoryType?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<SearchResultDtoPagedSearchResponse> GetSearchResultsAsync(string? query = default(string?), bool? useAdvancedSyntax = default(bool?), List<string>? languages = default(List<string>?), SearchCategoryType? category = default(SearchCategoryType?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<SearchResultDtoPagedSearchResponse> localVarResponse = await GetSearchResultsWithHttpInfoAsync(query, useAdvancedSyntax, languages, category, pageNumber, pageSize, orderBy, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -537,11 +539,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="category">Set the category filter (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (SearchResultDtoPagedSearchResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<SearchResultDtoPagedSearchResponse>> GetSearchResultsWithHttpInfoAsync(string? query = default(string?), bool? useAdvancedSyntax = default(bool?), List<string>? languages = default(List<string>?), SearchCategoryType? category = default(SearchCategoryType?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<SearchResultDtoPagedSearchResponse>> GetSearchResultsWithHttpInfoAsync(string? query = default(string?), bool? useAdvancedSyntax = default(bool?), List<string>? languages = default(List<string>?), SearchCategoryType? category = default(SearchCategoryType?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); diff --git a/src/Coscine.ApiClient.Core/Api/SelfApi.cs b/src/Coscine.ApiClient.Core/Api/SelfApi.cs index 73b5d95..1d83a26 100644 --- a/src/Coscine.ApiClient.Core/Api/SelfApi.cs +++ b/src/Coscine.ApiClient.Core/Api/SelfApi.cs @@ -183,7 +183,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task AcceptCurrentTosAsync(UserTermsOfServiceAcceptDto? userTermsOfServiceAcceptDto = default(UserTermsOfServiceAcceptDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task AcceptCurrentTosAsync(UserTermsOfServiceAcceptDto? userTermsOfServiceAcceptDto = default(UserTermsOfServiceAcceptDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Accepts the current Terms Of Service for the current authenticated user. @@ -196,7 +196,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> AcceptCurrentTosWithHttpInfoAsync(UserTermsOfServiceAcceptDto? userTermsOfServiceAcceptDto = default(UserTermsOfServiceAcceptDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> AcceptCurrentTosWithHttpInfoAsync(UserTermsOfServiceAcceptDto? userTermsOfServiceAcceptDto = default(UserTermsOfServiceAcceptDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Responds with the HTTP methods allowed for the endpoint. /// </summary> @@ -207,7 +207,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task ApiV2SelfOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2SelfOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Responds with the HTTP methods allowed for the endpoint. @@ -219,7 +219,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2SelfOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2SelfOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Confirms the email of a user. /// </summary> @@ -231,7 +231,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task ConfirmUserEmailAsync(Guid confirmationToken, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ConfirmUserEmailAsync(Guid confirmationToken, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Confirms the email of a user. @@ -244,7 +244,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> ConfirmUserEmailWithHttpInfoAsync(Guid confirmationToken, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> ConfirmUserEmailWithHttpInfoAsync(Guid confirmationToken, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves the current authenticated user. /// </summary> @@ -255,7 +255,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of UserDtoResponse</returns> - System.Threading.Tasks.Task<UserDtoResponse> GetCurrentUserAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<UserDtoResponse> GetCurrentUserAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves the current authenticated user. @@ -267,7 +267,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (UserDtoResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<UserDtoResponse>> GetCurrentUserWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<UserDtoResponse>> GetCurrentUserWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Initiates user merging for the current user. /// </summary> @@ -279,7 +279,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of UserMergeDtoResponse</returns> - System.Threading.Tasks.Task<UserMergeDtoResponse> InitiateUserMergeAsync(IdentityProviders identityProvider, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<UserMergeDtoResponse> InitiateUserMergeAsync(IdentityProviders identityProvider, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Initiates user merging for the current user. @@ -292,7 +292,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (UserMergeDtoResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<UserMergeDtoResponse>> InitiateUserMergeWithHttpInfoAsync(IdentityProviders identityProvider, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<UserMergeDtoResponse>> InitiateUserMergeWithHttpInfoAsync(IdentityProviders identityProvider, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Resolves a project invitation for the authenticated user. /// </summary> @@ -304,7 +304,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task ResolveProjectInvitationAsync(ProjectInvitationResolveDto? projectInvitationResolveDto = default(ProjectInvitationResolveDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ResolveProjectInvitationAsync(ProjectInvitationResolveDto? projectInvitationResolveDto = default(ProjectInvitationResolveDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Resolves a project invitation for the authenticated user. @@ -317,7 +317,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> ResolveProjectInvitationWithHttpInfoAsync(ProjectInvitationResolveDto? projectInvitationResolveDto = default(ProjectInvitationResolveDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> ResolveProjectInvitationWithHttpInfoAsync(ProjectInvitationResolveDto? projectInvitationResolveDto = default(ProjectInvitationResolveDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Updates the current authenticated user. /// </summary> @@ -329,7 +329,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task UpdateCurrentUserAsync(UserForUpdateDto? userForUpdateDto = default(UserForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdateCurrentUserAsync(UserForUpdateDto? userForUpdateDto = default(UserForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Updates the current authenticated user. @@ -342,7 +342,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> UpdateCurrentUserWithHttpInfoAsync(UserForUpdateDto? userForUpdateDto = default(UserForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> UpdateCurrentUserWithHttpInfoAsync(UserForUpdateDto? userForUpdateDto = default(UserForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -497,6 +497,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -541,7 +542,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task AcceptCurrentTosAsync(UserTermsOfServiceAcceptDto? userTermsOfServiceAcceptDto = default(UserTermsOfServiceAcceptDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task AcceptCurrentTosAsync(UserTermsOfServiceAcceptDto? userTermsOfServiceAcceptDto = default(UserTermsOfServiceAcceptDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await AcceptCurrentTosWithHttpInfoAsync(userTermsOfServiceAcceptDto, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -554,7 +555,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> AcceptCurrentTosWithHttpInfoAsync(UserTermsOfServiceAcceptDto? userTermsOfServiceAcceptDto = default(UserTermsOfServiceAcceptDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> AcceptCurrentTosWithHttpInfoAsync(UserTermsOfServiceAcceptDto? userTermsOfServiceAcceptDto = default(UserTermsOfServiceAcceptDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -636,6 +637,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -678,7 +680,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task ApiV2SelfOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2SelfOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ApiV2SelfOptionsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); } @@ -690,7 +692,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2SelfOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2SelfOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -770,6 +772,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -814,7 +817,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task ConfirmUserEmailAsync(Guid confirmationToken, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ConfirmUserEmailAsync(Guid confirmationToken, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ConfirmUserEmailWithHttpInfoAsync(confirmationToken, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -827,7 +830,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ConfirmUserEmailWithHttpInfoAsync(Guid confirmationToken, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ConfirmUserEmailWithHttpInfoAsync(Guid confirmationToken, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -909,6 +912,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -951,7 +955,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of UserDtoResponse</returns> - public async System.Threading.Tasks.Task<UserDtoResponse> GetCurrentUserAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<UserDtoResponse> GetCurrentUserAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<UserDtoResponse> localVarResponse = await GetCurrentUserWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -964,7 +968,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (UserDtoResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<UserDtoResponse>> GetCurrentUserWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<UserDtoResponse>> GetCurrentUserWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -1049,6 +1053,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1093,7 +1098,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of UserMergeDtoResponse</returns> - public async System.Threading.Tasks.Task<UserMergeDtoResponse> InitiateUserMergeAsync(IdentityProviders identityProvider, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<UserMergeDtoResponse> InitiateUserMergeAsync(IdentityProviders identityProvider, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<UserMergeDtoResponse> localVarResponse = await InitiateUserMergeWithHttpInfoAsync(identityProvider, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1107,7 +1112,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (UserMergeDtoResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<UserMergeDtoResponse>> InitiateUserMergeWithHttpInfoAsync(IdentityProviders identityProvider, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<UserMergeDtoResponse>> InitiateUserMergeWithHttpInfoAsync(IdentityProviders identityProvider, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -1193,6 +1198,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1237,7 +1243,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task ResolveProjectInvitationAsync(ProjectInvitationResolveDto? projectInvitationResolveDto = default(ProjectInvitationResolveDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ResolveProjectInvitationAsync(ProjectInvitationResolveDto? projectInvitationResolveDto = default(ProjectInvitationResolveDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ResolveProjectInvitationWithHttpInfoAsync(projectInvitationResolveDto, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -1250,7 +1256,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ResolveProjectInvitationWithHttpInfoAsync(ProjectInvitationResolveDto? projectInvitationResolveDto = default(ProjectInvitationResolveDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ResolveProjectInvitationWithHttpInfoAsync(ProjectInvitationResolveDto? projectInvitationResolveDto = default(ProjectInvitationResolveDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -1337,6 +1343,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1381,7 +1388,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task UpdateCurrentUserAsync(UserForUpdateDto? userForUpdateDto = default(UserForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdateCurrentUserAsync(UserForUpdateDto? userForUpdateDto = default(UserForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await UpdateCurrentUserWithHttpInfoAsync(userForUpdateDto, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -1394,7 +1401,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> UpdateCurrentUserWithHttpInfoAsync(UserForUpdateDto? userForUpdateDto = default(UserForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> UpdateCurrentUserWithHttpInfoAsync(UserForUpdateDto? userForUpdateDto = default(UserForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); diff --git a/src/Coscine.ApiClient.Core/Api/SelfApiTokenApi.cs b/src/Coscine.ApiClient.Core/Api/SelfApiTokenApi.cs index 55dce67..cb56784 100644 --- a/src/Coscine.ApiClient.Core/Api/SelfApiTokenApi.cs +++ b/src/Coscine.ApiClient.Core/Api/SelfApiTokenApi.cs @@ -71,7 +71,7 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiTokenDtoPagedResponse</returns> ApiTokenDtoPagedResponse GetAllApiTokens(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -85,7 +85,7 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of ApiTokenDtoPagedResponse</returns> ApiResponse<ApiTokenDtoPagedResponse> GetAllApiTokensWithHttpInfo(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -148,7 +148,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task ApiV2SelfApiTokensOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2SelfApiTokensOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Responds with the HTTP methods allowed for the endpoint. @@ -160,7 +160,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2SelfApiTokensOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2SelfApiTokensOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Creates an API token for the current authenticated user. /// </summary> @@ -172,7 +172,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiTokenDtoResponse</returns> - System.Threading.Tasks.Task<ApiTokenDtoResponse> CreateApiTokenAsync(ApiTokenForCreationDto? apiTokenForCreationDto = default(ApiTokenForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiTokenDtoResponse> CreateApiTokenAsync(ApiTokenForCreationDto? apiTokenForCreationDto = default(ApiTokenForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Creates an API token for the current authenticated user. @@ -185,7 +185,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ApiTokenDtoResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<ApiTokenDtoResponse>> CreateApiTokenWithHttpInfoAsync(ApiTokenForCreationDto? apiTokenForCreationDto = default(ApiTokenForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<ApiTokenDtoResponse>> CreateApiTokenWithHttpInfoAsync(ApiTokenForCreationDto? apiTokenForCreationDto = default(ApiTokenForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all API tokens for the current authenticated user. /// </summary> @@ -195,11 +195,11 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiTokenDtoPagedResponse</returns> - System.Threading.Tasks.Task<ApiTokenDtoPagedResponse> GetAllApiTokensAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiTokenDtoPagedResponse> GetAllApiTokensAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all API tokens for the current authenticated user. @@ -210,11 +210,11 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ApiTokenDtoPagedResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<ApiTokenDtoPagedResponse>> GetAllApiTokensWithHttpInfoAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<ApiTokenDtoPagedResponse>> GetAllApiTokensWithHttpInfoAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves an API token for the current authenticated user. /// </summary> @@ -226,7 +226,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiTokenDtoResponse</returns> - System.Threading.Tasks.Task<ApiTokenDtoResponse> GetApiTokenAsync(Guid apiTokenId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiTokenDtoResponse> GetApiTokenAsync(Guid apiTokenId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves an API token for the current authenticated user. @@ -239,7 +239,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ApiTokenDtoResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<ApiTokenDtoResponse>> GetApiTokenWithHttpInfoAsync(Guid apiTokenId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<ApiTokenDtoResponse>> GetApiTokenWithHttpInfoAsync(Guid apiTokenId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Revokes an API token for the current authenticated user. /// </summary> @@ -251,7 +251,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task RevokeTokenAsync(Guid apiTokenId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task RevokeTokenAsync(Guid apiTokenId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Revokes an API token for the current authenticated user. @@ -264,7 +264,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> RevokeTokenWithHttpInfoAsync(Guid apiTokenId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> RevokeTokenWithHttpInfoAsync(Guid apiTokenId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -414,6 +414,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -456,7 +457,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task ApiV2SelfApiTokensOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2SelfApiTokensOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ApiV2SelfApiTokensOptionsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); } @@ -468,7 +469,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2SelfApiTokensOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2SelfApiTokensOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -554,6 +555,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -598,7 +600,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiTokenDtoResponse</returns> - public async System.Threading.Tasks.Task<ApiTokenDtoResponse> CreateApiTokenAsync(ApiTokenForCreationDto? apiTokenForCreationDto = default(ApiTokenForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<ApiTokenDtoResponse> CreateApiTokenAsync(ApiTokenForCreationDto? apiTokenForCreationDto = default(ApiTokenForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<ApiTokenDtoResponse> localVarResponse = await CreateApiTokenWithHttpInfoAsync(apiTokenForCreationDto, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -612,7 +614,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ApiTokenDtoResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ApiTokenDtoResponse>> CreateApiTokenWithHttpInfoAsync(ApiTokenForCreationDto? apiTokenForCreationDto = default(ApiTokenForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ApiTokenDtoResponse>> CreateApiTokenWithHttpInfoAsync(ApiTokenForCreationDto? apiTokenForCreationDto = default(ApiTokenForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -673,7 +675,7 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiTokenDtoPagedResponse</returns> public ApiTokenDtoPagedResponse GetAllApiTokens(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -688,7 +690,7 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of ApiTokenDtoPagedResponse</returns> public Coscine.ApiClient.Core.Client.ApiResponse<ApiTokenDtoPagedResponse> GetAllApiTokensWithHttpInfo(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -705,6 +707,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -758,11 +761,11 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiTokenDtoPagedResponse</returns> - public async System.Threading.Tasks.Task<ApiTokenDtoPagedResponse> GetAllApiTokensAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<ApiTokenDtoPagedResponse> GetAllApiTokensAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<ApiTokenDtoPagedResponse> localVarResponse = await GetAllApiTokensWithHttpInfoAsync(pageNumber, pageSize, orderBy, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -774,11 +777,11 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ApiTokenDtoPagedResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ApiTokenDtoPagedResponse>> GetAllApiTokensWithHttpInfoAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ApiTokenDtoPagedResponse>> GetAllApiTokensWithHttpInfoAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -875,6 +878,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -919,7 +923,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiTokenDtoResponse</returns> - public async System.Threading.Tasks.Task<ApiTokenDtoResponse> GetApiTokenAsync(Guid apiTokenId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<ApiTokenDtoResponse> GetApiTokenAsync(Guid apiTokenId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<ApiTokenDtoResponse> localVarResponse = await GetApiTokenWithHttpInfoAsync(apiTokenId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -933,7 +937,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (ApiTokenDtoResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ApiTokenDtoResponse>> GetApiTokenWithHttpInfoAsync(Guid apiTokenId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<ApiTokenDtoResponse>> GetApiTokenWithHttpInfoAsync(Guid apiTokenId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -1016,6 +1020,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1060,7 +1065,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task RevokeTokenAsync(Guid apiTokenId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task RevokeTokenAsync(Guid apiTokenId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await RevokeTokenWithHttpInfoAsync(apiTokenId, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -1073,7 +1078,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> RevokeTokenWithHttpInfoAsync(Guid apiTokenId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> RevokeTokenWithHttpInfoAsync(Guid apiTokenId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); diff --git a/src/Coscine.ApiClient.Core/Api/SelfSessionApi.cs b/src/Coscine.ApiClient.Core/Api/SelfSessionApi.cs index 80f62fd..249373b 100644 --- a/src/Coscine.ApiClient.Core/Api/SelfSessionApi.cs +++ b/src/Coscine.ApiClient.Core/Api/SelfSessionApi.cs @@ -139,7 +139,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task ApiV2SelfSessionLogoutPostAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2SelfSessionLogoutPostAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Initiate the Log out workflow. @@ -151,7 +151,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2SelfSessionLogoutPostWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2SelfSessionLogoutPostWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Responds with the HTTP methods allowed for the endpoint. /// </summary> @@ -162,7 +162,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task ApiV2SelfSessionOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2SelfSessionOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Responds with the HTTP methods allowed for the endpoint. @@ -174,7 +174,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2SelfSessionOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2SelfSessionOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Initiate the login workflow with the default (NFDI4Ing AAI) provider. /// </summary> @@ -185,7 +185,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task LoginAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task LoginAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Initiate the login workflow with the default (NFDI4Ing AAI) provider. @@ -197,7 +197,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> LoginWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> LoginWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Initiate the login workflow with specific provider. /// </summary> @@ -209,7 +209,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task LoginWithProviderAsync(Guid externalAuthenticatorId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task LoginWithProviderAsync(Guid externalAuthenticatorId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Initiate the login workflow with specific provider. @@ -222,7 +222,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> LoginWithProviderWithHttpInfoAsync(Guid externalAuthenticatorId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> LoginWithProviderWithHttpInfoAsync(Guid externalAuthenticatorId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Initiate the merge workflow with specific provider. /// </summary> @@ -234,7 +234,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task MergeAsync(Guid externalAuthenticatorId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task MergeAsync(Guid externalAuthenticatorId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Initiate the merge workflow with specific provider. @@ -247,7 +247,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> MergeWithHttpInfoAsync(Guid externalAuthenticatorId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> MergeWithHttpInfoAsync(Guid externalAuthenticatorId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -397,6 +397,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -439,7 +440,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task ApiV2SelfSessionLogoutPostAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2SelfSessionLogoutPostAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ApiV2SelfSessionLogoutPostWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); } @@ -451,7 +452,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2SelfSessionLogoutPostWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2SelfSessionLogoutPostWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -529,6 +530,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -571,7 +573,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task ApiV2SelfSessionOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2SelfSessionOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ApiV2SelfSessionOptionsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); } @@ -583,7 +585,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2SelfSessionOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2SelfSessionOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -661,6 +663,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -703,7 +706,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task LoginAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task LoginAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await LoginWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); } @@ -715,7 +718,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> LoginWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> LoginWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -795,6 +798,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -839,7 +843,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task LoginWithProviderAsync(Guid externalAuthenticatorId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task LoginWithProviderAsync(Guid externalAuthenticatorId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await LoginWithProviderWithHttpInfoAsync(externalAuthenticatorId, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -852,7 +856,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> LoginWithProviderWithHttpInfoAsync(Guid externalAuthenticatorId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> LoginWithProviderWithHttpInfoAsync(Guid externalAuthenticatorId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -933,6 +937,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -977,7 +982,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task MergeAsync(Guid externalAuthenticatorId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task MergeAsync(Guid externalAuthenticatorId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await MergeWithHttpInfoAsync(externalAuthenticatorId, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -990,7 +995,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> MergeWithHttpInfoAsync(Guid externalAuthenticatorId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> MergeWithHttpInfoAsync(Guid externalAuthenticatorId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); diff --git a/src/Coscine.ApiClient.Core/Api/SystemStatusApi.cs b/src/Coscine.ApiClient.Core/Api/SystemStatusApi.cs index 581b670..988d17f 100644 --- a/src/Coscine.ApiClient.Core/Api/SystemStatusApi.cs +++ b/src/Coscine.ApiClient.Core/Api/SystemStatusApi.cs @@ -57,7 +57,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="searchTerm">Filter messages by text contained in the messages or title. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>MessageDtoPagedResponse</returns> MessageDtoPagedResponse GetInternalMessages(DateTime? startDateAfter = default(DateTime?), DateTime? startDateBefore = default(DateTime?), DateTime? endDateAfter = default(DateTime?), DateTime? endDateBefore = default(DateTime?), MessageType? type = default(MessageType?), string? searchTerm = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -77,7 +77,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="searchTerm">Filter messages by text contained in the messages or title. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of MessageDtoPagedResponse</returns> ApiResponse<MessageDtoPagedResponse> GetInternalMessagesWithHttpInfo(DateTime? startDateAfter = default(DateTime?), DateTime? startDateBefore = default(DateTime?), DateTime? endDateAfter = default(DateTime?), DateTime? endDateBefore = default(DateTime?), MessageType? type = default(MessageType?), string? searchTerm = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -93,7 +93,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="searchTerm">Filter messages by text contained in the messages or title. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>MessageDtoPagedResponse</returns> MessageDtoPagedResponse GetNocMessages(DateTime? startDateAfter = default(DateTime?), DateTime? startDateBefore = default(DateTime?), DateTime? endDateAfter = default(DateTime?), DateTime? endDateBefore = default(DateTime?), MessageType? type = default(MessageType?), string? searchTerm = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -113,7 +113,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="searchTerm">Filter messages by text contained in the messages or title. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of MessageDtoPagedResponse</returns> ApiResponse<MessageDtoPagedResponse> GetNocMessagesWithHttpInfo(DateTime? startDateAfter = default(DateTime?), DateTime? startDateBefore = default(DateTime?), DateTime? endDateAfter = default(DateTime?), DateTime? endDateBefore = default(DateTime?), MessageType? type = default(MessageType?), string? searchTerm = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -136,7 +136,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task ApiV2SystemStatusOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2SystemStatusOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Responds with the HTTP methods allowed for the endpoint. @@ -148,7 +148,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2SystemStatusOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2SystemStatusOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves the internal messages. /// </summary> @@ -164,11 +164,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="searchTerm">Filter messages by text contained in the messages or title. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of MessageDtoPagedResponse</returns> - System.Threading.Tasks.Task<MessageDtoPagedResponse> GetInternalMessagesAsync(DateTime? startDateAfter = default(DateTime?), DateTime? startDateBefore = default(DateTime?), DateTime? endDateAfter = default(DateTime?), DateTime? endDateBefore = default(DateTime?), MessageType? type = default(MessageType?), string? searchTerm = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<MessageDtoPagedResponse> GetInternalMessagesAsync(DateTime? startDateAfter = default(DateTime?), DateTime? startDateBefore = default(DateTime?), DateTime? endDateAfter = default(DateTime?), DateTime? endDateBefore = default(DateTime?), MessageType? type = default(MessageType?), string? searchTerm = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves the internal messages. @@ -185,11 +185,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="searchTerm">Filter messages by text contained in the messages or title. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (MessageDtoPagedResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<MessageDtoPagedResponse>> GetInternalMessagesWithHttpInfoAsync(DateTime? startDateAfter = default(DateTime?), DateTime? startDateBefore = default(DateTime?), DateTime? endDateAfter = default(DateTime?), DateTime? endDateBefore = default(DateTime?), MessageType? type = default(MessageType?), string? searchTerm = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<MessageDtoPagedResponse>> GetInternalMessagesWithHttpInfoAsync(DateTime? startDateAfter = default(DateTime?), DateTime? startDateBefore = default(DateTime?), DateTime? endDateAfter = default(DateTime?), DateTime? endDateBefore = default(DateTime?), MessageType? type = default(MessageType?), string? searchTerm = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves the NOC messages. /// </summary> @@ -205,11 +205,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="searchTerm">Filter messages by text contained in the messages or title. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of MessageDtoPagedResponse</returns> - System.Threading.Tasks.Task<MessageDtoPagedResponse> GetNocMessagesAsync(DateTime? startDateAfter = default(DateTime?), DateTime? startDateBefore = default(DateTime?), DateTime? endDateAfter = default(DateTime?), DateTime? endDateBefore = default(DateTime?), MessageType? type = default(MessageType?), string? searchTerm = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<MessageDtoPagedResponse> GetNocMessagesAsync(DateTime? startDateAfter = default(DateTime?), DateTime? startDateBefore = default(DateTime?), DateTime? endDateAfter = default(DateTime?), DateTime? endDateBefore = default(DateTime?), MessageType? type = default(MessageType?), string? searchTerm = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves the NOC messages. @@ -226,11 +226,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="searchTerm">Filter messages by text contained in the messages or title. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (MessageDtoPagedResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<MessageDtoPagedResponse>> GetNocMessagesWithHttpInfoAsync(DateTime? startDateAfter = default(DateTime?), DateTime? startDateBefore = default(DateTime?), DateTime? endDateAfter = default(DateTime?), DateTime? endDateBefore = default(DateTime?), MessageType? type = default(MessageType?), string? searchTerm = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<MessageDtoPagedResponse>> GetNocMessagesWithHttpInfoAsync(DateTime? startDateAfter = default(DateTime?), DateTime? startDateBefore = default(DateTime?), DateTime? endDateAfter = default(DateTime?), DateTime? endDateBefore = default(DateTime?), MessageType? type = default(MessageType?), string? searchTerm = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -380,6 +380,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -422,7 +423,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task ApiV2SystemStatusOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2SystemStatusOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ApiV2SystemStatusOptionsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); } @@ -434,7 +435,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2SystemStatusOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2SystemStatusOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -495,7 +496,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="searchTerm">Filter messages by text contained in the messages or title. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>MessageDtoPagedResponse</returns> public MessageDtoPagedResponse GetInternalMessages(DateTime? startDateAfter = default(DateTime?), DateTime? startDateBefore = default(DateTime?), DateTime? endDateAfter = default(DateTime?), DateTime? endDateBefore = default(DateTime?), MessageType? type = default(MessageType?), string? searchTerm = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -516,7 +517,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="searchTerm">Filter messages by text contained in the messages or title. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of MessageDtoPagedResponse</returns> public Coscine.ApiClient.Core.Client.ApiResponse<MessageDtoPagedResponse> GetInternalMessagesWithHttpInfo(DateTime? startDateAfter = default(DateTime?), DateTime? startDateBefore = default(DateTime?), DateTime? endDateAfter = default(DateTime?), DateTime? endDateBefore = default(DateTime?), MessageType? type = default(MessageType?), string? searchTerm = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -533,6 +534,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -616,11 +618,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="searchTerm">Filter messages by text contained in the messages or title. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of MessageDtoPagedResponse</returns> - public async System.Threading.Tasks.Task<MessageDtoPagedResponse> GetInternalMessagesAsync(DateTime? startDateAfter = default(DateTime?), DateTime? startDateBefore = default(DateTime?), DateTime? endDateAfter = default(DateTime?), DateTime? endDateBefore = default(DateTime?), MessageType? type = default(MessageType?), string? searchTerm = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<MessageDtoPagedResponse> GetInternalMessagesAsync(DateTime? startDateAfter = default(DateTime?), DateTime? startDateBefore = default(DateTime?), DateTime? endDateAfter = default(DateTime?), DateTime? endDateBefore = default(DateTime?), MessageType? type = default(MessageType?), string? searchTerm = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<MessageDtoPagedResponse> localVarResponse = await GetInternalMessagesWithHttpInfoAsync(startDateAfter, startDateBefore, endDateAfter, endDateBefore, type, searchTerm, pageNumber, pageSize, orderBy, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -638,11 +640,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="searchTerm">Filter messages by text contained in the messages or title. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (MessageDtoPagedResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<MessageDtoPagedResponse>> GetInternalMessagesWithHttpInfoAsync(DateTime? startDateAfter = default(DateTime?), DateTime? startDateBefore = default(DateTime?), DateTime? endDateAfter = default(DateTime?), DateTime? endDateBefore = default(DateTime?), MessageType? type = default(MessageType?), string? searchTerm = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<MessageDtoPagedResponse>> GetInternalMessagesWithHttpInfoAsync(DateTime? startDateAfter = default(DateTime?), DateTime? startDateBefore = default(DateTime?), DateTime? endDateAfter = default(DateTime?), DateTime? endDateBefore = default(DateTime?), MessageType? type = default(MessageType?), string? searchTerm = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -741,7 +743,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="searchTerm">Filter messages by text contained in the messages or title. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>MessageDtoPagedResponse</returns> public MessageDtoPagedResponse GetNocMessages(DateTime? startDateAfter = default(DateTime?), DateTime? startDateBefore = default(DateTime?), DateTime? endDateAfter = default(DateTime?), DateTime? endDateBefore = default(DateTime?), MessageType? type = default(MessageType?), string? searchTerm = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -762,7 +764,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="searchTerm">Filter messages by text contained in the messages or title. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of MessageDtoPagedResponse</returns> public Coscine.ApiClient.Core.Client.ApiResponse<MessageDtoPagedResponse> GetNocMessagesWithHttpInfo(DateTime? startDateAfter = default(DateTime?), DateTime? startDateBefore = default(DateTime?), DateTime? endDateAfter = default(DateTime?), DateTime? endDateBefore = default(DateTime?), MessageType? type = default(MessageType?), string? searchTerm = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -779,6 +781,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -862,11 +865,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="searchTerm">Filter messages by text contained in the messages or title. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of MessageDtoPagedResponse</returns> - public async System.Threading.Tasks.Task<MessageDtoPagedResponse> GetNocMessagesAsync(DateTime? startDateAfter = default(DateTime?), DateTime? startDateBefore = default(DateTime?), DateTime? endDateAfter = default(DateTime?), DateTime? endDateBefore = default(DateTime?), MessageType? type = default(MessageType?), string? searchTerm = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<MessageDtoPagedResponse> GetNocMessagesAsync(DateTime? startDateAfter = default(DateTime?), DateTime? startDateBefore = default(DateTime?), DateTime? endDateAfter = default(DateTime?), DateTime? endDateBefore = default(DateTime?), MessageType? type = default(MessageType?), string? searchTerm = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<MessageDtoPagedResponse> localVarResponse = await GetNocMessagesWithHttpInfoAsync(startDateAfter, startDateBefore, endDateAfter, endDateBefore, type, searchTerm, pageNumber, pageSize, orderBy, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -884,11 +887,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="searchTerm">Filter messages by text contained in the messages or title. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (MessageDtoPagedResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<MessageDtoPagedResponse>> GetNocMessagesWithHttpInfoAsync(DateTime? startDateAfter = default(DateTime?), DateTime? startDateBefore = default(DateTime?), DateTime? endDateAfter = default(DateTime?), DateTime? endDateBefore = default(DateTime?), MessageType? type = default(MessageType?), string? searchTerm = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<MessageDtoPagedResponse>> GetNocMessagesWithHttpInfoAsync(DateTime? startDateAfter = default(DateTime?), DateTime? startDateBefore = default(DateTime?), DateTime? endDateAfter = default(DateTime?), DateTime? endDateBefore = default(DateTime?), MessageType? type = default(MessageType?), string? searchTerm = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); diff --git a/src/Coscine.ApiClient.Core/Api/TitleApi.cs b/src/Coscine.ApiClient.Core/Api/TitleApi.cs index 814a28a..d78b720 100644 --- a/src/Coscine.ApiClient.Core/Api/TitleApi.cs +++ b/src/Coscine.ApiClient.Core/Api/TitleApi.cs @@ -71,7 +71,7 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>TitleDtoIEnumerableResponse</returns> TitleDtoIEnumerableResponse GetTitles(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -85,7 +85,7 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of TitleDtoIEnumerableResponse</returns> ApiResponse<TitleDtoIEnumerableResponse> GetTitlesWithHttpInfo(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -108,7 +108,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task ApiV2TitlesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2TitlesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Responds with the HTTP methods allowed for the endpoint. @@ -120,7 +120,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2TitlesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2TitlesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves a title by ID. /// </summary> @@ -132,7 +132,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of TitleDtoResponse</returns> - System.Threading.Tasks.Task<TitleDtoResponse> GetTitleAsync(Guid titleId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<TitleDtoResponse> GetTitleAsync(Guid titleId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves a title by ID. @@ -145,7 +145,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (TitleDtoResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<TitleDtoResponse>> GetTitleWithHttpInfoAsync(Guid titleId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<TitleDtoResponse>> GetTitleWithHttpInfoAsync(Guid titleId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all titles. /// </summary> @@ -155,11 +155,11 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of TitleDtoIEnumerableResponse</returns> - System.Threading.Tasks.Task<TitleDtoIEnumerableResponse> GetTitlesAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<TitleDtoIEnumerableResponse> GetTitlesAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all titles. @@ -170,11 +170,11 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (TitleDtoIEnumerableResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<TitleDtoIEnumerableResponse>> GetTitlesWithHttpInfoAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<TitleDtoIEnumerableResponse>> GetTitlesWithHttpInfoAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -324,6 +324,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -366,7 +367,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task ApiV2TitlesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2TitlesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ApiV2TitlesOptionsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); } @@ -378,7 +379,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2TitlesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2TitlesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -461,6 +462,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -505,7 +507,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of TitleDtoResponse</returns> - public async System.Threading.Tasks.Task<TitleDtoResponse> GetTitleAsync(Guid titleId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<TitleDtoResponse> GetTitleAsync(Guid titleId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<TitleDtoResponse> localVarResponse = await GetTitleWithHttpInfoAsync(titleId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -519,7 +521,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (TitleDtoResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<TitleDtoResponse>> GetTitleWithHttpInfoAsync(Guid titleId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<TitleDtoResponse>> GetTitleWithHttpInfoAsync(Guid titleId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -577,7 +579,7 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>TitleDtoIEnumerableResponse</returns> public TitleDtoIEnumerableResponse GetTitles(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -592,7 +594,7 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of TitleDtoIEnumerableResponse</returns> public Coscine.ApiClient.Core.Client.ApiResponse<TitleDtoIEnumerableResponse> GetTitlesWithHttpInfo(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -609,6 +611,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -662,11 +665,11 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of TitleDtoIEnumerableResponse</returns> - public async System.Threading.Tasks.Task<TitleDtoIEnumerableResponse> GetTitlesAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<TitleDtoIEnumerableResponse> GetTitlesAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<TitleDtoIEnumerableResponse> localVarResponse = await GetTitlesWithHttpInfoAsync(pageNumber, pageSize, orderBy, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -678,11 +681,11 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (TitleDtoIEnumerableResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<TitleDtoIEnumerableResponse>> GetTitlesWithHttpInfoAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<TitleDtoIEnumerableResponse>> GetTitlesWithHttpInfoAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); diff --git a/src/Coscine.ApiClient.Core/Api/TosApi.cs b/src/Coscine.ApiClient.Core/Api/TosApi.cs index 9c4ee4a..41d5374 100644 --- a/src/Coscine.ApiClient.Core/Api/TosApi.cs +++ b/src/Coscine.ApiClient.Core/Api/TosApi.cs @@ -82,7 +82,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task ApiV2TosOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2TosOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Responds with the HTTP methods allowed for the endpoint. @@ -94,7 +94,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2TosOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2TosOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves the current Terms of Service version. /// </summary> @@ -105,7 +105,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of TermsOfServiceDtoResponse</returns> - System.Threading.Tasks.Task<TermsOfServiceDtoResponse> GetTosAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<TermsOfServiceDtoResponse> GetTosAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves the current Terms of Service version. @@ -117,7 +117,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (TermsOfServiceDtoResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<TermsOfServiceDtoResponse>> GetTosWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<TermsOfServiceDtoResponse>> GetTosWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -267,6 +267,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -309,7 +310,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task ApiV2TosOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2TosOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ApiV2TosOptionsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); } @@ -321,7 +322,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2TosOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2TosOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -402,6 +403,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -444,7 +446,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of TermsOfServiceDtoResponse</returns> - public async System.Threading.Tasks.Task<TermsOfServiceDtoResponse> GetTosAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<TermsOfServiceDtoResponse> GetTosAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<TermsOfServiceDtoResponse> localVarResponse = await GetTosWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -457,7 +459,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (TermsOfServiceDtoResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<TermsOfServiceDtoResponse>> GetTosWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<TermsOfServiceDtoResponse>> GetTosWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); diff --git a/src/Coscine.ApiClient.Core/Api/TreeApi.cs b/src/Coscine.ApiClient.Core/Api/TreeApi.cs index cf0696f..0a6559d 100644 --- a/src/Coscine.ApiClient.Core/Api/TreeApi.cs +++ b/src/Coscine.ApiClient.Core/Api/TreeApi.cs @@ -139,7 +139,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="path">Gets or sets the path of the file tree. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>FileTreeDtoPagedResponse</returns> FileTreeDtoPagedResponse GetFileTree(string projectId, Guid resourceId, string? path = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -156,7 +156,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="path">Gets or sets the path of the file tree. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of FileTreeDtoPagedResponse</returns> ApiResponse<FileTreeDtoPagedResponse> GetFileTreeWithHttpInfo(string projectId, Guid resourceId, string? path = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -172,7 +172,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="includeProvenance">Gets or sets if provenance metadata should be included. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>MetadataTreeDtoPagedResponse</returns> MetadataTreeDtoPagedResponse GetMetadataTree(string projectId, Guid resourceId, string? path = default(string?), RdfFormat? format = default(RdfFormat?), bool? includeExtractedMetadata = default(bool?), bool? includeProvenance = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -192,7 +192,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="includeProvenance">Gets or sets if provenance metadata should be included. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of MetadataTreeDtoPagedResponse</returns> ApiResponse<MetadataTreeDtoPagedResponse> GetMetadataTreeWithHttpInfo(string projectId, Guid resourceId, string? path = default(string?), RdfFormat? format = default(RdfFormat?), bool? includeExtractedMetadata = default(bool?), bool? includeProvenance = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -300,7 +300,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task ApiV2ProjectsProjectIdResourcesResourceIdTreesOptionsAsync(string projectId, string resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2ProjectsProjectIdResourcesResourceIdTreesOptionsAsync(string projectId, string resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Responds with the HTTP methods allowed for the endpoint. @@ -314,7 +314,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2ProjectsProjectIdResourcesResourceIdTreesOptionsWithHttpInfoAsync(string projectId, string resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2ProjectsProjectIdResourcesResourceIdTreesOptionsWithHttpInfoAsync(string projectId, string resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Creates a new extracted metadata tree for a resource. /// </summary> @@ -328,7 +328,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of MetadataTreeDtoResponse</returns> - System.Threading.Tasks.Task<MetadataTreeDtoResponse> CreateExtractedMetadataTreeAsync(string projectId, Guid resourceId, ExtractedMetadataTreeForCreationDto? extractedMetadataTreeForCreationDto = default(ExtractedMetadataTreeForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<MetadataTreeDtoResponse> CreateExtractedMetadataTreeAsync(string projectId, Guid resourceId, ExtractedMetadataTreeForCreationDto? extractedMetadataTreeForCreationDto = default(ExtractedMetadataTreeForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Creates a new extracted metadata tree for a resource. @@ -343,7 +343,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (MetadataTreeDtoResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<MetadataTreeDtoResponse>> CreateExtractedMetadataTreeWithHttpInfoAsync(string projectId, Guid resourceId, ExtractedMetadataTreeForCreationDto? extractedMetadataTreeForCreationDto = default(ExtractedMetadataTreeForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<MetadataTreeDtoResponse>> CreateExtractedMetadataTreeWithHttpInfoAsync(string projectId, Guid resourceId, ExtractedMetadataTreeForCreationDto? extractedMetadataTreeForCreationDto = default(ExtractedMetadataTreeForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Creates a new metadata tree for a resource. /// </summary> @@ -357,7 +357,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of MetadataTreeDtoResponse</returns> - System.Threading.Tasks.Task<MetadataTreeDtoResponse> CreateMetadataTreeAsync(string projectId, Guid resourceId, MetadataTreeForCreationDto? metadataTreeForCreationDto = default(MetadataTreeForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<MetadataTreeDtoResponse> CreateMetadataTreeAsync(string projectId, Guid resourceId, MetadataTreeForCreationDto? metadataTreeForCreationDto = default(MetadataTreeForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Creates a new metadata tree for a resource. @@ -372,7 +372,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (MetadataTreeDtoResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<MetadataTreeDtoResponse>> CreateMetadataTreeWithHttpInfoAsync(string projectId, Guid resourceId, MetadataTreeForCreationDto? metadataTreeForCreationDto = default(MetadataTreeForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<MetadataTreeDtoResponse>> CreateMetadataTreeWithHttpInfoAsync(string projectId, Guid resourceId, MetadataTreeForCreationDto? metadataTreeForCreationDto = default(MetadataTreeForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Deletes (invalidates) a metadata tree associated with a resource. /// </summary> @@ -386,7 +386,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task DeleteMetadataTreeAsync(string projectId, Guid resourceId, MetadataTreeForDeletionDto? metadataTreeForDeletionDto = default(MetadataTreeForDeletionDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task DeleteMetadataTreeAsync(string projectId, Guid resourceId, MetadataTreeForDeletionDto? metadataTreeForDeletionDto = default(MetadataTreeForDeletionDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Deletes (invalidates) a metadata tree associated with a resource. @@ -401,7 +401,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> DeleteMetadataTreeWithHttpInfoAsync(string projectId, Guid resourceId, MetadataTreeForDeletionDto? metadataTreeForDeletionDto = default(MetadataTreeForDeletionDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> DeleteMetadataTreeWithHttpInfoAsync(string projectId, Guid resourceId, MetadataTreeForDeletionDto? metadataTreeForDeletionDto = default(MetadataTreeForDeletionDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves the file tree associated with a resource. /// </summary> @@ -414,11 +414,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="path">Gets or sets the path of the file tree. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of FileTreeDtoPagedResponse</returns> - System.Threading.Tasks.Task<FileTreeDtoPagedResponse> GetFileTreeAsync(string projectId, Guid resourceId, string? path = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<FileTreeDtoPagedResponse> GetFileTreeAsync(string projectId, Guid resourceId, string? path = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves the file tree associated with a resource. @@ -432,11 +432,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="path">Gets or sets the path of the file tree. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (FileTreeDtoPagedResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<FileTreeDtoPagedResponse>> GetFileTreeWithHttpInfoAsync(string projectId, Guid resourceId, string? path = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<FileTreeDtoPagedResponse>> GetFileTreeWithHttpInfoAsync(string projectId, Guid resourceId, string? path = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves the metadata tree associated with a resource. /// </summary> @@ -452,11 +452,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="includeProvenance">Gets or sets if provenance metadata should be included. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of MetadataTreeDtoPagedResponse</returns> - System.Threading.Tasks.Task<MetadataTreeDtoPagedResponse> GetMetadataTreeAsync(string projectId, Guid resourceId, string? path = default(string?), RdfFormat? format = default(RdfFormat?), bool? includeExtractedMetadata = default(bool?), bool? includeProvenance = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<MetadataTreeDtoPagedResponse> GetMetadataTreeAsync(string projectId, Guid resourceId, string? path = default(string?), RdfFormat? format = default(RdfFormat?), bool? includeExtractedMetadata = default(bool?), bool? includeProvenance = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves the metadata tree associated with a resource. @@ -473,11 +473,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="includeProvenance">Gets or sets if provenance metadata should be included. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (MetadataTreeDtoPagedResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<MetadataTreeDtoPagedResponse>> GetMetadataTreeWithHttpInfoAsync(string projectId, Guid resourceId, string? path = default(string?), RdfFormat? format = default(RdfFormat?), bool? includeExtractedMetadata = default(bool?), bool? includeProvenance = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<MetadataTreeDtoPagedResponse>> GetMetadataTreeWithHttpInfoAsync(string projectId, Guid resourceId, string? path = default(string?), RdfFormat? format = default(RdfFormat?), bool? includeExtractedMetadata = default(bool?), bool? includeProvenance = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves the specific metadata tree associated with a resource. /// </summary> @@ -495,7 +495,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of MetadataTreeDtoResponse</returns> - System.Threading.Tasks.Task<MetadataTreeDtoResponse> GetSpecificMetadataTreeAsync(string projectId, Guid resourceId, string path, RdfFormat? format = default(RdfFormat?), bool? includeExtractedMetadata = default(bool?), bool? includeProvenance = default(bool?), int? version = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<MetadataTreeDtoResponse> GetSpecificMetadataTreeAsync(string projectId, Guid resourceId, string path, RdfFormat? format = default(RdfFormat?), bool? includeExtractedMetadata = default(bool?), bool? includeProvenance = default(bool?), int? version = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves the specific metadata tree associated with a resource. @@ -514,7 +514,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (MetadataTreeDtoResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<MetadataTreeDtoResponse>> GetSpecificMetadataTreeWithHttpInfoAsync(string projectId, Guid resourceId, string path, RdfFormat? format = default(RdfFormat?), bool? includeExtractedMetadata = default(bool?), bool? includeProvenance = default(bool?), int? version = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<MetadataTreeDtoResponse>> GetSpecificMetadataTreeWithHttpInfoAsync(string projectId, Guid resourceId, string path, RdfFormat? format = default(RdfFormat?), bool? includeExtractedMetadata = default(bool?), bool? includeProvenance = default(bool?), int? version = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Updates an existing metadata tree of a resource. /// </summary> @@ -528,7 +528,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task UpdateExtractedMetadataTreeAsync(string projectId, Guid resourceId, ExtractedMetadataTreeForUpdateDto? extractedMetadataTreeForUpdateDto = default(ExtractedMetadataTreeForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdateExtractedMetadataTreeAsync(string projectId, Guid resourceId, ExtractedMetadataTreeForUpdateDto? extractedMetadataTreeForUpdateDto = default(ExtractedMetadataTreeForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Updates an existing metadata tree of a resource. @@ -543,7 +543,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> UpdateExtractedMetadataTreeWithHttpInfoAsync(string projectId, Guid resourceId, ExtractedMetadataTreeForUpdateDto? extractedMetadataTreeForUpdateDto = default(ExtractedMetadataTreeForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> UpdateExtractedMetadataTreeWithHttpInfoAsync(string projectId, Guid resourceId, ExtractedMetadataTreeForUpdateDto? extractedMetadataTreeForUpdateDto = default(ExtractedMetadataTreeForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Updates an existing metadata tree of a resource. /// </summary> @@ -557,7 +557,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task UpdateMetadataTreeAsync(string projectId, Guid resourceId, MetadataTreeForUpdateDto? metadataTreeForUpdateDto = default(MetadataTreeForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdateMetadataTreeAsync(string projectId, Guid resourceId, MetadataTreeForUpdateDto? metadataTreeForUpdateDto = default(MetadataTreeForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Updates an existing metadata tree of a resource. @@ -572,7 +572,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> UpdateMetadataTreeWithHttpInfoAsync(string projectId, Guid resourceId, MetadataTreeForUpdateDto? metadataTreeForUpdateDto = default(MetadataTreeForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> UpdateMetadataTreeWithHttpInfoAsync(string projectId, Guid resourceId, MetadataTreeForUpdateDto? metadataTreeForUpdateDto = default(MetadataTreeForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -738,6 +738,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -784,7 +785,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task ApiV2ProjectsProjectIdResourcesResourceIdTreesOptionsAsync(string projectId, string resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2ProjectsProjectIdResourcesResourceIdTreesOptionsAsync(string projectId, string resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ApiV2ProjectsProjectIdResourcesResourceIdTreesOptionsWithHttpInfoAsync(projectId, resourceId, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -798,7 +799,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2ProjectsProjectIdResourcesResourceIdTreesOptionsWithHttpInfoAsync(string projectId, string resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2ProjectsProjectIdResourcesResourceIdTreesOptionsWithHttpInfoAsync(string projectId, string resourceId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) @@ -908,6 +909,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -956,7 +958,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of MetadataTreeDtoResponse</returns> - public async System.Threading.Tasks.Task<MetadataTreeDtoResponse> CreateExtractedMetadataTreeAsync(string projectId, Guid resourceId, ExtractedMetadataTreeForCreationDto? extractedMetadataTreeForCreationDto = default(ExtractedMetadataTreeForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<MetadataTreeDtoResponse> CreateExtractedMetadataTreeAsync(string projectId, Guid resourceId, ExtractedMetadataTreeForCreationDto? extractedMetadataTreeForCreationDto = default(ExtractedMetadataTreeForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<MetadataTreeDtoResponse> localVarResponse = await CreateExtractedMetadataTreeWithHttpInfoAsync(projectId, resourceId, extractedMetadataTreeForCreationDto, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -972,7 +974,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (MetadataTreeDtoResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<MetadataTreeDtoResponse>> CreateExtractedMetadataTreeWithHttpInfoAsync(string projectId, Guid resourceId, ExtractedMetadataTreeForCreationDto? extractedMetadataTreeForCreationDto = default(ExtractedMetadataTreeForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<MetadataTreeDtoResponse>> CreateExtractedMetadataTreeWithHttpInfoAsync(string projectId, Guid resourceId, ExtractedMetadataTreeForCreationDto? extractedMetadataTreeForCreationDto = default(ExtractedMetadataTreeForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) @@ -1082,6 +1084,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1130,7 +1133,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of MetadataTreeDtoResponse</returns> - public async System.Threading.Tasks.Task<MetadataTreeDtoResponse> CreateMetadataTreeAsync(string projectId, Guid resourceId, MetadataTreeForCreationDto? metadataTreeForCreationDto = default(MetadataTreeForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<MetadataTreeDtoResponse> CreateMetadataTreeAsync(string projectId, Guid resourceId, MetadataTreeForCreationDto? metadataTreeForCreationDto = default(MetadataTreeForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<MetadataTreeDtoResponse> localVarResponse = await CreateMetadataTreeWithHttpInfoAsync(projectId, resourceId, metadataTreeForCreationDto, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1146,7 +1149,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (MetadataTreeDtoResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<MetadataTreeDtoResponse>> CreateMetadataTreeWithHttpInfoAsync(string projectId, Guid resourceId, MetadataTreeForCreationDto? metadataTreeForCreationDto = default(MetadataTreeForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<MetadataTreeDtoResponse>> CreateMetadataTreeWithHttpInfoAsync(string projectId, Guid resourceId, MetadataTreeForCreationDto? metadataTreeForCreationDto = default(MetadataTreeForCreationDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) @@ -1253,6 +1256,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1301,7 +1305,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task DeleteMetadataTreeAsync(string projectId, Guid resourceId, MetadataTreeForDeletionDto? metadataTreeForDeletionDto = default(MetadataTreeForDeletionDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task DeleteMetadataTreeAsync(string projectId, Guid resourceId, MetadataTreeForDeletionDto? metadataTreeForDeletionDto = default(MetadataTreeForDeletionDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await DeleteMetadataTreeWithHttpInfoAsync(projectId, resourceId, metadataTreeForDeletionDto, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -1316,7 +1320,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> DeleteMetadataTreeWithHttpInfoAsync(string projectId, Guid resourceId, MetadataTreeForDeletionDto? metadataTreeForDeletionDto = default(MetadataTreeForDeletionDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> DeleteMetadataTreeWithHttpInfoAsync(string projectId, Guid resourceId, MetadataTreeForDeletionDto? metadataTreeForDeletionDto = default(MetadataTreeForDeletionDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) @@ -1386,7 +1390,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="path">Gets or sets the path of the file tree. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>FileTreeDtoPagedResponse</returns> public FileTreeDtoPagedResponse GetFileTree(string projectId, Guid resourceId, string? path = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -1404,7 +1408,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="path">Gets or sets the path of the file tree. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of FileTreeDtoPagedResponse</returns> public Coscine.ApiClient.Core.Client.ApiResponse<FileTreeDtoPagedResponse> GetFileTreeWithHttpInfo(string projectId, Guid resourceId, string? path = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -1427,6 +1431,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1489,11 +1494,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="path">Gets or sets the path of the file tree. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of FileTreeDtoPagedResponse</returns> - public async System.Threading.Tasks.Task<FileTreeDtoPagedResponse> GetFileTreeAsync(string projectId, Guid resourceId, string? path = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<FileTreeDtoPagedResponse> GetFileTreeAsync(string projectId, Guid resourceId, string? path = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<FileTreeDtoPagedResponse> localVarResponse = await GetFileTreeWithHttpInfoAsync(projectId, resourceId, path, pageNumber, pageSize, orderBy, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1508,11 +1513,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="path">Gets or sets the path of the file tree. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (FileTreeDtoPagedResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<FileTreeDtoPagedResponse>> GetFileTreeWithHttpInfoAsync(string projectId, Guid resourceId, string? path = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<FileTreeDtoPagedResponse>> GetFileTreeWithHttpInfoAsync(string projectId, Guid resourceId, string? path = default(string?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) @@ -1599,7 +1604,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="includeProvenance">Gets or sets if provenance metadata should be included. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>MetadataTreeDtoPagedResponse</returns> public MetadataTreeDtoPagedResponse GetMetadataTree(string projectId, Guid resourceId, string? path = default(string?), RdfFormat? format = default(RdfFormat?), bool? includeExtractedMetadata = default(bool?), bool? includeProvenance = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -1620,7 +1625,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="includeProvenance">Gets or sets if provenance metadata should be included. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of MetadataTreeDtoPagedResponse</returns> public Coscine.ApiClient.Core.Client.ApiResponse<MetadataTreeDtoPagedResponse> GetMetadataTreeWithHttpInfo(string projectId, Guid resourceId, string? path = default(string?), RdfFormat? format = default(RdfFormat?), bool? includeExtractedMetadata = default(bool?), bool? includeProvenance = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -1643,6 +1648,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1720,11 +1726,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="includeProvenance">Gets or sets if provenance metadata should be included. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of MetadataTreeDtoPagedResponse</returns> - public async System.Threading.Tasks.Task<MetadataTreeDtoPagedResponse> GetMetadataTreeAsync(string projectId, Guid resourceId, string? path = default(string?), RdfFormat? format = default(RdfFormat?), bool? includeExtractedMetadata = default(bool?), bool? includeProvenance = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<MetadataTreeDtoPagedResponse> GetMetadataTreeAsync(string projectId, Guid resourceId, string? path = default(string?), RdfFormat? format = default(RdfFormat?), bool? includeExtractedMetadata = default(bool?), bool? includeProvenance = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<MetadataTreeDtoPagedResponse> localVarResponse = await GetMetadataTreeWithHttpInfoAsync(projectId, resourceId, path, format, includeExtractedMetadata, includeProvenance, pageNumber, pageSize, orderBy, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1742,11 +1748,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="includeProvenance">Gets or sets if provenance metadata should be included. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (MetadataTreeDtoPagedResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<MetadataTreeDtoPagedResponse>> GetMetadataTreeWithHttpInfoAsync(string projectId, Guid resourceId, string? path = default(string?), RdfFormat? format = default(RdfFormat?), bool? includeExtractedMetadata = default(bool?), bool? includeProvenance = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<MetadataTreeDtoPagedResponse>> GetMetadataTreeWithHttpInfoAsync(string projectId, Guid resourceId, string? path = default(string?), RdfFormat? format = default(RdfFormat?), bool? includeExtractedMetadata = default(bool?), bool? includeProvenance = default(bool?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) @@ -1891,6 +1897,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1959,7 +1966,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of MetadataTreeDtoResponse</returns> - public async System.Threading.Tasks.Task<MetadataTreeDtoResponse> GetSpecificMetadataTreeAsync(string projectId, Guid resourceId, string path, RdfFormat? format = default(RdfFormat?), bool? includeExtractedMetadata = default(bool?), bool? includeProvenance = default(bool?), int? version = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<MetadataTreeDtoResponse> GetSpecificMetadataTreeAsync(string projectId, Guid resourceId, string path, RdfFormat? format = default(RdfFormat?), bool? includeExtractedMetadata = default(bool?), bool? includeProvenance = default(bool?), int? version = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<MetadataTreeDtoResponse> localVarResponse = await GetSpecificMetadataTreeWithHttpInfoAsync(projectId, resourceId, path, format, includeExtractedMetadata, includeProvenance, version, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1979,7 +1986,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (MetadataTreeDtoResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<MetadataTreeDtoResponse>> GetSpecificMetadataTreeWithHttpInfoAsync(string projectId, Guid resourceId, string path, RdfFormat? format = default(RdfFormat?), bool? includeExtractedMetadata = default(bool?), bool? includeProvenance = default(bool?), int? version = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<MetadataTreeDtoResponse>> GetSpecificMetadataTreeWithHttpInfoAsync(string projectId, Guid resourceId, string path, RdfFormat? format = default(RdfFormat?), bool? includeExtractedMetadata = default(bool?), bool? includeProvenance = default(bool?), int? version = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) @@ -2105,6 +2112,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -2153,7 +2161,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task UpdateExtractedMetadataTreeAsync(string projectId, Guid resourceId, ExtractedMetadataTreeForUpdateDto? extractedMetadataTreeForUpdateDto = default(ExtractedMetadataTreeForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdateExtractedMetadataTreeAsync(string projectId, Guid resourceId, ExtractedMetadataTreeForUpdateDto? extractedMetadataTreeForUpdateDto = default(ExtractedMetadataTreeForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await UpdateExtractedMetadataTreeWithHttpInfoAsync(projectId, resourceId, extractedMetadataTreeForUpdateDto, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -2168,7 +2176,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> UpdateExtractedMetadataTreeWithHttpInfoAsync(string projectId, Guid resourceId, ExtractedMetadataTreeForUpdateDto? extractedMetadataTreeForUpdateDto = default(ExtractedMetadataTreeForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> UpdateExtractedMetadataTreeWithHttpInfoAsync(string projectId, Guid resourceId, ExtractedMetadataTreeForUpdateDto? extractedMetadataTreeForUpdateDto = default(ExtractedMetadataTreeForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) @@ -2273,6 +2281,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -2321,7 +2330,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task UpdateMetadataTreeAsync(string projectId, Guid resourceId, MetadataTreeForUpdateDto? metadataTreeForUpdateDto = default(MetadataTreeForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdateMetadataTreeAsync(string projectId, Guid resourceId, MetadataTreeForUpdateDto? metadataTreeForUpdateDto = default(MetadataTreeForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await UpdateMetadataTreeWithHttpInfoAsync(projectId, resourceId, metadataTreeForUpdateDto, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -2336,7 +2345,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> UpdateMetadataTreeWithHttpInfoAsync(string projectId, Guid resourceId, MetadataTreeForUpdateDto? metadataTreeForUpdateDto = default(MetadataTreeForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> UpdateMetadataTreeWithHttpInfoAsync(string projectId, Guid resourceId, MetadataTreeForUpdateDto? metadataTreeForUpdateDto = default(MetadataTreeForUpdateDto?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'projectId' is set if (projectId == null) diff --git a/src/Coscine.ApiClient.Core/Api/UserApi.cs b/src/Coscine.ApiClient.Core/Api/UserApi.cs index 8eb74e3..974a18d 100644 --- a/src/Coscine.ApiClient.Core/Api/UserApi.cs +++ b/src/Coscine.ApiClient.Core/Api/UserApi.cs @@ -86,7 +86,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task ApiV2UsersOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2UsersOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Responds with the HTTP methods allowed for the endpoint. @@ -98,7 +98,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2UsersOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2UsersOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all users. /// </summary> @@ -111,7 +111,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of PublicUserDtoIEnumerableResponse</returns> - System.Threading.Tasks.Task<PublicUserDtoIEnumerableResponse> GetUsersAsync(string searchTerm, string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<PublicUserDtoIEnumerableResponse> GetUsersAsync(string searchTerm, string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all users. @@ -125,7 +125,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (PublicUserDtoIEnumerableResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<PublicUserDtoIEnumerableResponse>> GetUsersWithHttpInfoAsync(string searchTerm, string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<PublicUserDtoIEnumerableResponse>> GetUsersWithHttpInfoAsync(string searchTerm, string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -275,6 +275,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -317,7 +318,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task ApiV2UsersOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2UsersOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ApiV2UsersOptionsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); } @@ -329,7 +330,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2UsersOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2UsersOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -420,6 +421,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -469,7 +471,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of PublicUserDtoIEnumerableResponse</returns> - public async System.Threading.Tasks.Task<PublicUserDtoIEnumerableResponse> GetUsersAsync(string searchTerm, string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<PublicUserDtoIEnumerableResponse> GetUsersAsync(string searchTerm, string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<PublicUserDtoIEnumerableResponse> localVarResponse = await GetUsersWithHttpInfoAsync(searchTerm, orderBy, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -484,7 +486,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (PublicUserDtoIEnumerableResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<PublicUserDtoIEnumerableResponse>> GetUsersWithHttpInfoAsync(string searchTerm, string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<PublicUserDtoIEnumerableResponse>> GetUsersWithHttpInfoAsync(string searchTerm, string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'searchTerm' is set if (searchTerm == null) diff --git a/src/Coscine.ApiClient.Core/Api/VisibilityApi.cs b/src/Coscine.ApiClient.Core/Api/VisibilityApi.cs index 7c701b5..c034b5d 100644 --- a/src/Coscine.ApiClient.Core/Api/VisibilityApi.cs +++ b/src/Coscine.ApiClient.Core/Api/VisibilityApi.cs @@ -51,7 +51,7 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>VisibilityDtoPagedResponse</returns> VisibilityDtoPagedResponse GetVisibilities(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -65,7 +65,7 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of VisibilityDtoPagedResponse</returns> ApiResponse<VisibilityDtoPagedResponse> GetVisibilitiesWithHttpInfo(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -108,7 +108,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task ApiV2VisibilitiesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2VisibilitiesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Responds with the HTTP methods allowed for the endpoint. @@ -120,7 +120,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2VisibilitiesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2VisibilitiesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all visibilities. /// </summary> @@ -130,11 +130,11 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of VisibilityDtoPagedResponse</returns> - System.Threading.Tasks.Task<VisibilityDtoPagedResponse> GetVisibilitiesAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<VisibilityDtoPagedResponse> GetVisibilitiesAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves all visibilities. @@ -145,11 +145,11 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (VisibilityDtoPagedResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<VisibilityDtoPagedResponse>> GetVisibilitiesWithHttpInfoAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<VisibilityDtoPagedResponse>> GetVisibilitiesWithHttpInfoAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves a visibility by ID. /// </summary> @@ -161,7 +161,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of VisibilityDtoResponse</returns> - System.Threading.Tasks.Task<VisibilityDtoResponse> GetVisibilityAsync(Guid visibilityId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<VisibilityDtoResponse> GetVisibilityAsync(Guid visibilityId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves a visibility by ID. @@ -174,7 +174,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (VisibilityDtoResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<VisibilityDtoResponse>> GetVisibilityWithHttpInfoAsync(Guid visibilityId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<VisibilityDtoResponse>> GetVisibilityWithHttpInfoAsync(Guid visibilityId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -324,6 +324,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -366,7 +367,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task ApiV2VisibilitiesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2VisibilitiesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ApiV2VisibilitiesOptionsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); } @@ -378,7 +379,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2VisibilitiesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2VisibilitiesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -433,7 +434,7 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>VisibilityDtoPagedResponse</returns> public VisibilityDtoPagedResponse GetVisibilities(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -448,7 +449,7 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of VisibilityDtoPagedResponse</returns> public Coscine.ApiClient.Core.Client.ApiResponse<VisibilityDtoPagedResponse> GetVisibilitiesWithHttpInfo(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -465,6 +466,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -518,11 +520,11 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of VisibilityDtoPagedResponse</returns> - public async System.Threading.Tasks.Task<VisibilityDtoPagedResponse> GetVisibilitiesAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<VisibilityDtoPagedResponse> GetVisibilitiesAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<VisibilityDtoPagedResponse> localVarResponse = await GetVisibilitiesWithHttpInfoAsync(pageNumber, pageSize, orderBy, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -534,11 +536,11 @@ namespace Coscine.ApiClient.Core.Api /// <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 \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (VisibilityDtoPagedResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<VisibilityDtoPagedResponse>> GetVisibilitiesWithHttpInfoAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<VisibilityDtoPagedResponse>> GetVisibilitiesWithHttpInfoAsync(int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -635,6 +637,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -679,7 +682,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of VisibilityDtoResponse</returns> - public async System.Threading.Tasks.Task<VisibilityDtoResponse> GetVisibilityAsync(Guid visibilityId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<VisibilityDtoResponse> GetVisibilityAsync(Guid visibilityId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<VisibilityDtoResponse> localVarResponse = await GetVisibilityWithHttpInfoAsync(visibilityId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -693,7 +696,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (VisibilityDtoResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<VisibilityDtoResponse>> GetVisibilityWithHttpInfoAsync(Guid visibilityId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<VisibilityDtoResponse>> GetVisibilityWithHttpInfoAsync(Guid visibilityId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); diff --git a/src/Coscine.ApiClient.Core/Api/VocabularyApi.cs b/src/Coscine.ApiClient.Core/Api/VocabularyApi.cs index a0dae76..cdac339 100644 --- a/src/Coscine.ApiClient.Core/Api/VocabularyApi.cs +++ b/src/Coscine.ApiClient.Core/Api/VocabularyApi.cs @@ -53,7 +53,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="language">Gets or sets the language for which the vocabularies are requested. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>VocabularyDtoPagedResponse</returns> VocabularyDtoPagedResponse GetVocabularies(string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -69,7 +69,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="language">Gets or sets the language for which the vocabularies are requested. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of VocabularyDtoPagedResponse</returns> ApiResponse<VocabularyDtoPagedResponse> GetVocabulariesWithHttpInfo(string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -107,7 +107,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="language">Gets or sets the language for which the vocabulary instances are requested. (optional)</param> /// <param name="pageSize">Number of items per page. The maximum number of items per page is `150`. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>VocabularyInstanceDtoPagedResponse</returns> VocabularyInstanceDtoPagedResponse GetVocabularyInstances(string varClass, string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), int? pageSize = default(int?), int? pageNumber = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -124,7 +124,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="language">Gets or sets the language for which the vocabulary instances are requested. (optional)</param> /// <param name="pageSize">Number of items per page. The maximum number of items per page is `150`. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of VocabularyInstanceDtoPagedResponse</returns> ApiResponse<VocabularyInstanceDtoPagedResponse> GetVocabularyInstancesWithHttpInfo(string varClass, string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), int? pageSize = default(int?), int? pageNumber = default(int?), string? orderBy = default(string?), int operationIndex = 0); @@ -147,7 +147,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - System.Threading.Tasks.Task ApiV2VocabulariesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2VocabulariesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Responds with the HTTP methods allowed for the endpoint. @@ -159,7 +159,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2VocabulariesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<Object>> ApiV2VocabulariesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves top-level instances from vocabularies. /// </summary> @@ -171,11 +171,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="language">Gets or sets the language for which the vocabularies are requested. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of VocabularyDtoPagedResponse</returns> - System.Threading.Tasks.Task<VocabularyDtoPagedResponse> GetVocabulariesAsync(string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<VocabularyDtoPagedResponse> GetVocabulariesAsync(string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves top-level instances from vocabularies. @@ -188,11 +188,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="language">Gets or sets the language for which the vocabularies are requested. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (VocabularyDtoPagedResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<VocabularyDtoPagedResponse>> GetVocabulariesWithHttpInfoAsync(string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<VocabularyDtoPagedResponse>> GetVocabulariesWithHttpInfoAsync(string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves a single instance from a vocabulary. /// </summary> @@ -205,7 +205,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of VocabularyInstanceDtoResponse</returns> - System.Threading.Tasks.Task<VocabularyInstanceDtoResponse> GetVocabularyInstanceAsync(string instance, AcceptedLanguage? acceptLanguage = default(AcceptedLanguage?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<VocabularyInstanceDtoResponse> GetVocabularyInstanceAsync(string instance, AcceptedLanguage? acceptLanguage = default(AcceptedLanguage?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves a single instance from a vocabulary. @@ -219,7 +219,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (VocabularyInstanceDtoResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<VocabularyInstanceDtoResponse>> GetVocabularyInstanceWithHttpInfoAsync(string instance, AcceptedLanguage? acceptLanguage = default(AcceptedLanguage?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task<ApiResponse<VocabularyInstanceDtoResponse>> GetVocabularyInstanceWithHttpInfoAsync(string instance, AcceptedLanguage? acceptLanguage = default(AcceptedLanguage?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves vocabulary instances. /// </summary> @@ -232,11 +232,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="language">Gets or sets the language for which the vocabulary instances are requested. (optional)</param> /// <param name="pageSize">Number of items per page. The maximum number of items per page is `150`. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of VocabularyInstanceDtoPagedResponse</returns> - System.Threading.Tasks.Task<VocabularyInstanceDtoPagedResponse> GetVocabularyInstancesAsync(string varClass, string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), 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<VocabularyInstanceDtoPagedResponse> GetVocabularyInstancesAsync(string varClass, string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), int? pageSize = default(int?), int? pageNumber = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Retrieves vocabulary instances. @@ -250,11 +250,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="language">Gets or sets the language for which the vocabulary instances are requested. (optional)</param> /// <param name="pageSize">Number of items per page. The maximum number of items per page is `150`. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (VocabularyInstanceDtoPagedResponse)</returns> - System.Threading.Tasks.Task<ApiResponse<VocabularyInstanceDtoPagedResponse>> GetVocabularyInstancesWithHttpInfoAsync(string varClass, string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), 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<VocabularyInstanceDtoPagedResponse>> GetVocabularyInstancesWithHttpInfoAsync(string varClass, string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), int? pageSize = default(int?), int? pageNumber = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -404,6 +404,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -446,7 +447,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of void</returns> - public async System.Threading.Tasks.Task ApiV2VocabulariesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2VocabulariesOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await ApiV2VocabulariesOptionsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); } @@ -458,7 +459,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2VocabulariesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<Object>> ApiV2VocabulariesOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -515,7 +516,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="language">Gets or sets the language for which the vocabularies are requested. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>VocabularyDtoPagedResponse</returns> public VocabularyDtoPagedResponse GetVocabularies(string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -532,7 +533,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="language">Gets or sets the language for which the vocabularies are requested. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of VocabularyDtoPagedResponse</returns> public Coscine.ApiClient.Core.Client.ApiResponse<VocabularyDtoPagedResponse> GetVocabulariesWithHttpInfo(string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -549,6 +550,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -612,11 +614,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="language">Gets or sets the language for which the vocabularies are requested. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of VocabularyDtoPagedResponse</returns> - public async System.Threading.Tasks.Task<VocabularyDtoPagedResponse> GetVocabulariesAsync(string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<VocabularyDtoPagedResponse> GetVocabulariesAsync(string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<VocabularyDtoPagedResponse> localVarResponse = await GetVocabulariesWithHttpInfoAsync(searchTerm, language, pageNumber, pageSize, orderBy, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -630,11 +632,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="language">Gets or sets the language for which the vocabularies are requested. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> /// <param name="pageSize">The desired page size. Should be between 1 and the maximum allowed page size (50). Default is 10. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (VocabularyDtoPagedResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<VocabularyDtoPagedResponse>> GetVocabulariesWithHttpInfoAsync(string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<VocabularyDtoPagedResponse>> GetVocabulariesWithHttpInfoAsync(string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), int? pageNumber = default(int?), int? pageSize = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.RequestOptions localVarRequestOptions = new Coscine.ApiClient.Core.Client.RequestOptions(); @@ -747,6 +749,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -796,7 +799,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of VocabularyInstanceDtoResponse</returns> - public async System.Threading.Tasks.Task<VocabularyInstanceDtoResponse> GetVocabularyInstanceAsync(string instance, AcceptedLanguage? acceptLanguage = default(AcceptedLanguage?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<VocabularyInstanceDtoResponse> GetVocabularyInstanceAsync(string instance, AcceptedLanguage? acceptLanguage = default(AcceptedLanguage?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<VocabularyInstanceDtoResponse> localVarResponse = await GetVocabularyInstanceWithHttpInfoAsync(instance, acceptLanguage, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -811,7 +814,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (VocabularyInstanceDtoResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<VocabularyInstanceDtoResponse>> GetVocabularyInstanceWithHttpInfoAsync(string instance, AcceptedLanguage? acceptLanguage = default(AcceptedLanguage?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<VocabularyInstanceDtoResponse>> GetVocabularyInstanceWithHttpInfoAsync(string instance, AcceptedLanguage? acceptLanguage = default(AcceptedLanguage?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'instance' is set if (instance == null) @@ -882,7 +885,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="language">Gets or sets the language for which the vocabulary instances are requested. (optional)</param> /// <param name="pageSize">Number of items per page. The maximum number of items per page is `150`. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>VocabularyInstanceDtoPagedResponse</returns> public VocabularyInstanceDtoPagedResponse GetVocabularyInstances(string varClass, string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), int? pageSize = default(int?), int? pageNumber = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -900,7 +903,7 @@ namespace Coscine.ApiClient.Core.Api /// <param name="language">Gets or sets the language for which the vocabulary instances are requested. (optional)</param> /// <param name="pageSize">Number of items per page. The maximum number of items per page is `150`. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <returns>ApiResponse of VocabularyInstanceDtoPagedResponse</returns> public Coscine.ApiClient.Core.Client.ApiResponse<VocabularyInstanceDtoPagedResponse> GetVocabularyInstancesWithHttpInfo(string varClass, string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), int? pageSize = default(int?), int? pageNumber = default(int?), string? orderBy = default(string?), int operationIndex = 0) @@ -923,6 +926,7 @@ namespace Coscine.ApiClient.Core.Api }; var localVarContentType = Coscine.ApiClient.Core.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -988,11 +992,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="language">Gets or sets the language for which the vocabulary instances are requested. (optional)</param> /// <param name="pageSize">Number of items per page. The maximum number of items per page is `150`. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of VocabularyInstanceDtoPagedResponse</returns> - public async System.Threading.Tasks.Task<VocabularyInstanceDtoPagedResponse> GetVocabularyInstancesAsync(string varClass, string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), int? pageSize = default(int?), int? pageNumber = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<VocabularyInstanceDtoPagedResponse> GetVocabularyInstancesAsync(string varClass, string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), int? pageSize = default(int?), int? pageNumber = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Coscine.ApiClient.Core.Client.ApiResponse<VocabularyInstanceDtoPagedResponse> localVarResponse = await GetVocabularyInstancesWithHttpInfoAsync(varClass, searchTerm, language, pageSize, pageNumber, orderBy, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1007,11 +1011,11 @@ namespace Coscine.ApiClient.Core.Api /// <param name="language">Gets or sets the language for which the vocabulary instances are requested. (optional)</param> /// <param name="pageSize">Number of items per page. The maximum number of items per page is `150`. (optional)</param> /// <param name="pageNumber">The desired page number. Should be greater than or equal to 1. Default is 1. (optional)</param> - /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by a order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> + /// <param name="orderBy">Gets or sets the field name used for ordering the results. The order is constructed by an order string. Use the property followed by \"asc\" or \"desc\" and separate properties by commas. Default is asc. (optional)</param> /// <param name="operationIndex">Index associated with the operation.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (VocabularyInstanceDtoPagedResponse)</returns> - public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<VocabularyInstanceDtoPagedResponse>> GetVocabularyInstancesWithHttpInfoAsync(string varClass, string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), int? pageSize = default(int?), int? pageNumber = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<Coscine.ApiClient.Core.Client.ApiResponse<VocabularyInstanceDtoPagedResponse>> GetVocabularyInstancesWithHttpInfoAsync(string varClass, string? searchTerm = default(string?), AcceptedLanguage? language = default(AcceptedLanguage?), int? pageSize = default(int?), int? pageNumber = default(int?), string? orderBy = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'varClass' is set if (varClass == null) diff --git a/src/Coscine.ApiClient.Core/Client/ApiClient.cs b/src/Coscine.ApiClient.Core/Client/ApiClient.cs index 7839021..184a3f2 100644 --- a/src/Coscine.ApiClient.Core/Client/ApiClient.cs +++ b/src/Coscine.ApiClient.Core/Client/ApiClient.cs @@ -110,7 +110,7 @@ namespace Coscine.ApiClient.Core.Client if (response.Headers != null) { var filePath = string.IsNullOrEmpty(_configuration.TempFolderPath) - ? Path.GetTempPath() + ? global::System.IO.Path.GetTempPath() : _configuration.TempFolderPath; var regex = new Regex(@"Content-Disposition=.*filename=['""]?([^'""\s]+)['""]?$"); foreach (var header in response.Headers) @@ -317,7 +317,7 @@ namespace Coscine.ApiClient.Core.Client { foreach (var value in headerParam.Value) { - request.AddHeader(headerParam.Key, value); + request.AddOrUpdateHeader(headerParam.Key, value); } } } @@ -377,13 +377,21 @@ namespace Coscine.ApiClient.Core.Client var bytes = ClientUtils.ReadAsBytes(file); var fileStream = file as FileStream; if (fileStream != null) - request.AddFile(fileParam.Key, bytes, Path.GetFileName(fileStream.Name)); + request.AddFile(fileParam.Key, bytes, global::System.IO.Path.GetFileName(fileStream.Name)); else request.AddFile(fileParam.Key, bytes, "no_file_name_provided"); } } } + if (options.HeaderParameters != null) + { + if (options.HeaderParameters.TryGetValue("Content-Type", out var contentTypes) && contentTypes.Any(header => header.Contains("multipart/form-data"))) + { + request.AlwaysMultipartFormData = true; + } + } + return request; } @@ -449,14 +457,13 @@ namespace Coscine.ApiClient.Core.Client /// <param name="configuration">A per-request configuration object. /// It is assumed that any merge with GlobalConfiguration has been done before calling this method.</param> /// <returns>A new ApiResponse instance.</returns> - private ApiResponse<T> ExecClient<T>(Func<RestClient, RestResponse<T>> getResponse, Action<RestClientOptions> setOptions, RestRequest request, RequestOptions options, IReadableConfiguration configuration) + private async Task<ApiResponse<T>> ExecClientAsync<T>(Func<RestClient, Task<RestResponse<T>>> getResponse, Action<RestClientOptions> setOptions, RestRequest request, RequestOptions options, IReadableConfiguration configuration) { var baseUrl = configuration.GetOperationServerUrl(options.Operation, options.OperationIndex) ?? _baseUrl; - var clientOptions = new RestClientOptions(baseUrl) { ClientCertificates = configuration.ClientCertificates, - MaxTimeout = configuration.Timeout, + Timeout = configuration.Timeout, Proxy = configuration.Proxy, UserAgent = configuration.UserAgent, UseDefaultCredentials = configuration.UseDefaultCredentials, @@ -469,7 +476,7 @@ namespace Coscine.ApiClient.Core.Client { InterceptRequest(request); - RestResponse<T> response = getResponse(client); + RestResponse<T> response = await getResponse(client); // if the response type is oneOf/anyOf, call FromJSON to deserialize the data if (typeof(AbstractOpenAPISchema).IsAssignableFrom(typeof(T))) @@ -534,11 +541,11 @@ namespace Coscine.ApiClient.Core.Client } } - private RestResponse<T> DeserializeRestResponseFromPolicy<T>(RestClient client, RestRequest request, PolicyResult<RestResponse> policyResult) + private async Task<RestResponse<T>> DeserializeRestResponseFromPolicyAsync<T>(RestClient client, RestRequest request, PolicyResult<RestResponse> policyResult, CancellationToken cancellationToken = default) { if (policyResult.Outcome == OutcomeType.Successful) { - return client.Deserialize<T>(policyResult.Result); + return await client.Deserialize<T>(policyResult.Result, cancellationToken); } else { @@ -565,21 +572,21 @@ namespace Coscine.ApiClient.Core.Client clientOptions.CookieContainer = cookies; }; - Func<RestClient, RestResponse<T>> getResponse = (client) => + Func<RestClient, Task<RestResponse<T>>> getResponse = (client) => { if (RetryConfiguration.RetryPolicy != null) { var policy = RetryConfiguration.RetryPolicy; var policyResult = policy.ExecuteAndCapture(() => client.Execute(request)); - return DeserializeRestResponseFromPolicy<T>(client, request, policyResult); + return DeserializeRestResponseFromPolicyAsync<T>(client, request, policyResult); } else { - return client.Execute<T>(request); + return Task.FromResult(client.Execute<T>(request)); } }; - return ExecClient(getResponse, setOptions, request, options, configuration); + return ExecClientAsync(getResponse, setOptions, request, options, configuration).GetAwaiter().GetResult(); } private Task<ApiResponse<T>> ExecAsync<T>(RestRequest request, RequestOptions options, IReadableConfiguration configuration, CancellationToken cancellationToken = default(CancellationToken)) @@ -589,25 +596,21 @@ namespace Coscine.ApiClient.Core.Client //no extra options }; - Func<RestClient, RestResponse<T>> getResponse = (client) => + Func<RestClient, Task<RestResponse<T>>> getResponse = async (client) => { - Func<Task<RestResponse<T>>> action = async () => + if (RetryConfiguration.AsyncRetryPolicy != null) { - if (RetryConfiguration.AsyncRetryPolicy != null) - { - var policy = RetryConfiguration.AsyncRetryPolicy; - var policyResult = await policy.ExecuteAndCaptureAsync((ct) => client.ExecuteAsync(request, ct), cancellationToken).ConfigureAwait(false); - return DeserializeRestResponseFromPolicy<T>(client, request, policyResult); - } - else - { - return await client.ExecuteAsync<T>(request, cancellationToken).ConfigureAwait(false); - } - }; - return action().Result; + var policy = RetryConfiguration.AsyncRetryPolicy; + var policyResult = await policy.ExecuteAndCaptureAsync((ct) => client.ExecuteAsync(request, ct), cancellationToken).ConfigureAwait(false); + return await DeserializeRestResponseFromPolicyAsync<T>(client, request, policyResult, cancellationToken); + } + else + { + return await client.ExecuteAsync<T>(request, cancellationToken).ConfigureAwait(false); + } }; - return Task.FromResult<ApiResponse<T>>(ExecClient(getResponse, setOptions, request, options, configuration)); + return ExecClientAsync(getResponse, setOptions, request, options, configuration); } #region IAsynchronousClient diff --git a/src/Coscine.ApiClient.Core/Client/ClientUtils.cs b/src/Coscine.ApiClient.Core/Client/ClientUtils.cs index 494f10c..a0b0d14 100644 --- a/src/Coscine.ApiClient.Core/Client/ClientUtils.cs +++ b/src/Coscine.ApiClient.Core/Client/ClientUtils.cs @@ -101,6 +101,12 @@ namespace Coscine.ApiClient.Core.Client // https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 // For example: 2009-06-15T13:45:30.0000000 return dateTimeOffset.ToString((configuration ?? GlobalConfiguration.Instance).DateTimeFormat); + if (obj is DateOnly dateOnly) + // Return a formatted date string - Can be customized with Configuration.DateTimeFormat + // Defaults to an ISO 8601, using the known as a Round-trip date/time pattern ("o") + // https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 + // For example: 2009-06-15 + return dateOnly.ToString((configuration ?? GlobalConfiguration.Instance).DateTimeFormat); if (obj is bool boolean) return boolean ? "true" : "false"; if (obj is ICollection collection) { @@ -132,7 +138,7 @@ namespace Coscine.ApiClient.Core.Client /// <returns>Encoded string.</returns> public static string Base64Encode(string text) { - return Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(text)); + return Convert.ToBase64String(global::System.Text.Encoding.UTF8.GetBytes(text)); } /// <summary> diff --git a/src/Coscine.ApiClient.Core/Client/Configuration.cs b/src/Coscine.ApiClient.Core/Client/Configuration.cs index 63c416a..72a9991 100644 --- a/src/Coscine.ApiClient.Core/Client/Configuration.cs +++ b/src/Coscine.ApiClient.Core/Client/Configuration.cs @@ -114,7 +114,7 @@ namespace Coscine.ApiClient.Core.Client /// <summary> /// Initializes a new instance of the <see cref="Configuration" /> class /// </summary> - [System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")] + [global::System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")] public Configuration() { Proxy = null; @@ -137,13 +137,13 @@ namespace Coscine.ApiClient.Core.Client }; // Setting Timeout has side effects (forces ApiClient creation). - Timeout = 100000; + Timeout = TimeSpan.FromSeconds(100); } /// <summary> /// Initializes a new instance of the <see cref="Configuration" /> class /// </summary> - [System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")] + [global::System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")] public Configuration( IDictionary<string, string> defaultHeaders, IDictionary<string, string> apiKey, @@ -221,9 +221,9 @@ namespace Coscine.ApiClient.Core.Client public virtual IDictionary<string, string> DefaultHeaders { get; set; } /// <summary> - /// Gets or sets the HTTP timeout (milliseconds) of ApiClient. Default to 100000 milliseconds. + /// Gets or sets the HTTP timeout of ApiClient. Defaults to 100 seconds. /// </summary> - public virtual int Timeout { get; set; } + public virtual TimeSpan Timeout { get; set; } /// <summary> /// Gets or sets the proxy diff --git a/src/Coscine.ApiClient.Core/Client/IAsynchronousClient.cs b/src/Coscine.ApiClient.Core/Client/IAsynchronousClient.cs index 0f54256..d45cbb0 100644 --- a/src/Coscine.ApiClient.Core/Client/IAsynchronousClient.cs +++ b/src/Coscine.ApiClient.Core/Client/IAsynchronousClient.cs @@ -30,7 +30,7 @@ namespace Coscine.ApiClient.Core.Client /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <typeparam name="T">The return type.</typeparam> /// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns> - Task<ApiResponse<T>> GetAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task<ApiResponse<T>> GetAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Executes a non-blocking call to some <paramref name="path"/> using the POST http verb. @@ -41,7 +41,7 @@ namespace Coscine.ApiClient.Core.Client /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <typeparam name="T">The return type.</typeparam> /// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns> - Task<ApiResponse<T>> PostAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task<ApiResponse<T>> PostAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Executes a non-blocking call to some <paramref name="path"/> using the PUT http verb. @@ -52,7 +52,7 @@ namespace Coscine.ApiClient.Core.Client /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <typeparam name="T">The return type.</typeparam> /// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns> - Task<ApiResponse<T>> PutAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task<ApiResponse<T>> PutAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Executes a non-blocking call to some <paramref name="path"/> using the DELETE http verb. @@ -63,7 +63,7 @@ namespace Coscine.ApiClient.Core.Client /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <typeparam name="T">The return type.</typeparam> /// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns> - Task<ApiResponse<T>> DeleteAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task<ApiResponse<T>> DeleteAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Executes a non-blocking call to some <paramref name="path"/> using the HEAD http verb. @@ -74,7 +74,7 @@ namespace Coscine.ApiClient.Core.Client /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <typeparam name="T">The return type.</typeparam> /// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns> - Task<ApiResponse<T>> HeadAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task<ApiResponse<T>> HeadAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Executes a non-blocking call to some <paramref name="path"/> using the OPTIONS http verb. @@ -85,7 +85,7 @@ namespace Coscine.ApiClient.Core.Client /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <typeparam name="T">The return type.</typeparam> /// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns> - Task<ApiResponse<T>> OptionsAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task<ApiResponse<T>> OptionsAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// <summary> /// Executes a non-blocking call to some <paramref name="path"/> using the PATCH http verb. @@ -96,6 +96,6 @@ namespace Coscine.ApiClient.Core.Client /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <typeparam name="T">The return type.</typeparam> /// <returns>A task eventually representing the response data, decorated with <see cref="ApiResponse{T}"/></returns> - Task<ApiResponse<T>> PatchAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task<ApiResponse<T>> PatchAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); } } diff --git a/src/Coscine.ApiClient.Core/Client/IReadableConfiguration.cs b/src/Coscine.ApiClient.Core/Client/IReadableConfiguration.cs index 6a4b5aa..3fed992 100644 --- a/src/Coscine.ApiClient.Core/Client/IReadableConfiguration.cs +++ b/src/Coscine.ApiClient.Core/Client/IReadableConfiguration.cs @@ -72,10 +72,10 @@ namespace Coscine.ApiClient.Core.Client string TempFolderPath { get; } /// <summary> - /// Gets the HTTP connection timeout (in milliseconds) + /// Gets the HTTP connection timeout. /// </summary> /// <value>HTTP connection timeout.</value> - int Timeout { get; } + TimeSpan Timeout { get; } /// <summary> /// Gets the proxy. diff --git a/src/Coscine.ApiClient.Core/Coscine.ApiClient.Core.csproj b/src/Coscine.ApiClient.Core/Coscine.ApiClient.Core.csproj index 58501ed..c006efb 100644 --- a/src/Coscine.ApiClient.Core/Coscine.ApiClient.Core.csproj +++ b/src/Coscine.ApiClient.Core/Coscine.ApiClient.Core.csproj @@ -12,7 +12,7 @@ <Description>A library generated from a OpenAPI doc</Description> <Copyright>No Copyright</Copyright> <RootNamespace>Coscine.ApiClient.Core</RootNamespace> - <Version>1.9.4</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> @@ -24,7 +24,7 @@ <ItemGroup> <PackageReference Include="JsonSubTypes" Version="2.0.1" /> <PackageReference Include="Newtonsoft.Json" Version="13.0.3" /> - <PackageReference Include="RestSharp" Version="110.2.0" /> + <PackageReference Include="RestSharp" Version="112.0.0" /> <PackageReference Include="Polly" Version="8.1.0" /> </ItemGroup> diff --git a/src/Coscine.ApiClient.Core/Model/FileSystemStorageOptionsDto.cs b/src/Coscine.ApiClient.Core/Model/FileSystemStorageOptionsDto.cs new file mode 100644 index 0000000..53cbca2 --- /dev/null +++ b/src/Coscine.ApiClient.Core/Model/FileSystemStorageOptionsDto.cs @@ -0,0 +1,94 @@ +/* + * Coscine Web API + * + * Coscine (short for <b>CO</b>llaborative <b>SC</b>ientific <b>IN</b>tegration <b>E</b>nvironment) is the research data management platform for your research project. + * + * The version of the OpenAPI document: 2.0 + * Contact: servicedesk@itc.rwth-aachen.de + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.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 the data transfer object (DTO) for FileSystemStorage options. + /// </summary> + [DataContract(Name = "FileSystemStorageOptionsDto")] + public partial class FileSystemStorageOptionsDto : IValidatableObject + { + /// <summary> + /// Initializes a new instance of the <see cref="FileSystemStorageOptionsDto" /> class. + /// </summary> + [JsonConstructorAttribute] + protected FileSystemStorageOptionsDto() { } + /// <summary> + /// Initializes a new instance of the <see cref="FileSystemStorageOptionsDto" /> class. + /// </summary> + /// <param name="directory">The directory where the files are stored. (required).</param> + public FileSystemStorageOptionsDto(string directory = default(string)) + { + // to ensure "directory" is required (not null) + if (directory == null) + { + throw new ArgumentNullException("directory is a required property for FileSystemStorageOptionsDto and cannot be null"); + } + this.Directory = directory; + } + + /// <summary> + /// The directory where the files are stored. + /// </summary> + /// <value>The directory where the files are stored.</value> + [DataMember(Name = "directory", IsRequired = true, EmitDefaultValue = true)] + public string Directory { 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 FileSystemStorageOptionsDto {\n"); + sb.Append(" Directory: ").Append(Directory).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> + /// To validate all properties of the instance + /// </summary> + /// <param name="validationContext">Validation context</param> + /// <returns>Validation Result</returns> + IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/Coscine.ApiClient.Core/Model/QuotaUnit.cs b/src/Coscine.ApiClient.Core/Model/QuotaUnit.cs index 2286528..30cc5c2 100644 --- a/src/Coscine.ApiClient.Core/Model/QuotaUnit.cs +++ b/src/Coscine.ApiClient.Core/Model/QuotaUnit.cs @@ -34,40 +34,40 @@ namespace Coscine.ApiClient.Core.Model public enum QuotaUnit { /// <summary> - /// Enum BYTE for value: https://qudt.org/vocab/unit/BYTE + /// Enum HttpsQudtOrgVocabUnitBYTE for value: https://qudt.org/vocab/unit/BYTE /// </summary> [EnumMember(Value = "https://qudt.org/vocab/unit/BYTE")] - BYTE = 1, + HttpsQudtOrgVocabUnitBYTE = 1, /// <summary> - /// Enum KibiBYTE for value: https://qudt.org/vocab/unit/KibiBYTE + /// Enum HttpsQudtOrgVocabUnitKibiBYTE for value: https://qudt.org/vocab/unit/KibiBYTE /// </summary> [EnumMember(Value = "https://qudt.org/vocab/unit/KibiBYTE")] - KibiBYTE = 2, + HttpsQudtOrgVocabUnitKibiBYTE = 2, /// <summary> - /// Enum MebiBYTE for value: https://qudt.org/vocab/unit/MebiBYTE + /// Enum HttpsQudtOrgVocabUnitMebiBYTE for value: https://qudt.org/vocab/unit/MebiBYTE /// </summary> [EnumMember(Value = "https://qudt.org/vocab/unit/MebiBYTE")] - MebiBYTE = 3, + HttpsQudtOrgVocabUnitMebiBYTE = 3, /// <summary> - /// Enum GibiBYTE for value: https://qudt.org/vocab/unit/GibiBYTE + /// Enum HttpsQudtOrgVocabUnitGibiBYTE for value: https://qudt.org/vocab/unit/GibiBYTE /// </summary> [EnumMember(Value = "https://qudt.org/vocab/unit/GibiBYTE")] - GibiBYTE = 4, + HttpsQudtOrgVocabUnitGibiBYTE = 4, /// <summary> - /// Enum TebiBYTE for value: https://qudt.org/vocab/unit/TebiBYTE + /// Enum HttpsQudtOrgVocabUnitTebiBYTE for value: https://qudt.org/vocab/unit/TebiBYTE /// </summary> [EnumMember(Value = "https://qudt.org/vocab/unit/TebiBYTE")] - TebiBYTE = 5, + HttpsQudtOrgVocabUnitTebiBYTE = 5, /// <summary> - /// Enum PebiBYTE for value: https://qudt.org/vocab/unit/PebiBYTE + /// Enum HttpsQudtOrgVocabUnitPebiBYTE for value: https://qudt.org/vocab/unit/PebiBYTE /// </summary> [EnumMember(Value = "https://qudt.org/vocab/unit/PebiBYTE")] - PebiBYTE = 6 + HttpsQudtOrgVocabUnitPebiBYTE = 6 } } diff --git a/src/Coscine.ApiClient.Core/Model/ResourceTypeOptionsDto.cs b/src/Coscine.ApiClient.Core/Model/ResourceTypeOptionsDto.cs index db64d13..374d27a 100644 --- a/src/Coscine.ApiClient.Core/Model/ResourceTypeOptionsDto.cs +++ b/src/Coscine.ApiClient.Core/Model/ResourceTypeOptionsDto.cs @@ -40,13 +40,15 @@ namespace Coscine.ApiClient.Core.Model /// <param name="rds">rds.</param> /// <param name="rdsS3">rdsS3.</param> /// <param name="rdsS3Worm">rdsS3Worm.</param> - public ResourceTypeOptionsDto(Object linkedData = default(Object), GitLabOptionsDto gitLab = default(GitLabOptionsDto), RdsOptionsDto rds = default(RdsOptionsDto), RdsS3OptionsDto rdsS3 = default(RdsS3OptionsDto), RdsS3WormOptionsDto rdsS3Worm = default(RdsS3WormOptionsDto)) + /// <param name="fileSystemStorage">fileSystemStorage.</param> + public ResourceTypeOptionsDto(Object linkedData = default(Object), GitLabOptionsDto gitLab = default(GitLabOptionsDto), RdsOptionsDto rds = default(RdsOptionsDto), RdsS3OptionsDto rdsS3 = default(RdsS3OptionsDto), RdsS3WormOptionsDto rdsS3Worm = default(RdsS3WormOptionsDto), FileSystemStorageOptionsDto fileSystemStorage = default(FileSystemStorageOptionsDto)) { this.LinkedData = linkedData; this.GitLab = gitLab; this.Rds = rds; this.RdsS3 = rdsS3; this.RdsS3Worm = rdsS3Worm; + this.FileSystemStorage = fileSystemStorage; } /// <summary> @@ -80,6 +82,12 @@ namespace Coscine.ApiClient.Core.Model [DataMember(Name = "rdsS3Worm", EmitDefaultValue = false)] public RdsS3WormOptionsDto RdsS3Worm { get; set; } + /// <summary> + /// Gets or Sets FileSystemStorage + /// </summary> + [DataMember(Name = "fileSystemStorage", EmitDefaultValue = false)] + public FileSystemStorageOptionsDto FileSystemStorage { get; set; } + /// <summary> /// Returns the string presentation of the object /// </summary> @@ -93,6 +101,7 @@ namespace Coscine.ApiClient.Core.Model sb.Append(" Rds: ").Append(Rds).Append("\n"); sb.Append(" RdsS3: ").Append(RdsS3).Append("\n"); sb.Append(" RdsS3Worm: ").Append(RdsS3Worm).Append("\n"); + sb.Append(" FileSystemStorage: ").Append(FileSystemStorage).Append("\n"); sb.Append("}\n"); return sb.ToString(); } -- GitLab