Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion sdks/dotnet/.github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
dotnet-version: |
8.0.x
10.0.x

- name: Restore dependencies
run: dotnet restore ${SOLUTION}.sln
Expand Down
5 changes: 4 additions & 1 deletion sdks/dotnet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ This C# SDK is automatically generated by the [OpenAPI Generator](https://openap

- API version: 3.0.0
- SDK version: 2.2-dev
- Generator version: 7.12.0
- Generator version: 7.26.0
- Build package: org.openapitools.codegen.languages.CSharpClientCodegen

### Building
Expand All @@ -45,6 +45,9 @@ this command.

<a id="frameworks-supported"></a>
## Frameworks supported
- .NET 8.0 or later (the package includes `net8.0` and `net10.0` builds)

Building the SDK from source works with the .NET 8 SDK (`net8.0` build) or the .NET 10 SDK (`net8.0` and `net10.0` builds).

<a id="dependencies"></a>
## Dependencies
Expand Down
2 changes: 1 addition & 1 deletion sdks/dotnet/bin/dotnet
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ docker run --rm \
-v "${ROOT_DIR}:${WORKING_DIR}" \
-w "${WORKING_DIR}" \
-u root:root \
mcr.microsoft.com/dotnet/sdk:8.0 "$@"
"${DOTNET_IMAGE:-mcr.microsoft.com/dotnet/sdk:10.0}" "$@"
2 changes: 1 addition & 1 deletion sdks/dotnet/openapi-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ additionalProperties:
packageTitle: Dropbox Sign .Net SDK
sortModelPropertiesByRequiredFlag: true
optionalEmitDefaultValues: true
targetFramework: net8.0
targetFramework: net8.0;net10.0
library: restsharp
packageGuid: "{F8C8232D-7020-4603-8E04-18D060AE530B}"
legacyDiscriminatorBehavior: true
Expand Down
11 changes: 7 additions & 4 deletions sdks/dotnet/run-build
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

# see https://github.com/OpenAPITools/openapi-generator/tree/v7.12.0/modules/openapi-generator/src/main/resources/csharp
# see https://github.com/OpenAPITools/openapi-generator/tree/v7.26.0/modules/openapi-generator/src/main/resources/csharp

set -e

Expand All @@ -18,7 +18,7 @@ rm -f "${DIR}/src/Dropbox.Sign/Model/"*.cs

docker run --rm \
-v "${DIR}/:/local" \
openapitools/openapi-generator-cli:v7.12.0 generate \
openapitools/openapi-generator-cli:v7.26.0 generate \
-i "/local/openapi-sdk.yaml" \
-c "/local/openapi-config.yaml" \
-t "/local/templates" \
Expand Down Expand Up @@ -58,7 +58,10 @@ if [[ -z "$GITHUB_ACTIONS" ]]; then
find "${DIR}/src/" -type f -exec chmod 644 {} \;
fi

printf "Running tests ...\n"
bash "${DIR}/bin/dotnet" dotnet test src/Dropbox.Sign.Test/
printf "Running tests (net10.0) ...\n"
bash "${DIR}/bin/dotnet" dotnet test src/Dropbox.Sign.Test/ -f net10.0

printf "Running tests (net8.0) ...\n"
DOTNET_IMAGE="mcr.microsoft.com/dotnet/sdk:8.0" bash "${DIR}/bin/dotnet" dotnet test src/Dropbox.Sign.Test/ -p:TargetFrameworks=net8.0

printf "Success!\n"
3 changes: 2 additions & 1 deletion sdks/dotnet/src/Dropbox.Sign.Test/Dropbox.Sign.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
<PropertyGroup>
<AssemblyName>Dropbox.Sign.Test</AssemblyName>
<RootNamespace>Dropbox.Sign.Test</RootNamespace>
<TargetFramework>net8.0</TargetFramework>
<TargetFrameworks>net8.0</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::VersionGreaterThanOrEquals('$(NETCoreSdkVersion)', '10.0'))">net8.0;net10.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<PackageId>Dropbox.Sign.Test</PackageId>
</PropertyGroup>
Expand Down
40 changes: 20 additions & 20 deletions sdks/dotnet/src/Dropbox.Sign/Api/AccountApi.cs

Large diffs are not rendered by default.

48 changes: 24 additions & 24 deletions sdks/dotnet/src/Dropbox.Sign/Api/ApiAppApi.cs

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions sdks/dotnet/src/Dropbox.Sign/Api/BulkSendJobApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public interface IBulkSendJobApiSync : IApiAccessor
/// <param name="pageSize">Number of objects to be returned per page. Must be between &#x60;1&#x60; and &#x60;100&#x60;. Default is 20. (optional, default to 20)</param>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>BulkSendJobGetResponse</returns>
BulkSendJobGetResponse BulkSendJobGet(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0);
BulkSendJobGetResponse BulkSendJobGet(string bulkSendJobId, int? page = default, int? pageSize = default, int operationIndex = 0);

