#[non_exhaustive]pub struct Instance {Show 28 fields
pub name: String,
pub description: String,
pub type: Type,
pub enable_stackdriver_logging: bool,
pub enable_stackdriver_monitoring: bool,
pub private_instance: bool,
pub network_config: Option<NetworkConfig>,
pub labels: HashMap<String, String>,
pub options: HashMap<String, String>,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub state: State,
pub state_message: String,
pub service_endpoint: String,
pub zone: String,
pub version: String,
pub service_account: String,
pub display_name: String,
pub available_version: Vec<Version>,
pub api_endpoint: String,
pub gcs_bucket: String,
pub accelerators: Vec<Accelerator>,
pub p4_service_account: String,
pub tenant_project_id: String,
pub dataproc_service_account: String,
pub enable_rbac: bool,
pub crypto_key_config: Option<CryptoKeyConfig>,
pub disabled_reason: Vec<DisabledReason>,
/* private fields */
}Expand description
Represents a Data Fusion instance.
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: StringOutput only. The name of this instance is in the form of projects/{project}/locations/{location}/instances/{instance}.
description: StringA description of this instance.
type: TypeRequired. Instance type.
enable_stackdriver_logging: boolOption to enable Stackdriver Logging.
enable_stackdriver_monitoring: boolOption to enable Stackdriver Monitoring.
private_instance: boolSpecifies whether the Data Fusion instance should be private. If set to true, all Data Fusion nodes will have private IP addresses and will not be able to access the public internet.
network_config: Option<NetworkConfig>Network configuration options. These are required when a private Data Fusion instance is to be created.
labels: HashMap<String, String>The resource labels for instance to use to annotate any related underlying resources such as Compute Engine VMs. The character ‘=’ is not allowed to be used within the labels.
options: HashMap<String, String>Map of additional options used to configure the behavior of Data Fusion instance.
create_time: Option<Timestamp>Output only. The time the instance was created.
update_time: Option<Timestamp>Output only. The time the instance was last updated.
state: StateOutput only. The current state of this Data Fusion instance.
state_message: StringOutput only. Additional information about the current state of this Data Fusion instance if available.
service_endpoint: StringOutput only. Endpoint on which the Data Fusion UI is accessible.
zone: StringName of the zone in which the Data Fusion instance will be created. Only DEVELOPER instances use this field.
version: StringCurrent version of the Data Fusion. Only specifiable in Update.
service_account: StringOutput only. Deprecated. Use tenant_project_id instead to extract the tenant project ID.
display_name: StringDisplay name for an instance.
available_version: Vec<Version>Available versions that the instance can be upgraded to using UpdateInstanceRequest.
api_endpoint: StringOutput only. Endpoint on which the REST APIs is accessible.
gcs_bucket: StringOutput only. Cloud Storage bucket generated by Data Fusion in the customer project.
accelerators: Vec<Accelerator>List of accelerators enabled for this CDF instance.
p4_service_account: StringOutput only. P4 service account for the customer project.
tenant_project_id: StringOutput only. The name of the tenant project.
dataproc_service_account: StringUser-managed service account to set on Dataproc when Cloud Data Fusion creates Dataproc to run data processing pipelines.
This allows users to have fine-grained access control on Dataproc’s accesses to cloud resources.
enable_rbac: boolOption to enable granular role-based access control.
crypto_key_config: Option<CryptoKeyConfig>The crypto key configuration. This field is used by the Customer-Managed Encryption Keys (CMEK) feature.
disabled_reason: Vec<DisabledReason>Output only. If the instance state is DISABLED, the reason for disabling the instance.
Implementations§
Source§impl Instance
impl Instance
pub fn new() -> Self
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_enable_stackdriver_logging<T: Into<bool>>(self, v: T) -> Self
pub fn set_enable_stackdriver_logging<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_stackdriver_logging.
Sourcepub fn set_enable_stackdriver_monitoring<T: Into<bool>>(self, v: T) -> Self
pub fn set_enable_stackdriver_monitoring<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_stackdriver_monitoring.
Sourcepub fn set_private_instance<T: Into<bool>>(self, v: T) -> Self
pub fn set_private_instance<T: Into<bool>>(self, v: T) -> Self
Sets the value of private_instance.
Sourcepub fn set_network_config<T>(self, v: T) -> Selfwhere
T: Into<NetworkConfig>,
pub fn set_network_config<T>(self, v: T) -> Selfwhere
T: Into<NetworkConfig>,
Sets the value of network_config.
Sourcepub fn set_or_clear_network_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<NetworkConfig>,
pub fn set_or_clear_network_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<NetworkConfig>,
Sets or clears the value of network_config.
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_options<T, K, V>(self, v: T) -> Self
pub fn set_options<T, K, V>(self, v: T) -> Self
Sets the value of options.
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_state_message<T: Into<String>>(self, v: T) -> Self
pub fn set_state_message<T: Into<String>>(self, v: T) -> Self
Sets the value of state_message.
Sourcepub fn set_service_endpoint<T: Into<String>>(self, v: T) -> Self
pub fn set_service_endpoint<T: Into<String>>(self, v: T) -> Self
Sets the value of service_endpoint.
Sourcepub fn set_version<T: Into<String>>(self, v: T) -> Self
pub fn set_version<T: Into<String>>(self, v: T) -> Self
Sets the value of version.
Sourcepub fn set_service_account<T: Into<String>>(self, v: T) -> Self
👎Deprecated
pub fn set_service_account<T: Into<String>>(self, v: T) -> Self
Sets the value of service_account.
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of display_name.
Sourcepub fn set_available_version<T, V>(self, v: T) -> Self
pub fn set_available_version<T, V>(self, v: T) -> Self
Sets the value of available_version.
Sourcepub fn set_api_endpoint<T: Into<String>>(self, v: T) -> Self
pub fn set_api_endpoint<T: Into<String>>(self, v: T) -> Self
Sets the value of api_endpoint.
Sourcepub fn set_gcs_bucket<T: Into<String>>(self, v: T) -> Self
pub fn set_gcs_bucket<T: Into<String>>(self, v: T) -> Self
Sets the value of gcs_bucket.
Sourcepub fn set_accelerators<T, V>(self, v: T) -> Self
pub fn set_accelerators<T, V>(self, v: T) -> Self
Sets the value of accelerators.
Sourcepub fn set_p4_service_account<T: Into<String>>(self, v: T) -> Self
pub fn set_p4_service_account<T: Into<String>>(self, v: T) -> Self
Sets the value of p4_service_account.
Sourcepub fn set_tenant_project_id<T: Into<String>>(self, v: T) -> Self
pub fn set_tenant_project_id<T: Into<String>>(self, v: T) -> Self
Sets the value of tenant_project_id.
Sourcepub fn set_dataproc_service_account<T: Into<String>>(self, v: T) -> Self
pub fn set_dataproc_service_account<T: Into<String>>(self, v: T) -> Self
Sets the value of dataproc_service_account.
Sourcepub fn set_enable_rbac<T: Into<bool>>(self, v: T) -> Self
pub fn set_enable_rbac<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_rbac.
Sourcepub fn set_crypto_key_config<T>(self, v: T) -> Selfwhere
T: Into<CryptoKeyConfig>,
pub fn set_crypto_key_config<T>(self, v: T) -> Selfwhere
T: Into<CryptoKeyConfig>,
Sets the value of crypto_key_config.
Sourcepub fn set_or_clear_crypto_key_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<CryptoKeyConfig>,
pub fn set_or_clear_crypto_key_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<CryptoKeyConfig>,
Sets or clears the value of crypto_key_config.
Sourcepub fn set_disabled_reason<T, V>(self, v: T) -> Self
pub fn set_disabled_reason<T, V>(self, v: T) -> Self
Sets the value of disabled_reason.