#[non_exhaustive]pub struct ImportItem {
pub entry: Option<Entry>,
pub entry_link: Option<EntryLink>,
pub update_mask: Option<FieldMask>,
pub aspect_keys: Vec<String>,
/* private fields */
}Expand description
An object that describes the values that you want to set for an entry and its attached aspects when you import metadata. Used when you run a metadata import job. See CreateMetadataJob.
You provide a collection of import items in a metadata import file. For more information about how to create a metadata import file, see Metadata import file.
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.entry: Option<Entry>Information about an entry and its attached aspects.
entry_link: Option<EntryLink>Information about the entry link. User should provide either one of the entry or entry_link. While providing entry_link, user should not provide update_mask and aspect_keys.
update_mask: Option<FieldMask>The fields to update, in paths that are relative to the Entry resource.
Separate each field with a comma.
In FULL entry sync mode, Dataplex Universal Catalog includes the paths of
all of the fields for an entry that can be modified, including aspects.
This means that Dataplex Universal Catalog replaces the existing entry with
the entry in the metadata import file. All modifiable fields are updated,
regardless of the fields that are listed in the update mask, and regardless
of whether a field is present in the entry object.
The update_mask field is ignored when an entry is created or re-created.
In an aspect-only metadata job (when entry sync mode is NONE), set this
value to aspects.
Dataplex Universal Catalog also determines which entries and aspects to modify by comparing the values and timestamps that you provide in the metadata import file with the values and timestamps that exist in your project. For more information, see Comparison logic.
aspect_keys: Vec<String>The aspects to modify. Supports the following syntaxes:
{aspect_type_reference}: matches aspects that belong to the specified aspect type and are attached directly to the entry.{aspect_type_reference}@{path}: matches aspects that belong to the specified aspect type and path.{aspect_type_reference}@*: matches aspects of the given type for all paths.*@path: matches aspects of all types on the given path.
Replace {aspect_type_reference} with a reference to the aspect type, in
the format
{project_id_or_number}.{location_id}.{aspect_type_id}.
In FULL entry sync mode, if you leave this field empty, it is treated as
specifying exactly those aspects that are present within the specified
entry. Dataplex Universal Catalog implicitly adds the keys for all of the
required aspects of an entry.
Implementations§
Source§impl ImportItem
impl ImportItem
pub fn new() -> Self
Sourcepub fn set_or_clear_entry<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_entry<T>(self, v: Option<T>) -> Self
Sets or clears the value of entry.
Sourcepub fn set_entry_link<T>(self, v: T) -> Self
pub fn set_entry_link<T>(self, v: T) -> Self
Sets the value of entry_link.
Sourcepub fn set_or_clear_entry_link<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_entry_link<T>(self, v: Option<T>) -> Self
Sets or clears the value of entry_link.
Sourcepub fn set_update_mask<T>(self, v: T) -> Self
pub fn set_update_mask<T>(self, v: T) -> Self
Sets the value of update_mask.
Sourcepub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_mask.
Sourcepub fn set_aspect_keys<T, V>(self, v: T) -> Self
pub fn set_aspect_keys<T, V>(self, v: T) -> Self
Sets the value of aspect_keys.
Trait Implementations§
Source§impl Clone for ImportItem
impl Clone for ImportItem
Source§fn clone(&self) -> ImportItem
fn clone(&self) -> ImportItem
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more