#[non_exhaustive]pub struct BitbucketDataCenterConfig {
pub host_uri: String,
pub webhook_secret_secret_version: String,
pub read_authorizer_credential: Option<UserCredential>,
pub authorizer_credential: Option<UserCredential>,
pub service_directory_config: Option<ServiceDirectoryConfig>,
pub ssl_ca: String,
pub server_version: String,
/* private fields */
}Expand description
Configuration for connections to Bitbucket Data Center.
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.host_uri: StringRequired. The URI of the Bitbucket Data Center instance or cluster this connection is for.
webhook_secret_secret_version: StringRequired. Immutable. SecretManager resource containing the webhook secret
used to verify webhook events, formatted as
projects/*/secrets/*/versions/*.
Required. A http access token with the REPO_READ access.
Required. A http access token with the REPO_ADMIN scope access.
service_directory_config: Option<ServiceDirectoryConfig>Optional. Configuration for using Service Directory to privately connect to a Bitbucket Data Center. This should only be set if the Bitbucket Data Center is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the Bitbucket Data Center will be made over the public internet.
ssl_ca: StringOptional. SSL certificate to use for requests to the Bitbucket Data Center.
server_version: StringOutput only. Version of the Bitbucket Data Center running on the
host_uri.
Implementations§
Source§impl BitbucketDataCenterConfig
impl BitbucketDataCenterConfig
pub fn new() -> Self
Sourcepub fn set_host_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_host_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of host_uri.
Sourcepub fn set_webhook_secret_secret_version<T: Into<String>>(self, v: T) -> Self
pub fn set_webhook_secret_secret_version<T: Into<String>>(self, v: T) -> Self
Sets the value of webhook_secret_secret_version.
Sets the value of read_authorizer_credential.
Sets or clears the value of read_authorizer_credential.
Sets the value of authorizer_credential.
Sets or clears the value of authorizer_credential.
Sourcepub fn set_service_directory_config<T>(self, v: T) -> Selfwhere
T: Into<ServiceDirectoryConfig>,
pub fn set_service_directory_config<T>(self, v: T) -> Selfwhere
T: Into<ServiceDirectoryConfig>,
Sets the value of service_directory_config.
Sourcepub fn set_or_clear_service_directory_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ServiceDirectoryConfig>,
pub fn set_or_clear_service_directory_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ServiceDirectoryConfig>,
Sets or clears the value of service_directory_config.
Sourcepub fn set_ssl_ca<T: Into<String>>(self, v: T) -> Self
pub fn set_ssl_ca<T: Into<String>>(self, v: T) -> Self
Sets the value of ssl_ca.
Sourcepub fn set_server_version<T: Into<String>>(self, v: T) -> Self
pub fn set_server_version<T: Into<String>>(self, v: T) -> Self
Sets the value of server_version.
Trait Implementations§
Source§impl Clone for BitbucketDataCenterConfig
impl Clone for BitbucketDataCenterConfig
Source§fn clone(&self) -> BitbucketDataCenterConfig
fn clone(&self) -> BitbucketDataCenterConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more