- NAME
-
- gcloud alpha dataplex entries update - update a Dataplex Entry
- SYNOPSIS
-
-
gcloud alpha dataplex entries update
(ENTRY
:--entry-group
=ENTRY_GROUP
--location
=LOCATION
) [--remove-aspects
=[ASPECT_TYPE
@PATH
,…]] [--update-aspects
=YAML_OR_JSON_FILE
] [--clear-fully-qualified-name
|--fully-qualified-name
=FULLY_QUALIFIED_NAME
] [--entry-source-update-time
=DATE_TIME
:--clear-entry-source-create-time
|--entry-source-create-time
=DATE_TIME
--clear-entry-source-description
|--entry-source-description
=DESCRIPTION
--clear-entry-source-display-name
|--entry-source-display-name
=DISPLAY_NAME
--clear-entry-source-labels
|--entry-source-labels
=[KEY
=VALUE
,…]--clear-entry-source-platform
|--entry-source-platform
=PLATFORM_NAME
--clear-entry-source-resource
|--entry-source-resource
=RESOURCE
--clear-entry-source-system
|--entry-source-system
=SYSTEM_NAME
] [GCLOUD_WIDE_FLAG …
]
-
- DESCRIPTION
-
(ALPHA)
Update specified fields in a given Dataplex Entry. - EXAMPLES
-
To update fully qualified name (FQN) of an entry, run:
gcloud alpha dataplex entries update entry1 --project=test-project --location=us-central1 --entry-group entry-group1 --fully-qualified-name='custom:a.b.c'
To update description of an entry, run:
gcloud alpha dataplex entries update entry1 --project=test-project --location=us-central1 --entry-group entry-group1 --entry-source-description='Updated description' --entry-source-update-time='1998-09-04T12:00:00-0700'
To clear the description of an entry, run:
gcloud alpha dataplex entries update entry1 --project=test-project --location=us-central1 --entry-group entry-group1 --clear-entry-source-description --entry-source-update-time='1998-09-04T12:00:00-0700'
To add or update aspects from the YAML/JSON file, run:
gcloud alpha dataplex entries update entry1 --project=test-project --location=us-central1 --entry-group entry-group1 --update-aspects=path-to-a-file-with-aspects.json
To remove all aspects of type
test-project.us-central1.some-aspect-type
from the entry, run:gcloud alpha dataplex entries update entry1 --project=test-project --location=us-central1 --entry-group entry-group1 --remove-aspects='test-project.us-central1.some-aspect-type@*'
To remove all aspects on path
Schema.column1
from the entry, run:gcloud alpha dataplex entries update entry1 --project=test-project --location=us-central1 --entry-group entry-group1 --remove-aspects='*@Schema.column1'
To remove exact aspects
test-project.us-central1.some-aspect-type@Schema.column1
andtest-project.us-central1.some-aspect-type2@Schema.column2
from the entry, run:gcloud alpha dataplex entries update entry1 --project=test-project --location=us-central1 --entry-group entry-group1 --remove-aspects=test-project.us-central1.some-aspect-type@Schema.column1,test-project.us-central2.some-aspect-type@Schema.column2
- POSITIONAL ARGUMENTS
-
-
Entry resource - Arguments and flags that define the Dataplex Entry you want to
reference. The arguments in this group can be used to specify the attributes of
this resource. (NOTE) Some attributes are not given arguments in this group but
can be set in other ways.
To set the
project
attribute:-
provide the argument
entry
on the command line with a fully specified name; -
provide the argument
--project
on the command line; -
set the property
core/project
.
This must be specified.
ENTRY
-
ID of the entry or fully qualified identifier for the entry.
To set the
entry
attribute:-
provide the argument
entry
on the command line.
This positional argument must be specified if any of the other arguments in this group are specified.
-
provide the argument
--entry-group
=ENTRY_GROUP
-
Entry group containing Dataplex Entries.
To set the
entry-group
attribute:-
provide the argument
entry
on the command line with a fully specified name; -
provide the argument
--entry-group
on the command line.
-
provide the argument
--location
=LOCATION
-
Location of the Dataplex resource.
To set the
location
attribute:-
provide the argument
entry
on the command line with a fully specified name; -
provide the argument
--location
on the command line; -
set the property
dataplex/location
.
-
provide the argument
-
provide the argument
-
Entry resource - Arguments and flags that define the Dataplex Entry you want to
reference. The arguments in this group can be used to specify the attributes of
this resource. (NOTE) Some attributes are not given arguments in this group but
can be set in other ways.
- FLAGS
-
--remove-aspects
=[ASPECT_TYPE
@PATH
,…]-
List of Aspect keys, identifying Aspects to remove from the entry.
Keys are in the format
, or justASPECT_TYPE@PATH
, if the Aspect is attached to an entry itself rather than to a specific column defined in the schema.ASPECT_TYPE
is expected to be in a formatASPECT_TYPE
or a wildcardPROJECT_ID.LOCATION.ASPECT_TYPE_ID
*
, which targets all aspect types.
can be either empty (which means a 'root' path, such that Aspect is attached to the entry itself), point to a specific column defined in the schema (for example:PATH
Schema.some_column
) or a wildcard*
(target all paths).
andASPECT_TYPE
cannot be both specified as wildcardsPATH
*
.If both
--update-aspects
and--remove-aspects
flags are specified, and the same aspect key is used in both flags, then--update-aspects
takes precedence, and such an aspect will be updated and not removed. --update-aspects
=YAML_OR_JSON_FILE
-
Path to a YAML or JSON file containing Aspects to add or update.
When this flag is specified, only Aspects referenced in the file are going to be added or updated. Specifying this flag does not remove any Aspects from the entry. In other words, specifying this flag will not lead to a full replacement of Aspects with a contents of the provided file.
Content of the file contains a map, where keys are in the format
, or justASPECT_TYPE@PATH
, if the Aspect is attached to an entry itself rather than to a specific column defined in the schema.ASPECT_TYPE
Values in the map represent Aspect's content, which must conform to a template defined for a given
. Each Aspect will be replaced fully by the provided content. That means data in the Aspect will be replaced and not merged with existing contents of that Aspect in the Entry.ASPECT_TYPE
is expected to be in a formatASPECT_TYPE
.PROJECT_ID.LOCATION.ASPECT_TYPE_ID
can be either empty (which means a 'root' path, such that Aspect is attached to the entry itself) or point to a specific column defined in the schema. For example:PATH
Schema.some_column
.Example YAML format:
project-id1.us-central1.my-aspect-type1: data: aspectField1: someValue aspectField2: someOtherValue project-id2.us-central1.my-aspect-type2@Schema.column1: data: aspectField3: someValue3
Example JSON format:
If both{ "project-id1.us-central1.my-aspect-type1": { "data": { "aspectField1": "someValue", "aspectField2": "someOtherValue" } }, "project-id2.us-central1.my-aspect-type2@Schema.column1": { "data": { "aspectField3": "someValue3" } } }
--update-aspects
and--remove-aspects
flags are specified, and the same aspect key is used in both flags, then--update-aspects
takes precedence, and such an aspect will be updated and not removed. -
At most one of these can be specified:
--clear-fully-qualified-name
- Clear the FQN for the Entry.
--fully-qualified-name
=FULLY_QUALIFIED_NAME
- FQN, a name for the entry that can reference it in an external system.
-
Source system related information for an entry. If any of the entry source
fields are specified, then ``--entry-source-update-time
must be specified as well.
---entry-source-update-time
=DATE_TIME
-
The update date and time of the resource in the source system.
This flag argument must be specified if any of the other arguments in this group are specified.
-
At most one of these can be specified:
--clear-entry-source-create-time
- Clear the value for the create_time field in the Entry Source.
--entry-source-create-time
=DATE_TIME
- The creation date and time of the resource in the source system.
-
At most one of these can be specified:
--clear-entry-source-description
- Clear the value for the description field in the Entry Source.
--entry-source-description
=DESCRIPTION
- Description of the Entry.
-
At most one of these can be specified:
--clear-entry-source-display-name
- Clear the value for the display_name field in the Entry Source.
--entry-source-display-name
=DISPLAY_NAME
- User friendly display name.
-
At most one of these can be specified:
--clear-entry-source-labels
- Clear the labels for the Entry Source.
--entry-source-labels
=[KEY
=VALUE
,…]-
List of label KEY=VALUE pairs to add.
Keys must start with a lowercase character and contain only hyphens (
), underscores (
_), lowercase characters, and numbers. Values must contain only hyphens (
-), underscores (
_), lowercase characters, and numbers.
--clear-entry-source-platform
- Clear the value for the platform field in the Entry Source.
--entry-source-platform
=PLATFORM_NAME
- The platform containing the source system.
--clear-entry-source-resource
- Clear the value for the resource field in the Entry Source.
--entry-source-resource
=RESOURCE
- The name of the resource in the source system.
--clear-entry-source-system
- Clear the value for the system field in the Entry Source.
--entry-source-system
=SYSTEM_NAME
- The name of the source system.
--access-token-file
,
--account
, --billing-project
,
--configuration
,
--flags-file
,
--flatten
, --format
, --help
, --impersonate-service-account
,
--log-http
,
--project
, --quiet
, --trace-token
, --user-output-enabled
,
--verbosity
.
Run $ gcloud help
for details.
gcloud dataplex entries update