/*
* Fastly API
*
* Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/)
*
*/
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct VersionDetail {
/// List of backends associated to this service.
#[serde(rename = "backends", skip_serializing_if = "Option::is_none")]
pub backends: Option<Vec<crate::models::BackendResponse>>,
/// List of cache settings associated to this service.
#[serde(rename = "cache_settings", skip_serializing_if = "Option::is_none")]
pub cache_settings: Option<Vec<crate::models::CacheSettingResponse>>,
/// List of conditions associated to this service.
#[serde(rename = "conditions", skip_serializing_if = "Option::is_none")]
pub conditions: Option<Vec<crate::models::ConditionResponse>>,
/// List of directors associated to this service.
#[serde(rename = "directors", skip_serializing_if = "Option::is_none")]
pub directors: Option<Vec<crate::models::Director>>,
/// List of domains associated to this service.
#[serde(rename = "domains", skip_serializing_if = "Option::is_none")]
pub domains: Option<Vec<crate::models::DomainResponse>>,
/// List of gzip rules associated to this service.
#[serde(rename = "gzips", skip_serializing_if = "Option::is_none")]
pub gzips: Option<Vec<crate::models::GzipResponse>>,
/// List of headers associated to this service.
#[serde(rename = "headers", skip_serializing_if = "Option::is_none")]
pub headers: Option<Vec<crate::models::HeaderResponse>>,
/// List of healthchecks associated to this service.
#[serde(rename = "healthchecks", skip_serializing_if = "Option::is_none")]
pub healthchecks: Option<Vec<crate::models::HealthcheckResponse>>,
/// List of request settings for this service.
#[serde(rename = "request_settings", skip_serializing_if = "Option::is_none")]
pub request_settings: Option<Vec<crate::models::RequestSettingsResponse>>,
/// List of response objects for this service.
#[serde(rename = "response_objects", skip_serializing_if = "Option::is_none")]
pub response_objects: Option<Vec<crate::models::ResponseObjectResponse>>,
#[serde(rename = "settings", skip_serializing_if = "Option::is_none")]
pub settings: Option<Box<crate::models::VersionDetailSettings>>,
/// List of VCL snippets for this service.
#[serde(rename = "snippets", skip_serializing_if = "Option::is_none")]
pub snippets: Option<Vec<crate::models::SchemasSnippetResponse>>,
/// List of VCL files for this service.
#[serde(rename = "vcls", skip_serializing_if = "Option::is_none")]
pub vcls: Option<Vec<crate::models::SchemasVclResponse>>,
/// A list of Wordpress rules with this service.
#[serde(rename = "wordpress", skip_serializing_if = "Option::is_none")]
pub wordpress: Option<Vec<serde_json::Value>>,
}
impl VersionDetail {
pub fn new() -> VersionDetail {
VersionDetail {
backends: None,
cache_settings: None,
conditions: None,
directors: None,
domains: None,
gzips: None,
headers: None,
healthchecks: None,
request_settings: None,
response_objects: None,
settings: None,
snippets: None,
vcls: None,
wordpress: None,
}
}
}