Skip to content

Commit

Permalink
Merge pull request #81 from aziontech/generated-sdk
Browse files Browse the repository at this point in the history
Auto-generated SDK
  • Loading branch information
PatrickMenoti authored Dec 20, 2023
2 parents 06b9496 + d565200 commit db777c9
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 25 deletions.
2 changes: 0 additions & 2 deletions edgeapplications/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3849,8 +3849,6 @@ components:
prefix:
type: string
required:
- addresses
- host_header
- name
type: object
UpdateOriginsRequest:
Expand Down
4 changes: 2 additions & 2 deletions edgeapplications/docs/CreateOriginsRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
**OriginType** | **string** | | [optional]
**Addresses** | [**List<CreateOriginsRequestAddresses>**](CreateOriginsRequestAddresses.md) | |
**Addresses** | [**List<CreateOriginsRequestAddresses>**](CreateOriginsRequestAddresses.md) | | [optional]
**OriginProtocolPolicy** | **string** | | [optional]
**HostHeader** | **string** | |
**HostHeader** | **string** | | [optional]
**OriginPath** | **string** | | [optional]
**HmacAuthentication** | **bool** | | [optional]
**HmacRegionName** | **string** | | [optional]
Expand Down
10 changes: 5 additions & 5 deletions edgeapplications/edgeapplications.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}") = "edgeapplications", "src\edgeapplications\edgeapplications.csproj", "{3CE3D885-526F-44B3-AEEB-B956EBA4C691}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "edgeapplications", "src\edgeapplications\edgeapplications.csproj", "{3963DBDB-489C-4FDD-8A1C-9D3BC2E223CB}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "edgeapplications.Test", "src\edgeapplications.Test\edgeapplications.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
{3CE3D885-526F-44B3-AEEB-B956EBA4C691}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3CE3D885-526F-44B3-AEEB-B956EBA4C691}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3CE3D885-526F-44B3-AEEB-B956EBA4C691}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3CE3D885-526F-44B3-AEEB-B956EBA4C691}.Release|Any CPU.Build.0 = Release|Any CPU
{3963DBDB-489C-4FDD-8A1C-9D3BC2E223CB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3963DBDB-489C-4FDD-8A1C-9D3BC2E223CB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3963DBDB-489C-4FDD-8A1C-9D3BC2E223CB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3963DBDB-489C-4FDD-8A1C-9D3BC2E223CB}.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
Expand Up @@ -41,9 +41,9 @@ protected CreateOriginsRequest() { }
/// </summary>
/// <param name="name">name (required).</param>
/// <param name="originType">originType.</param>
/// <param name="addresses">addresses (required).</param>
/// <param name="addresses">addresses.</param>
/// <param name="originProtocolPolicy">originProtocolPolicy.</param>
/// <param name="hostHeader">hostHeader (required).</param>
/// <param name="hostHeader">hostHeader.</param>
/// <param name="originPath">originPath.</param>
/// <param name="hmacAuthentication">hmacAuthentication.</param>
/// <param name="hmacRegionName">hmacRegionName.</param>
Expand All @@ -59,20 +59,10 @@ protected CreateOriginsRequest() { }
throw new ArgumentNullException("name is a required property for CreateOriginsRequest and cannot be null");
}
this.Name = name;
// to ensure "addresses" is required (not null)
if (addresses == null)
{
throw new ArgumentNullException("addresses is a required property for CreateOriginsRequest and cannot be null");
}
this.Addresses = addresses;
// to ensure "hostHeader" is required (not null)
if (hostHeader == null)
{
throw new ArgumentNullException("hostHeader is a required property for CreateOriginsRequest and cannot be null");
}
this.HostHeader = hostHeader;
this.OriginType = originType;
this.Addresses = addresses;
this.OriginProtocolPolicy = originProtocolPolicy;
this.HostHeader = hostHeader;
this.OriginPath = originPath;
this.HmacAuthentication = hmacAuthentication;
this.HmacRegionName = hmacRegionName;
Expand All @@ -97,7 +87,7 @@ protected CreateOriginsRequest() { }
/// <summary>
/// Gets or Sets Addresses
/// </summary>
[DataMember(Name = "addresses", IsRequired = true, EmitDefaultValue = true)]
[DataMember(Name = "addresses", EmitDefaultValue = false)]
public List<CreateOriginsRequestAddresses> Addresses { get; set; }

/// <summary>
Expand All @@ -109,7 +99,7 @@ protected CreateOriginsRequest() { }
/// <summary>
/// Gets or Sets HostHeader
/// </summary>
[DataMember(Name = "host_header", IsRequired = true, EmitDefaultValue = true)]
[DataMember(Name = "host_header", EmitDefaultValue = false)]
public string HostHeader { get; set; }

/// <summary>
Expand Down

0 comments on commit db777c9

Please sign in to comment.