gcloud alpha dialogflow entity-types update - update a Dialogflow entity type
gcloud alpha dialogflow entity-types update ENTITY_TYPE [--auto-expand] [--display-name=DISPLAY_NAME] [--add-entities=ADD_ENTITIES --clear-entities | --remove-entities=[REMOVE_ENTITIES,...]] [GCLOUD_WIDE_FLAG ...]
(ALPHA) Update a Dialogflow entity type.
To update the display name of an entity type:
$ gcloud alpha dialogflow entity-types update --display-name="color"
- EntityType resource - Entity type to update. This represents a Cloud 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 entity_type on the command line with a fully specified name;
- —
set the property core/project;
- —
provide the argument --project on the command line.
This must be specified.
- ENTITY_TYPE
ID of the entityType or fully qualified identifier for the entityType. To set the entity_type attribute:
provide the argument entity_type on the command line.
- --auto-expand
Whether or not the entity type can be automatically expanded to idenitify entities not explicitly included.
- --display-name=DISPLAY_NAME
A human readable name for the entity type.
- Use these flags for adding and removing entities:
- --add-entities=ADD_ENTITIES
Comma separated list of entities, or a map of entities to synonyms, to be added to existing list of entities.
If specified with --remove-entities or --clear-entities, entities will be removed in a separate request before entities are added. If an entity with a given value exists, it will be overwritten.
If a list, the entities can contain references to other entity types (with or without aliases).
To specify a map, set this flag with --flags-file as a map, where each key is the canonical name and each value is a list of synonyms to map to the canonical name. The canonical name must be explicitly included in the list of synonyms. For more information on --flags-file, see gcloud topics flags-file.
For example, use --flags-file=flags.yaml, where flags.yaml contains:
--entities: red: - red - cherry - rose blue: - blue - azure - cyan
For more information, see https://cloud.google.com/dialogflow-enterprise/docs/reference/rest/v2/Entity.
- At most one of these can be specified:
- --clear-entities
If true, remove all existing entities.
Can be used with --add-entities to replace existing entities.
- --remove-entities=[REMOVE_ENTITIES,...]
A comma separated list of entities to be removed.
These flags are available to all commands: --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.
This command uses the dialogflow/v2 API. The full documentation for this API can be found at: https://cloud.google.com/dialogflow/
This command is currently in alpha and might change without notice. If this command fails with API permission errors despite specifying the correct project, you might be trying to access an API with an invitation-only early access allowlist.