1{ 2 "basePath": "/_ah/api", 3 "consumes": [ 4 "application/json" 5 ], 6 "definitions": { 7 "WebappSrcProtoModelBuildInfoMessage": { 8 "properties": { 9 "artifact_type": { 10 "type": "string" 11 }, 12 "artifacts": { 13 "items": { 14 "type": "string" 15 }, 16 "type": "array" 17 }, 18 "build_id": { 19 "type": "string" 20 }, 21 "build_target": { 22 "type": "string" 23 }, 24 "build_type": { 25 "type": "string" 26 }, 27 "manifest_branch": { 28 "type": "string" 29 }, 30 "signed": { 31 "type": "boolean" 32 } 33 }, 34 "type": "object" 35 }, 36 "WebappSrcProtoModelBuildResponseMessage": { 37 "properties": { 38 "builds": { 39 "description": "A message for representing an individual build entry.", 40 "items": { 41 "$ref": "#/definitions/#/definitions/WebappSrcProtoModelBuildInfoMessage" 42 }, 43 "type": "array" 44 }, 45 "has_next": { 46 "type": "boolean" 47 } 48 }, 49 "type": "object" 50 }, 51 "WebappSrcProtoModelCountRequestMessage": { 52 "properties": { 53 "filter": { 54 "type": "string" 55 } 56 }, 57 "type": "object" 58 }, 59 "WebappSrcProtoModelCountResponseMessage": { 60 "properties": { 61 "count": { 62 "format": "int64", 63 "type": "string" 64 } 65 }, 66 "type": "object" 67 }, 68 "WebappSrcProtoModelDefaultResponse": { 69 "properties": { 70 "return_code": { 71 "enum": [ 72 "SUCCESS", 73 "FAIL" 74 ], 75 "type": "string" 76 } 77 }, 78 "type": "object" 79 }, 80 "WebappSrcProtoModelDeviceInfoMessage": { 81 "properties": { 82 "product": { 83 "type": "string" 84 }, 85 "scheduling_status": { 86 "format": "int64", 87 "type": "string" 88 }, 89 "serial": { 90 "type": "string" 91 }, 92 "status": { 93 "format": "int64", 94 "type": "string" 95 } 96 }, 97 "type": "object" 98 }, 99 "WebappSrcProtoModelDeviceResponseMessage": { 100 "properties": { 101 "devices": { 102 "description": "A message for representing an individual host's device entry.", 103 "items": { 104 "$ref": "#/definitions/WebappSrcProtoModelDeviceInfoMessage" 105 }, 106 "type": "array" 107 }, 108 "has_next": { 109 "type": "boolean" 110 } 111 }, 112 "type": "object" 113 }, 114 "WebappSrcProtoModelGetRequestMessage": { 115 "properties": { 116 "direction": { 117 "type": "string" 118 }, 119 "filter": { 120 "type": "string" 121 }, 122 "offset": { 123 "format": "int64", 124 "type": "string" 125 }, 126 "size": { 127 "format": "int64", 128 "type": "string" 129 }, 130 "sort": { 131 "type": "string" 132 } 133 }, 134 "type": "object" 135 }, 136 "WebappSrcProtoModelHostInfoMessage": { 137 "properties": { 138 "devices": { 139 "description": "A message for representing an individual host's device entry.", 140 "items": { 141 "$ref": "#/definitions/WebappSrcProtoModelDeviceInfoMessage" 142 }, 143 "type": "array" 144 }, 145 "hostname": { 146 "type": "string" 147 } 148 }, 149 "type": "object" 150 } 151 }, 152 "host": "vtslab-schedule-prod.appspot.com", 153 "info": { 154 "description": "Endpoint API for host_info.", 155 "title": "host", 156 "version": "v1" 157 }, 158 "paths": { 159 "/host/v1/count": { 160 "post": { 161 "operationId": "HostInfoApi_count", 162 "parameters": [ 163 { 164 "in": "body", 165 "name": "body", 166 "schema": { 167 "$ref": "#/definitions/WebappSrcProtoModelCountRequestMessage" 168 } 169 } 170 ], 171 "responses": { 172 "200": { 173 "description": "A successful response", 174 "schema": { 175 "$ref": "#/definitions/WebappSrcProtoModelCountResponseMessage" 176 } 177 } 178 } 179 } 180 }, 181 "/host/v1/get": { 182 "post": { 183 "operationId": "HostInfoApi_get", 184 "parameters": [ 185 { 186 "in": "body", 187 "name": "body", 188 "schema": { 189 "$ref": "#/definitions/WebappSrcProtoModelGetRequestMessage" 190 } 191 } 192 ], 193 "responses": { 194 "200": { 195 "description": "A successful response", 196 "schema": { 197 "$ref": "#/definitions/WebappSrcProtoModelDeviceResponseMessage" 198 } 199 } 200 } 201 } 202 }, 203 "/host/v1/set": { 204 "post": { 205 "operationId": "HostInfoApi_set", 206 "parameters": [ 207 { 208 "in": "body", 209 "name": "body", 210 "schema": { 211 "$ref": "#/definitions/WebappSrcProtoModelHostInfoMessage" 212 } 213 } 214 ], 215 "responses": { 216 "200": { 217 "description": "A successful response", 218 "schema": { 219 "$ref": "#/definitions/WebappSrcProtoModelDefaultResponse" 220 } 221 } 222 } 223 } 224 } 225 }, 226 "produces": [ 227 "application/json" 228 ], 229 "schemes": [ 230 "https" 231 ], 232 "securityDefinitions": { 233 "google_id_token": { 234 "authorizationUrl": "", 235 "flow": "implicit", 236 "type": "oauth2", 237 "x-google-issuer": "https://accounts.google.com", 238 "x-google-jwks_uri": "https://www.googleapis.com/oauth2/v3/certs" 239 } 240 }, 241 "swagger": "2.0", 242 "x-google-api-name": "host" 243}