/// <summary>
/// Get Bulk Send Job
Expand All @@ -55,7 +55,7 @@ public interface IBulkSendJobApiSync : IApiAccessor
/// <param name="pageSize">Number of objects to be returned per page. Must be between &#x60;1&#x60; and &#x60;100&#x60;. Default is 20. (optional, default to 20)</param>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>ApiResponse of BulkSendJobGetResponse</returns>
ApiResponse<BulkSendJobGetResponse> BulkSendJobGetWithHttpInfo(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0);
ApiResponse<BulkSendJobGetResponse> BulkSendJobGetWithHttpInfo(string bulkSendJobId, int? page = default, int? pageSize = default, int operationIndex = 0);
/// <summary>
/// List Bulk Send Jobs
/// </summary>
Expand All @@ -68,7 +68,7 @@ public interface IBulkSendJobApiSync : IApiAccessor
/// <param name="pageSize">Number of objects to be returned per page. Must be between &#x60;1&#x60; and &#x60;100&#x60;. Default is 20. (optional, default to 20)</param>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>BulkSendJobListResponse</returns>
BulkSendJobListResponse BulkSendJobList(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0);
BulkSendJobListResponse BulkSendJobList(int? page = default, int? pageSize = default, int operationIndex = 0);

/// <summary>
/// List Bulk Send Jobs
Expand All @@ -82,7 +82,7 @@ public interface IBulkSendJobApiSync : IApiAccessor
/// <param name="pageSize">Number of objects to be returned per page. Must be between &#x60;1&#x60; and &#x60;100&#x60;. Default is 20. (optional, default to 20)</param>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>ApiResponse of BulkSendJobListResponse</returns>
ApiResponse<BulkSendJobListResponse> BulkSendJobListWithHttpInfo(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0);
ApiResponse<BulkSendJobListResponse> BulkSendJobListWithHttpInfo(int? page = default, int? pageSize = default, int operationIndex = 0);
#endregion Synchronous Operations
}

