#[non_exhaustive]pub struct PscConnection {
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.
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: StringRequired. The PSC connection id of the forwarding rule connected to the service attachment.
address: StringRequired. The IP allocated on the consumer network for the PSC forwarding rule.
forwarding_rule: StringRequired. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
project_id: StringOptional. Project ID of the consumer project where the forwarding rule is created in.
network: StringRequired. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
service_attachment: StringRequired. 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. To get the latest status of a PSC connection, follow https://cloud.google.com/vpc/docs/configure-private-service-connect-services#endpoint-details.
connection_type: ConnectionTypeOutput only. Type of the PSC connection.
Implementations§
Source§impl PscConnection
impl PscConnection
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 PscConnection
impl Clone for PscConnection
Source§fn clone(&self) -> PscConnection
fn clone(&self) -> PscConnection
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more