#[non_exhaustive]pub struct AddressGroup {
pub name: String,
pub description: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: HashMap<String, String>,
pub type: Type,
pub items: Vec<String>,
pub capacity: i32,
pub self_link: String,
pub purpose: Vec<Purpose>,
/* private fields */
}Expand description
AddressGroup is a resource that specifies how a collection of IP/DNS used in Firewall Policy.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringRequired. Name of the AddressGroup resource. It matches pattern
projects/*/locations/{location}/addressGroups/<address_group>.
description: StringOptional. Free-text description of the resource.
create_time: Option<Timestamp>Output only. The timestamp when the resource was created.
update_time: Option<Timestamp>Output only. The timestamp when the resource was updated.
labels: HashMap<String, String>Optional. Set of label tags associated with the AddressGroup resource.
type: TypeRequired. The type of the Address Group. Possible values are “IPv4” or “IPV6”.
items: Vec<String>Optional. List of items.
capacity: i32Required. Capacity of the Address Group
self_link: StringOutput only. Server-defined fully-qualified URL for this resource.
purpose: Vec<Purpose>Optional. List of supported purposes of the Address Group.
Implementations§
Source§impl AddressGroup
impl AddressGroup
pub fn new() -> Self
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sets the value of labels.
Sourcepub fn set_capacity<T: Into<i32>>(self, v: T) -> Self
pub fn set_capacity<T: Into<i32>>(self, v: T) -> Self
Sets the value of capacity.
Sourcepub fn set_self_link<T: Into<String>>(self, v: T) -> Self
pub fn set_self_link<T: Into<String>>(self, v: T) -> Self
Sets the value of self_link.
Sourcepub fn set_purpose<T, V>(self, v: T) -> Self
pub fn set_purpose<T, V>(self, v: T) -> Self
Sets the value of purpose.
Trait Implementations§
Source§impl Clone for AddressGroup
impl Clone for AddressGroup
Source§fn clone(&self) -> AddressGroup
fn clone(&self) -> AddressGroup
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more