#[non_exhaustive]pub struct Connection {
pub name: String,
pub friendly_name: String,
pub description: String,
pub creation_time: i64,
pub last_modified_time: i64,
pub has_credential: bool,
pub properties: Option<Properties>,
/* private fields */
}Expand description
Configuration parameters to establish connection with an external data source, except the credential attributes.
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: StringThe resource name of the connection in the form of:
projects/{project_id}/locations/{location_id}/connections/{connection_id}
friendly_name: StringUser provided display name for the connection.
description: StringUser provided description.
creation_time: i64Output only. The creation timestamp of the connection.
last_modified_time: i64Output only. The last update timestamp of the connection.
has_credential: boolOutput only. True, if credential is configured for this connection.
properties: Option<Properties>Properties specific to the underlying data source.
Implementations§
Source§impl Connection
impl Connection
pub fn new() -> Self
Sourcepub fn set_friendly_name<T: Into<String>>(self, v: T) -> Self
pub fn set_friendly_name<T: Into<String>>(self, v: T) -> Self
Sets the value of friendly_name.
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_creation_time<T: Into<i64>>(self, v: T) -> Self
pub fn set_creation_time<T: Into<i64>>(self, v: T) -> Self
Sets the value of creation_time.
Sourcepub fn set_last_modified_time<T: Into<i64>>(self, v: T) -> Self
pub fn set_last_modified_time<T: Into<i64>>(self, v: T) -> Self
Sets the value of last_modified_time.
Sourcepub fn set_has_credential<T: Into<bool>>(self, v: T) -> Self
pub fn set_has_credential<T: Into<bool>>(self, v: T) -> Self
Sets the value of has_credential.
Sourcepub fn set_properties<T: Into<Option<Properties>>>(self, v: T) -> Self
pub fn set_properties<T: Into<Option<Properties>>>(self, v: T) -> Self
Sets the value of properties.
Note that all the setters affecting properties are mutually
exclusive.
Sourcepub fn cloud_sql(&self) -> Option<&Box<CloudSqlProperties>>
pub fn cloud_sql(&self) -> Option<&Box<CloudSqlProperties>>
The value of properties
if it holds a CloudSql, None if the field is not set or
holds a different branch.
Sourcepub fn set_cloud_sql<T: Into<Box<CloudSqlProperties>>>(self, v: T) -> Self
pub fn set_cloud_sql<T: Into<Box<CloudSqlProperties>>>(self, v: T) -> Self
Sets the value of properties
to hold a CloudSql.
Note that all the setters affecting properties are
mutually exclusive.
Sourcepub fn aws(&self) -> Option<&Box<AwsProperties>>
pub fn aws(&self) -> Option<&Box<AwsProperties>>
The value of properties
if it holds a Aws, None if the field is not set or
holds a different branch.
Sourcepub fn set_aws<T: Into<Box<AwsProperties>>>(self, v: T) -> Self
pub fn set_aws<T: Into<Box<AwsProperties>>>(self, v: T) -> Self
Sets the value of properties
to hold a Aws.
Note that all the setters affecting properties are
mutually exclusive.
Sourcepub fn azure(&self) -> Option<&Box<AzureProperties>>
pub fn azure(&self) -> Option<&Box<AzureProperties>>
The value of properties
if it holds a Azure, None if the field is not set or
holds a different branch.
Sourcepub fn set_azure<T: Into<Box<AzureProperties>>>(self, v: T) -> Self
pub fn set_azure<T: Into<Box<AzureProperties>>>(self, v: T) -> Self
Sets the value of properties
to hold a Azure.
Note that all the setters affecting properties are
mutually exclusive.
Sourcepub fn cloud_spanner(&self) -> Option<&Box<CloudSpannerProperties>>
pub fn cloud_spanner(&self) -> Option<&Box<CloudSpannerProperties>>
The value of properties
if it holds a CloudSpanner, None if the field is not set or
holds a different branch.
Sourcepub fn set_cloud_spanner<T: Into<Box<CloudSpannerProperties>>>(
self,
v: T,
) -> Self
pub fn set_cloud_spanner<T: Into<Box<CloudSpannerProperties>>>( self, v: T, ) -> Self
Sets the value of properties
to hold a CloudSpanner.
Note that all the setters affecting properties are
mutually exclusive.
Sourcepub fn cloud_resource(&self) -> Option<&Box<CloudResourceProperties>>
pub fn cloud_resource(&self) -> Option<&Box<CloudResourceProperties>>
The value of properties
if it holds a CloudResource, None if the field is not set or
holds a different branch.
Sourcepub fn set_cloud_resource<T: Into<Box<CloudResourceProperties>>>(
self,
v: T,
) -> Self
pub fn set_cloud_resource<T: Into<Box<CloudResourceProperties>>>( self, v: T, ) -> Self
Sets the value of properties
to hold a CloudResource.
Note that all the setters affecting properties are
mutually exclusive.
Sourcepub fn spark(&self) -> Option<&Box<SparkProperties>>
pub fn spark(&self) -> Option<&Box<SparkProperties>>
The value of properties
if it holds a Spark, None if the field is not set or
holds a different branch.
Sourcepub fn set_spark<T: Into<Box<SparkProperties>>>(self, v: T) -> Self
pub fn set_spark<T: Into<Box<SparkProperties>>>(self, v: T) -> Self
Sets the value of properties
to hold a Spark.
Note that all the setters affecting properties are
mutually exclusive.
Sourcepub fn salesforce_data_cloud(
&self,
) -> Option<&Box<SalesforceDataCloudProperties>>
pub fn salesforce_data_cloud( &self, ) -> Option<&Box<SalesforceDataCloudProperties>>
The value of properties
if it holds a SalesforceDataCloud, None if the field is not set or
holds a different branch.
Sourcepub fn set_salesforce_data_cloud<T: Into<Box<SalesforceDataCloudProperties>>>(
self,
v: T,
) -> Self
pub fn set_salesforce_data_cloud<T: Into<Box<SalesforceDataCloudProperties>>>( self, v: T, ) -> Self
Sets the value of properties
to hold a SalesforceDataCloud.
Note that all the setters affecting properties are
mutually exclusive.
Trait Implementations§
Source§impl Clone for Connection
impl Clone for Connection
Source§fn clone(&self) -> Connection
fn clone(&self) -> Connection
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more