Skip to content

Commit

Permalink
Merge pull request #90 from aziontech/generated-sdk
Browse files Browse the repository at this point in the history
Auto-generated SDK
  • Loading branch information
PatrickMenoti authored May 15, 2024
2 parents a334f8e + bdab222 commit db047bf
Show file tree
Hide file tree
Showing 19 changed files with 344 additions and 33 deletions.
3 changes: 3 additions & 0 deletions domains/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ api/openapi.yaml
appveyor.yml
docs/CreateDomainRequest.md
docs/DomainData.md
docs/DomainDataDigitalCertificateId.md
docs/DomainEntity.md
docs/DomainLinks.md
docs/DomainResponseWithResult.md
Expand All @@ -13,6 +14,7 @@ docs/PutDomainRequest.md
docs/UpdateDomainRequest.md
domains.sln
git_push.sh
src/domains.Test/Model/DomainDataDigitalCertificateIdTests.cs
src/domains.Test/domains.Test.csproj
src/domains/Api/DomainsApi.cs
src/domains/Client/ApiClient.cs
Expand All @@ -34,6 +36,7 @@ src/domains/Client/RetryConfiguration.cs
src/domains/Model/AbstractOpenAPISchema.cs
src/domains/Model/CreateDomainRequest.cs
src/domains/Model/DomainData.cs
src/domains/Model/DomainDataDigitalCertificateId.cs
src/domains/Model/DomainEntity.cs
src/domains/Model/DomainLinks.cs
src/domains/Model/DomainResponseWithResult.cs
Expand Down
2 changes: 1 addition & 1 deletion domains/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.4.0
7.5.0
3 changes: 2 additions & 1 deletion domains/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This C# SDK is automatically generated by the [OpenAPI Generator](https://openap

- API version: 2.0.0
- SDK version: 1.0.0
- Generator version: 7.4.0
- Generator version: 7.5.0
- Build package: org.openapitools.codegen.languages.CSharpClientCodegen

<a id="frameworks-supported"></a>
Expand Down Expand Up @@ -134,6 +134,7 @@ Class | Method | HTTP request | Description

- [Model.CreateDomainRequest](docs/CreateDomainRequest.md)
- [Model.DomainData](docs/DomainData.md)
- [Model.DomainDataDigitalCertificateId](docs/DomainDataDigitalCertificateId.md)
- [Model.DomainEntity](docs/DomainEntity.md)
- [Model.DomainLinks](docs/DomainLinks.md)
- [Model.DomainResponseWithResult](docs/DomainResponseWithResult.md)
Expand Down
13 changes: 10 additions & 3 deletions domains/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -333,9 +333,7 @@ components:
minimum: 1
type: integer
digital_certificate_id:
format: int64
nullable: true
type: integer
$ref: '#/components/schemas/DomainData_digital_certificate_id'
environment:
enum:
- production
Expand Down Expand Up @@ -593,6 +591,15 @@ components:
- results
- schema_version
type: object
DomainData_digital_certificate_id:
anyOf:
- format: int64
nullable: true
type: integer
- enum:
- lets_encrypt
nullable: true
type: string
securitySchemes:
tokenAuth:
description: |
Expand Down
2 changes: 1 addition & 1 deletion domains/docs/CreateDomainRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Name | Type | Description | Notes
**CnameAccessOnly** | **bool** | | [optional]
**IsActive** | **bool** | | [optional]
**EdgeApplicationId** | **long** | |
**DigitalCertificateId** | **long?** | | [optional]
**DigitalCertificateId** | [**DomainDataDigitalCertificateId**](DomainDataDigitalCertificateId.md) | | [optional]
**VarEnvironment** | **string** | | [optional]
**IsMtlsEnabled** | **bool** | | [optional]
**MtlsTrustedCaCertificateId** | **long?** | | [optional]
Expand Down
2 changes: 1 addition & 1 deletion domains/docs/DomainData.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Name | Type | Description | Notes
**CnameAccessOnly** | **bool** | | [optional]
**IsActive** | **bool** | | [optional]
**EdgeApplicationId** | **long** | | [optional]
**DigitalCertificateId** | **long?** | | [optional]
**DigitalCertificateId** | [**DomainDataDigitalCertificateId**](DomainDataDigitalCertificateId.md) | | [optional]
**VarEnvironment** | **string** | | [optional]
**IsMtlsEnabled** | **bool** | | [optional]
**MtlsTrustedCaCertificateId** | **long?** | | [optional]
Expand Down
9 changes: 9 additions & 0 deletions domains/docs/DomainDataDigitalCertificateId.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# domains.Model.DomainDataDigitalCertificateId

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