Expand All @@ -106,7 +106,7 @@ public interface IBulkSendJobApiAsync : IApiAccessor
/// <param name="operationIndex">Index associated with the operation.</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of BulkSendJobGetResponse</returns>
System.Threading.Tasks.Task<BulkSendJobGetResponse> BulkSendJobGetAsync(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
System.Threading.Tasks.Task<BulkSendJobGetResponse> BulkSendJobGetAsync(string bulkSendJobId, int? page = default, int? pageSize = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default);

/// <summary>
/// Get Bulk Send Job
Expand All @@ -122,7 +122,7 @@ public interface IBulkSendJobApiAsync : IApiAccessor
/// <param name="operationIndex">Index associated with the operation.</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of ApiResponse (BulkSendJobGetResponse)</returns>
System.Threading.Tasks.Task<ApiResponse<BulkSendJobGetResponse>> BulkSendJobGetWithHttpInfoAsync(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
System.Threading.Tasks.Task<ApiResponse<BulkSendJobGetResponse>> BulkSendJobGetWithHttpInfoAsync(string bulkSendJobId, int? page = default, int? pageSize = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// List Bulk Send Jobs
/// </summary>
Expand All @@ -136,7 +136,7 @@ public interface IBulkSendJobApiAsync : IApiAccessor
/// <param name="operationIndex">Index associated with the operation.</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of BulkSendJobListResponse</returns>
System.Threading.Tasks.Task<BulkSendJobListResponse> BulkSendJobListAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
System.Threading.Tasks.Task<BulkSendJobListResponse> BulkSendJobListAsync(int? page = default, int? pageSize = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default);

/// <summary>
/// List Bulk Send Jobs
Expand All @@ -151,7 +151,7 @@ public interface IBulkSendJobApiAsync : IApiAccessor
/// <param name="operationIndex">Index associated with the operation.</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of ApiResponse (BulkSendJobListResponse)</returns>
System.Threading.Tasks.Task<ApiResponse<BulkSendJobListResponse>> BulkSendJobListWithHttpInfoAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
System.Threading.Tasks.Task<ApiResponse<BulkSendJobListResponse>> BulkSendJobListWithHttpInfoAsync(int? page = default, int? pageSize = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default);
#endregion Asynchronous Operations
}

Expand Down Expand Up @@ -282,7 +282,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory
/// <param name="pageSize">Number of objects to be returned per page. Must be between &#x60;1&#x60; and &#x60;100&#x60;. Default is 20. (optional, default to 20)</param>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>BulkSendJobGetResponse</returns>
public BulkSendJobGetResponse BulkSendJobGet(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0)
public BulkSendJobGetResponse BulkSendJobGet(string bulkSendJobId, int? page = default, int? pageSize = default, int operationIndex = 0)
{
Dropbox.Sign.Client.ApiResponse<BulkSendJobGetResponse> localVarResponse = BulkSendJobGetWithHttpInfo(bulkSendJobId, page, pageSize);
return localVarResponse.Data;
Expand All @@ -298,7 +298,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory
/// <param name="pageSize">Number of objects to be returned per page. Must be between &#x60;1&#x60; and &#x60;100&#x60;. Default is 20. (optional, default to 20)</param>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>ApiResponse of BulkSendJobGetResponse</returns>
public Dropbox.Sign.Client.ApiResponse<BulkSendJobGetResponse> BulkSendJobGetWithHttpInfo(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0)
public Dropbox.Sign.Client.ApiResponse<BulkSendJobGetResponse> BulkSendJobGetWithHttpInfo(string bulkSendJobId, int? page = default, int? pageSize = default, int operationIndex = 0)
{
// verify the required parameter 'bulkSendJobId' is set
if (bulkSendJobId == null)
Expand Down Expand Up @@ -379,7 +379,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory
/// <param name="operationIndex">Index associated with the operation.</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of BulkSendJobGetResponse</returns>
public async System.Threading.Tasks.Task<BulkSendJobGetResponse> BulkSendJobGetAsync(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
public async System.Threading.Tasks.Task<BulkSendJobGetResponse> BulkSendJobGetAsync(string bulkSendJobId, int? page = default, int? pageSize = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default)
{
Dropbox.Sign.Client.ApiResponse<BulkSendJobGetResponse> localVarResponse = await BulkSendJobGetWithHttpInfoAsync(bulkSendJobId, page, pageSize, operationIndex, cancellationToken).ConfigureAwait(false);
return localVarResponse.Data;
Expand All @@ -396,7 +396,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory
/// <param name="operationIndex">Index associated with the operation.</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of ApiResponse (BulkSendJobGetResponse)</returns>
public async System.Threading.Tasks.Task<Dropbox.Sign.Client.ApiResponse<BulkSendJobGetResponse>> BulkSendJobGetWithHttpInfoAsync(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
public async System.Threading.Tasks.Task<Dropbox.Sign.Client.ApiResponse<BulkSendJobGetResponse>> BulkSendJobGetWithHttpInfoAsync(string bulkSendJobId, int? page = default, int? pageSize = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default)
{
// verify the required parameter 'bulkSendJobId' is set
if (bulkSendJobId == null)
Expand Down Expand Up @@ -477,7 +477,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory
/// <param name="pageSize">Number of objects to be returned per page. Must be between &#x60;1&#x60; and &#x60;100&#x60;. Default is 20. (optional, default to 20)</param>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>BulkSendJobListResponse</returns>
public BulkSendJobListResponse BulkSendJobList(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0)
public BulkSendJobListResponse BulkSendJobList(int? page = default, int? pageSize = default, int operationIndex = 0)
{
Dropbox.Sign.Client.ApiResponse<BulkSendJobListResponse> localVarResponse = BulkSendJobListWithHttpInfo(page, pageSize);
return localVarResponse.Data;
Expand All @@ -492,7 +492,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory
/// <param name="pageSize">Number of objects to be returned per page. Must be between &#x60;1&#x60; and &#x60;100&#x60;. Default is 20. (optional, default to 20)</param>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>ApiResponse of BulkSendJobListResponse</returns>
public Dropbox.Sign.Client.ApiResponse<BulkSendJobListResponse> BulkSendJobListWithHttpInfo(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0)
public Dropbox.Sign.Client.ApiResponse<BulkSendJobListResponse> BulkSendJobListWithHttpInfo(int? page = default, int? pageSize = default, int operationIndex = 0)
{
Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions();

Expand Down Expand Up @@ -565,7 +565,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory
/// <param name="operationIndex">Index associated with the operation.</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of BulkSendJobListResponse</returns>
public async System.Threading.Tasks.Task<BulkSendJobListResponse> BulkSendJobListAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
public async System.Threading.Tasks.Task<BulkSendJobListResponse> BulkSendJobListAsync(int? page = default, int? pageSize = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default)
{
Dropbox.Sign.Client.ApiResponse<BulkSendJobListResponse> localVarResponse = await BulkSendJobListWithHttpInfoAsync(page, pageSize, operationIndex, cancellationToken).ConfigureAwait(false);
return localVarResponse.Data;
Expand All @@ -581,7 +581,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory
/// <param name="operationIndex">Index associated with the operation.</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of ApiResponse (BulkSendJobListResponse)</returns>
public async System.Threading.Tasks.Task<Dropbox.Sign.Client.ApiResponse<BulkSendJobListResponse>> BulkSendJobListWithHttpInfoAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
public async System.Threading.Tasks.Task<Dropbox.Sign.Client.ApiResponse<BulkSendJobListResponse>> BulkSendJobListWithHttpInfoAsync(int? page = default, int? pageSize = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default)
{

Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions();
Expand Down
Loading
Loading