#[non_exhaustive]pub struct PrivateConnection {Show 13 fields
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub description: String,
pub state: State,
pub vmware_engine_network: String,
pub vmware_engine_network_canonical: String,
pub type: Type,
pub peering_id: String,
pub routing_mode: RoutingMode,
pub uid: String,
pub service_network: String,
pub peering_state: PeeringState,
/* private fields */
}Expand description
Private connection resource that provides connectivity for VMware Engine private clouds.
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 the private connection.
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/privateConnections/my-connection
create_time: Option<Timestamp>Output only. Creation time of this resource.
update_time: Option<Timestamp>Output only. Last update time of this resource.
description: StringOptional. User-provided description for this private connection.
state: StateOutput only. State of the private connection.
vmware_engine_network: StringRequired. The relative resource name of Legacy VMware Engine network.
Specify the name in the following form:
projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}
where {project}, {location} will be same as specified in private
connection resource name and {vmware_engine_network_id} will be in the
form of {location}-default e.g.
projects/project/locations/us-central1/vmwareEngineNetworks/us-central1-default.
vmware_engine_network_canonical: StringOutput only. The canonical name of the VMware Engine network in the form:
projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}
type: TypeRequired. Private connection type.
peering_id: StringOutput only. VPC network peering id between given network VPC and VMwareEngineNetwork.
routing_mode: RoutingModeOptional. Routing Mode. Default value is set to GLOBAL. For type = PRIVATE_SERVICE_ACCESS, this field can be set to GLOBAL or REGIONAL, for other types only GLOBAL is supported.
uid: StringOutput only. System-generated unique identifier for the resource.
service_network: StringRequired. Service network to create private connection.
Specify the name in the following form:
projects/{project}/global/networks/{network_id}
For type = PRIVATE_SERVICE_ACCESS, this field represents servicenetworking
VPC, e.g. projects/project-tp/global/networks/servicenetworking.
For type = NETAPP_CLOUD_VOLUME, this field represents NetApp service VPC,
e.g. projects/project-tp/global/networks/netapp-tenant-vpc.
For type = DELL_POWERSCALE, this field represent Dell service VPC, e.g.
projects/project-tp/global/networks/dell-tenant-vpc.
For type= THIRD_PARTY_SERVICE, this field could represent a consumer VPC or
any other producer VPC to which the VMware Engine Network needs to be
connected, e.g. projects/project/global/networks/vpc.
peering_state: PeeringStateOutput only. Peering state between service network and VMware Engine network.
Implementations§
Source§impl PrivateConnection
impl PrivateConnection
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 = PrivateConnection::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 = PrivateConnection::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = PrivateConnection::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 = PrivateConnection::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 = PrivateConnection::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = PrivateConnection::new().set_or_clear_update_time(None::<Timestamp>);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.
§Example
let x = PrivateConnection::new().set_description("example");Sourcepub fn set_vmware_engine_network<T: Into<String>>(self, v: T) -> Self
pub fn set_vmware_engine_network<T: Into<String>>(self, v: T) -> Self
Sets the value of vmware_engine_network.
§Example
let x = PrivateConnection::new().set_vmware_engine_network("example");Sourcepub fn set_vmware_engine_network_canonical<T: Into<String>>(self, v: T) -> Self
pub fn set_vmware_engine_network_canonical<T: Into<String>>(self, v: T) -> Self
Sets the value of vmware_engine_network_canonical.
§Example
let x = PrivateConnection::new().set_vmware_engine_network_canonical("example");Sourcepub fn set_type<T: Into<Type>>(self, v: T) -> Self
pub fn set_type<T: Into<Type>>(self, v: T) -> Self
Sets the value of r#type.
§Example
use google_cloud_vmwareengine_v1::model::private_connection::Type;
let x0 = PrivateConnection::new().set_type(Type::PrivateServiceAccess);
let x1 = PrivateConnection::new().set_type(Type::NetappCloudVolumes);
let x2 = PrivateConnection::new().set_type(Type::DellPowerscale);Sourcepub fn set_peering_id<T: Into<String>>(self, v: T) -> Self
pub fn set_peering_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_routing_mode<T: Into<RoutingMode>>(self, v: T) -> Self
pub fn set_routing_mode<T: Into<RoutingMode>>(self, v: T) -> Self
Sets the value of routing_mode.
§Example
use google_cloud_vmwareengine_v1::model::private_connection::RoutingMode;
let x0 = PrivateConnection::new().set_routing_mode(RoutingMode::Global);
let x1 = PrivateConnection::new().set_routing_mode(RoutingMode::Regional);Sourcepub fn set_service_network<T: Into<String>>(self, v: T) -> Self
pub fn set_service_network<T: Into<String>>(self, v: T) -> Self
Sets the value of service_network.
§Example
let x = PrivateConnection::new().set_service_network("example");Sourcepub fn set_peering_state<T: Into<PeeringState>>(self, v: T) -> Self
pub fn set_peering_state<T: Into<PeeringState>>(self, v: T) -> Self
Sets the value of peering_state.
§Example
use google_cloud_vmwareengine_v1::model::private_connection::PeeringState;
let x0 = PrivateConnection::new().set_peering_state(PeeringState::PeeringActive);
let x1 = PrivateConnection::new().set_peering_state(PeeringState::PeeringInactive);Trait Implementations§
Source§impl Clone for PrivateConnection
impl Clone for PrivateConnection
Source§fn clone(&self) -> PrivateConnection
fn clone(&self) -> PrivateConnection
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more