Struct google_api_proto::google::cloud::vmwareengine::v1::PrivateConnection
source · pub struct PrivateConnection {Show 13 fields
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub description: String,
pub state: i32,
pub vmware_engine_network: String,
pub vmware_engine_network_canonical: String,
pub type: i32,
pub peering_id: String,
pub routing_mode: i32,
pub uid: String,
pub service_network: String,
pub peering_state: i32,
}
Expand description
Private connection resource that provides connectivity for VMware Engine private clouds.
Fields§
§name: String
Output 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: String
Optional. User-provided description for this private connection.
state: i32
Output only. State of the private connection.
vmware_engine_network: String
Required. 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: String
Output only. The canonical name of the VMware Engine network in the form:
projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}
type: i32
Required. Private connection type.
peering_id: String
Output only. VPC network peering id between given network VPC and VMwareEngineNetwork.
routing_mode: i32
Optional. 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: String
Output only. System-generated unique identifier for the resource.
service_network: String
Required. 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: i32
Output only. Peering state between service network and VMware Engine network.
Implementations§
source§impl PrivateConnection
impl PrivateConnection
sourcepub fn state(&self) -> State
pub fn state(&self) -> State
Returns the enum value of state
, or the default if the field is set to an invalid enum value.
sourcepub fn type(&self) -> Type
pub fn type(&self) -> Type
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
sourcepub fn routing_mode(&self) -> RoutingMode
pub fn routing_mode(&self) -> RoutingMode
Returns the enum value of routing_mode
, or the default if the field is set to an invalid enum value.
sourcepub fn set_routing_mode(&mut self, value: RoutingMode)
pub fn set_routing_mode(&mut self, value: RoutingMode)
Sets routing_mode
to the provided enum value.
sourcepub fn peering_state(&self) -> PeeringState
pub fn peering_state(&self) -> PeeringState
Returns the enum value of peering_state
, or the default if the field is set to an invalid enum value.
sourcepub fn set_peering_state(&mut self, value: PeeringState)
pub fn set_peering_state(&mut self, value: PeeringState)
Sets peering_state
to the provided enum value.
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 moresource§impl Debug for PrivateConnection
impl Debug for PrivateConnection
source§impl Default for PrivateConnection
impl Default for PrivateConnection
source§impl Message for PrivateConnection
impl Message for PrivateConnection
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for PrivateConnection
impl PartialEq for PrivateConnection
source§fn eq(&self, other: &PrivateConnection) -> bool
fn eq(&self, other: &PrivateConnection) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PrivateConnection
Auto Trait Implementations§
impl Freeze for PrivateConnection
impl RefUnwindSafe for PrivateConnection
impl Send for PrivateConnection
impl Sync for PrivateConnection
impl Unpin for PrivateConnection
impl UnwindSafe for PrivateConnection
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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