#[non_exhaustive]pub struct PscAutoConnectionConfig {
pub consumer_project: String,
pub consumer_network: String,
pub ip_address: String,
pub status: String,
pub consumer_network_status: String,
/* private fields */
}Expand description
Configuration for setting up PSC service automation. Consumer projects in the configs will be allowlisted automatically for the instance.
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.consumer_project: StringThe consumer project to which the PSC service automation endpoint will be created.
consumer_network: StringThe consumer network for the PSC service automation, example: “projects/vpc-host-project/global/networks/default”. The consumer network might be hosted a different project than the consumer project.
ip_address: StringOutput only. The IP address of the PSC service automation endpoint.
status: StringOutput only. The status of the PSC service automation connection. Possible values: “STATE_UNSPECIFIED” - An invalid state as the default case. “ACTIVE” - The connection has been created successfully. “FAILED” - The connection is not functional since some resources on the connection fail to be created. “CREATING” - The connection is being created. “DELETING” - The connection is being deleted. “CREATE_REPAIRING” - The connection is being repaired to complete creation. “DELETE_REPAIRING” - The connection is being repaired to complete deletion.
consumer_network_status: StringOutput only. The status of the service connection policy. Possible values: “STATE_UNSPECIFIED” - Default state, when Connection Map is created initially. “VALID” - Set when policy and map configuration is valid, and their matching can lead to allowing creation of PSC Connections subject to other constraints like connections limit. “CONNECTION_POLICY_MISSING” - No Service Connection Policy found for this network and Service Class “POLICY_LIMIT_REACHED” - Service Connection Policy limit reached for this network and Service Class “CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED” - The consumer instance project is not in AllowedGoogleProducersResourceHierarchyLevels of the matching ServiceConnectionPolicy.
Implementations§
Source§impl PscAutoConnectionConfig
impl PscAutoConnectionConfig
pub fn new() -> Self
Sourcepub fn set_consumer_project<T: Into<String>>(self, v: T) -> Self
pub fn set_consumer_project<T: Into<String>>(self, v: T) -> Self
Sets the value of consumer_project.
§Example
let x = PscAutoConnectionConfig::new().set_consumer_project("example");Sourcepub fn set_consumer_network<T: Into<String>>(self, v: T) -> Self
pub fn set_consumer_network<T: Into<String>>(self, v: T) -> Self
Sets the value of consumer_network.
§Example
let x = PscAutoConnectionConfig::new().set_consumer_network("example");Sourcepub fn set_ip_address<T: Into<String>>(self, v: T) -> Self
pub fn set_ip_address<T: Into<String>>(self, v: T) -> Self
Sets the value of ip_address.
§Example
let x = PscAutoConnectionConfig::new().set_ip_address("example");Sourcepub fn set_status<T: Into<String>>(self, v: T) -> Self
pub fn set_status<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_consumer_network_status<T: Into<String>>(self, v: T) -> Self
pub fn set_consumer_network_status<T: Into<String>>(self, v: T) -> Self
Sets the value of consumer_network_status.
§Example
let x = PscAutoConnectionConfig::new().set_consumer_network_status("example");Trait Implementations§
Source§impl Clone for PscAutoConnectionConfig
impl Clone for PscAutoConnectionConfig
Source§fn clone(&self) -> PscAutoConnectionConfig
fn clone(&self) -> PscAutoConnectionConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more