2 changes: 1 addition & 1 deletion domains/docs/DomainEntity.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Name | Type | Description | Notes
**CnameAccessOnly** | **bool** | | [optional]
**IsActive** | **bool** | | [optional]
**EdgeApplicationId** | **long** | | [optional]
**DigitalCertificateId** | **long?** | | [optional]
**DigitalCertificateId** | [**DomainDataDigitalCertificateId**](DomainDataDigitalCertificateId.md) | | [optional]
**VarEnvironment** | **string** | | [optional]
**IsMtlsEnabled** | **bool** | | [optional]
**MtlsTrustedCaCertificateId** | **long?** | | [optional]
Expand Down
2 changes: 1 addition & 1 deletion domains/docs/PutDomainRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Name | Type | Description | Notes
**CnameAccessOnly** | **bool** | | [optional]
**IsActive** | **bool** | | [optional]
**EdgeApplicationId** | **long** | |
**DigitalCertificateId** | **long?** | | [optional]
**DigitalCertificateId** | [**DomainDataDigitalCertificateId**](DomainDataDigitalCertificateId.md) | | [optional]
**VarEnvironment** | **string** | | [optional]
**IsMtlsEnabled** | **bool** | | [optional]
**MtlsTrustedCaCertificateId** | **long?** | | [optional]
Expand Down
2 changes: 1 addition & 1 deletion domains/docs/UpdateDomainRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Name | Type | Description | Notes
**CnameAccessOnly** | **bool** | | [optional]
**IsActive** | **bool** | | [optional]
**EdgeApplicationId** | **long** | | [optional]
**DigitalCertificateId** | **long?** | | [optional]
**DigitalCertificateId** | [**DomainDataDigitalCertificateId**](DomainDataDigitalCertificateId.md) | | [optional]
**VarEnvironment** | **string** | | [optional]
**IsMtlsEnabled** | **bool** | | [optional]
**MtlsTrustedCaCertificateId** | **long?** | | [optional]
Expand Down
10 changes: 5 additions & 5 deletions domains/domains.sln
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
VisualStudioVersion = 12.0.0.0
MinimumVisualStudioVersion = 10.0.0.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "domains", "src\domains\domains.csproj", "{FCC6557E-CBCA-4811-8A75-9469BE3E83ED}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "domains", "src\domains\domains.csproj", "{31646C84-EF0B-4EE3-951E-9F673E580C5E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "domains.Test", "src\domains.Test\domains.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
EndProject
Expand All @@ -12,10 +12,10 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{FCC6557E-CBCA-4811-8A75-9469BE3E83ED}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FCC6557E-CBCA-4811-8A75-9469BE3E83ED}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FCC6557E-CBCA-4811-8A75-9469BE3E83ED}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FCC6557E-CBCA-4811-8A75-9469BE3E83ED}.Release|Any CPU.Build.0 = Release|Any CPU
{31646C84-EF0B-4EE3-951E-9F673E580C5E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{31646C84-EF0B-4EE3-951E-9F673E580C5E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{31646C84-EF0B-4EE3-951E-9F673E580C5E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{31646C84-EF0B-4EE3-951E-9F673E580C5E}.Release|Any CPU.Build.0 = Release|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
/*
* Domain API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/


using Xunit;

using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using domains.Model;
using domains.Client;
using System.Reflection;
using Newtonsoft.Json;

namespace domains.Test.Model
{
/// <summary>
/// Class for testing DomainDataDigitalCertificateId
/// </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 DomainDataDigitalCertificateIdTests : IDisposable
{
// TODO uncomment below to declare an instance variable for DomainDataDigitalCertificateId
//private DomainDataDigitalCertificateId instance;

public DomainDataDigitalCertificateIdTests()
{
// TODO uncomment below to create an instance of DomainDataDigitalCertificateId
//instance = new DomainDataDigitalCertificateId();
}

public void Dispose()
{
// Cleanup when everything is done.
}

/// <summary>
/// Test an instance of DomainDataDigitalCertificateId
/// </summary>
[Fact]
public void DomainDataDigitalCertificateIdInstanceTest()
{
// TODO uncomment below to test "IsType" DomainDataDigitalCertificateId
//Assert.IsType<DomainDataDigitalCertificateId>(instance);
}
}
}
6 changes: 3 additions & 3 deletions domains/src/domains.Test/domains.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="xunit" Version="2.6.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.3" />
<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" />
</ItemGroup>

<ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions domains/src/domains/Model/CreateDomainRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ protected CreateDomainRequest() { }
/// <param name="edgeFirewallId">edgeFirewallId.</param>
/// <param name="mtlsVerification">mtlsVerification.</param>
/// <param name="crlList">crlList.</param>
public CreateDomainRequest(string name = default(string), List<string> cnames = default(List<string>), bool cnameAccessOnly = default(bool), bool isActive = default(bool), long edgeApplicationId = default(long), long? digitalCertificateId = default(long?), VarEnvironmentEnum? varEnvironment = default(VarEnvironmentEnum?), bool isMtlsEnabled = default(bool), long? mtlsTrustedCaCertificateId = default(long?), long? edgeFirewallId = default(long?), MtlsVerificationEnum? mtlsVerification = default(MtlsVerificationEnum?), List<long> crlList = default(List<long>))
public CreateDomainRequest(string name = default(string), List<string> cnames = default(List<string>), bool cnameAccessOnly = default(bool), bool isActive = default(bool), long edgeApplicationId = default(long), DomainDataDigitalCertificateId digitalCertificateId = default(DomainDataDigitalCertificateId), VarEnvironmentEnum? varEnvironment = default(VarEnvironmentEnum?), bool isMtlsEnabled = default(bool), long? mtlsTrustedCaCertificateId = default(long?), long? edgeFirewallId = default(long?), MtlsVerificationEnum? mtlsVerification = default(MtlsVerificationEnum?), List<long> crlList = default(List<long>))
{
// to ensure "name" is required (not null)
if (name == null)
Expand Down Expand Up @@ -160,8 +160,8 @@ protected CreateDomainRequest() { }
/// <summary>
/// Gets or Sets DigitalCertificateId
/// </summary>
[DataMember(Name = "digital_certificate_id", EmitDefaultValue = true)]
public long? DigitalCertificateId { get; set; }
[DataMember(Name = "digital_certificate_id", EmitDefaultValue = false)]
public DomainDataDigitalCertificateId DigitalCertificateId { get; set; }

/// <summary>
/// Gets or Sets IsMtlsEnabled
Expand Down
6 changes: 3 additions & 3 deletions domains/src/domains/Model/DomainData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public enum MtlsVerificationEnum
/// <param name="edgeFirewallId">edgeFirewallId.</param>
/// <param name="mtlsVerification">mtlsVerification.</param>
/// <param name="crlList">crlList.</param>
public DomainData(string name = default(string), List<string> cnames = default(List<string>), bool cnameAccessOnly = default(bool), bool isActive = default(bool), long edgeApplicationId = default(long), long? digitalCertificateId = default(long?), VarEnvironmentEnum? varEnvironment = default(VarEnvironmentEnum?), bool isMtlsEnabled = default(bool), long? mtlsTrustedCaCertificateId = default(long?), long? edgeFirewallId = default(long?), MtlsVerificationEnum? mtlsVerification = default(MtlsVerificationEnum?), List<long> crlList = default(List<long>))
public DomainData(string name = default(string), List<string> cnames = default(List<string>), bool cnameAccessOnly = default(bool), bool isActive = default(bool), long edgeApplicationId = default(long), DomainDataDigitalCertificateId digitalCertificateId = default(DomainDataDigitalCertificateId), VarEnvironmentEnum? varEnvironment = default(VarEnvironmentEnum?), bool isMtlsEnabled = default(bool), long? mtlsTrustedCaCertificateId = default(long?), long? edgeFirewallId = default(long?), MtlsVerificationEnum? mtlsVerification = default(MtlsVerificationEnum?), List<long> crlList = default(List<long>))
{
this.Name = name;
this.Cnames = cnames;
Expand Down Expand Up @@ -145,8 +145,8 @@ public enum MtlsVerificationEnum
/// <summary>
/// Gets or Sets DigitalCertificateId
/// </summary>
[DataMember(Name = "digital_certificate_id", EmitDefaultValue = true)]
public long? DigitalCertificateId { get; set; }
[DataMember(Name = "digital_certificate_id", EmitDefaultValue = false)]
public DomainDataDigitalCertificateId DigitalCertificateId { get; set; }

/// <summary>
/// Gets or Sets IsMtlsEnabled
Expand Down
Loading

0 comments on commit db047bf

Please sign in to comment.