fastly_api/models/network_protect_prefix_list.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/// NetworkProtectPrefixList : Shared Network Protect prefix-list attributes.
9
10
11
12#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
13pub struct NetworkProtectPrefixList {
14 /// A human-readable name, unique within the customer.
15 #[serde(rename = "name")]
16 pub name: String,
17 #[serde(rename = "family")]
18 pub family: crate::models::NetworkProtectPrefixListFamily,
19 /// Complete canonical list contents. Bare addresses are canonicalized, CIDRs are masked, equivalent entries are deduplicated, and overlaps are retained.
20 #[serde(rename = "addresses")]
21 pub addresses: Vec<String>,
22}
23
24impl NetworkProtectPrefixList {
25 /// Shared Network Protect prefix-list attributes.
26 pub fn new(name: String, family: crate::models::NetworkProtectPrefixListFamily, addresses: Vec<String>) -> NetworkProtectPrefixList {
27 NetworkProtectPrefixList {
28 name,
29 family,
30 addresses,
31 }
32 }
33}
34
35