#[non_exhaustive]pub struct SparkProperties {
pub service_account_id: String,
pub metastore_service_config: Option<MetastoreServiceConfig>,
pub spark_history_server_config: Option<SparkHistoryServerConfig>,
/* private fields */
}Expand description
Container for connection properties to execute stored procedures for Apache Spark.
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.service_account_id: StringOutput only. The account ID of the service created for the purpose of this connection.
The service account does not have any permissions associated with it when it is created. After creation, customers delegate permissions to the service account. When the connection is used in the context of a stored procedure for Apache Spark in BigQuery, the service account is used to connect to the desired resources in Google Cloud.
The account ID is in the form of: bqcx-<projectnumber>-<uniqueid>@gcp-sa-bigquery-consp.iam.gserviceaccount.com
metastore_service_config: Option<MetastoreServiceConfig>Optional. Dataproc Metastore Service configuration for the connection.
spark_history_server_config: Option<SparkHistoryServerConfig>Optional. Spark History Server configuration for the connection.
Implementations§
Source§impl SparkProperties
impl SparkProperties
pub fn new() -> Self
Sourcepub fn set_service_account_id<T: Into<String>>(self, v: T) -> Self
pub fn set_service_account_id<T: Into<String>>(self, v: T) -> Self
Sets the value of service_account_id.
Sourcepub fn set_metastore_service_config<T>(self, v: T) -> Selfwhere
T: Into<MetastoreServiceConfig>,
pub fn set_metastore_service_config<T>(self, v: T) -> Selfwhere
T: Into<MetastoreServiceConfig>,
Sets the value of metastore_service_config.
Sourcepub fn set_or_clear_metastore_service_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<MetastoreServiceConfig>,
pub fn set_or_clear_metastore_service_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<MetastoreServiceConfig>,
Sets or clears the value of metastore_service_config.
Sourcepub fn set_spark_history_server_config<T>(self, v: T) -> Selfwhere
T: Into<SparkHistoryServerConfig>,
pub fn set_spark_history_server_config<T>(self, v: T) -> Selfwhere
T: Into<SparkHistoryServerConfig>,
Sets the value of spark_history_server_config.
Sourcepub fn set_or_clear_spark_history_server_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<SparkHistoryServerConfig>,
pub fn set_or_clear_spark_history_server_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<SparkHistoryServerConfig>,
Sets or clears the value of spark_history_server_config.
Trait Implementations§
Source§impl Clone for SparkProperties
impl Clone for SparkProperties
Source§fn clone(&self) -> SparkProperties
fn clone(&self) -> SparkProperties
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more