{ "basePath": "/_ah/api", "consumes": [ "application/json" ], "definitions": { "WebappSrcProtoModelBuildInfoMessage": { "properties": { "artifact_type": { "type": "string" }, "artifacts": { "items": { "type": "string" }, "type": "array" }, "build_id": { "type": "string" }, "build_target": { "type": "string" }, "build_type": { "type": "string" }, "manifest_branch": { "type": "string" }, "signed": { "type": "boolean" } }, "type": "object" }, "WebappSrcProtoModelBuildResponseMessage": { "properties": { "builds": { "description": "A message for representing an individual build entry.", "items": { "$ref": "#/definitions/#/definitions/WebappSrcProtoModelBuildInfoMessage" }, "type": "array" }, "has_next": { "type": "boolean" } }, "type": "object" }, "WebappSrcProtoModelCountRequestMessage": { "properties": { "filter": { "type": "string" } }, "type": "object" }, "WebappSrcProtoModelCountResponseMessage": { "properties": { "count": { "format": "int64", "type": "string" } }, "type": "object" }, "WebappSrcProtoModelDefaultResponse": { "properties": { "return_code": { "enum": [ "SUCCESS", "FAIL" ], "type": "string" } }, "type": "object" }, "WebappSrcProtoModelDeviceInfoMessage": { "properties": { "product": { "type": "string" }, "scheduling_status": { "format": "int64", "type": "string" }, "serial": { "type": "string" }, "status": { "format": "int64", "type": "string" } }, "type": "object" }, "WebappSrcProtoModelDeviceResponseMessage": { "properties": { "devices": { "description": "A message for representing an individual host's device entry.", "items": { "$ref": "#/definitions/WebappSrcProtoModelDeviceInfoMessage" }, "type": "array" }, "has_next": { "type": "boolean" } }, "type": "object" }, "WebappSrcProtoModelGetRequestMessage": { "properties": { "direction": { "type": "string" }, "filter": { "type": "string" }, "offset": { "format": "int64", "type": "string" }, "size": { "format": "int64", "type": "string" }, "sort": { "type": "string" } }, "type": "object" }, "WebappSrcProtoModelHostInfoMessage": { "properties": { "devices": { "description": "A message for representing an individual host's device entry.", "items": { "$ref": "#/definitions/WebappSrcProtoModelDeviceInfoMessage" }, "type": "array" }, "hostname": { "type": "string" } }, "type": "object" } }, "host": "vtslab-schedule-prod.appspot.com", "info": { "description": "Endpoint API for host_info.", "title": "host", "version": "v1" }, "paths": { "/host/v1/count": { "post": { "operationId": "HostInfoApi_count", "parameters": [ { "in": "body", "name": "body", "schema": { "$ref": "#/definitions/WebappSrcProtoModelCountRequestMessage" } } ], "responses": { "200": { "description": "A successful response", "schema": { "$ref": "#/definitions/WebappSrcProtoModelCountResponseMessage" } } } } }, "/host/v1/get": { "post": { "operationId": "HostInfoApi_get", "parameters": [ { "in": "body", "name": "body", "schema": { "$ref": "#/definitions/WebappSrcProtoModelGetRequestMessage" } } ], "responses": { "200": { "description": "A successful response", "schema": { "$ref": "#/definitions/WebappSrcProtoModelDeviceResponseMessage" } } } } }, "/host/v1/set": { "post": { "operationId": "HostInfoApi_set", "parameters": [ { "in": "body", "name": "body", "schema": { "$ref": "#/definitions/WebappSrcProtoModelHostInfoMessage" } } ], "responses": { "200": { "description": "A successful response", "schema": { "$ref": "#/definitions/WebappSrcProtoModelDefaultResponse" } } } } } }, "produces": [ "application/json" ], "schemes": [ "https" ], "securityDefinitions": { "google_id_token": { "authorizationUrl": "", "flow": "implicit", "type": "oauth2", "x-google-issuer": "https://accounts.google.com", "x-google-jwks_uri": "https://www.googleapis.com/oauth2/v3/certs" } }, "swagger": "2.0", "x-google-api-name": "host" }