diff --git a/edgeapplications/docs/CreateOriginsRequest.md b/edgeapplications/docs/CreateOriginsRequest.md index 2b0b136..4075427 100644 --- a/edgeapplications/docs/CreateOriginsRequest.md +++ b/edgeapplications/docs/CreateOriginsRequest.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | | **origin_type** | Option<**String**> | | [optional] -**addresses** | [**Vec**](CreateOriginsRequest_addresses.md) | | +**addresses** | Option<[**Vec**](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] diff --git a/edgeapplications/src/models/create_origins_request.rs b/edgeapplications/src/models/create_origins_request.rs index 2053ee3..d6efec1 100644 --- a/edgeapplications/src/models/create_origins_request.rs +++ b/edgeapplications/src/models/create_origins_request.rs @@ -17,12 +17,12 @@ pub struct CreateOriginsRequest { pub name: String, #[serde(rename = "origin_type", skip_serializing_if = "Option::is_none")] pub origin_type: Option, - #[serde(rename = "addresses")] - pub addresses: Vec, + #[serde(rename = "addresses", skip_serializing_if = "Option::is_none")] + pub addresses: Option>, #[serde(rename = "origin_protocol_policy", skip_serializing_if = "Option::is_none")] pub origin_protocol_policy: Option, - #[serde(rename = "host_header")] - pub host_header: String, + #[serde(rename = "host_header", skip_serializing_if = "Option::is_none")] + pub host_header: Option, #[serde(rename = "origin_path", skip_serializing_if = "Option::is_none")] pub origin_path: Option, #[serde(rename = "hmac_authentication", skip_serializing_if = "Option::is_none")] @@ -40,13 +40,13 @@ pub struct CreateOriginsRequest { } impl CreateOriginsRequest { - pub fn new(name: String, addresses: Vec, 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,