Skip to content

Commit

Permalink
Merge pull request #75 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 b3aca18 + 9bf21d9 commit b5949eb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
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** | |
**origin_type** | Option<**String**> | | [optional]
**addresses** | [**Vec<crate::models::CreateOriginsRequestAddresses>**](CreateOriginsRequest_addresses.md) | |
**addresses** | Option<[**Vec<crate::models::CreateOriginsRequestAddresses>**](CreateOriginsRequest_addresses.md)> | | [optional]
**origin_protocol_policy** | Option<**String**> | | [optional]
**host_header** | **String** | |
**host_header** | Option<**String**> | | [optional]
**origin_path** | Option<**String**> | | [optional]
**hmac_authentication** | Option<**bool**> | | [optional]
**hmac_region_name** | Option<**String**> | | [optional]
Expand Down
14 changes: 7 additions & 7 deletions edgeapplications/src/models/create_origins_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ pub struct CreateOriginsRequest {
pub name: String,
#[serde(rename = "origin_type", skip_serializing_if = "Option::is_none")]
pub origin_type: Option<String>,
#[serde(rename = "addresses")]
pub addresses: Vec<crate::models::CreateOriginsRequestAddresses>,
#[serde(rename = "addresses", skip_serializing_if = "Option::is_none")]
pub addresses: Option<Vec<crate::models::CreateOriginsRequestAddresses>>,
#[serde(rename = "origin_protocol_policy", skip_serializing_if = "Option::is_none")]
pub origin_protocol_policy: Option<String>,
#[serde(rename = "host_header")]
pub host_header: String,
#[serde(rename = "host_header", skip_serializing_if = "Option::is_none")]
pub host_header: Option<String>,
#[serde(rename = "origin_path", skip_serializing_if = "Option::is_none")]
pub origin_path: Option<String>,
#[serde(rename = "hmac_authentication", skip_serializing_if = "Option::is_none")]
Expand All @@ -40,13 +40,13 @@ pub struct CreateOriginsRequest {
}

impl CreateOriginsRequest {
pub fn new(name: String, addresses: Vec<crate::models::CreateOriginsRequestAddresses>, host_header: String) -> CreateOriginsRequest {
pub fn new(name: String) -> CreateOriginsRequest {
CreateOriginsRequest {
name,
origin_type: None,
addresses,
addresses: None,
origin_protocol_policy: None,
host_header,
host_header: None,
origin_path: None,
hmac_authentication: None,
hmac_region_name: None,
Expand Down

0 comments on commit b5949eb

Please sign in to comment.