fastly_api/models/network_protect_network_update.rs
1/*
2 * Fastly API
3 *
4 * 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/)
5 *
6 */
7
8/// NetworkProtectNetworkUpdate : Attributes accepted when updating a network.
9
10
11
12#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
13pub struct NetworkProtectNetworkUpdate {
14 /// Optional descriptive text for the network. This metadata does not change traffic handling. Null clears it on update.
15 #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
16 pub description: Option<String>,
17 /// A human-readable name, unique within the customer.
18 #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
19 pub name: Option<String>,
20 /// Custom rule-set attachment is unavailable. Omission, null, and an empty string preserve the current backend-assigned rule set.
21 #[serde(rename = "rule_set_id", skip_serializing_if = "Option::is_none")]
22 pub rule_set_id: Option<String>,
23 /// Complete endpoint policy configuration. A network has at most one policy per region and may have no policies.
24 #[serde(rename = "endpoint_policies", skip_serializing_if = "Option::is_none")]
25 pub endpoint_policies: Option<Vec<crate::models::NetworkProtectEndpointPolicy>>,
26 /// Desired advertisement state, which is not the same as observed route state. Enabling it requires approved LOA, valid ROA, and a ready default-region delivery policy. A later ROA failure does not turn an existing advertisement off; losing LOA approval or the last ready default endpoint does.
27 #[serde(rename = "advertise", skip_serializing_if = "Option::is_none")]
28 pub advertise: Option<bool>,
29}
30
31impl NetworkProtectNetworkUpdate {
32 /// Attributes accepted when updating a network.
33 pub fn new() -> NetworkProtectNetworkUpdate {
34 NetworkProtectNetworkUpdate {
35 description: None,
36 name: None,
37 rule_set_id: None,
38 endpoint_policies: None,
39 advertise: None,
40 }
41 }
42}
43
44