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: i32,
pub psc_config: Option<PscConfig>,
pub psc_connections: Vec<PscConnection>,
}Expand description
The ServiceConnectionPolicy resource. Next id: 11
Fields§
§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 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.
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. For example, gcp-cloud-sql. 3rd party services do not. For example, test-service-a3dfcx.
infrastructure: i32Output 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.
Implementations§
Source§impl ServiceConnectionPolicy
impl ServiceConnectionPolicy
Sourcepub fn infrastructure(&self) -> Infrastructure
pub fn infrastructure(&self) -> Infrastructure
Returns the enum value of infrastructure, or the default if the field is set to an invalid enum value.
Sourcepub fn set_infrastructure(&mut self, value: Infrastructure)
pub fn set_infrastructure(&mut self, value: Infrastructure)
Sets infrastructure to the provided enum value.
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 moreSource§impl Debug for ServiceConnectionPolicy
impl Debug for ServiceConnectionPolicy
Source§impl Default for ServiceConnectionPolicy
impl Default for ServiceConnectionPolicy
Source§impl<'de> Deserialize<'de> for ServiceConnectionPolicy
impl<'de> Deserialize<'de> for ServiceConnectionPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Message for ServiceConnectionPolicy
impl Message for ServiceConnectionPolicy
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.