#[non_exhaustive]pub struct Action {
pub category: Category,
pub issue: String,
pub detect_time: Option<Timestamp>,
pub name: String,
pub lake: String,
pub zone: String,
pub asset: String,
pub data_locations: Vec<String>,
pub details: Option<Details>,
/* private fields */
}Expand description
Action represents an issue requiring administrator action for resolution.
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.category: CategoryThe category of issue associated with the action.
issue: StringDetailed description of the issue requiring action.
detect_time: Option<Timestamp>The time that the issue was detected.
name: StringOutput only. The relative resource name of the action, of the form:
projects/{project}/locations/{location}/lakes/{lake}/actions/{action}
projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/actions/{action}
projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/assets/{asset}/actions/{action}.
lake: StringOutput only. The relative resource name of the lake, of the form:
projects/{project_number}/locations/{location_id}/lakes/{lake_id}.
zone: StringOutput only. The relative resource name of the zone, of the form:
projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}.
asset: StringOutput only. The relative resource name of the asset, of the form:
projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}.
data_locations: Vec<String>The list of data locations associated with this action. Cloud Storage
locations are represented as URI paths(E.g.
gs://bucket/table1/year=2020/month=Jan/). BigQuery locations refer to
resource names(E.g.
bigquery.googleapis.com/projects/project-id/datasets/dataset-id).
details: Option<Details>Additional details about the action based on the action category.
Implementations§
Source§impl Action
impl Action
pub fn new() -> Self
Sourcepub fn set_category<T: Into<Category>>(self, v: T) -> Self
pub fn set_category<T: Into<Category>>(self, v: T) -> Self
Sets the value of category.
Sourcepub fn set_detect_time<T>(self, v: T) -> Self
pub fn set_detect_time<T>(self, v: T) -> Self
Sets the value of detect_time.
Sourcepub fn set_or_clear_detect_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_detect_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of detect_time.
Sourcepub fn set_data_locations<T, V>(self, v: T) -> Self
pub fn set_data_locations<T, V>(self, v: T) -> Self
Sets the value of data_locations.
Sourcepub fn set_details<T: Into<Option<Details>>>(self, v: T) -> Self
pub fn set_details<T: Into<Option<Details>>>(self, v: T) -> Self
Sets the value of details.
Note that all the setters affecting details are mutually
exclusive.
Sourcepub fn invalid_data_format(&self) -> Option<&Box<InvalidDataFormat>>
pub fn invalid_data_format(&self) -> Option<&Box<InvalidDataFormat>>
The value of details
if it holds a InvalidDataFormat, None if the field is not set or
holds a different branch.
Sourcepub fn set_invalid_data_format<T: Into<Box<InvalidDataFormat>>>(
self,
v: T,
) -> Self
pub fn set_invalid_data_format<T: Into<Box<InvalidDataFormat>>>( self, v: T, ) -> Self
Sets the value of details
to hold a InvalidDataFormat.
Note that all the setters affecting details are
mutually exclusive.
Sourcepub fn incompatible_data_schema(&self) -> Option<&Box<IncompatibleDataSchema>>
pub fn incompatible_data_schema(&self) -> Option<&Box<IncompatibleDataSchema>>
The value of details
if it holds a IncompatibleDataSchema, None if the field is not set or
holds a different branch.
Sourcepub fn set_incompatible_data_schema<T: Into<Box<IncompatibleDataSchema>>>(
self,
v: T,
) -> Self
pub fn set_incompatible_data_schema<T: Into<Box<IncompatibleDataSchema>>>( self, v: T, ) -> Self
Sets the value of details
to hold a IncompatibleDataSchema.
Note that all the setters affecting details are
mutually exclusive.
Sourcepub fn invalid_data_partition(&self) -> Option<&Box<InvalidDataPartition>>
pub fn invalid_data_partition(&self) -> Option<&Box<InvalidDataPartition>>
The value of details
if it holds a InvalidDataPartition, None if the field is not set or
holds a different branch.
Sourcepub fn set_invalid_data_partition<T: Into<Box<InvalidDataPartition>>>(
self,
v: T,
) -> Self
pub fn set_invalid_data_partition<T: Into<Box<InvalidDataPartition>>>( self, v: T, ) -> Self
Sets the value of details
to hold a InvalidDataPartition.
Note that all the setters affecting details are
mutually exclusive.
Sourcepub fn missing_data(&self) -> Option<&Box<MissingData>>
pub fn missing_data(&self) -> Option<&Box<MissingData>>
The value of details
if it holds a MissingData, None if the field is not set or
holds a different branch.
Sourcepub fn set_missing_data<T: Into<Box<MissingData>>>(self, v: T) -> Self
pub fn set_missing_data<T: Into<Box<MissingData>>>(self, v: T) -> Self
Sets the value of details
to hold a MissingData.
Note that all the setters affecting details are
mutually exclusive.
Sourcepub fn missing_resource(&self) -> Option<&Box<MissingResource>>
pub fn missing_resource(&self) -> Option<&Box<MissingResource>>
The value of details
if it holds a MissingResource, None if the field is not set or
holds a different branch.
Sourcepub fn set_missing_resource<T: Into<Box<MissingResource>>>(self, v: T) -> Self
pub fn set_missing_resource<T: Into<Box<MissingResource>>>(self, v: T) -> Self
Sets the value of details
to hold a MissingResource.
Note that all the setters affecting details are
mutually exclusive.
The value of details
if it holds a UnauthorizedResource, None if the field is not set or
holds a different branch.
Sets the value of details
to hold a UnauthorizedResource.
Note that all the setters affecting details are
mutually exclusive.
Sourcepub fn failed_security_policy_apply(
&self,
) -> Option<&Box<FailedSecurityPolicyApply>>
pub fn failed_security_policy_apply( &self, ) -> Option<&Box<FailedSecurityPolicyApply>>
The value of details
if it holds a FailedSecurityPolicyApply, None if the field is not set or
holds a different branch.
Sourcepub fn set_failed_security_policy_apply<T: Into<Box<FailedSecurityPolicyApply>>>(
self,
v: T,
) -> Self
pub fn set_failed_security_policy_apply<T: Into<Box<FailedSecurityPolicyApply>>>( self, v: T, ) -> Self
Sets the value of details
to hold a FailedSecurityPolicyApply.
Note that all the setters affecting details are
mutually exclusive.
Sourcepub fn invalid_data_organization(&self) -> Option<&Box<InvalidDataOrganization>>
pub fn invalid_data_organization(&self) -> Option<&Box<InvalidDataOrganization>>
The value of details
if it holds a InvalidDataOrganization, None if the field is not set or
holds a different branch.
Sourcepub fn set_invalid_data_organization<T: Into<Box<InvalidDataOrganization>>>(
self,
v: T,
) -> Self
pub fn set_invalid_data_organization<T: Into<Box<InvalidDataOrganization>>>( self, v: T, ) -> Self
Sets the value of details
to hold a InvalidDataOrganization.
Note that all the setters affecting details are
mutually exclusive.