#[non_exhaustive]pub struct ServiceConnectionPolicy {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: HashMap<String, String>,
pub description: String,
pub network: String,
pub service_class: String,
pub infrastructure: Infrastructure,
pub psc_config: Option<PscConfig>,
pub psc_connections: Vec<PscConnection>,
pub etag: Option<String>,
/* private fields */
}Expand description
The ServiceConnectionPolicy resource.
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: StringImmutable. The name of a ServiceConnectionPolicy. Format: projects/{project}/locations/{location}/serviceConnectionPolicies/{service_connection_policy} See: https://google.aip.dev/122#fields-representing-resource-names
create_time: Option<Timestamp>Output only. Time when the ServiceConnectionPolicy was created.
update_time: Option<Timestamp>Output only. Time when the ServiceConnectionPolicy was updated.
labels: HashMap<String, String>User-defined labels.
description: StringA description of this resource.
network: StringThe resource path of the consumer network. Example:
- projects/{projectNumOrId}/global/networks/{resourceId}.
service_class: StringThe service class identifier for which this ServiceConnectionPolicy is for. The service class identifier is a unique, symbolic representation of a ServiceClass. It is provided by the Service Producer. Google services have a prefix of gcp or google-cloud. For example, gcp-memorystore-redis or google-cloud-sql. 3rd party services do not. For example, test-service-a3dfcx.
infrastructure: InfrastructureOutput only. The type of underlying resources used to create the connection.
psc_config: Option<PscConfig>Configuration used for Private Service Connect connections. Used when Infrastructure is PSC.
psc_connections: Vec<PscConnection>Output only. [Output only] Information about each Private Service Connect connection.
etag: Option<String>Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
Implementations§
Source§impl ServiceConnectionPolicy
impl ServiceConnectionPolicy
pub fn new() -> Self
Sourcepub fn set_create_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_create_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_update_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_update_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of update_time.
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.
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_class<T: Into<String>>(self, v: T) -> Self
pub fn set_service_class<T: Into<String>>(self, v: T) -> Self
Sets the value of service_class.
Sourcepub fn set_infrastructure<T: Into<Infrastructure>>(self, v: T) -> Self
pub fn set_infrastructure<T: Into<Infrastructure>>(self, v: T) -> Self
Sets the value of infrastructure.
Sourcepub fn set_psc_config<T: Into<Option<PscConfig>>>(self, v: T) -> Self
pub fn set_psc_config<T: Into<Option<PscConfig>>>(self, v: T) -> Self
Sets the value of psc_config.
Sourcepub fn set_psc_connections<T, V>(self, v: T) -> Self
pub fn set_psc_connections<T, V>(self, v: T) -> Self
Sets the value of psc_connections.
Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sets the value of labels.
Trait Implementations§
Source§impl Clone for ServiceConnectionPolicy
impl Clone for ServiceConnectionPolicy
Source§fn clone(&self) -> ServiceConnectionPolicy
fn clone(&self) -> ServiceConnectionPolicy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more