#[non_exhaustive]pub struct PscAutoConnection {
pub psc_connection_id: String,
pub address: String,
pub forwarding_rule: String,
pub project_id: String,
pub network: String,
pub service_attachment: String,
pub psc_connection_status: PscConnectionStatus,
pub connection_type: ConnectionType,
/* private fields */
}Expand description
Details of consumer resources in a PSC connection that is created through Service Connectivity Automation.
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.psc_connection_id: StringOutput only. The PSC connection id of the forwarding rule connected to the service attachment.
address: StringOutput only. The IP allocated on the consumer network for the PSC forwarding rule.
forwarding_rule: StringOutput only. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
project_id: StringRequired. The consumer project_id where the forwarding rule is created from.
network: StringRequired. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
service_attachment: StringOutput only. The service attachment which is the target of the PSC connection, in the form of projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
psc_connection_status: PscConnectionStatusOutput only. The status of the PSC connection. Please note that this value is updated periodically. Please use Private Service Connect APIs for the latest status.
connection_type: ConnectionTypeOutput only. Type of the PSC connection.
Implementations§
Source§impl PscAutoConnection
impl PscAutoConnection
pub fn new() -> Self
Sourcepub fn set_psc_connection_id<T: Into<String>>(self, v: T) -> Self
pub fn set_psc_connection_id<T: Into<String>>(self, v: T) -> Self
Sets the value of psc_connection_id.
Sourcepub fn set_address<T: Into<String>>(self, v: T) -> Self
pub fn set_address<T: Into<String>>(self, v: T) -> Self
Sets the value of address.
Sourcepub fn set_forwarding_rule<T: Into<String>>(self, v: T) -> Self
pub fn set_forwarding_rule<T: Into<String>>(self, v: T) -> Self
Sets the value of forwarding_rule.
Sourcepub fn set_project_id<T: Into<String>>(self, v: T) -> Self
pub fn set_project_id<T: Into<String>>(self, v: T) -> Self
Sets the value of project_id.
Sourcepub fn set_network<T: Into<String>>(self, v: T) -> Self
pub fn set_network<T: Into<String>>(self, v: T) -> Self
Sets the value of network.
Sourcepub fn set_service_attachment<T: Into<String>>(self, v: T) -> Self
pub fn set_service_attachment<T: Into<String>>(self, v: T) -> Self
Sets the value of service_attachment.
Sourcepub fn set_psc_connection_status<T: Into<PscConnectionStatus>>(
self,
v: T,
) -> Self
pub fn set_psc_connection_status<T: Into<PscConnectionStatus>>( self, v: T, ) -> Self
Sets the value of psc_connection_status.
Sourcepub fn set_connection_type<T: Into<ConnectionType>>(self, v: T) -> Self
pub fn set_connection_type<T: Into<ConnectionType>>(self, v: T) -> Self
Sets the value of connection_type.
Trait Implementations§
Source§impl Clone for PscAutoConnection
impl Clone for PscAutoConnection
Source§fn clone(&self) -> PscAutoConnection
fn clone(&self) -> PscAutoConnection
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more