#[non_exhaustive]pub struct AccountConnector {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub annotations: HashMap<String, String>,
pub etag: String,
pub labels: HashMap<String, String>,
pub oauth_start_uri: String,
pub account_connector_config: Option<AccountConnectorConfig>,
/* private fields */
}Expand description
AccountConnector encapsulates what a platform administrator needs to configure for users to connect to the service providers, which includes, among other fields, the OAuth client ID, client secret, and authorization and token endpoints.
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: StringIdentifier. The resource name of the accountConnector, in the format
projects/{project}/locations/{location}/accountConnectors/{account_connector_id}.
create_time: Option<Timestamp>Output only. The timestamp when the accountConnector was created.
update_time: Option<Timestamp>Output only. The timestamp when the accountConnector was updated.
annotations: HashMap<String, String>Optional. Allows users to store small amounts of arbitrary data.
etag: StringOptional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
labels: HashMap<String, String>Optional. Labels as key value pairs
oauth_start_uri: StringOutput only. Start OAuth flow by clicking on this URL.
account_connector_config: Option<AccountConnectorConfig>The AccountConnector config.
Implementations§
Source§impl AccountConnector
impl AccountConnector
pub fn new() -> Self
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
Sourcepub fn set_annotations<T, K, V>(self, v: T) -> Self
pub fn set_annotations<T, K, V>(self, v: T) -> Self
Sets the value of annotations.
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.
Sourcepub fn set_oauth_start_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_oauth_start_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of oauth_start_uri.
Sourcepub fn set_account_connector_config<T: Into<Option<AccountConnectorConfig>>>(
self,
v: T,
) -> Self
pub fn set_account_connector_config<T: Into<Option<AccountConnectorConfig>>>( self, v: T, ) -> Self
Sets the value of account_connector_config.
Note that all the setters affecting account_connector_config are mutually
exclusive.
Sourcepub fn provider_oauth_config(&self) -> Option<&Box<ProviderOAuthConfig>>
pub fn provider_oauth_config(&self) -> Option<&Box<ProviderOAuthConfig>>
The value of account_connector_config
if it holds a ProviderOauthConfig, None if the field is not set or
holds a different branch.
Sourcepub fn set_provider_oauth_config<T: Into<Box<ProviderOAuthConfig>>>(
self,
v: T,
) -> Self
pub fn set_provider_oauth_config<T: Into<Box<ProviderOAuthConfig>>>( self, v: T, ) -> Self
Sets the value of account_connector_config
to hold a ProviderOauthConfig.
Note that all the setters affecting account_connector_config are
mutually exclusive.
Trait Implementations§
Source§impl Clone for AccountConnector
impl Clone for AccountConnector
Source§fn clone(&self) -> AccountConnector
fn clone(&self) -> AccountConnector
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more