basePath: /
definitions:
  v1.CVD:
    properties:
      adb_port:
        description: '[Output Only]'
        type: integer
      adb_serial:
        description: '[Output Only]'
        type: string
      displays:
        description: '[Output Only]'
        items:
          type: string
        type: array
      group:
        description: '[Output Only] The group name the instance belongs to.'
        type: string
      name:
        description: '[Output Only] Identifier within a group.'
        type: string
      status:
        description: '[Output Only]'
        type: string
      webrtc_device_id:
        description: '[Output Only]'
        type: string
    type: object
  v1.CreateCVDRequest:
    properties:
      env_config:
        additionalProperties: true
        description: |-
          Environment canonical configuration.
          Structure: https://android.googlesource.com/device/google/cuttlefish/+/8bbd3b9cd815f756f332791d45c4f492b663e493/host/commands/cvd/parser/README.md
          Example: https://cs.android.com/android/platform/superproject/main/+/main:device/google/cuttlefish/host/cvd_test_configs/main_phone-main_watch.json;drc=b2e8f4f014abb7f9cb56c0ae199334aacb04542d
          NOTE: Using this as a black box for now as its content is unstable. Use the test configs pointed
          above as reference to build your config object.
        type: object
    type: object
  v1.CreateCVDResponse:
    properties:
      cvds:
        items:
          $ref: '#/definitions/v1.CVD'
        type: array
    type: object
  v1.ListCVDsResponse:
    properties:
      cvds:
        items:
          $ref: '#/definitions/v1.CVD'
        type: array
    type: object
info:
  contact: {}
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
  title: Cuttlefish Host Orchestrator API
  version: "1.0"
paths:
  /cvds:
    get:
      description: List all cuttlefish instances
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/v1.ListCVDsResponse'
      summary: List all cuttlefish instances
    post:
      consumes:
      - application/json
      description: Creates cuttlefish instances
      parameters:
      - description: CreateCVDRequest object instance
        in: body
        name: CreateCVDRequest
        required: true
        schema:
          $ref: '#/definitions/v1.CreateCVDRequest'
      - description: Use this header for forwarding EUC towards the Android Build
          API
        in: header
        name: X-Cutf-Host-Orchestrator-BuildAPI-Creds
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/v1.CreateCVDResponse'
      summary: Creates cuttlefish instances
  /cvds/{group}:
    get:
      description: List cuttlefish instances in a group
      parameters:
      - description: Group Name
        in: path
        name: group
        required: true
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/v1.ListCVDsResponse'
      summary: List cuttlefish instances in a group
  /operations/{name}/result:
    get:
      description: The returned object varies depending on the type of the operation
      parameters:
      - description: Operation name
        in: path
        name: name
        required: true
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: The returned object varies depending on the type of the operation
          schema: {}
      summary: Get operation result
swagger: "2.0"
