From d565200c599b404064b7303144737298533dd8b5 Mon Sep 17 00:00:00 2001 From: PatrickMenoti Date: Wed, 20 Dec 2023 14:07:57 +0000 Subject: [PATCH] Auto-Generated SDK --- edgeapplications/api/openapi.yaml | 2 -- edgeapplications/docs/CreateOriginsRequest.md | 4 ++-- edgeapplications/edgeapplications.sln | 10 ++++----- .../Model/CreateOriginsRequest.cs | 22 +++++-------------- 4 files changed, 13 insertions(+), 25 deletions(-) diff --git a/edgeapplications/api/openapi.yaml b/edgeapplications/api/openapi.yaml index 542786a..8588a75 100644 --- a/edgeapplications/api/openapi.yaml +++ b/edgeapplications/api/openapi.yaml @@ -3849,8 +3849,6 @@ components: prefix: type: string required: - - addresses - - host_header - name type: object UpdateOriginsRequest: diff --git a/edgeapplications/docs/CreateOriginsRequest.md b/edgeapplications/docs/CreateOriginsRequest.md index 48ddff6..c7e58cc 100644 --- a/edgeapplications/docs/CreateOriginsRequest.md +++ b/edgeapplications/docs/CreateOriginsRequest.md @@ -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] diff --git a/edgeapplications/edgeapplications.sln b/edgeapplications/edgeapplications.sln index 9c69b45..4645104 100644 --- a/edgeapplications/edgeapplications.sln +++ b/edgeapplications/edgeapplications.sln @@ -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 @@ -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 diff --git a/edgeapplications/src/edgeapplications/Model/CreateOriginsRequest.cs b/edgeapplications/src/edgeapplications/Model/CreateOriginsRequest.cs index 4ee7fe7..17765b2 100644 --- a/edgeapplications/src/edgeapplications/Model/CreateOriginsRequest.cs +++ b/edgeapplications/src/edgeapplications/Model/CreateOriginsRequest.cs @@ -41,9 +41,9 @@ protected CreateOriginsRequest() { } /// /// name (required). /// originType. - /// addresses (required). + /// addresses. /// originProtocolPolicy. - /// hostHeader (required). + /// hostHeader. /// originPath. /// hmacAuthentication. /// hmacRegionName. @@ -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; @@ -97,7 +87,7 @@ protected CreateOriginsRequest() { } /// /// Gets or Sets Addresses /// - [DataMember(Name = "addresses", IsRequired = true, EmitDefaultValue = true)] + [DataMember(Name = "addresses", EmitDefaultValue = false)] public List Addresses { get; set; } /// @@ -109,7 +99,7 @@ protected CreateOriginsRequest() { } /// /// Gets or Sets HostHeader /// - [DataMember(Name = "host_header", IsRequired = true, EmitDefaultValue = true)] + [DataMember(Name = "host_header", EmitDefaultValue = false)] public string HostHeader { get; set; } ///