- help_text:
    brief: Create a Cloud Build repository
    description: Create a Cloud Build repository in a connection.
    examples: |
      To Create a repository with name ``my-repo'' in the connection ``my-conn'',
      run the following command:

      $ {command} my-repo --remote-uri=https://github.com/octocat/Hello-World.git \
          --connection=my-conn --region=us-central1

  request:
    collection: cloudbuild.projects.locations.connections.repositories
    api_version: v2

  arguments:
    resource:
      help_text: Repository to create.
      spec: !REF googlecloudsdk.command_lib.cloudbuild.resources_v2:repository
    params:
    - api_field: repository.remoteUri
      arg_name: remote-uri
      help_text: The remote git clone URL of the repository.
      required: true

  async:
    collection: cloudbuild.projects.locations.operations
