#[non_exhaustive]pub struct Zone {
pub available_cpu_platforms: Vec<String>,
pub creation_timestamp: Option<String>,
pub deprecated: Option<DeprecationStatus>,
pub description: Option<String>,
pub id: Option<u64>,
pub kind: Option<String>,
pub name: Option<String>,
pub region: Option<String>,
pub self_link: Option<String>,
pub status: Option<Status>,
pub supports_pzs: Option<bool>,
/* private fields */
}region-zones or zones only.Expand description
Represents a Zone resource.
A zone is a deployment area. These deployment areas are subsets of a region. For example the zone us-east1-b is located in theus-east1 region. For more information, readRegions and Zones.
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.available_cpu_platforms: Vec<String>[Output Only] Available cpu/platform selections for the zone.
creation_timestamp: Option<String>[Output Only] Creation timestamp inRFC3339 text format.
deprecated: Option<DeprecationStatus>[Output Only] The deprecation status associated with this zone.
description: Option<String>[Output Only] Textual description of the resource.
id: Option<u64>[Output Only] The unique identifier for the resource. This identifier is defined by the server.
kind: Option<String>Output only. [Output Only] Type of the resource. Always compute#zone for zones.
name: Option<String>[Output Only] Name of the resource.
region: Option<String>[Output Only] Full URL reference to the region which hosts the zone.
self_link: Option<String>[Output Only] Server-defined URL for the resource.
status: Option<Status>[Output Only] Status of the zone, either UP orDOWN.
supports_pzs: Option<bool>Output only. [Output Only] Reserved for future use.
Implementations§
Source§impl Zone
impl Zone
pub fn new() -> Self
Sourcepub fn set_available_cpu_platforms<T, V>(self, v: T) -> Self
pub fn set_available_cpu_platforms<T, V>(self, v: T) -> Self
Sets the value of available_cpu_platforms.
§Example
let x = Zone::new().set_available_cpu_platforms(["a", "b", "c"]);Sourcepub fn set_creation_timestamp<T>(self, v: T) -> Self
pub fn set_creation_timestamp<T>(self, v: T) -> Self
Sets the value of creation_timestamp.
§Example
let x = Zone::new().set_creation_timestamp("example");Sourcepub fn set_or_clear_creation_timestamp<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_creation_timestamp<T>(self, v: Option<T>) -> Self
Sets or clears the value of creation_timestamp.
§Example
let x = Zone::new().set_or_clear_creation_timestamp(Some("example"));
let x = Zone::new().set_or_clear_creation_timestamp(None::<String>);Sourcepub fn set_deprecated<T>(self, v: T) -> Selfwhere
T: Into<DeprecationStatus>,
pub fn set_deprecated<T>(self, v: T) -> Selfwhere
T: Into<DeprecationStatus>,
Sets the value of deprecated.
§Example
use google_cloud_compute_v1::model::DeprecationStatus;
let x = Zone::new().set_deprecated(DeprecationStatus::default()/* use setters */);Sourcepub fn set_or_clear_deprecated<T>(self, v: Option<T>) -> Selfwhere
T: Into<DeprecationStatus>,
pub fn set_or_clear_deprecated<T>(self, v: Option<T>) -> Selfwhere
T: Into<DeprecationStatus>,
Sets or clears the value of deprecated.
§Example
use google_cloud_compute_v1::model::DeprecationStatus;
let x = Zone::new().set_or_clear_deprecated(Some(DeprecationStatus::default()/* use setters */));
let x = Zone::new().set_or_clear_deprecated(None::<DeprecationStatus>);Sourcepub fn set_description<T>(self, v: T) -> Self
pub fn set_description<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_description<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_description<T>(self, v: Option<T>) -> Self
Sets or clears the value of description.
§Example
let x = Zone::new().set_or_clear_description(Some("example"));
let x = Zone::new().set_or_clear_description(None::<String>);Sourcepub fn set_or_clear_id<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_id<T>(self, v: Option<T>) -> Self
Sourcepub fn set_or_clear_kind<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_kind<T>(self, v: Option<T>) -> Self
Sourcepub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
Sourcepub fn set_region<T>(self, v: T) -> Self
pub fn set_region<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_region<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_region<T>(self, v: Option<T>) -> Self
Sourcepub fn set_self_link<T>(self, v: T) -> Self
pub fn set_self_link<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_self_link<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_self_link<T>(self, v: Option<T>) -> Self
Sourcepub fn set_status<T>(self, v: T) -> Self
pub fn set_status<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_status<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_status<T>(self, v: Option<T>) -> Self
Sourcepub fn set_supports_pzs<T>(self, v: T) -> Self
pub fn set_supports_pzs<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_supports_pzs<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_supports_pzs<T>(self, v: Option<T>) -> Self
Sets or clears the value of supports_pzs.
§Example
let x = Zone::new().set_or_clear_supports_pzs(Some(false));
let x = Zone::new().set_or_clear_supports_pzs(None::<bool>);