project:
  name: project
  collection: cloudbuild.projects
  attributes:
  - &project
    # For correct collection and parameter_names see
    # $ blaze run //cloud/sdk/gcloud:gcloud -- meta apis collections list --api=cloudbuild --api-version=v2
    parameter_name: projectsId
    attribute_name: project
    help: Cloud Project ID.
    property: core/project
  disable_auto_completers: false

# Naming this as region instead of location to keep consistency with worker-pools, workflows, etc.
region:
  name: region
  collection: cloudbuild.projects.locations
  attributes:
  - &region
    parameter_name: locationsId
    attribute_name: region
    help: The Google Cloud region.
    property: builds/region
  disable_auto_completers: false

connection:
  name: connection
  collection: cloudbuild.projects.locations.connections
  request_id_field: connectionId
  attributes:
  - *project
  - *region
  - &connection
    parameter_name: connectionsId
    attribute_name: connection
    help: Connection ID.
  disable_auto_completers: false

repository:
  name: repository
  collection: cloudbuild.projects.locations.connections.repositories
  request_id_field: repositoryId
  attributes:
  - *project
  - *region
  - *connection
  - &repository
    parameter_name: repositoriesId
    attribute_name: repository
    help: Repository ID.
  disable_auto_completers: false
