#[non_exhaustive]pub struct PrivateCloud {Show 14 fields
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub delete_time: Option<Timestamp>,
pub expire_time: Option<Timestamp>,
pub state: State,
pub network_config: Option<NetworkConfig>,
pub management_cluster: Option<ManagementCluster>,
pub description: String,
pub hcx: Option<Hcx>,
pub nsx: Option<Nsx>,
pub vcenter: Option<Vcenter>,
pub uid: String,
pub type: Type,
/* private fields */
}Expand description
Represents a private cloud resource. Private clouds of type STANDARD and
TIME_LIMITED are zonal resources, STRETCHED private clouds are
regional.
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: StringOutput only. The resource name of this private cloud.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
projects/my-project/locations/us-central1-a/privateClouds/my-cloud
create_time: Option<Timestamp>Output only. Creation time of this resource.
update_time: Option<Timestamp>Output only. Last update time of this resource.
delete_time: Option<Timestamp>Output only. Time when the resource was scheduled for deletion.
expire_time: Option<Timestamp>Output only. Time when the resource will be irreversibly deleted.
state: StateOutput only. State of the resource. New values may be added to this enum when appropriate.
network_config: Option<NetworkConfig>Required. Network configuration of the private cloud.
management_cluster: Option<ManagementCluster>Required. Input only. The management cluster for this private cloud. This field is required during creation of the private cloud to provide details for the default cluster.
The following fields can’t be changed after private cloud creation:
ManagementCluster.clusterId, ManagementCluster.nodeTypeId.
description: StringUser-provided description for this private cloud.
hcx: Option<Hcx>Output only. HCX appliance.
nsx: Option<Nsx>Output only. NSX appliance.
vcenter: Option<Vcenter>Output only. Vcenter appliance.
uid: StringOutput only. System-generated unique identifier for the resource.
type: TypeOptional. Type of the private cloud. Defaults to STANDARD.
Implementations§
Source§impl PrivateCloud
impl PrivateCloud
pub fn new() -> Self
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.
§Example
use wkt::Timestamp;
let x = PrivateCloud::new().set_create_time(Timestamp::default()/* use setters */);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.
§Example
use wkt::Timestamp;
let x = PrivateCloud::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = PrivateCloud::new().set_or_clear_create_time(None::<Timestamp>);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.
§Example
use wkt::Timestamp;
let x = PrivateCloud::new().set_update_time(Timestamp::default()/* use setters */);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.
§Example
use wkt::Timestamp;
let x = PrivateCloud::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = PrivateCloud::new().set_or_clear_update_time(None::<Timestamp>);Sourcepub fn set_delete_time<T>(self, v: T) -> Self
pub fn set_delete_time<T>(self, v: T) -> Self
Sets the value of delete_time.
§Example
use wkt::Timestamp;
let x = PrivateCloud::new().set_delete_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_delete_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_delete_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of delete_time.
§Example
use wkt::Timestamp;
let x = PrivateCloud::new().set_or_clear_delete_time(Some(Timestamp::default()/* use setters */));
let x = PrivateCloud::new().set_or_clear_delete_time(None::<Timestamp>);Sourcepub fn set_expire_time<T>(self, v: T) -> Self
pub fn set_expire_time<T>(self, v: T) -> Self
Sets the value of expire_time.
§Example
use wkt::Timestamp;
let x = PrivateCloud::new().set_expire_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_expire_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_expire_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of expire_time.
§Example
use wkt::Timestamp;
let x = PrivateCloud::new().set_or_clear_expire_time(Some(Timestamp::default()/* use setters */));
let x = PrivateCloud::new().set_or_clear_expire_time(None::<Timestamp>);Sourcepub fn set_network_config<T>(self, v: T) -> Selfwhere
T: Into<NetworkConfig>,
pub fn set_network_config<T>(self, v: T) -> Selfwhere
T: Into<NetworkConfig>,
Sets the value of network_config.
§Example
use google_cloud_vmwareengine_v1::model::NetworkConfig;
let x = PrivateCloud::new().set_network_config(NetworkConfig::default()/* use setters */);Sourcepub fn set_or_clear_network_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<NetworkConfig>,
pub fn set_or_clear_network_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<NetworkConfig>,
Sets or clears the value of network_config.
§Example
use google_cloud_vmwareengine_v1::model::NetworkConfig;
let x = PrivateCloud::new().set_or_clear_network_config(Some(NetworkConfig::default()/* use setters */));
let x = PrivateCloud::new().set_or_clear_network_config(None::<NetworkConfig>);Sourcepub fn set_management_cluster<T>(self, v: T) -> Selfwhere
T: Into<ManagementCluster>,
pub fn set_management_cluster<T>(self, v: T) -> Selfwhere
T: Into<ManagementCluster>,
Sets the value of management_cluster.
§Example
use google_cloud_vmwareengine_v1::model::private_cloud::ManagementCluster;
let x = PrivateCloud::new().set_management_cluster(ManagementCluster::default()/* use setters */);Sourcepub fn set_or_clear_management_cluster<T>(self, v: Option<T>) -> Selfwhere
T: Into<ManagementCluster>,
pub fn set_or_clear_management_cluster<T>(self, v: Option<T>) -> Selfwhere
T: Into<ManagementCluster>,
Sets or clears the value of management_cluster.
§Example
use google_cloud_vmwareengine_v1::model::private_cloud::ManagementCluster;
let x = PrivateCloud::new().set_or_clear_management_cluster(Some(ManagementCluster::default()/* use setters */));
let x = PrivateCloud::new().set_or_clear_management_cluster(None::<ManagementCluster>);Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_or_clear_hcx<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_hcx<T>(self, v: Option<T>) -> Self
Sourcepub fn set_or_clear_nsx<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_nsx<T>(self, v: Option<T>) -> Self
Sourcepub fn set_vcenter<T>(self, v: T) -> Self
pub fn set_vcenter<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_vcenter<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_vcenter<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for PrivateCloud
impl Clone for PrivateCloud
Source§fn clone(&self) -> PrivateCloud
fn clone(&self) -> PrivateCloud
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more