project:
  name: project
  collection: datacatalog.projects
  attributes:
  - &project
    parameter_name: projectsId
    attribute_name: project
    help: |
      Project of the {resource}.
    property: core/project

location:
  name: location
  collection: datacatalog.projects.locations
  attributes:
  - *project
  - &location
    parameter_name: locationsId
    attribute_name: location
    help: |
      Location of the {resource}.

taxonomy:
  name: taxonomy
  collection: datacatalog.projects.locations.taxonomies
  attributes:
  - *project
  - *location
  - &taxonomy
    parameter_name: taxonomiesId
    attribute_name: taxonomy
    help: |
      Taxonomy of the {resource}.

policy_tag:
  name: policy tag
  collection: datacatalog.projects.locations.taxonomies.policyTags
  attributes:
  - *project
  - *location
  - *taxonomy
  - &policy_tag
    parameter_name: policyTagsId
    attribute_name: policy_tag
    help: |
      Policy tag of the {resource}.

entry_group:
  name: entry group
  collection: datacatalog.projects.locations.entryGroups
  request_id_field: entryGroupId
  disable_auto_completers: true
  attributes:
  - *project
  - *location
  - &entry_group
    parameter_name: entryGroupsId
    attribute_name: entry_group
    help: |
      Entry group of the {resource}.

entry:
  name: entry
  collection: datacatalog.projects.locations.entryGroups.entries
  request_id_field: entryId
  disable_auto_completers: true
  attributes:
  - *project
  - *location
  - *entry_group
  - &entry
    parameter_name: entriesId
    attribute_name: entry
    help: |
      Entry of the {resource}.

# TODO(b/141858337): Delete this and just use entry above.
non_primary_entry:
  name: entry
  collection: datacatalog.projects.locations.entryGroups.entries
  disable_auto_completers: true
  attributes:
  - *project
  - *location
  - *entry_group
  - parameter_name: entriesId
    attribute_name: entry
    help: |
      Entry of the {resource}.

tag:
  name: tag
  collection: datacatalog.projects.locations.entryGroups.entries.tags
  disable_auto_completers: true
  attributes:
  - *project
  - *location
  - *entry_group
  - *entry
  - parameter_name: tagsId
    attribute_name: tag
    help: |
      Tag of the {resource}.

crawler:
  name: crawler
  collection: datacatalog.projects.crawlers
  request_id_field: crawlerId
  attributes:
  - *project
  - &crawler
    parameter_name: crawlersId
    attribute_name: crawler
    help: |
      The Data Catalog crawler for the {resource}.

crawler_run:
  name: crawler run
  collection: datacatalog.projects.crawlers.crawlerRuns
  attributes:
  - *project
  - *crawler
  - &crawler_run
    parameter_name: crawlerRunsId
    attribute_name: crawler_run
    help: |
      The Data Catalog crawler run for the {resource}.

tag_template:
  name: tag template
  collection: datacatalog.projects.locations.tagTemplates
  request_id_field: tagTemplateId
  disable_auto_completers: true
  attributes:
  - *project
  - *location
  - &tag_template
    parameter_name: tagTemplatesId
    attribute_name: tag_template
    help: |
      Tag template of the {resource}.

tag_template_field:
  name: tag template field
  collection: datacatalog.projects.locations.tagTemplates.fields
  request_id_field: tagTemplateFieldId
  disable_auto_completers: true
  attributes:
  - *project
  - *location
  - parameter_name: tagTemplatesId
    attribute_name: tag-template
    help: |
      Tag template of the {resource}.
  - parameter_name: fieldsId
    attribute_name: field
    help: |
      Tag template field of the {resource}.

enum_value:
  name: enum value
  collection: datacatalog.projects.locations.tagTemplates.fields.enumValues
  request_id_field: name
  disable_auto_completers: true
  attributes:
  - *project
  - *location
  - parameter_name: tagTemplatesId
    attribute_name: tag-template
    help: |
      Tag template that contains {resource}.
  - parameter_name: fieldsId
    attribute_name: field
    help: |
      Tag template field that contains {resource}.
  - parameter_name: enumValuesId
    attribute_name: enum_value
    help: |
      Display name of {resource}.
