#[non_exhaustive]pub struct ServiceConnectionMap {Show 13 fields
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: HashMap<String, String>,
pub description: String,
pub service_class: String,
pub service_class_uri: String,
pub infrastructure: Infrastructure,
pub producer_psc_configs: Vec<ProducerPscConfig>,
pub consumer_psc_configs: Vec<ConsumerPscConfig>,
pub consumer_psc_connections: Vec<ConsumerPscConnection>,
pub token: String,
pub etag: Option<String>,
/* private fields */
}Expand description
The ServiceConnectionMap 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 ServiceConnectionMap. Format: projects/{project}/locations/{location}/serviceConnectionMaps/{service_connection_map} See: https://google.aip.dev/122#fields-representing-resource-names
create_time: Option<Timestamp>Output only. Time when the ServiceConnectionMap was created.
update_time: Option<Timestamp>Output only. Time when the ServiceConnectionMap was updated.
labels: HashMap<String, String>User-defined labels.
description: StringA description of this resource.
service_class: StringThe service class identifier this ServiceConnectionMap is for. The user of ServiceConnectionMap create API needs to have networkconnecitivty.serviceclasses.use iam permission for the service class.
service_class_uri: StringOutput only. The service class uri this ServiceConnectionMap is for.
infrastructure: InfrastructureOutput only. The infrastructure used for connections between consumers/producers.
producer_psc_configs: Vec<ProducerPscConfig>The PSC configurations on producer side.
consumer_psc_configs: Vec<ConsumerPscConfig>The PSC configurations on consumer side.
consumer_psc_connections: Vec<ConsumerPscConnection>Output only. PSC connection details on consumer side.
token: StringThe token provided by the consumer. This token authenticates that the consumer can create a connection within the specified project and network.
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 ServiceConnectionMap
impl ServiceConnectionMap
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_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_service_class_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_service_class_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of service_class_uri.
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_producer_psc_configs<T, V>(self, v: T) -> Self
pub fn set_producer_psc_configs<T, V>(self, v: T) -> Self
Sets the value of producer_psc_configs.
Sourcepub fn set_consumer_psc_configs<T, V>(self, v: T) -> Self
pub fn set_consumer_psc_configs<T, V>(self, v: T) -> Self
Sets the value of consumer_psc_configs.
Sourcepub fn set_consumer_psc_connections<T, V>(self, v: T) -> Self
pub fn set_consumer_psc_connections<T, V>(self, v: T) -> Self
Sets the value of consumer_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 ServiceConnectionMap
impl Clone for ServiceConnectionMap
Source§fn clone(&self) -> ServiceConnectionMap
fn clone(&self) -> ServiceConnectionMap
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more