#[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 resource_status: Option<ZoneResourceStatus>,
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.
resource_status: Option<ZoneResourceStatus>§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
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_resource_status<T>(self, v: T) -> Selfwhere
T: Into<ZoneResourceStatus>,
pub fn set_resource_status<T>(self, v: T) -> Selfwhere
T: Into<ZoneResourceStatus>,
Sets the value of resource_status.
§Example
use google_cloud_compute_v1::model::ZoneResourceStatus;
let x = Zone::new().set_resource_status(ZoneResourceStatus::default()/* use setters */);Sourcepub fn set_or_clear_resource_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<ZoneResourceStatus>,
pub fn set_or_clear_resource_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<ZoneResourceStatus>,
Sets or clears the value of resource_status.
§Example
use google_cloud_compute_v1::model::ZoneResourceStatus;
let x = Zone::new().set_or_clear_resource_status(Some(ZoneResourceStatus::default()/* use setters */));
let x = Zone::new().set_or_clear_resource_status(None::<ZoneResourceStatus>);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>);Trait Implementations§
impl StructuralPartialEq for Zone
Auto Trait Implementations§
impl Freeze for Zone
impl RefUnwindSafe for Zone
impl Send for Zone
impl Sync for Zone
impl Unpin for Zone
impl UnsafeUnpin for Zone
impl UnwindSafe for Zone
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request