OLD | NEW |
1 { | 1 { |
2 "auth": { | 2 "auth": { |
3 "oauth2": { | 3 "oauth2": { |
4 "scopes": { | 4 "scopes": { |
5 "https://www.googleapis.com/auth/cloud-platform": { | 5 "https://www.googleapis.com/auth/cloud-platform": { |
6 "description": "View and manage your data across Google Clou
d Platform services" | 6 "description": "View and manage your data across Google Clou
d Platform services" |
7 } | 7 } |
8 } | 8 } |
9 } | 9 } |
10 }, | 10 }, |
(...skipping 12 matching lines...) Expand all Loading... |
23 "kind": "discovery#restDescription", | 23 "kind": "discovery#restDescription", |
24 "name": "ml", | 24 "name": "ml", |
25 "ownerDomain": "google.com", | 25 "ownerDomain": "google.com", |
26 "ownerName": "Google", | 26 "ownerName": "Google", |
27 "parameters": { | 27 "parameters": { |
28 "access_token": { | 28 "access_token": { |
29 "description": "OAuth access token.", | 29 "description": "OAuth access token.", |
30 "location": "query", | 30 "location": "query", |
31 "type": "string" | 31 "type": "string" |
32 }, | 32 }, |
33 "prettyPrint": { | |
34 "default": "true", | |
35 "description": "Returns response with indentations and line breaks."
, | |
36 "location": "query", | |
37 "type": "boolean" | |
38 }, | |
39 "key": { | 33 "key": { |
40 "description": "API key. Your API key identifies your project and pr
ovides you with API access, quota, and reports. Required unless you provide an O
Auth 2.0 token.", | 34 "description": "API key. Your API key identifies your project and pr
ovides you with API access, quota, and reports. Required unless you provide an O
Auth 2.0 token.", |
41 "location": "query", | 35 "location": "query", |
42 "type": "string" | 36 "type": "string" |
43 }, | 37 }, |
44 "quotaUser": { | 38 "quotaUser": { |
45 "description": "Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should not exc
eed 40 characters.", | 39 "description": "Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should not exc
eed 40 characters.", |
46 "location": "query", | 40 "location": "query", |
47 "type": "string" | 41 "type": "string" |
48 }, | 42 }, |
49 "pp": { | 43 "pp": { |
50 "default": "true", | 44 "default": "true", |
51 "description": "Pretty-print response.", | 45 "description": "Pretty-print response.", |
52 "location": "query", | 46 "location": "query", |
53 "type": "boolean" | 47 "type": "boolean" |
54 }, | 48 }, |
| 49 "bearer_token": { |
| 50 "description": "OAuth bearer token.", |
| 51 "location": "query", |
| 52 "type": "string" |
| 53 }, |
| 54 "oauth_token": { |
| 55 "description": "OAuth 2.0 token for the current user.", |
| 56 "location": "query", |
| 57 "type": "string" |
| 58 }, |
| 59 "upload_protocol": { |
| 60 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", |
| 61 "location": "query", |
| 62 "type": "string" |
| 63 }, |
| 64 "prettyPrint": { |
| 65 "default": "true", |
| 66 "description": "Returns response with indentations and line breaks."
, |
| 67 "location": "query", |
| 68 "type": "boolean" |
| 69 }, |
| 70 "uploadType": { |
| 71 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", |
| 72 "location": "query", |
| 73 "type": "string" |
| 74 }, |
55 "fields": { | 75 "fields": { |
56 "description": "Selector specifying which fields to include in a par
tial response.", | 76 "description": "Selector specifying which fields to include in a par
tial response.", |
57 "location": "query", | 77 "location": "query", |
58 "type": "string" | 78 "type": "string" |
59 }, | 79 }, |
| 80 "callback": { |
| 81 "description": "JSONP", |
| 82 "location": "query", |
| 83 "type": "string" |
| 84 }, |
| 85 "$.xgafv": { |
| 86 "description": "V1 error format.", |
| 87 "enum": [ |
| 88 "1", |
| 89 "2" |
| 90 ], |
| 91 "enumDescriptions": [ |
| 92 "v1 error format", |
| 93 "v2 error format" |
| 94 ], |
| 95 "location": "query", |
| 96 "type": "string" |
| 97 }, |
60 "alt": { | 98 "alt": { |
61 "default": "json", | 99 "default": "json", |
62 "description": "Data format for response.", | 100 "description": "Data format for response.", |
63 "enum": [ | 101 "enum": [ |
64 "json", | 102 "json", |
65 "media", | 103 "media", |
66 "proto" | 104 "proto" |
67 ], | 105 ], |
68 "enumDescriptions": [ | 106 "enumDescriptions": [ |
69 "Responses with Content-Type of application/json", | 107 "Responses with Content-Type of application/json", |
70 "Media download with context-dependent Content-Type", | 108 "Media download with context-dependent Content-Type", |
71 "Responses with Content-Type of application/x-protobuf" | 109 "Responses with Content-Type of application/x-protobuf" |
72 ], | 110 ], |
73 "location": "query", | 111 "location": "query", |
74 "type": "string" | 112 "type": "string" |
75 }, | |
76 "$.xgafv": { | |
77 "description": "V1 error format.", | |
78 "enum": [ | |
79 "1", | |
80 "2" | |
81 ], | |
82 "enumDescriptions": [ | |
83 "v1 error format", | |
84 "v2 error format" | |
85 ], | |
86 "location": "query", | |
87 "type": "string" | |
88 }, | |
89 "callback": { | |
90 "description": "JSONP", | |
91 "location": "query", | |
92 "type": "string" | |
93 }, | |
94 "oauth_token": { | |
95 "description": "OAuth 2.0 token for the current user.", | |
96 "location": "query", | |
97 "type": "string" | |
98 }, | |
99 "uploadType": { | |
100 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", | |
101 "location": "query", | |
102 "type": "string" | |
103 }, | |
104 "bearer_token": { | |
105 "description": "OAuth bearer token.", | |
106 "location": "query", | |
107 "type": "string" | |
108 }, | |
109 "upload_protocol": { | |
110 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", | |
111 "location": "query", | |
112 "type": "string" | |
113 } | 113 } |
114 }, | 114 }, |
115 "protocol": "rest", | 115 "protocol": "rest", |
116 "resources": { | 116 "resources": { |
117 "projects": { | 117 "projects": { |
118 "methods": { | 118 "methods": { |
119 "predict": { | 119 "predict": { |
120 "description": "Performs prediction on the data in the reque
st.\n\nResponses are very similar to requests. There are two top-level fields,\n
each of which are JSON lists:\n\n<dl>\n <dt>predictions</dt>\n <dd>The list of
predictions, one per instance in the request.</dd>\n <dt>error</dt>\n <dd>An
error message returned instead of a prediction list if any\n instance produ
ced an error.</dd>\n</dl>\n\nIf the call is successful, the response body will c
ontain one prediction\nentry per instance in the request body. If prediction fai
ls for any\ninstance, the response body will contain no predictions and will con
tian\na single error entry instead.\n\nEven though there is one prediction per i
nstance, the format of a\nprediction is not directly related to the format of an
instance.\nPredictions take whatever format is specified in the outputs collect
ion\ndefined in the model. The collection of predictions is returned in a JSON\n
list. Each member of the list can be a simple value, a list, or a JSON\nobject o
f any complexity. If your model has more than one output tensor,\neach predictio
n will be a JSON object containing a name/value pair for each\noutput. The names
identify the output aliases in the graph.\n\nThe following examples show some p
ossible responses:\n\nA simple set of predictions for three input instances, whe
re each\nprediction is an integer value:\n<pre>\n{\"predictions\": [5, 4, 3]}\n<
/pre>\nA more complex set of predictions, each containing two named values that\
ncorrespond to output tensors, named **label** and **scores** respectively.\nThe
value of **label** is the predicted category (\"car\" or \"beach\") and\n**scor
es** contains a list of probabilities for that instance across the\npossible cat
egories.\n<pre>\n{\"predictions\": [{\"label\": \"beach\", \"scores\": [0.1, 0.9
]},\n {\"label\": \"car\", \"scores\": [0.75, 0.25]}]}\n</pre>\n
A response when there is an error processing an input instance:\n<pre>\n{\"error
\": \"Divide by zero\"}\n</pre>", | 120 "description": "Performs prediction on the data in the reque
st.\n\n**** REMOVE FROM GENERATED DOCUMENTATION", |
121 "httpMethod": "POST", | 121 "httpMethod": "POST", |
122 "id": "ml.projects.predict", | 122 "id": "ml.projects.predict", |
123 "parameterOrder": [ | 123 "parameterOrder": [ |
124 "name" | 124 "name" |
125 ], | 125 ], |
126 "parameters": { | 126 "parameters": { |
127 "name": { | 127 "name": { |
128 "description": "Required. The resource name of a mod
el or a version.\n\nAuthorization: requires `Viewer` role on the parent project.
", | 128 "description": "Required. The resource name of a mod
el or a version.\n\nAuthorization: requires `Viewer` role on the parent project.
", |
129 "location": "path", | 129 "location": "path", |
130 "pattern": "^projects/.+$", | 130 "pattern": "^projects/.+$", |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 "path": "v1beta1/{+name}:getConfig", | 162 "path": "v1beta1/{+name}:getConfig", |
163 "response": { | 163 "response": { |
164 "$ref": "GoogleCloudMlV1beta1__GetConfigResponse" | 164 "$ref": "GoogleCloudMlV1beta1__GetConfigResponse" |
165 }, | 165 }, |
166 "scopes": [ | 166 "scopes": [ |
167 "https://www.googleapis.com/auth/cloud-platform" | 167 "https://www.googleapis.com/auth/cloud-platform" |
168 ] | 168 ] |
169 } | 169 } |
170 }, | 170 }, |
171 "resources": { | 171 "resources": { |
172 "models": { | 172 "operations": { |
173 "methods": { | 173 "methods": { |
174 "create": { | 174 "list": { |
175 "description": "Creates a model which will later con
tain one or more versions.\n\nYou must add at least one version before you can r
equest predictions from\nthe model. Add versions by calling\n[projects.models.ve
rsions.create](/ml/reference/rest/v1beta1/projects.models.versions/create).", | 175 "description": "Lists operations that match the spec
ified filter in the request. If the\nserver doesn't support this method, it retu
rns `UNIMPLEMENTED`.\n\nNOTE: the `name` binding below allows API services to ov
erride the binding\nto use different resource name schemes, such as `users/*/ope
rations`.", |
176 "httpMethod": "POST", | 176 "httpMethod": "GET", |
177 "id": "ml.projects.models.create", | 177 "id": "ml.projects.operations.list", |
178 "parameterOrder": [ | 178 "parameterOrder": [ |
179 "parent" | 179 "name" |
180 ], | 180 ], |
181 "parameters": { | 181 "parameters": { |
182 "parent": { | 182 "filter": { |
183 "description": "Required. The project name.\
n\nAuthorization: requires `Editor` role on the specified project.", | 183 "description": "The standard list filter.", |
| 184 "location": "query", |
| 185 "type": "string" |
| 186 }, |
| 187 "name": { |
| 188 "description": "The name of the operation co
llection.", |
184 "location": "path", | 189 "location": "path", |
185 "pattern": "^projects/[^/]+$", | 190 "pattern": "^projects/[^/]+$", |
186 "required": true, | 191 "required": true, |
187 "type": "string" | 192 "type": "string" |
| 193 }, |
| 194 "pageToken": { |
| 195 "description": "The standard list page token
.", |
| 196 "location": "query", |
| 197 "type": "string" |
| 198 }, |
| 199 "pageSize": { |
| 200 "description": "The standard list page size.
", |
| 201 "format": "int32", |
| 202 "location": "query", |
| 203 "type": "integer" |
188 } | 204 } |
189 }, | 205 }, |
190 "path": "v1beta1/{+parent}/models", | 206 "path": "v1beta1/{+name}/operations", |
191 "request": { | |
192 "$ref": "GoogleCloudMlV1beta1__Model" | |
193 }, | |
194 "response": { | 207 "response": { |
195 "$ref": "GoogleCloudMlV1beta1__Model" | 208 "$ref": "GoogleLongrunning__ListOperationsRespon
se" |
196 }, | 209 }, |
197 "scopes": [ | 210 "scopes": [ |
198 "https://www.googleapis.com/auth/cloud-platform" | 211 "https://www.googleapis.com/auth/cloud-platform" |
199 ] | 212 ] |
200 }, | 213 }, |
201 "get": { | 214 "get": { |
202 "description": "Gets information about a model, incl
uding its name, the description (if\nset), and the default version (if at least
one version of the model has\nbeen deployed).", | 215 "description": "Gets the latest state of a long-runn
ing operation. Clients can use this\nmethod to poll the operation result at int
ervals as recommended by the API\nservice.", |
203 "httpMethod": "GET", | 216 "httpMethod": "GET", |
204 "id": "ml.projects.models.get", | 217 "id": "ml.projects.operations.get", |
205 "parameterOrder": [ | 218 "parameterOrder": [ |
206 "name" | 219 "name" |
207 ], | 220 ], |
208 "parameters": { | 221 "parameters": { |
209 "name": { | 222 "name": { |
210 "description": "Required. The name of the mo
del.\n\nAuthorization: requires `Viewer` role on the parent project.", | 223 "description": "The name of the operation re
source.", |
211 "location": "path", | 224 "location": "path", |
212 "pattern": "^projects/[^/]+/models/[^/]+$", | 225 "pattern": "^projects/[^/]+/operations/[^/]+
$", |
213 "required": true, | 226 "required": true, |
214 "type": "string" | 227 "type": "string" |
215 } | 228 } |
216 }, | 229 }, |
217 "path": "v1beta1/{+name}", | 230 "path": "v1beta1/{+name}", |
218 "response": { | 231 "response": { |
219 "$ref": "GoogleCloudMlV1beta1__Model" | 232 "$ref": "GoogleLongrunning__Operation" |
220 }, | 233 }, |
221 "scopes": [ | 234 "scopes": [ |
222 "https://www.googleapis.com/auth/cloud-platform" | 235 "https://www.googleapis.com/auth/cloud-platform" |
223 ] | 236 ] |
224 }, | 237 }, |
| 238 "cancel": { |
| 239 "description": "Starts asynchronous cancellation on
a long-running operation. The server\nmakes a best effort to cancel the operati
on, but success is not\nguaranteed. If the server doesn't support this method,
it returns\n`google.rpc.Code.UNIMPLEMENTED`. Clients can use\nOperations.GetOpe
ration or\nother methods to check whether the cancellation succeeded or whether
the\noperation completed despite cancellation. On successful cancellation,\nthe
operation is not deleted; instead, it becomes an operation with\nan Operation.er
ror value with a google.rpc.Status.code of 1,\ncorresponding to `Code.CANCELLED`
.", |
| 240 "httpMethod": "POST", |
| 241 "id": "ml.projects.operations.cancel", |
| 242 "parameterOrder": [ |
| 243 "name" |
| 244 ], |
| 245 "parameters": { |
| 246 "name": { |
| 247 "description": "The name of the operation re
source to be cancelled.", |
| 248 "location": "path", |
| 249 "pattern": "^projects/[^/]+/operations/[^/]+
$", |
| 250 "required": true, |
| 251 "type": "string" |
| 252 } |
| 253 }, |
| 254 "path": "v1beta1/{+name}:cancel", |
| 255 "response": { |
| 256 "$ref": "GoogleProtobuf__Empty" |
| 257 }, |
| 258 "scopes": [ |
| 259 "https://www.googleapis.com/auth/cloud-platform" |
| 260 ] |
| 261 }, |
| 262 "delete": { |
| 263 "description": "Deletes a long-running operation. Th
is method indicates that the client is\nno longer interested in the operation re
sult. It does not cancel the\noperation. If the server doesn't support this meth
od, it returns\n`google.rpc.Code.UNIMPLEMENTED`.", |
| 264 "httpMethod": "DELETE", |
| 265 "id": "ml.projects.operations.delete", |
| 266 "parameterOrder": [ |
| 267 "name" |
| 268 ], |
| 269 "parameters": { |
| 270 "name": { |
| 271 "description": "The name of the operation re
source to be deleted.", |
| 272 "location": "path", |
| 273 "pattern": "^projects/[^/]+/operations/[^/]+
$", |
| 274 "required": true, |
| 275 "type": "string" |
| 276 } |
| 277 }, |
| 278 "path": "v1beta1/{+name}", |
| 279 "response": { |
| 280 "$ref": "GoogleProtobuf__Empty" |
| 281 }, |
| 282 "scopes": [ |
| 283 "https://www.googleapis.com/auth/cloud-platform" |
| 284 ] |
| 285 } |
| 286 } |
| 287 }, |
| 288 "models": { |
| 289 "methods": { |
225 "list": { | 290 "list": { |
226 "description": "Lists the models in a project.\n\nEa
ch project can contain multiple models, and each model can have multiple\nversio
ns.", | 291 "description": "Lists the models in a project.\n\nEa
ch project can contain multiple models, and each model can have multiple\nversio
ns.", |
227 "httpMethod": "GET", | 292 "httpMethod": "GET", |
228 "id": "ml.projects.models.list", | 293 "id": "ml.projects.models.list", |
229 "parameterOrder": [ | 294 "parameterOrder": [ |
230 "parent" | 295 "parent" |
231 ], | 296 ], |
232 "parameters": { | 297 "parameters": { |
| 298 "pageToken": { |
| 299 "description": "Optional. A page token to re
quest the next page of results.\n\nYou get the token from the `next_page_token`
field of the response from\nthe previous call.", |
| 300 "location": "query", |
| 301 "type": "string" |
| 302 }, |
233 "pageSize": { | 303 "pageSize": { |
234 "description": "Optional. The number of mode
ls to retrieve per \"page\" of results. If there\nare more remaining results tha
n this number, the response message will\ncontain a valid value in the `next_pag
e_token` field.\n\nThe default value is 20, and the maximum page size is 100.", | 304 "description": "Optional. The number of mode
ls to retrieve per \"page\" of results. If there\nare more remaining results tha
n this number, the response message will\ncontain a valid value in the `next_pag
e_token` field.\n\nThe default value is 20, and the maximum page size is 100.", |
235 "format": "int32", | 305 "format": "int32", |
236 "location": "query", | 306 "location": "query", |
237 "type": "integer" | 307 "type": "integer" |
238 }, | 308 }, |
239 "parent": { | 309 "parent": { |
240 "description": "Required. The name of the pr
oject whose models are to be listed.\n\nAuthorization: requires `Viewer` role on
the specified project.", | 310 "description": "Required. The name of the pr
oject whose models are to be listed.\n\nAuthorization: requires `Viewer` role on
the specified project.", |
241 "location": "path", | 311 "location": "path", |
242 "pattern": "^projects/[^/]+$", | 312 "pattern": "^projects/[^/]+$", |
243 "required": true, | 313 "required": true, |
244 "type": "string" | 314 "type": "string" |
245 }, | |
246 "pageToken": { | |
247 "description": "Optional. A page token to re
quest the next page of results.\n\nYou get the token from the `next_page_token`
field of the response from\nthe previous call.", | |
248 "location": "query", | |
249 "type": "string" | |
250 } | 315 } |
251 }, | 316 }, |
252 "path": "v1beta1/{+parent}/models", | 317 "path": "v1beta1/{+parent}/models", |
253 "response": { | 318 "response": { |
254 "$ref": "GoogleCloudMlV1beta1__ListModelsRespons
e" | 319 "$ref": "GoogleCloudMlV1beta1__ListModelsRespons
e" |
255 }, | 320 }, |
256 "scopes": [ | 321 "scopes": [ |
257 "https://www.googleapis.com/auth/cloud-platform" | 322 "https://www.googleapis.com/auth/cloud-platform" |
258 ] | 323 ] |
259 }, | 324 }, |
| 325 "get": { |
| 326 "description": "Gets information about a model, incl
uding its name, the description (if\nset), and the default version (if at least
one version of the model has\nbeen deployed).", |
| 327 "httpMethod": "GET", |
| 328 "id": "ml.projects.models.get", |
| 329 "parameterOrder": [ |
| 330 "name" |
| 331 ], |
| 332 "parameters": { |
| 333 "name": { |
| 334 "description": "Required. The name of the mo
del.\n\nAuthorization: requires `Viewer` role on the parent project.", |
| 335 "location": "path", |
| 336 "pattern": "^projects/[^/]+/models/[^/]+$", |
| 337 "required": true, |
| 338 "type": "string" |
| 339 } |
| 340 }, |
| 341 "path": "v1beta1/{+name}", |
| 342 "response": { |
| 343 "$ref": "GoogleCloudMlV1beta1__Model" |
| 344 }, |
| 345 "scopes": [ |
| 346 "https://www.googleapis.com/auth/cloud-platform" |
| 347 ] |
| 348 }, |
| 349 "create": { |
| 350 "description": "Creates a model which will later con
tain one or more versions.\n\nYou must add at least one version before you can r
equest predictions from\nthe model. Add versions by calling\n[projects.models.ve
rsions.create](/ml/reference/rest/v1beta1/projects.models.versions/create).", |
| 351 "httpMethod": "POST", |
| 352 "id": "ml.projects.models.create", |
| 353 "parameterOrder": [ |
| 354 "parent" |
| 355 ], |
| 356 "parameters": { |
| 357 "parent": { |
| 358 "description": "Required. The project name.\
n\nAuthorization: requires `Editor` role on the specified project.", |
| 359 "location": "path", |
| 360 "pattern": "^projects/[^/]+$", |
| 361 "required": true, |
| 362 "type": "string" |
| 363 } |
| 364 }, |
| 365 "path": "v1beta1/{+parent}/models", |
| 366 "request": { |
| 367 "$ref": "GoogleCloudMlV1beta1__Model" |
| 368 }, |
| 369 "response": { |
| 370 "$ref": "GoogleCloudMlV1beta1__Model" |
| 371 }, |
| 372 "scopes": [ |
| 373 "https://www.googleapis.com/auth/cloud-platform" |
| 374 ] |
| 375 }, |
260 "delete": { | 376 "delete": { |
261 "description": "Deletes a model.\n\nYou can only del
ete a model if there are no versions in it. You can delete\nversions by calling\
n[projects.models.versions.delete](/ml/reference/rest/v1beta1/projects.models.ve
rsions/delete).", | 377 "description": "Deletes a model.\n\nYou can only del
ete a model if there are no versions in it. You can delete\nversions by calling\
n[projects.models.versions.delete](/ml/reference/rest/v1beta1/projects.models.ve
rsions/delete).", |
262 "httpMethod": "DELETE", | 378 "httpMethod": "DELETE", |
263 "id": "ml.projects.models.delete", | 379 "id": "ml.projects.models.delete", |
264 "parameterOrder": [ | 380 "parameterOrder": [ |
265 "name" | 381 "name" |
266 ], | 382 ], |
267 "parameters": { | 383 "parameters": { |
268 "name": { | 384 "name": { |
269 "description": "Required. The name of the mo
del.\n\nAuthorization: requires `Editor` role on the parent project.", | 385 "description": "Required. The name of the mo
del.\n\nAuthorization: requires `Editor` role on the parent project.", |
270 "location": "path", | 386 "location": "path", |
271 "pattern": "^projects/[^/]+/models/[^/]+$", | 387 "pattern": "^projects/[^/]+/models/[^/]+$", |
272 "required": true, | 388 "required": true, |
273 "type": "string" | 389 "type": "string" |
274 } | 390 } |
275 }, | 391 }, |
276 "path": "v1beta1/{+name}", | 392 "path": "v1beta1/{+name}", |
277 "response": { | 393 "response": { |
278 "$ref": "GoogleLongrunning__Operation" | 394 "$ref": "GoogleLongrunning__Operation" |
279 }, | 395 }, |
280 "scopes": [ | 396 "scopes": [ |
281 "https://www.googleapis.com/auth/cloud-platform" | 397 "https://www.googleapis.com/auth/cloud-platform" |
282 ] | 398 ] |
283 } | 399 } |
284 }, | 400 }, |
285 "resources": { | 401 "resources": { |
286 "versions": { | 402 "versions": { |
287 "methods": { | 403 "methods": { |
288 "create": { | 404 "setDefault": { |
289 "description": "Creates a new version of a m
odel from a trained TensorFlow model.\n\nIf the version created in the cloud by
this call is the first deployed\nversion of the specified model, it will be made
the default version of the\nmodel. When you add a version to a model that alrea
dy has one or more\nversions, the default version does not automatically change.
If you want a\nnew version to be the default, you must call\n[projects.models.v
ersions.setDefault](/ml/reference/rest/v1beta1/projects.models.versions/setDefau
lt).", | 405 "description": "Designates a version to be t
he default for the model.\n\nThe default version is used for prediction requests
made against the model\nthat don't specify a version.\n\nThe first version to b
e created for a model is automatically set as the\ndefault. You must make any su
bsequent changes to the default version\nsetting manually using this method.", |
290 "httpMethod": "POST", | 406 "httpMethod": "POST", |
291 "id": "ml.projects.models.versions.create", | 407 "id": "ml.projects.models.versions.setDefaul
t", |
292 "parameterOrder": [ | |
293 "parent" | |
294 ], | |
295 "parameters": { | |
296 "parent": { | |
297 "description": "Required. The name o
f the model.\n\nAuthorization: requires `Editor` role on the parent project.", | |
298 "location": "path", | |
299 "pattern": "^projects/[^/]+/models/[
^/]+$", | |
300 "required": true, | |
301 "type": "string" | |
302 } | |
303 }, | |
304 "path": "v1beta1/{+parent}/versions", | |
305 "request": { | |
306 "$ref": "GoogleCloudMlV1beta1__Version" | |
307 }, | |
308 "response": { | |
309 "$ref": "GoogleLongrunning__Operation" | |
310 }, | |
311 "scopes": [ | |
312 "https://www.googleapis.com/auth/cloud-p
latform" | |
313 ] | |
314 }, | |
315 "get": { | |
316 "description": "Gets information about a mod
el version.\n\nModels can have multiple versions. You can call\n[projects.models
.versions.list](/ml/reference/rest/v1beta1/projects.models.versions/list)\nto ge
t the same information that this method returns for all of the\nversions of a mo
del.", | |
317 "httpMethod": "GET", | |
318 "id": "ml.projects.models.versions.get", | |
319 "parameterOrder": [ | 408 "parameterOrder": [ |
320 "name" | 409 "name" |
321 ], | 410 ], |
322 "parameters": { | 411 "parameters": { |
323 "name": { | 412 "name": { |
324 "description": "Required. The name o
f the version.\n\nAuthorization: requires `Viewer` role on the parent project.", | 413 "description": "Required. The name o
f the version to make the default for the model. You\ncan get the names of all t
he versions of a model by calling\n[projects.models.versions.list](/ml/reference
/rest/v1beta1/projects.models.versions/list).\n\nAuthorization: requires `Editor
` role on the parent project.", |
325 "location": "path", | 414 "location": "path", |
326 "pattern": "^projects/[^/]+/models/[
^/]+/versions/[^/]+$", | 415 "pattern": "^projects/[^/]+/models/[
^/]+/versions/[^/]+$", |
327 "required": true, | 416 "required": true, |
328 "type": "string" | 417 "type": "string" |
329 } | 418 } |
330 }, | 419 }, |
331 "path": "v1beta1/{+name}", | 420 "path": "v1beta1/{+name}:setDefault", |
| 421 "request": { |
| 422 "$ref": "GoogleCloudMlV1beta1__SetDefaul
tVersionRequest" |
| 423 }, |
332 "response": { | 424 "response": { |
333 "$ref": "GoogleCloudMlV1beta1__Version" | 425 "$ref": "GoogleCloudMlV1beta1__Version" |
334 }, | 426 }, |
335 "scopes": [ | 427 "scopes": [ |
336 "https://www.googleapis.com/auth/cloud-p
latform" | 428 "https://www.googleapis.com/auth/cloud-p
latform" |
337 ] | 429 ] |
338 }, | 430 }, |
339 "setDefault": { | 431 "delete": { |
340 "description": "Designates a version to be t
he default for the model.\n\nThe default version is used for prediction requests
made against the model\nthat don't specify a version.\n\nThe first version to b
e created for a model is automatically set as the\ndefault. You must make any su
bsequent changes to the default version\nsetting manually using this method.", | 432 "description": "Deletes a model version.\n\n
Each model can have multiple versions deployed and in use at any given\ntime. Us
e this method to remove a single version.\n\nNote: You cannot delete the version
that is set as the default version\nof the model unless it is the only remainin
g version.", |
341 "httpMethod": "POST", | 433 "httpMethod": "DELETE", |
342 "id": "ml.projects.models.versions.setDefaul
t", | 434 "id": "ml.projects.models.versions.delete", |
343 "parameterOrder": [ | 435 "parameterOrder": [ |
344 "name" | 436 "name" |
345 ], | 437 ], |
346 "parameters": { | 438 "parameters": { |
347 "name": { | 439 "name": { |
348 "description": "Required. The name o
f the version to make the default for the model. You\ncan get the names of all t
he versions of a model by calling\n[projects.models.versions.list](/ml/reference
/rest/v1beta1/projects.models.versions/list).\n\nAuthorization: requires `Editor
` role on the parent project.", | 440 "description": "Required. The name o
f the version. You can get the names of all the\nversions of a model by calling\
n[projects.models.versions.list](/ml/reference/rest/v1beta1/projects.models.vers
ions/list).\n\nAuthorization: requires `Editor` role on the parent project.", |
349 "location": "path", | 441 "location": "path", |
350 "pattern": "^projects/[^/]+/models/[
^/]+/versions/[^/]+$", | 442 "pattern": "^projects/[^/]+/models/[
^/]+/versions/[^/]+$", |
351 "required": true, | 443 "required": true, |
352 "type": "string" | 444 "type": "string" |
353 } | 445 } |
354 }, | 446 }, |
355 "path": "v1beta1/{+name}:setDefault", | 447 "path": "v1beta1/{+name}", |
356 "request": { | |
357 "$ref": "GoogleCloudMlV1beta1__SetDefaul
tVersionRequest" | |
358 }, | |
359 "response": { | 448 "response": { |
360 "$ref": "GoogleCloudMlV1beta1__Version" | 449 "$ref": "GoogleLongrunning__Operation" |
361 }, | 450 }, |
362 "scopes": [ | 451 "scopes": [ |
363 "https://www.googleapis.com/auth/cloud-p
latform" | 452 "https://www.googleapis.com/auth/cloud-p
latform" |
364 ] | 453 ] |
365 }, | 454 }, |
366 "list": { | 455 "list": { |
367 "description": "Gets basic information about
all the versions of a model.\n\nIf you expect that a model has a lot of version
s, or if you need to handle\nonly a limited number of results at a time, you can
request that the list\nbe retrieved in batches (called pages):", | 456 "description": "Gets basic information about
all the versions of a model.\n\nIf you expect that a model has a lot of version
s, or if you need to handle\nonly a limited number of results at a time, you can
request that the list\nbe retrieved in batches (called pages):", |
368 "httpMethod": "GET", | 457 "httpMethod": "GET", |
369 "id": "ml.projects.models.versions.list", | 458 "id": "ml.projects.models.versions.list", |
370 "parameterOrder": [ | 459 "parameterOrder": [ |
371 "parent" | 460 "parent" |
372 ], | 461 ], |
373 "parameters": { | 462 "parameters": { |
| 463 "pageToken": { |
| 464 "description": "Optional. A page tok
en to request the next page of results.\n\nYou get the token from the `next_page
_token` field of the response from\nthe previous call.", |
| 465 "location": "query", |
| 466 "type": "string" |
| 467 }, |
374 "pageSize": { | 468 "pageSize": { |
375 "description": "Optional. The number
of versions to retrieve per \"page\" of results. If\nthere are more remaining r
esults than this number, the response message\nwill contain a valid value in the
`next_page_token` field.\n\nThe default value is 20, and the maximum page size
is 100.", | 469 "description": "Optional. The number
of versions to retrieve per \"page\" of results. If\nthere are more remaining r
esults than this number, the response message\nwill contain a valid value in the
`next_page_token` field.\n\nThe default value is 20, and the maximum page size
is 100.", |
376 "format": "int32", | 470 "format": "int32", |
377 "location": "query", | 471 "location": "query", |
378 "type": "integer" | 472 "type": "integer" |
379 }, | 473 }, |
380 "parent": { | 474 "parent": { |
381 "description": "Required. The name o
f the model for which to list the version.\n\nAuthorization: requires `Viewer` r
ole on the parent project.", | 475 "description": "Required. The name o
f the model for which to list the version.\n\nAuthorization: requires `Viewer` r
ole on the parent project.", |
382 "location": "path", | 476 "location": "path", |
383 "pattern": "^projects/[^/]+/models/[
^/]+$", | 477 "pattern": "^projects/[^/]+/models/[
^/]+$", |
384 "required": true, | 478 "required": true, |
385 "type": "string" | 479 "type": "string" |
386 }, | |
387 "pageToken": { | |
388 "description": "Optional. A page tok
en to request the next page of results.\n\nYou get the token from the `next_page
_token` field of the response from\nthe previous call.", | |
389 "location": "query", | |
390 "type": "string" | |
391 } | 480 } |
392 }, | 481 }, |
393 "path": "v1beta1/{+parent}/versions", | 482 "path": "v1beta1/{+parent}/versions", |
394 "response": { | 483 "response": { |
395 "$ref": "GoogleCloudMlV1beta1__ListVersi
onsResponse" | 484 "$ref": "GoogleCloudMlV1beta1__ListVersi
onsResponse" |
396 }, | 485 }, |
397 "scopes": [ | 486 "scopes": [ |
398 "https://www.googleapis.com/auth/cloud-p
latform" | 487 "https://www.googleapis.com/auth/cloud-p
latform" |
399 ] | 488 ] |
400 }, | 489 }, |
401 "delete": { | 490 "get": { |
402 "description": "Deletes a model version.\n\n
Each model can have multiple versions deployed and in use at any given\ntime. Us
e this method to remove a single version.\n\nNote: You cannot delete the version
that is set as the default version\nof the model unless it is the only remainin
g version.", | 491 "description": "Gets information about a mod
el version.\n\nModels can have multiple versions. You can call\n[projects.models
.versions.list](/ml/reference/rest/v1beta1/projects.models.versions/list)\nto ge
t the same information that this method returns for all of the\nversions of a mo
del.", |
403 "httpMethod": "DELETE", | 492 "httpMethod": "GET", |
404 "id": "ml.projects.models.versions.delete", | 493 "id": "ml.projects.models.versions.get", |
405 "parameterOrder": [ | 494 "parameterOrder": [ |
406 "name" | 495 "name" |
407 ], | 496 ], |
408 "parameters": { | 497 "parameters": { |
409 "name": { | 498 "name": { |
410 "description": "Required. The name o
f the version. You can get the names of all the\nversions of a model by calling\
n[projects.models.versions.list](/ml/reference/rest/v1beta1/projects.models.vers
ions/list).\n\nAuthorization: requires `Editor` role on the parent project.", | 499 "description": "Required. The name o
f the version.\n\nAuthorization: requires `Viewer` role on the parent project.", |
411 "location": "path", | 500 "location": "path", |
412 "pattern": "^projects/[^/]+/models/[
^/]+/versions/[^/]+$", | 501 "pattern": "^projects/[^/]+/models/[
^/]+/versions/[^/]+$", |
413 "required": true, | 502 "required": true, |
414 "type": "string" | 503 "type": "string" |
415 } | 504 } |
416 }, | 505 }, |
417 "path": "v1beta1/{+name}", | 506 "path": "v1beta1/{+name}", |
418 "response": { | 507 "response": { |
| 508 "$ref": "GoogleCloudMlV1beta1__Version" |
| 509 }, |
| 510 "scopes": [ |
| 511 "https://www.googleapis.com/auth/cloud-p
latform" |
| 512 ] |
| 513 }, |
| 514 "create": { |
| 515 "description": "Creates a new version of a m
odel from a trained TensorFlow model.\n\nIf the version created in the cloud by
this call is the first deployed\nversion of the specified model, it will be made
the default version of the\nmodel. When you add a version to a model that alrea
dy has one or more\nversions, the default version does not automatically change.
If you want a\nnew version to be the default, you must call\n[projects.models.v
ersions.setDefault](/ml/reference/rest/v1beta1/projects.models.versions/setDefau
lt).", |
| 516 "httpMethod": "POST", |
| 517 "id": "ml.projects.models.versions.create", |
| 518 "parameterOrder": [ |
| 519 "parent" |
| 520 ], |
| 521 "parameters": { |
| 522 "parent": { |
| 523 "description": "Required. The name o
f the model.\n\nAuthorization: requires `Editor` role on the parent project.", |
| 524 "location": "path", |
| 525 "pattern": "^projects/[^/]+/models/[
^/]+$", |
| 526 "required": true, |
| 527 "type": "string" |
| 528 } |
| 529 }, |
| 530 "path": "v1beta1/{+parent}/versions", |
| 531 "request": { |
| 532 "$ref": "GoogleCloudMlV1beta1__Version" |
| 533 }, |
| 534 "response": { |
419 "$ref": "GoogleLongrunning__Operation" | 535 "$ref": "GoogleLongrunning__Operation" |
420 }, | 536 }, |
421 "scopes": [ | 537 "scopes": [ |
422 "https://www.googleapis.com/auth/cloud-p
latform" | 538 "https://www.googleapis.com/auth/cloud-p
latform" |
423 ] | 539 ] |
424 } | 540 } |
425 } | 541 } |
426 } | 542 } |
427 } | 543 } |
428 }, | 544 }, |
429 "jobs": { | 545 "jobs": { |
430 "methods": { | 546 "methods": { |
431 "create": { | 547 "cancel": { |
432 "description": "Creates a training or a batch predic
tion job.", | 548 "description": "Cancels a running job.", |
433 "httpMethod": "POST", | 549 "httpMethod": "POST", |
434 "id": "ml.projects.jobs.create", | 550 "id": "ml.projects.jobs.cancel", |
435 "parameterOrder": [ | |
436 "parent" | |
437 ], | |
438 "parameters": { | |
439 "parent": { | |
440 "description": "Required. The project name.\
n\nAuthorization: requires `Editor` role on the specified project.", | |
441 "location": "path", | |
442 "pattern": "^projects/[^/]+$", | |
443 "required": true, | |
444 "type": "string" | |
445 } | |
446 }, | |
447 "path": "v1beta1/{+parent}/jobs", | |
448 "request": { | |
449 "$ref": "GoogleCloudMlV1beta1__Job" | |
450 }, | |
451 "response": { | |
452 "$ref": "GoogleCloudMlV1beta1__Job" | |
453 }, | |
454 "scopes": [ | |
455 "https://www.googleapis.com/auth/cloud-platform" | |
456 ] | |
457 }, | |
458 "get": { | |
459 "description": "Describes a job.", | |
460 "httpMethod": "GET", | |
461 "id": "ml.projects.jobs.get", | |
462 "parameterOrder": [ | 551 "parameterOrder": [ |
463 "name" | 552 "name" |
464 ], | 553 ], |
465 "parameters": { | 554 "parameters": { |
466 "name": { | 555 "name": { |
467 "description": "Required. The name of the jo
b to get the description of.\n\nAuthorization: requires `Viewer` role on the par
ent project.", | 556 "description": "Required. The name of the jo
b to cancel.\n\nAuthorization: requires `Editor` role on the parent project.", |
468 "location": "path", | 557 "location": "path", |
469 "pattern": "^projects/[^/]+/jobs/[^/]+$", | 558 "pattern": "^projects/[^/]+/jobs/[^/]+$", |
470 "required": true, | 559 "required": true, |
471 "type": "string" | 560 "type": "string" |
472 } | 561 } |
473 }, | 562 }, |
474 "path": "v1beta1/{+name}", | 563 "path": "v1beta1/{+name}:cancel", |
| 564 "request": { |
| 565 "$ref": "GoogleCloudMlV1beta1__CancelJobRequest" |
| 566 }, |
475 "response": { | 567 "response": { |
476 "$ref": "GoogleCloudMlV1beta1__Job" | 568 "$ref": "GoogleProtobuf__Empty" |
477 }, | 569 }, |
478 "scopes": [ | 570 "scopes": [ |
479 "https://www.googleapis.com/auth/cloud-platform" | 571 "https://www.googleapis.com/auth/cloud-platform" |
480 ] | 572 ] |
481 }, | 573 }, |
482 "list": { | 574 "list": { |
483 "description": "Lists the jobs in the project.", | 575 "description": "Lists the jobs in the project.", |
484 "httpMethod": "GET", | 576 "httpMethod": "GET", |
485 "id": "ml.projects.jobs.list", | 577 "id": "ml.projects.jobs.list", |
486 "parameterOrder": [ | 578 "parameterOrder": [ |
487 "parent" | 579 "parent" |
488 ], | 580 ], |
489 "parameters": { | 581 "parameters": { |
490 "pageSize": { | |
491 "description": "Optional. The number of jobs
to retrieve per \"page\" of results. If there\nare more remaining results than
this number, the response message will\ncontain a valid value in the `next_page_
token` field.\n\nThe default value is 20, and the maximum page size is 100.", | |
492 "format": "int32", | |
493 "location": "query", | |
494 "type": "integer" | |
495 }, | |
496 "filter": { | |
497 "description": "Optional. Specifies the subs
et of jobs to retrieve.", | |
498 "location": "query", | |
499 "type": "string" | |
500 }, | |
501 "parent": { | 582 "parent": { |
502 "description": "Required. The name of the pr
oject for which to list jobs.\n\nAuthorization: requires `Viewer` role on the sp
ecified project.", | 583 "description": "Required. The name of the pr
oject for which to list jobs.\n\nAuthorization: requires `Viewer` role on the sp
ecified project.", |
503 "location": "path", | 584 "location": "path", |
504 "pattern": "^projects/[^/]+$", | 585 "pattern": "^projects/[^/]+$", |
505 "required": true, | 586 "required": true, |
506 "type": "string" | 587 "type": "string" |
507 }, | 588 }, |
| 589 "filter": { |
| 590 "description": "Optional. Specifies the subs
et of jobs to retrieve.", |
| 591 "location": "query", |
| 592 "type": "string" |
| 593 }, |
508 "pageToken": { | 594 "pageToken": { |
509 "description": "Optional. A page token to re
quest the next page of results.\n\nYou get the token from the `next_page_token`
field of the response from\nthe previous call.", | 595 "description": "Optional. A page token to re
quest the next page of results.\n\nYou get the token from the `next_page_token`
field of the response from\nthe previous call.", |
510 "location": "query", | 596 "location": "query", |
511 "type": "string" | 597 "type": "string" |
| 598 }, |
| 599 "pageSize": { |
| 600 "description": "Optional. The number of jobs
to retrieve per \"page\" of results. If there\nare more remaining results than
this number, the response message will\ncontain a valid value in the `next_page_
token` field.\n\nThe default value is 20, and the maximum page size is 100.", |
| 601 "format": "int32", |
| 602 "location": "query", |
| 603 "type": "integer" |
512 } | 604 } |
513 }, | 605 }, |
514 "path": "v1beta1/{+parent}/jobs", | 606 "path": "v1beta1/{+parent}/jobs", |
515 "response": { | 607 "response": { |
516 "$ref": "GoogleCloudMlV1beta1__ListJobsResponse" | 608 "$ref": "GoogleCloudMlV1beta1__ListJobsResponse" |
517 }, | 609 }, |
518 "scopes": [ | 610 "scopes": [ |
519 "https://www.googleapis.com/auth/cloud-platform" | 611 "https://www.googleapis.com/auth/cloud-platform" |
520 ] | 612 ] |
521 }, | 613 }, |
522 "cancel": { | 614 "get": { |
523 "description": "Cancels a running job.", | 615 "description": "Describes a job.", |
524 "httpMethod": "POST", | 616 "httpMethod": "GET", |
525 "id": "ml.projects.jobs.cancel", | 617 "id": "ml.projects.jobs.get", |
526 "parameterOrder": [ | 618 "parameterOrder": [ |
527 "name" | 619 "name" |
528 ], | 620 ], |
529 "parameters": { | 621 "parameters": { |
530 "name": { | 622 "name": { |
531 "description": "Required. The name of the jo
b to cancel.\n\nAuthorization: requires `Editor` role on the parent project.", | 623 "description": "Required. The name of the jo
b to get the description of.\n\nAuthorization: requires `Viewer` role on the par
ent project.", |
532 "location": "path", | 624 "location": "path", |
533 "pattern": "^projects/[^/]+/jobs/[^/]+$", | 625 "pattern": "^projects/[^/]+/jobs/[^/]+$", |
534 "required": true, | 626 "required": true, |
535 "type": "string" | 627 "type": "string" |
536 } | 628 } |
537 }, | 629 }, |
538 "path": "v1beta1/{+name}:cancel", | |
539 "request": { | |
540 "$ref": "GoogleCloudMlV1beta1__CancelJobRequest" | |
541 }, | |
542 "response": { | |
543 "$ref": "GoogleProtobuf__Empty" | |
544 }, | |
545 "scopes": [ | |
546 "https://www.googleapis.com/auth/cloud-platform" | |
547 ] | |
548 } | |
549 } | |
550 }, | |
551 "operations": { | |
552 "methods": { | |
553 "get": { | |
554 "description": "Gets the latest state of a long-runn
ing operation. Clients can use this\nmethod to poll the operation result at int
ervals as recommended by the API\nservice.", | |
555 "httpMethod": "GET", | |
556 "id": "ml.projects.operations.get", | |
557 "parameterOrder": [ | |
558 "name" | |
559 ], | |
560 "parameters": { | |
561 "name": { | |
562 "description": "The name of the operation re
source.", | |
563 "location": "path", | |
564 "pattern": "^projects/[^/]+/operations/[^/]+
$", | |
565 "required": true, | |
566 "type": "string" | |
567 } | |
568 }, | |
569 "path": "v1beta1/{+name}", | 630 "path": "v1beta1/{+name}", |
570 "response": { | 631 "response": { |
571 "$ref": "GoogleLongrunning__Operation" | 632 "$ref": "GoogleCloudMlV1beta1__Job" |
572 }, | 633 }, |
573 "scopes": [ | 634 "scopes": [ |
574 "https://www.googleapis.com/auth/cloud-platform" | 635 "https://www.googleapis.com/auth/cloud-platform" |
575 ] | 636 ] |
576 }, | 637 }, |
577 "list": { | 638 "create": { |
578 "description": "Lists operations that match the spec
ified filter in the request. If the\nserver doesn't support this method, it retu
rns `UNIMPLEMENTED`.\n\nNOTE: the `name` binding below allows API services to ov
erride the binding\nto use different resource name schemes, such as `users/*/ope
rations`.", | 639 "description": "Creates a training or a batch predic
tion job.", |
579 "httpMethod": "GET", | 640 "httpMethod": "POST", |
580 "id": "ml.projects.operations.list", | 641 "id": "ml.projects.jobs.create", |
581 "parameterOrder": [ | 642 "parameterOrder": [ |
582 "name" | 643 "parent" |
583 ], | 644 ], |
584 "parameters": { | 645 "parameters": { |
585 "pageSize": { | 646 "parent": { |
586 "description": "The standard list page size.
", | 647 "description": "Required. The project name.\
n\nAuthorization: requires `Editor` role on the specified project.", |
587 "format": "int32", | |
588 "location": "query", | |
589 "type": "integer" | |
590 }, | |
591 "filter": { | |
592 "description": "The standard list filter.", | |
593 "location": "query", | |
594 "type": "string" | |
595 }, | |
596 "name": { | |
597 "description": "The name of the operation co
llection.", | |
598 "location": "path", | 648 "location": "path", |
599 "pattern": "^projects/[^/]+$", | 649 "pattern": "^projects/[^/]+$", |
600 "required": true, | 650 "required": true, |
601 "type": "string" | 651 "type": "string" |
602 }, | |
603 "pageToken": { | |
604 "description": "The standard list page token
.", | |
605 "location": "query", | |
606 "type": "string" | |
607 } | 652 } |
608 }, | 653 }, |
609 "path": "v1beta1/{+name}/operations", | 654 "path": "v1beta1/{+parent}/jobs", |
| 655 "request": { |
| 656 "$ref": "GoogleCloudMlV1beta1__Job" |
| 657 }, |
610 "response": { | 658 "response": { |
611 "$ref": "GoogleLongrunning__ListOperationsRespon
se" | 659 "$ref": "GoogleCloudMlV1beta1__Job" |
612 }, | 660 }, |
613 "scopes": [ | 661 "scopes": [ |
614 "https://www.googleapis.com/auth/cloud-platform" | 662 "https://www.googleapis.com/auth/cloud-platform" |
615 ] | |
616 }, | |
617 "delete": { | |
618 "description": "Deletes a long-running operation. Th
is method indicates that the client is\nno longer interested in the operation re
sult. It does not cancel the\noperation. If the server doesn't support this meth
od, it returns\n`google.rpc.Code.UNIMPLEMENTED`.", | |
619 "httpMethod": "DELETE", | |
620 "id": "ml.projects.operations.delete", | |
621 "parameterOrder": [ | |
622 "name" | |
623 ], | |
624 "parameters": { | |
625 "name": { | |
626 "description": "The name of the operation re
source to be deleted.", | |
627 "location": "path", | |
628 "pattern": "^projects/[^/]+/operations/[^/]+
$", | |
629 "required": true, | |
630 "type": "string" | |
631 } | |
632 }, | |
633 "path": "v1beta1/{+name}", | |
634 "response": { | |
635 "$ref": "GoogleProtobuf__Empty" | |
636 }, | |
637 "scopes": [ | |
638 "https://www.googleapis.com/auth/cloud-platform" | |
639 ] | |
640 }, | |
641 "cancel": { | |
642 "description": "Starts asynchronous cancellation on
a long-running operation. The server\nmakes a best effort to cancel the operati
on, but success is not\nguaranteed. If the server doesn't support this method,
it returns\n`google.rpc.Code.UNIMPLEMENTED`. Clients can use\nOperations.GetOpe
ration or\nother methods to check whether the cancellation succeeded or whether
the\noperation completed despite cancellation. On successful cancellation,\nthe
operation is not deleted; instead, it becomes an operation with\nan Operation.er
ror value with a google.rpc.Status.code of 1,\ncorresponding to `Code.CANCELLED`
.", | |
643 "httpMethod": "POST", | |
644 "id": "ml.projects.operations.cancel", | |
645 "parameterOrder": [ | |
646 "name" | |
647 ], | |
648 "parameters": { | |
649 "name": { | |
650 "description": "The name of the operation re
source to be cancelled.", | |
651 "location": "path", | |
652 "pattern": "^projects/[^/]+/operations/[^/]+
$", | |
653 "required": true, | |
654 "type": "string" | |
655 } | |
656 }, | |
657 "path": "v1beta1/{+name}:cancel", | |
658 "response": { | |
659 "$ref": "GoogleProtobuf__Empty" | |
660 }, | |
661 "scopes": [ | |
662 "https://www.googleapis.com/auth/cloud-platform" | |
663 ] | 663 ] |
664 } | 664 } |
665 } | 665 } |
666 } | 666 } |
667 } | 667 } |
668 } | 668 } |
669 }, | 669 }, |
670 "revision": "20170111", | 670 "revision": "20170210", |
671 "rootUrl": "https://ml.googleapis.com/", | 671 "rootUrl": "https://ml.googleapis.com/", |
672 "schemas": { | 672 "schemas": { |
673 "GoogleCloudMlV1beta1__HyperparameterOutput": { | 673 "GoogleCloudMlV1beta1__SetDefaultVersionRequest": { |
674 "description": "Represents the result of a single hyperparameter tun
ing trial from a\ntraining job. The TrainingOutput object that is returned on su
ccessful\ncompletion of a training job with hyperparameter tuning includes a lis
t\nof HyperparameterOutput objects, one for each successful trial.", | 674 "description": "Request message for the SetDefaultVersion request.", |
675 "id": "GoogleCloudMlV1beta1__HyperparameterOutput", | 675 "id": "GoogleCloudMlV1beta1__SetDefaultVersionRequest", |
676 "properties": { | 676 "properties": {}, |
677 "finalMetric": { | |
678 "$ref": "GoogleCloudMlV1beta1_HyperparameterOutput_Hyperpara
meterMetric", | |
679 "description": "The final objective metric seen for this tri
al." | |
680 }, | |
681 "allMetrics": { | |
682 "description": "All recorded object metrics for this trial."
, | |
683 "items": { | |
684 "$ref": "GoogleCloudMlV1beta1_HyperparameterOutput_Hyper
parameterMetric" | |
685 }, | |
686 "type": "array" | |
687 }, | |
688 "trialId": { | |
689 "description": "The trial id for these results.", | |
690 "type": "string" | |
691 }, | |
692 "hyperparameters": { | |
693 "additionalProperties": { | |
694 "type": "string" | |
695 }, | |
696 "description": "The hyperparameters given to this trial.", | |
697 "type": "object" | |
698 } | |
699 }, | |
700 "type": "object" | |
701 }, | |
702 "GoogleCloudMlV1beta1__GetConfigResponse": { | |
703 "description": "Returns service account information associated with
a project.", | |
704 "id": "GoogleCloudMlV1beta1__GetConfigResponse", | |
705 "properties": { | |
706 "serviceAccount": { | |
707 "description": "The service account Cloud ML uses to access
resources in the project.", | |
708 "type": "string" | |
709 }, | |
710 "serviceAccountProject": { | |
711 "description": "The project number for `service_account`.", | |
712 "format": "int64", | |
713 "type": "string" | |
714 } | |
715 }, | |
716 "type": "object" | |
717 }, | |
718 "GoogleCloudMlV1beta1__ListVersionsResponse": { | |
719 "description": "Response message for the ListVersions method.", | |
720 "id": "GoogleCloudMlV1beta1__ListVersionsResponse", | |
721 "properties": { | |
722 "nextPageToken": { | |
723 "description": "Optional. Pass this token as the `page_token
` field of the request for a\nsubsequent call.", | |
724 "type": "string" | |
725 }, | |
726 "versions": { | |
727 "description": "The list of versions.", | |
728 "items": { | |
729 "$ref": "GoogleCloudMlV1beta1__Version" | |
730 }, | |
731 "type": "array" | |
732 } | |
733 }, | |
734 "type": "object" | |
735 }, | |
736 "GoogleApi__HttpBody": { | |
737 "description": "Message that represents an arbitrary HTTP body. It s
hould only be used for\npayload formats that can't be represented as JSON, such
as raw binary or\nan HTML page.\n\n\nThis message can be used both in streaming
and non-streaming API methods in\nthe request as well as the response.\n\nIt can
be used as a top-level request field, which is convenient if one\nwants to extr
act parameters from either the URL or HTTP template into the\nrequest fields and
also want access to the raw HTTP body.\n\nExample:\n\n message GetResourceRe
quest {\n // A unique request id.\n string request_id = 1;\n\n //
The raw HTTP body is bound to this field.\n google.api.HttpBody http_body
= 2;\n }\n\n service ResourceService {\n rpc GetResource(GetResourceR
equest) returns (google.api.HttpBody);\n rpc UpdateResource(google.api.Http
Body) returns (google.protobuf.Empty);\n }\n\nExample with streaming methods:
\n\n service CaldavService {\n rpc GetCalendar(stream google.api.HttpBod
y)\n returns (stream google.api.HttpBody);\n rpc UpdateCalendar(stre
am google.api.HttpBody)\n returns (stream google.api.HttpBody);\n }\n\
nUse of this type only changes how the request and response bodies are\nhandled,
all other features will continue to work unchanged.", | |
738 "id": "GoogleApi__HttpBody", | |
739 "properties": { | |
740 "data": { | |
741 "description": "HTTP body binary data.", | |
742 "format": "byte", | |
743 "type": "string" | |
744 }, | |
745 "contentType": { | |
746 "description": "The HTTP Content-Type string representing th
e content type of the body.", | |
747 "type": "string" | |
748 } | |
749 }, | |
750 "type": "object" | |
751 }, | |
752 "GoogleCloudMlV1beta1__Job": { | |
753 "description": "Represents a training or prediction job.", | |
754 "id": "GoogleCloudMlV1beta1__Job", | |
755 "properties": { | |
756 "predictionInput": { | |
757 "$ref": "GoogleCloudMlV1beta1__PredictionInput", | |
758 "description": "Input parameters to create a prediction job.
" | |
759 }, | |
760 "state": { | |
761 "description": "Output only. The detailed state of a job.", | |
762 "enum": [ | |
763 "STATE_UNSPECIFIED", | |
764 "QUEUED", | |
765 "PREPARING", | |
766 "RUNNING", | |
767 "SUCCEEDED", | |
768 "FAILED", | |
769 "CANCELLING", | |
770 "CANCELLED" | |
771 ], | |
772 "enumDescriptions": [ | |
773 "The job state is unspecified.", | |
774 "The job has been just created and processing has not ye
t begun.", | |
775 "The service is preparing to run the job.", | |
776 "The job is in progress.", | |
777 "The job completed successfully.", | |
778 "The job failed.\n`error_message` should contain the det
ails of the failure.", | |
779 "The job is being cancelled.\n`error_message` should des
cribe the reason for the cancellation.", | |
780 "The job has been cancelled.\n`error_message` should des
cribe the reason for the cancellation." | |
781 ], | |
782 "type": "string" | |
783 }, | |
784 "endTime": { | |
785 "description": "Output only. When the job processing was com
pleted.", | |
786 "format": "google-datetime", | |
787 "type": "string" | |
788 }, | |
789 "createTime": { | |
790 "description": "Output only. When the job was created.", | |
791 "format": "google-datetime", | |
792 "type": "string" | |
793 }, | |
794 "errorMessage": { | |
795 "description": "Output only. The details of a failure or a c
ancellation.", | |
796 "type": "string" | |
797 }, | |
798 "trainingOutput": { | |
799 "$ref": "GoogleCloudMlV1beta1__TrainingOutput", | |
800 "description": "The current training job result." | |
801 }, | |
802 "startTime": { | |
803 "description": "Output only. When the job processing was sta
rted.", | |
804 "format": "google-datetime", | |
805 "type": "string" | |
806 }, | |
807 "trainingInput": { | |
808 "$ref": "GoogleCloudMlV1beta1__TrainingInput", | |
809 "description": "Input parameters to create a training job." | |
810 }, | |
811 "jobId": { | |
812 "description": "Required. The user-specified id of the job."
, | |
813 "type": "string" | |
814 }, | |
815 "predictionOutput": { | |
816 "$ref": "GoogleCloudMlV1beta1__PredictionOutput", | |
817 "description": "The current prediction job result." | |
818 } | |
819 }, | |
820 "type": "object" | 677 "type": "object" |
821 }, | 678 }, |
822 "GoogleCloudMlV1beta1_HyperparameterOutput_HyperparameterMetric": { | 679 "GoogleCloudMlV1beta1_HyperparameterOutput_HyperparameterMetric": { |
823 "description": "An observed value of a metric.", | 680 "description": "An observed value of a metric.", |
824 "id": "GoogleCloudMlV1beta1_HyperparameterOutput_HyperparameterMetri
c", | 681 "id": "GoogleCloudMlV1beta1_HyperparameterOutput_HyperparameterMetri
c", |
825 "properties": { | 682 "properties": { |
826 "objectiveValue": { | |
827 "description": "The objective value at this training step.", | |
828 "format": "double", | |
829 "type": "number" | |
830 }, | |
831 "trainingStep": { | 683 "trainingStep": { |
832 "description": "The global training step for this metric.", | 684 "description": "The global training step for this metric.", |
833 "format": "int64", | 685 "format": "int64", |
834 "type": "string" | 686 "type": "string" |
835 } | 687 }, |
836 }, | 688 "objectiveValue": { |
| 689 "description": "The objective value at this training step.", |
| 690 "format": "double", |
| 691 "type": "number" |
| 692 } |
| 693 }, |
| 694 "type": "object" |
| 695 }, |
| 696 "GoogleCloudMlV1beta1__ParameterSpec": { |
| 697 "description": "Represents a single hyperparameter to optimize.", |
| 698 "id": "GoogleCloudMlV1beta1__ParameterSpec", |
| 699 "properties": { |
| 700 "minValue": { |
| 701 "description": "Required if type is `DOUBLE` or `INTEGER`. T
his field\nshould be unset if type is `CATEGORICAL`. This value should be intege
rs if\ntype is INTEGER.", |
| 702 "format": "double", |
| 703 "type": "number" |
| 704 }, |
| 705 "discreteValues": { |
| 706 "description": "Required if type is `DISCRETE`.\nA list of f
easible points.\nThe list should be in strictly increasing order. For instance,
this\nparameter might have possible settings of 1.5, 2.5, and 4.0. This list\nsh
ould not contain more than 1,000 values.", |
| 707 "items": { |
| 708 "format": "double", |
| 709 "type": "number" |
| 710 }, |
| 711 "type": "array" |
| 712 }, |
| 713 "maxValue": { |
| 714 "description": "Required if typeis `DOUBLE` or `INTEGER`. Th
is field\nshould be unset if type is `CATEGORICAL`. This value should be integer
s if\ntype is `INTEGER`.", |
| 715 "format": "double", |
| 716 "type": "number" |
| 717 }, |
| 718 "scaleType": { |
| 719 "description": "Optional. How the parameter should be scaled
to the hypercube.\nLeave unset for categorical parameters.\nSome kind of scalin
g is strongly recommended for real or integral\nparameters (e.g., `UNIT_LINEAR_S
CALE`).", |
| 720 "enum": [ |
| 721 "NONE", |
| 722 "UNIT_LINEAR_SCALE", |
| 723 "UNIT_LOG_SCALE", |
| 724 "UNIT_REVERSE_LOG_SCALE" |
| 725 ], |
| 726 "enumDescriptions": [ |
| 727 "By default, no scaling is applied.", |
| 728 "Scales the feasible space to (0, 1) linearly.", |
| 729 "Scales the feasible space logarithmically to (0, 1). Th
e entire feasible\nspace must be strictly positive.", |
| 730 "Scales the feasible space \"reverse\" logarithmically t
o (0, 1). The result\nis that values close to the top of the feasible space are
spread out more\nthan points near the bottom. The entire feasible space must be
strictly\npositive." |
| 731 ], |
| 732 "type": "string" |
| 733 }, |
| 734 "type": { |
| 735 "description": "Required. The type of the parameter.", |
| 736 "enum": [ |
| 737 "PARAMETER_TYPE_UNSPECIFIED", |
| 738 "DOUBLE", |
| 739 "INTEGER", |
| 740 "CATEGORICAL", |
| 741 "DISCRETE" |
| 742 ], |
| 743 "enumDescriptions": [ |
| 744 "You must specify a valid type. Using this unspecified t
ype will result in\nan error.", |
| 745 "Type for real-valued parameters.", |
| 746 "Type for integral parameters.", |
| 747 "The parameter is categorical, with a value chosen from
the categories\nfield.", |
| 748 "The parameter is real valued, with a fixed set of feasi
ble points. If\n`type==DISCRETE`, feasible_points must be provided, and\n{`min_v
alue`, `max_value`} will be ignored." |
| 749 ], |
| 750 "type": "string" |
| 751 }, |
| 752 "parameterName": { |
| 753 "description": "Required. The parameter name must be unique
amongst all ParameterConfigs in\na HyperparameterSpec message. E.g., \"learning_
rate\".", |
| 754 "type": "string" |
| 755 }, |
| 756 "categoricalValues": { |
| 757 "description": "Required if type is `CATEGORICAL`. The list
of possible categories.", |
| 758 "items": { |
| 759 "type": "string" |
| 760 }, |
| 761 "type": "array" |
| 762 } |
| 763 }, |
| 764 "type": "object" |
| 765 }, |
| 766 "GoogleCloudMlV1beta1__PredictionOutput": { |
| 767 "description": "Represents results of a prediction job.", |
| 768 "id": "GoogleCloudMlV1beta1__PredictionOutput", |
| 769 "properties": { |
| 770 "errorCount": { |
| 771 "description": "The number of data instances which resulted
in errors.", |
| 772 "format": "int64", |
| 773 "type": "string" |
| 774 }, |
| 775 "outputPath": { |
| 776 "description": "The output Google Cloud Storage location pro
vided at the job creation time.", |
| 777 "type": "string" |
| 778 }, |
| 779 "nodeHours": { |
| 780 "description": "Node hours used by the batch prediction job.
", |
| 781 "format": "double", |
| 782 "type": "number" |
| 783 }, |
| 784 "predictionCount": { |
| 785 "description": "The number of generated predictions.", |
| 786 "format": "int64", |
| 787 "type": "string" |
| 788 } |
| 789 }, |
| 790 "type": "object" |
| 791 }, |
| 792 "GoogleCloudMlV1beta1__TrainingOutput": { |
| 793 "description": "Represents results of a training job. Output only.", |
| 794 "id": "GoogleCloudMlV1beta1__TrainingOutput", |
| 795 "properties": { |
| 796 "isHyperparameterTuningJob": { |
| 797 "description": "Whether this job is a hyperparameter tuning
job.", |
| 798 "type": "boolean" |
| 799 }, |
| 800 "consumedMLUnits": { |
| 801 "description": "The amount of ML units consumed by the job."
, |
| 802 "format": "double", |
| 803 "type": "number" |
| 804 }, |
| 805 "trials": { |
| 806 "description": "Results for individual Hyperparameter trials
.\nOnly set for hyperparameter tuning jobs.", |
| 807 "items": { |
| 808 "$ref": "GoogleCloudMlV1beta1__HyperparameterOutput" |
| 809 }, |
| 810 "type": "array" |
| 811 }, |
| 812 "completedTrialCount": { |
| 813 "description": "The number of hyperparameter tuning trials t
hat completed successfully.\nOnly set for hyperparameter tuning jobs.", |
| 814 "format": "int64", |
| 815 "type": "string" |
| 816 } |
| 817 }, |
| 818 "type": "object" |
| 819 }, |
| 820 "GoogleCloudMlV1__Version": { |
| 821 "description": "Represents a version of the model.\n\nEach version i
s a trained model deployed in the cloud, ready to handle\nprediction requests. A
model can have multiple versions. You can get\ninformation about all of the ver
sions of a given model by calling\n[projects.models.versions.list](/ml/reference
/rest/v1/projects.models.versions/list).", |
| 822 "id": "GoogleCloudMlV1__Version", |
| 823 "properties": { |
| 824 "description": { |
| 825 "description": "Optional. The description specified for the
version when it was created.", |
| 826 "type": "string" |
| 827 }, |
| 828 "deploymentUri": { |
| 829 "description": "Required. The Google Cloud Storage location
of the trained model used to\ncreate the version. See the\n[overview of model de
ployment](/ml/docs/concepts/deployment-overview) for\nmore informaiton.\n\nWhen
passing Version to\n[projects.models.versions.create](/ml/reference/rest/v1/proj
ects.models.versions/create)\nthe model service uses the specified location as t
he source of the model.\nOnce deployed, the model version is hosted by the predi
ction service, so\nthis location is useful only as a historical record.", |
| 830 "type": "string" |
| 831 }, |
| 832 "isDefault": { |
| 833 "description": "Output only. If true, this version will be u
sed to handle prediction\nrequests that do not specify a version.\n\nYou can cha
nge the default version by calling\n[projects.methods.versions.setDefault](/ml/r
eference/rest/v1/projects.models.versions/setDefault).", |
| 834 "type": "boolean" |
| 835 }, |
| 836 "createTime": { |
| 837 "description": "Output only. The time the version was create
d.", |
| 838 "format": "google-datetime", |
| 839 "type": "string" |
| 840 }, |
| 841 "name": { |
| 842 "description": "Required.The name specified for the version
when it was created.\n\nThe version name must be unique within the model it is c
reated in.", |
| 843 "type": "string" |
| 844 }, |
| 845 "runtimeVersion": { |
| 846 "description": "Optional. The Google Cloud ML runtime versio
n to use for this deployment.\nIf not set, Google Cloud ML will choose a version
.", |
| 847 "type": "string" |
| 848 }, |
| 849 "lastUseTime": { |
| 850 "description": "Output only. The time the version was last u
sed for prediction.", |
| 851 "format": "google-datetime", |
| 852 "type": "string" |
| 853 } |
| 854 }, |
| 855 "type": "object" |
| 856 }, |
| 857 "GoogleCloudMlV1beta1__HyperparameterSpec": { |
| 858 "description": "Represents a set of hyperparameters to optimize.", |
| 859 "id": "GoogleCloudMlV1beta1__HyperparameterSpec", |
| 860 "properties": { |
| 861 "params": { |
| 862 "description": "Required. The set of parameters to tune.", |
| 863 "items": { |
| 864 "$ref": "GoogleCloudMlV1beta1__ParameterSpec" |
| 865 }, |
| 866 "type": "array" |
| 867 }, |
| 868 "maxTrials": { |
| 869 "description": "Optional. How many training trials should be
attempted to optimize\nthe specified hyperparameters.\n\nDefaults to one.", |
| 870 "format": "int32", |
| 871 "type": "integer" |
| 872 }, |
| 873 "maxParallelTrials": { |
| 874 "description": "Optional. The number of training trials to r
un concurrently.\nYou can reduce the time it takes to perform hyperparameter tun
ing by adding\ntrials in parallel. However, each trail only benefits from the in
formation\ngained in completed trials. That means that a trial does not get acce
ss to\nthe results of trials running at the same time, which could reduce the\nq
uality of the overall optimization.\n\nEach trial will use the same scale tier a
nd machine types.\n\nDefaults to one.", |
| 875 "format": "int32", |
| 876 "type": "integer" |
| 877 }, |
| 878 "goal": { |
| 879 "description": "Required. The type of goal to use for tuning
. Available types are\n`MAXIMIZE` and `MINIMIZE`.\n\nDefaults to `MAXIMIZE`.", |
| 880 "enum": [ |
| 881 "GOAL_TYPE_UNSPECIFIED", |
| 882 "MAXIMIZE", |
| 883 "MINIMIZE" |
| 884 ], |
| 885 "enumDescriptions": [ |
| 886 "Goal Type will default to maximize.", |
| 887 "Maximize the goal metric.", |
| 888 "Minimize the goal metric." |
| 889 ], |
| 890 "type": "string" |
| 891 }, |
| 892 "hyperparameterMetricTag": { |
| 893 "description": "Optional. The Tensorflow summary tag name to
use for optimizing trials. For\ncurrent versions of Tensorflow, this tag name s
hould exactly match what is\nshown in Tensorboard, including all scopes. For ve
rsions of Tensorflow\nprior to 0.12, this should be only the tag passed to tf.Su
mmary.\nBy default, \"training/hptuning/metric\" will be used.", |
| 894 "type": "string" |
| 895 } |
| 896 }, |
| 897 "type": "object" |
| 898 }, |
| 899 "GoogleCloudMlV1beta1__OperationMetadata": { |
| 900 "description": "Represents the metadata of the long-running operatio
n.", |
| 901 "id": "GoogleCloudMlV1beta1__OperationMetadata", |
| 902 "properties": { |
| 903 "startTime": { |
| 904 "description": "The time operation processing started.", |
| 905 "format": "google-datetime", |
| 906 "type": "string" |
| 907 }, |
| 908 "isCancellationRequested": { |
| 909 "description": "Indicates whether a request to cancel this o
peration has been made.", |
| 910 "type": "boolean" |
| 911 }, |
| 912 "createTime": { |
| 913 "description": "The time the operation was submitted.", |
| 914 "format": "google-datetime", |
| 915 "type": "string" |
| 916 }, |
| 917 "modelName": { |
| 918 "description": "Contains the name of the model associated wi
th the operation.", |
| 919 "type": "string" |
| 920 }, |
| 921 "version": { |
| 922 "$ref": "GoogleCloudMlV1beta1__Version", |
| 923 "description": "Contains the version associated with the ope
ration." |
| 924 }, |
| 925 "endTime": { |
| 926 "description": "The time operation processing completed.", |
| 927 "format": "google-datetime", |
| 928 "type": "string" |
| 929 }, |
| 930 "operationType": { |
| 931 "description": "The operation type.", |
| 932 "enum": [ |
| 933 "OPERATION_TYPE_UNSPECIFIED", |
| 934 "CREATE_VERSION", |
| 935 "DELETE_VERSION", |
| 936 "DELETE_MODEL" |
| 937 ], |
| 938 "enumDescriptions": [ |
| 939 "Unspecified operation type.", |
| 940 "An operation to create a new version.", |
| 941 "An operation to delete an existing version.", |
| 942 "An operation to delete an existing model." |
| 943 ], |
| 944 "type": "string" |
| 945 } |
| 946 }, |
| 947 "type": "object" |
| 948 }, |
| 949 "GoogleCloudMlV1__OperationMetadata": { |
| 950 "description": "Represents the metadata of the long-running operatio
n.", |
| 951 "id": "GoogleCloudMlV1__OperationMetadata", |
| 952 "properties": { |
| 953 "endTime": { |
| 954 "description": "The time operation processing completed.", |
| 955 "format": "google-datetime", |
| 956 "type": "string" |
| 957 }, |
| 958 "operationType": { |
| 959 "description": "The operation type.", |
| 960 "enum": [ |
| 961 "OPERATION_TYPE_UNSPECIFIED", |
| 962 "CREATE_VERSION", |
| 963 "DELETE_VERSION", |
| 964 "DELETE_MODEL" |
| 965 ], |
| 966 "enumDescriptions": [ |
| 967 "Unspecified operation type.", |
| 968 "An operation to create a new version.", |
| 969 "An operation to delete an existing version.", |
| 970 "An operation to delete an existing model." |
| 971 ], |
| 972 "type": "string" |
| 973 }, |
| 974 "startTime": { |
| 975 "description": "The time operation processing started.", |
| 976 "format": "google-datetime", |
| 977 "type": "string" |
| 978 }, |
| 979 "isCancellationRequested": { |
| 980 "description": "Indicates whether a request to cancel this o
peration has been made.", |
| 981 "type": "boolean" |
| 982 }, |
| 983 "createTime": { |
| 984 "description": "The time the operation was submitted.", |
| 985 "format": "google-datetime", |
| 986 "type": "string" |
| 987 }, |
| 988 "modelName": { |
| 989 "description": "Contains the name of the model associated wi
th the operation.", |
| 990 "type": "string" |
| 991 }, |
| 992 "version": { |
| 993 "$ref": "GoogleCloudMlV1__Version", |
| 994 "description": "Contains the version associated with the ope
ration." |
| 995 } |
| 996 }, |
| 997 "type": "object" |
| 998 }, |
| 999 "GoogleCloudMlV1beta1__ListModelsResponse": { |
| 1000 "description": "Response message for the ListModels method.", |
| 1001 "id": "GoogleCloudMlV1beta1__ListModelsResponse", |
| 1002 "properties": { |
| 1003 "models": { |
| 1004 "description": "The list of models.", |
| 1005 "items": { |
| 1006 "$ref": "GoogleCloudMlV1beta1__Model" |
| 1007 }, |
| 1008 "type": "array" |
| 1009 }, |
| 1010 "nextPageToken": { |
| 1011 "description": "Optional. Pass this token as the `page_token
` field of the request for a\nsubsequent call.", |
| 1012 "type": "string" |
| 1013 } |
| 1014 }, |
837 "type": "object" | 1015 "type": "object" |
838 }, | 1016 }, |
839 "GoogleLongrunning__Operation": { | 1017 "GoogleLongrunning__Operation": { |
840 "description": "This resource represents a long-running operation th
at is the result of a\nnetwork API call.", | 1018 "description": "This resource represents a long-running operation th
at is the result of a\nnetwork API call.", |
841 "id": "GoogleLongrunning__Operation", | 1019 "id": "GoogleLongrunning__Operation", |
842 "properties": { | 1020 "properties": { |
| 1021 "name": { |
| 1022 "description": "The server-assigned name, which is only uniq
ue within the same service that\noriginally returns it. If you use the default H
TTP mapping, the\n`name` should have the format of `operations/some/unique/name`
.", |
| 1023 "type": "string" |
| 1024 }, |
843 "error": { | 1025 "error": { |
844 "$ref": "GoogleRpc__Status", | 1026 "$ref": "GoogleRpc__Status", |
845 "description": "The error result of the operation in case of
failure or cancellation." | 1027 "description": "The error result of the operation in case of
failure or cancellation." |
846 }, | 1028 }, |
847 "done": { | |
848 "description": "If the value is `false`, it means the operat
ion is still in progress.\nIf true, the operation is completed, and either `erro
r` or `response` is\navailable.", | |
849 "type": "boolean" | |
850 }, | |
851 "metadata": { | 1029 "metadata": { |
852 "additionalProperties": { | 1030 "additionalProperties": { |
853 "description": "Properties of the object. Contains field
@type with type URL.", | 1031 "description": "Properties of the object. Contains field
@type with type URL.", |
854 "type": "any" | 1032 "type": "any" |
855 }, | 1033 }, |
856 "description": "Service-specific metadata associated with th
e operation. It typically\ncontains progress information and common metadata su
ch as create time.\nSome services might not provide such metadata. Any method t
hat returns a\nlong-running operation should document the metadata type, if any.
", | 1034 "description": "Service-specific metadata associated with th
e operation. It typically\ncontains progress information and common metadata su
ch as create time.\nSome services might not provide such metadata. Any method t
hat returns a\nlong-running operation should document the metadata type, if any.
", |
857 "type": "object" | 1035 "type": "object" |
858 }, | 1036 }, |
| 1037 "done": { |
| 1038 "description": "If the value is `false`, it means the operat
ion is still in progress.\nIf true, the operation is completed, and either `erro
r` or `response` is\navailable.", |
| 1039 "type": "boolean" |
| 1040 }, |
859 "response": { | 1041 "response": { |
860 "additionalProperties": { | 1042 "additionalProperties": { |
861 "description": "Properties of the object. Contains field
@type with type URL.", | 1043 "description": "Properties of the object. Contains field
@type with type URL.", |
862 "type": "any" | 1044 "type": "any" |
863 }, | 1045 }, |
864 "description": "The normal response of the operation in case
of success. If the original\nmethod returns no data on success, such as `Delet
e`, the response is\n`google.protobuf.Empty`. If the original method is standar
d\n`Get`/`Create`/`Update`, the response should be the resource. For other\nmet
hods, the response should have the type `XxxResponse`, where `Xxx`\nis the origi
nal method name. For example, if the original method name\nis `TakeSnapshot()`,
the inferred response type is\n`TakeSnapshotResponse`.", | 1046 "description": "The normal response of the operation in case
of success. If the original\nmethod returns no data on success, such as `Delet
e`, the response is\n`google.protobuf.Empty`. If the original method is standar
d\n`Get`/`Create`/`Update`, the response should be the resource. For other\nmet
hods, the response should have the type `XxxResponse`, where `Xxx`\nis the origi
nal method name. For example, if the original method name\nis `TakeSnapshot()`,
the inferred response type is\n`TakeSnapshotResponse`.", |
865 "type": "object" | 1047 "type": "object" |
| 1048 } |
| 1049 }, |
| 1050 "type": "object" |
| 1051 }, |
| 1052 "GoogleCloudMlV1beta1__HyperparameterOutput": { |
| 1053 "description": "Represents the result of a single hyperparameter tun
ing trial from a\ntraining job. The TrainingOutput object that is returned on su
ccessful\ncompletion of a training job with hyperparameter tuning includes a lis
t\nof HyperparameterOutput objects, one for each successful trial.", |
| 1054 "id": "GoogleCloudMlV1beta1__HyperparameterOutput", |
| 1055 "properties": { |
| 1056 "allMetrics": { |
| 1057 "description": "All recorded object metrics for this trial."
, |
| 1058 "items": { |
| 1059 "$ref": "GoogleCloudMlV1beta1_HyperparameterOutput_Hyper
parameterMetric" |
| 1060 }, |
| 1061 "type": "array" |
866 }, | 1062 }, |
867 "name": { | 1063 "finalMetric": { |
868 "description": "The server-assigned name, which is only uniq
ue within the same service that\noriginally returns it. If you use the default H
TTP mapping, the\n`name` should have the format of `operations/some/unique/name`
.", | 1064 "$ref": "GoogleCloudMlV1beta1_HyperparameterOutput_Hyperpara
meterMetric", |
| 1065 "description": "The final objective metric seen for this tri
al." |
| 1066 }, |
| 1067 "hyperparameters": { |
| 1068 "additionalProperties": { |
| 1069 "type": "string" |
| 1070 }, |
| 1071 "description": "The hyperparameters given to this trial.", |
| 1072 "type": "object" |
| 1073 }, |
| 1074 "trialId": { |
| 1075 "description": "The trial id for these results.", |
869 "type": "string" | 1076 "type": "string" |
870 } | 1077 } |
871 }, | 1078 }, |
872 "type": "object" | 1079 "type": "object" |
873 }, | 1080 }, |
874 "GoogleCloudMlV1beta1__PredictRequest": { | 1081 "GoogleProtobuf__Empty": { |
875 "description": "Request for predictions to be issued against a train
ed model.\n\nThe body of the request is a single JSON object with a single top-l
evel\nfield:\n\n<dl>\n <dt>instances</dt>\n <dd>A JSON array containing values
representing the instances to use for\n prediction.</dd>\n</dl>\n\nThe str
ucture of each element of the instances list is determined by your\nmodel's inpu
t definition. Instances can include named inputs or can contain\nonly unlabeled
values.\n\nMost data does not include named inputs. Some instances will be simpl
e\nJSON values (boolean, number, or string). However, instances are often lists\
nof simple values, or complex nested lists. Here are some examples of request\nb
odies:\n\nCSV data with each row encoded as a string value:\n<pre>\n{\"instances
\": [\"1.0,true,\\\\\"x\\\\\"\", \"-2.0,false,\\\\\"y\\\\\"\"]}\n</pre>\nPlain t
ext:\n<pre>\n{\"instances\": [\"the quick brown fox\", \"la bruja le dio\"]}\n</
pre>\nSentences encoded as lists of words (vectors of strings):\n<pre>\n{\"insta
nces\": [[\"the\",\"quick\",\"brown\"], [\"la\",\"bruja\",\"le\"]]}\n</pre>\nFlo
ating point scalar values:\n<pre>\n{\"instances\": [0.0, 1.1, 2.2]}\n</pre>\nVec
tors of integers:\n<pre>\n{\"instances\": [[0, 1, 2], [3, 4, 5],...]}\n</pre>\nT
ensors (in this case, two-dimensional tensors):\n<pre>\n{\"instances\": [[[0, 1,
2], [3, 4, 5]], ...]}\n</pre>\nImages represented as a three-dimensional list.
In this encoding scheme the\nfirst two dimensions represent the rows and columns
of the image, and the\nthird contains the R, G, and B values for each pixel.\n<
pre>\n{\"instances\": [[[[138, 30, 66], [130, 20, 56], ...]]]]}\n</pre>\nData mu
st be encoded as UTF-8. If your data uses another character encoding,\nyou must
base64 encode the data and mark it as binary. To mark a JSON string\nas binary,
replace it with an object with a single attribute named `b`:\n<pre>{\"b\": \"...
\"} </pre>\nFor example:\n\nTwo Serialized tf.Examples (fake data, for illustrat
ive purposes only):\n<pre>\n{\"instances\": [{\"b64\": \"X5ad6u\"}, {\"b64\": \"
IA9j4nx\"}]}\n</pre>\nTwo JPEG image byte strings (fake data, for illustrative p
urposes only):\n<pre>\n{\"instances\": [{\"b64\": \"ASa8asdf\"}, {\"b64\": \"JLK
7ljk3\"}]}\n</pre>\nIf your data includes named references, format each instance
as a JSON object\nwith the named references as the keys:\n\nJSON input data to
be preprocessed:\n<pre>\n{\"instances\": [{\"a\": 1.0, \"b\": true, \"c\": \"x
\"},\n {\"a\": -2.0, \"b\": false, \"c\": \"y\"}]}\n</pre>\nSome m
odels have an underlying TensorFlow graph that accepts multiple input\ntensors.
In this case, you should use the names of JSON name/value pairs to\nidentify the
input tensors, as shown in the following exmaples:\n\nFor a graph with input te
nsor aliases \"tag\" (string) and \"image\"\n(base64-encoded string):\n<pre>\n{\
"instances\": [{\"tag\": \"beach\", \"image\": {\"b64\": \"ASa8asdf\"}},\n
{\"tag\": \"car\", \"image\": {\"b64\": \"JLK7ljk3\"}}]}\n</pre>\nFor a
graph with input tensor aliases \"tag\" (string) and \"image\"\n(3-dimensional
array of 8-bit ints):\n<pre>\n{\"instances\": [{\"tag\": \"beach\", \"image\": [
[[263, 1, 10], [262, 2, 11], ...]]},\n {\"tag\": \"car\", \"image\
": [[[10, 11, 24], [23, 10, 15], ...]]}]}\n</pre>\nIf the call is successful, th
e response body will contain one prediction\nentry per instance in the request b
ody. If prediction fails for any\ninstance, the response body will contain no pr
edictions and will contian\na single error entry instead.", | 1082 "description": "A generic empty message that you can re-use to avoid
defining duplicated\nempty messages in your APIs. A typical example is to use i
t as the request\nor the response type of an API method. For instance:\n\n se
rvice Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty
);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.", |
876 "id": "GoogleCloudMlV1beta1__PredictRequest", | 1083 "id": "GoogleProtobuf__Empty", |
877 "properties": { | 1084 "properties": {}, |
878 "httpBody": { | |
879 "$ref": "GoogleApi__HttpBody", | |
880 "description": "\nRequired. The prediction request body." | |
881 } | |
882 }, | |
883 "type": "object" | 1085 "type": "object" |
884 }, | 1086 }, |
885 "GoogleRpc__Status": { | 1087 "GoogleRpc__Status": { |
886 "description": "The `Status` type defines a logical error model that
is suitable for different\nprogramming environments, including REST APIs and RP
C APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is desig
ned to be:\n\n- Simple to use and understand for most users\n- Flexible enough t
o meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pie
ces of data: error code, error message,\nand error details. The error code shoul
d be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes
if needed. The\nerror message should be a developer-facing English message tha
t helps\ndevelopers *understand* and *resolve* the error. If a localized user-fa
cing\nerror message is needed, put the localized message in the error details or
\nlocalize it in the client. The optional error details may contain arbitrary\ni
nformation about the error. There is a predefined set of error detail types\nin
the package `google.rpc` which can be used for common error conditions.\n\n# Lan
guage mapping\n\nThe `Status` message is the logical representation of the error
model, but it\nis not necessarily the actual wire format. When the `Status` mes
sage is\nexposed in different client libraries and different wire protocols, it
can be\nmapped differently. For example, it will likely be mapped to some except
ions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\
n\nThe error model and the `Status` message can be used in a variety of\nenviron
ments, either with or without APIs, to provide a\nconsistent developer experienc
e across different environments.\n\nExample uses of this error model include:\n\
n- Partial errors. If a service needs to return partial errors to the client,\n
it may embed the `Status` in the normal response to indicate the partial\n
errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step
may\n have a `Status` message for error reporting purpose.\n\n- Batch operati
ons. If a client uses batch request and batch response, the\n `Status` messag
e should be used directly inside batch response, one for\n each error sub-res
ponse.\n\n- Asynchronous operations. If an API call embeds asynchronous operatio
n\n results in its response, the status of those operations should be\n re
presented directly using the `Status` message.\n\n- Logging. If some API errors
are stored in logs, the message `Status` could\n be used directly after any s
tripping needed for security/privacy reasons.", | 1088 "description": "The `Status` type defines a logical error model that
is suitable for different\nprogramming environments, including REST APIs and RP
C APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is desig
ned to be:\n\n- Simple to use and understand for most users\n- Flexible enough t
o meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pie
ces of data: error code, error message,\nand error details. The error code shoul
d be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes
if needed. The\nerror message should be a developer-facing English message tha
t helps\ndevelopers *understand* and *resolve* the error. If a localized user-fa
cing\nerror message is needed, put the localized message in the error details or
\nlocalize it in the client. The optional error details may contain arbitrary\ni
nformation about the error. There is a predefined set of error detail types\nin
the package `google.rpc` which can be used for common error conditions.\n\n# Lan
guage mapping\n\nThe `Status` message is the logical representation of the error
model, but it\nis not necessarily the actual wire format. When the `Status` mes
sage is\nexposed in different client libraries and different wire protocols, it
can be\nmapped differently. For example, it will likely be mapped to some except
ions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\
n\nThe error model and the `Status` message can be used in a variety of\nenviron
ments, either with or without APIs, to provide a\nconsistent developer experienc
e across different environments.\n\nExample uses of this error model include:\n\
n- Partial errors. If a service needs to return partial errors to the client,\n
it may embed the `Status` in the normal response to indicate the partial\n
errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step
may\n have a `Status` message for error reporting purpose.\n\n- Batch operati
ons. If a client uses batch request and batch response, the\n `Status` messag
e should be used directly inside batch response, one for\n each error sub-res
ponse.\n\n- Asynchronous operations. If an API call embeds asynchronous operatio
n\n results in its response, the status of those operations should be\n re
presented directly using the `Status` message.\n\n- Logging. If some API errors
are stored in logs, the message `Status` could\n be used directly after any s
tripping needed for security/privacy reasons.", |
887 "id": "GoogleRpc__Status", | 1089 "id": "GoogleRpc__Status", |
888 "properties": { | 1090 "properties": { |
889 "code": { | |
890 "description": "The status code, which should be an enum val
ue of google.rpc.Code.", | |
891 "format": "int32", | |
892 "type": "integer" | |
893 }, | |
894 "details": { | 1091 "details": { |
895 "description": "A list of messages that carry the error deta
ils. There will be a\ncommon set of message types for APIs to use.", | 1092 "description": "A list of messages that carry the error deta
ils. There will be a\ncommon set of message types for APIs to use.", |
896 "items": { | 1093 "items": { |
897 "additionalProperties": { | 1094 "additionalProperties": { |
898 "description": "Properties of the object. Contains f
ield @type with type URL.", | 1095 "description": "Properties of the object. Contains f
ield @type with type URL.", |
899 "type": "any" | 1096 "type": "any" |
900 }, | 1097 }, |
901 "type": "object" | 1098 "type": "object" |
902 }, | 1099 }, |
903 "type": "array" | 1100 "type": "array" |
904 }, | 1101 }, |
| 1102 "code": { |
| 1103 "description": "The status code, which should be an enum val
ue of google.rpc.Code.", |
| 1104 "format": "int32", |
| 1105 "type": "integer" |
| 1106 }, |
905 "message": { | 1107 "message": { |
906 "description": "A developer-facing error message, which shou
ld be in English. Any\nuser-facing error message should be localized and sent in
the\ngoogle.rpc.Status.details field, or localized by the client.", | 1108 "description": "A developer-facing error message, which shou
ld be in English. Any\nuser-facing error message should be localized and sent in
the\ngoogle.rpc.Status.details field, or localized by the client.", |
907 "type": "string" | 1109 "type": "string" |
908 } | 1110 } |
909 }, | 1111 }, |
910 "type": "object" | 1112 "type": "object" |
911 }, | 1113 }, |
912 "GoogleCloudMlV1beta1__CancelJobRequest": { | 1114 "GoogleCloudMlV1beta1__PredictRequest": { |
913 "description": "Request message for the CancelJob method.", | 1115 "description": "Request for predictions to be issued against a train
ed model.\n\nThe body of the request is a single JSON object with a single top-l
evel\nfield:\n\n<dl>\n <dt>instances</dt>\n <dd>A JSON array containing values
representing the instances to use for\n prediction.</dd>\n</dl>\n\nThe str
ucture of each element of the instances list is determined by your\nmodel's inpu
t definition. Instances can include named inputs or can contain\nonly unlabeled
values.\n\nNot all data includes named inputs. Some instances will be simple\nJS
ON values (boolean, number, or string). However, instances are often lists\nof s
imple values, or complex nested lists. Here are some examples of request\nbodies
:\n\nCSV data with each row encoded as a string value:\n<pre>\n{\"instances\": [
\"1.0,true,\\\\\"x\\\\\"\", \"-2.0,false,\\\\\"y\\\\\"\"]}\n</pre>\nPlain text:\
n<pre>\n{\"instances\": [\"the quick brown fox\", \"la bruja le dio\"]}\n</pre>\
nSentences encoded as lists of words (vectors of strings):\n<pre>\n{\n \"instan
ces\": [\n [\"the\",\"quick\",\"brown\"],\n [\"la\",\"bruja\",\"le\"],\n
...\n ]\n}\n</pre>\nFloating point scalar values:\n<pre>\n{\"instances\": [0.
0, 1.1, 2.2]}\n</pre>\nVectors of integers:\n<pre>\n{\n \"instances\": [\n [
0, 1, 2],\n [3, 4, 5],\n ...\n ]\n}\n</pre>\nTensors (in this case, two-d
imensional tensors):\n<pre>\n{\n \"instances\": [\n [\n [0, 1, 2],\n
[3, 4, 5]\n ],\n ...\n ]\n}\n</pre>\nImages can be represented differe
nt ways. In this encoding scheme the first\ntwo dimensions represent the rows an
d columns of the image, and the third\ncontains lists (vectors) of the R, G, and
B values for each pixel.\n<pre>\n{\n \"instances\": [\n [\n [\n
[138, 30, 66],\n [130, 20, 56],\n ...\n ],\n [\n
[126, 38, 61],\n [122, 24, 57],\n ...\n ],\n ...\n ]
,\n ...\n ]\n}\n</pre>\nJSON strings must be encoded as UTF-8. To send binar
y data, you must\nbase64-encode the data and mark it as binary. To mark a JSON s
tring\nas binary, replace it with a JSON object with a single attribute named `b
64`:\n<pre>{\"b64\": \"...\"} </pre>\nFor example:\n\nTwo Serialized tf.Examples
(fake data, for illustrative purposes only):\n<pre>\n{\"instances\": [{\"b64\":
\"X5ad6u\"}, {\"b64\": \"IA9j4nx\"}]}\n</pre>\nTwo JPEG image byte strings (fak
e data, for illustrative purposes only):\n<pre>\n{\"instances\": [{\"b64\": \"AS
a8asdf\"}, {\"b64\": \"JLK7ljk3\"}]}\n</pre>\nIf your data includes named refere
nces, format each instance as a JSON object\nwith the named references as the ke
ys:\n\nJSON input data to be preprocessed:\n<pre>\n{\n \"instances\": [\n {\
n \"a\": 1.0,\n \"b\": true,\n \"c\": \"x\"\n },\n {\n
\"a\": -2.0,\n \"b\": false,\n \"c\": \"y\"\n }\n ]\n}\n</pre>\nS
ome models have an underlying TensorFlow graph that accepts multiple input\ntens
ors. In this case, you should use the names of JSON name/value pairs to\nidentif
y the input tensors, as shown in the following exmaples:\n\nFor a graph with inp
ut tensor aliases \"tag\" (string) and \"image\"\n(base64-encoded string):\n<pre
>\n{\n \"instances\": [\n {\n \"tag\": \"beach\",\n \"image\": {\"
b64\": \"ASa8asdf\"}\n },\n {\n \"tag\": \"car\",\n \"image\": {
\"b64\": \"JLK7ljk3\"}\n }\n ]\n}\n</pre>\nFor a graph with input tensor ali
ases \"tag\" (string) and \"image\"\n(3-dimensional array of 8-bit ints):\n<pre>
\n{\n \"instances\": [\n {\n \"tag\": \"beach\",\n \"image\": [\n
[\n [138, 30, 66],\n [130, 20, 56],\n ...\n
],\n [\n [126, 38, 61],\n [122, 24, 57],\n
...\n ],\n ...\n ]\n },\n {\n \"tag\": \"car\",\
n \"image\": [\n [\n [255, 0, 102],\n [255, 0, 97]
,\n ...\n ],\n [\n [254, 1, 101],\n [25
4, 2, 93],\n ...\n ],\n ...\n ]\n },\n ...\n
]\n}\n</pre>\nIf the call is successful, the response body will contain one pred
iction\nentry per instance in the request body. If prediction fails for any\nins
tance, the response body will contain no predictions and will contian\na single
error entry instead.", |
914 "id": "GoogleCloudMlV1beta1__CancelJobRequest", | 1116 "id": "GoogleCloudMlV1beta1__PredictRequest", |
915 "properties": {}, | |
916 "type": "object" | |
917 }, | |
918 "GoogleCloudMlV1beta1__TrainingOutput": { | |
919 "description": "Represents results of a training job. Output only.", | |
920 "id": "GoogleCloudMlV1beta1__TrainingOutput", | |
921 "properties": { | 1117 "properties": { |
922 "consumedMLUnits": { | 1118 "httpBody": { |
923 "description": "The amount of ML units consumed by the job."
, | 1119 "$ref": "GoogleApi__HttpBody", |
924 "format": "double", | 1120 "description": "\nRequired. The prediction request body." |
925 "type": "number" | |
926 }, | |
927 "completedTrialCount": { | |
928 "description": "The number of hyperparameter tuning trials t
hat completed successfully.\nOnly set for hyperparameter tuning jobs.", | |
929 "format": "int64", | |
930 "type": "string" | |
931 }, | |
932 "isHyperparameterTuningJob": { | |
933 "description": "Whether this job is a hyperparameter tuning
job.", | |
934 "type": "boolean" | |
935 }, | |
936 "trials": { | |
937 "description": "Results for individual Hyperparameter trials
.\nOnly set for hyperparameter tuning jobs.", | |
938 "items": { | |
939 "$ref": "GoogleCloudMlV1beta1__HyperparameterOutput" | |
940 }, | |
941 "type": "array" | |
942 } | 1121 } |
943 }, | 1122 }, |
944 "type": "object" | 1123 "type": "object" |
945 }, | 1124 }, |
946 "GoogleLongrunning__ListOperationsResponse": { | 1125 "GoogleApi__HttpBody": { |
947 "description": "The response message for Operations.ListOperations."
, | 1126 "description": "Message that represents an arbitrary HTTP body. It s
hould only be used for\npayload formats that can't be represented as JSON, such
as raw binary or\nan HTML page.\n\n\nThis message can be used both in streaming
and non-streaming API methods in\nthe request as well as the response.\n\nIt can
be used as a top-level request field, which is convenient if one\nwants to extr
act parameters from either the URL or HTTP template into the\nrequest fields and
also want access to the raw HTTP body.\n\nExample:\n\n message GetResourceRe
quest {\n // A unique request id.\n string request_id = 1;\n\n //
The raw HTTP body is bound to this field.\n google.api.HttpBody http_body
= 2;\n }\n\n service ResourceService {\n rpc GetResource(GetResourceR
equest) returns (google.api.HttpBody);\n rpc UpdateResource(google.api.Http
Body) returns (google.protobuf.Empty);\n }\n\nExample with streaming methods:
\n\n service CaldavService {\n rpc GetCalendar(stream google.api.HttpBod
y)\n returns (stream google.api.HttpBody);\n rpc UpdateCalendar(stre
am google.api.HttpBody)\n returns (stream google.api.HttpBody);\n }\n\
nUse of this type only changes how the request and response bodies are\nhandled,
all other features will continue to work unchanged.", |
948 "id": "GoogleLongrunning__ListOperationsResponse", | 1127 "id": "GoogleApi__HttpBody", |
949 "properties": { | 1128 "properties": { |
950 "nextPageToken": { | 1129 "data": { |
951 "description": "The standard List next-page token.", | 1130 "description": "HTTP body binary data.", |
| 1131 "format": "byte", |
952 "type": "string" | 1132 "type": "string" |
953 }, | 1133 }, |
954 "operations": { | 1134 "contentType": { |
955 "description": "A list of operations that matches the specif
ied filter in the request.", | 1135 "description": "The HTTP Content-Type string representing th
e content type of the body.", |
956 "items": { | |
957 "$ref": "GoogleLongrunning__Operation" | |
958 }, | |
959 "type": "array" | |
960 } | |
961 }, | |
962 "type": "object" | |
963 }, | |
964 "GoogleCloudMlV1beta1__PredictionOutput": { | |
965 "description": "Represents results of a prediction job.", | |
966 "id": "GoogleCloudMlV1beta1__PredictionOutput", | |
967 "properties": { | |
968 "errorCount": { | |
969 "description": "The number of data instances which resulted
in errors.", | |
970 "format": "int64", | |
971 "type": "string" | |
972 }, | |
973 "nodeHours": { | |
974 "description": "Node hours used by the batch prediction job.
", | |
975 "format": "double", | |
976 "type": "number" | |
977 }, | |
978 "predictionCount": { | |
979 "description": "The number of generated predictions.", | |
980 "format": "int64", | |
981 "type": "string" | |
982 }, | |
983 "outputPath": { | |
984 "description": "The output Google Cloud Storage location pro
vided at the job creation time.", | |
985 "type": "string" | 1136 "type": "string" |
986 } | 1137 } |
987 }, | 1138 }, |
988 "type": "object" | 1139 "type": "object" |
989 }, | 1140 }, |
990 "GoogleCloudMlV1beta1__HyperparameterSpec": { | |
991 "description": "Represents a set of hyperparameters to optimize.", | |
992 "id": "GoogleCloudMlV1beta1__HyperparameterSpec", | |
993 "properties": { | |
994 "maxParallelTrials": { | |
995 "description": "Optional. The number of training trials to r
un concurrently.\nYou can reduce the time it takes to perform hyperparameter tun
ing by adding\ntrials in parallel. However, each trail only benefits from the in
formation\ngained in completed trials. That means that a trial does not get acce
ss to\nthe results of trials running at the same time, which could reduce the\nq
uality of the overall optimization.\n\nEach trial will use the same scale tier a
nd machine types.\n\nDefaults to one.", | |
996 "format": "int32", | |
997 "type": "integer" | |
998 }, | |
999 "maxTrials": { | |
1000 "description": "Optional. How many training trials should be
attempted to optimize\nthe specified hyperparameters.\n\nDefaults to one.", | |
1001 "format": "int32", | |
1002 "type": "integer" | |
1003 }, | |
1004 "goal": { | |
1005 "description": "Required. The type of goal to use for tuning
. Available types are\n`MAXIMIZE` and `MINIMIZE`.\n\nDefaults to `MAXIMIZE`.", | |
1006 "enum": [ | |
1007 "GOAL_TYPE_UNSPECIFIED", | |
1008 "MAXIMIZE", | |
1009 "MINIMIZE" | |
1010 ], | |
1011 "enumDescriptions": [ | |
1012 "Goal Type will default to maximize.", | |
1013 "Maximize the goal metric.", | |
1014 "Minimize the goal metric." | |
1015 ], | |
1016 "type": "string" | |
1017 }, | |
1018 "params": { | |
1019 "description": "Required. The set of parameters to tune.", | |
1020 "items": { | |
1021 "$ref": "GoogleCloudMlV1beta1__ParameterSpec" | |
1022 }, | |
1023 "type": "array" | |
1024 } | |
1025 }, | |
1026 "type": "object" | |
1027 }, | |
1028 "GoogleProtobuf__Empty": { | |
1029 "description": "A generic empty message that you can re-use to avoid
defining duplicated\nempty messages in your APIs. A typical example is to use i
t as the request\nor the response type of an API method. For instance:\n\n se
rvice Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty
);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.", | |
1030 "id": "GoogleProtobuf__Empty", | |
1031 "properties": {}, | |
1032 "type": "object" | |
1033 }, | |
1034 "GoogleCloudMlV1beta1__PredictionInput": { | 1141 "GoogleCloudMlV1beta1__PredictionInput": { |
1035 "description": "Represents input parameters for a prediction job.", | 1142 "description": "Represents input parameters for a prediction job.", |
1036 "id": "GoogleCloudMlV1beta1__PredictionInput", | 1143 "id": "GoogleCloudMlV1beta1__PredictionInput", |
1037 "properties": { | 1144 "properties": { |
1038 "modelName": { | 1145 "modelName": { |
1039 "description": "Use this field if you want to use the defaul
t version for the specified\nmodel. The string must use the following format:\n\
n`\"projects/<var>[YOUR_PROJECT]</var>/models/<var>[YOUR_MODEL]</var>\"`", | 1146 "description": "Use this field if you want to use the defaul
t version for the specified\nmodel. The string must use the following format:\n\
n`\"projects/<var>[YOUR_PROJECT]</var>/models/<var>[YOUR_MODEL]</var>\"`", |
1040 "type": "string" | 1147 "type": "string" |
1041 }, | 1148 }, |
1042 "outputPath": { | 1149 "outputPath": { |
1043 "description": "Required. The output Google Cloud Storage lo
cation.", | 1150 "description": "Required. The output Google Cloud Storage lo
cation.", |
1044 "type": "string" | 1151 "type": "string" |
1045 }, | 1152 }, |
1046 "inputPaths": { | 1153 "maxWorkerCount": { |
1047 "description": "Required. The Google Cloud Storage location
of the input data files.\nMay contain wildcards.", | 1154 "description": "Optional. The maximum number of workers to b
e used for parallel processing.\nDefaults to 10 if not specified.", |
1048 "items": { | 1155 "format": "int64", |
1049 "type": "string" | 1156 "type": "string" |
1050 }, | |
1051 "type": "array" | |
1052 }, | 1157 }, |
1053 "runtimeVersion": { | 1158 "uri": { |
1054 "description": "Optional. The Google Cloud ML runtime versio
n to use for this batch\nprediction. If not set, Google Cloud ML will choose a v
ersion.", | 1159 "description": "Use this field if you want to specify a GCS
path to the model to use.", |
1055 "type": "string" | 1160 "type": "string" |
1056 }, | 1161 }, |
1057 "dataFormat": { | 1162 "dataFormat": { |
1058 "description": "Required. The format of the input data files
.", | 1163 "description": "Required. The format of the input data files
.", |
1059 "enum": [ | 1164 "enum": [ |
1060 "DATA_FORMAT_UNSPECIFIED", | 1165 "DATA_FORMAT_UNSPECIFIED", |
1061 "TEXT", | 1166 "TEXT", |
1062 "TF_RECORD", | 1167 "TF_RECORD", |
1063 "TF_RECORD_GZIP" | 1168 "TF_RECORD_GZIP" |
1064 ], | 1169 ], |
1065 "enumDescriptions": [ | 1170 "enumDescriptions": [ |
1066 "Unspecified format.", | 1171 "Unspecified format.", |
1067 "The source file is a text file with instances separated
by the\nnew-line character.", | 1172 "The source file is a text file with instances separated
by the\nnew-line character.", |
1068 "The source file is a TFRecord file.", | 1173 "The source file is a TFRecord file.", |
1069 "The source file is a GZIP-compressed TFRecord file." | 1174 "The source file is a GZIP-compressed TFRecord file." |
1070 ], | 1175 ], |
1071 "type": "string" | 1176 "type": "string" |
1072 }, | 1177 }, |
1073 "maxWorkerCount": { | 1178 "runtimeVersion": { |
1074 "description": "Optional. The maximum number of workers to b
e used for parallel processing.\nDefaults to 10 if not specified.", | 1179 "description": "Optional. The Google Cloud ML runtime versio
n to use for this batch\nprediction. If not set, Google Cloud ML will pick the r
untime version used\nduring the CreateVersion request for this model version, or
choose the\nlatest stable version when model version information is not availab
le\nsuch as when the model is specified by uri.", |
1075 "format": "int64", | 1180 "type": "string" |
| 1181 }, |
| 1182 "inputPaths": { |
| 1183 "description": "Required. The Google Cloud Storage location
of the input data files.\nMay contain wildcards.", |
| 1184 "items": { |
| 1185 "type": "string" |
| 1186 }, |
| 1187 "type": "array" |
| 1188 }, |
| 1189 "region": { |
| 1190 "description": "Required. The Google Compute Engine region t
o run the prediction job in.", |
1076 "type": "string" | 1191 "type": "string" |
1077 }, | 1192 }, |
1078 "versionName": { | 1193 "versionName": { |
1079 "description": "Use this field if you want to specify a vers
ion of the model to use. The\nstring is formatted the same way as `model_version
`, with the addition\nof the version information:\n\n`\"projects/<var>[YOUR_PROJ
ECT]</var>/models/<var>YOUR_MODEL/versions/<var>[YOUR_VERSION]</var>\"`", | 1194 "description": "Use this field if you want to specify a vers
ion of the model to use. The\nstring is formatted the same way as `model_version
`, with the addition\nof the version information:\n\n`\"projects/<var>[YOUR_PROJ
ECT]</var>/models/<var>YOUR_MODEL/versions/<var>[YOUR_VERSION]</var>\"`", |
1080 "type": "string" | 1195 "type": "string" |
1081 }, | |
1082 "region": { | |
1083 "description": "Required. The Google Compute Engine region t
o run the prediction job in.", | |
1084 "type": "string" | |
1085 } | 1196 } |
1086 }, | 1197 }, |
1087 "type": "object" | 1198 "type": "object" |
1088 }, | 1199 }, |
1089 "GoogleCloudMlV1beta1__ListJobsResponse": { | 1200 "GoogleCloudMlV1beta1__ListJobsResponse": { |
1090 "description": "Response message for the ListJobs method.", | 1201 "description": "Response message for the ListJobs method.", |
1091 "id": "GoogleCloudMlV1beta1__ListJobsResponse", | 1202 "id": "GoogleCloudMlV1beta1__ListJobsResponse", |
1092 "properties": { | 1203 "properties": { |
1093 "nextPageToken": { | 1204 "nextPageToken": { |
1094 "description": "Optional. Pass this token as the `page_token
` field of the request for a\nsubsequent call.", | 1205 "description": "Optional. Pass this token as the `page_token
` field of the request for a\nsubsequent call.", |
1095 "type": "string" | 1206 "type": "string" |
1096 }, | 1207 }, |
1097 "jobs": { | 1208 "jobs": { |
1098 "description": "The list of jobs.", | 1209 "description": "The list of jobs.", |
1099 "items": { | 1210 "items": { |
1100 "$ref": "GoogleCloudMlV1beta1__Job" | 1211 "$ref": "GoogleCloudMlV1beta1__Job" |
1101 }, | 1212 }, |
1102 "type": "array" | 1213 "type": "array" |
1103 } | 1214 } |
1104 }, | 1215 }, |
1105 "type": "object" | 1216 "type": "object" |
1106 }, | 1217 }, |
1107 "GoogleCloudMlV1beta1__SetDefaultVersionRequest": { | |
1108 "description": "Request message for the SetDefaultVersion request.", | |
1109 "id": "GoogleCloudMlV1beta1__SetDefaultVersionRequest", | |
1110 "properties": {}, | |
1111 "type": "object" | |
1112 }, | |
1113 "GoogleCloudMlV1beta1__TrainingInput": { | |
1114 "description": "Represents input parameters for a training job.", | |
1115 "id": "GoogleCloudMlV1beta1__TrainingInput", | |
1116 "properties": { | |
1117 "args": { | |
1118 "description": "Optional. Command line arguments to pass to
the program.", | |
1119 "items": { | |
1120 "type": "string" | |
1121 }, | |
1122 "type": "array" | |
1123 }, | |
1124 "workerType": { | |
1125 "description": "Optional. Specifies the type of virtual mach
ine to use for your training\njob's worker nodes.\n\nThe supported values are th
e same as those described in the entry for\n`masterType`.\n\nThis value must be
present when `scaleTier` is set to `CUSTOM` and\n`workerCount` is greater than z
ero.", | |
1126 "type": "string" | |
1127 }, | |
1128 "workerCount": { | |
1129 "description": "Optional. The number of worker replicas to u
se for the training job. Each\nreplica in the cluster will be of the type specif
ied in `worker_type`.\n\nThis value can only be used when `scale_tier` is set to
`CUSTOM`. If you\nset this value, you must also set `worker_type`.", | |
1130 "format": "int64", | |
1131 "type": "string" | |
1132 }, | |
1133 "packageUris": { | |
1134 "description": "Required. The Google Cloud Storage location
of the packages with\nthe training program and any additional dependencies.", | |
1135 "items": { | |
1136 "type": "string" | |
1137 }, | |
1138 "type": "array" | |
1139 }, | |
1140 "runtimeVersion": { | |
1141 "description": "Optional. The Google Cloud ML runtime versio
n to use for training. If not\nset, Google Cloud ML will choose the latest stab
le version.", | |
1142 "type": "string" | |
1143 }, | |
1144 "hyperparameters": { | |
1145 "$ref": "GoogleCloudMlV1beta1__HyperparameterSpec", | |
1146 "description": "Optional. The set of Hyperparameters to tune
." | |
1147 }, | |
1148 "masterType": { | |
1149 "description": "Optional. Specifies the type of virtual mach
ine to use for your training\njob's master worker.\n\nThe following types are su
pported:\n\n<dl>\n <dt>standard</dt>\n <dd>\n A basic machine configuration s
uitable for training simple models with\n small to moderate datasets.\n </dd>\
n <dt>large_model</dt>\n <dd>\n A machine with a lot of memory, specially sui
ted for parameter servers\n when your model is large (having many hidden layers
or layers with very\n large numbers of nodes).\n </dd>\n <dt>complex_model_s
</dt>\n <dd>\n A machine suitable for the master and workers of the cluster wh
en your\n model requires more computation than the standard machine can handle\
n satisfactorily.\n </dd>\n <dt>complex_model_m</dt>\n <dd>\n A machine wit
h roughly twice the number of cores and roughly double the\n memory of <code su
ppresswarning=\"true\">complex_model_s</code>.\n </dd>\n <dt>complex_model_l</
dt>\n <dd>\n A machine with roughly twice the number of cores and roughly doub
le the\n memory of <code suppresswarning=\"true\">complex_model_m</code>.\n </
dd>\n</dl>\n\nYou must set this value when `scaleTier` is set to `CUSTOM`.", | |
1150 "type": "string" | |
1151 }, | |
1152 "parameterServerCount": { | |
1153 "description": "Optional. The number of parameter server rep
licas to use for the training\njob. Each replica in the cluster will be of the t
ype specified in\n`parameter_server_type`.\n\nThis value can only be used when `
scale_tier` is set to `CUSTOM`.If you\nset this value, you must also set `parame
ter_server_type`.", | |
1154 "format": "int64", | |
1155 "type": "string" | |
1156 }, | |
1157 "region": { | |
1158 "description": "Required. The Google Compute Engine region t
o run the training job in.", | |
1159 "type": "string" | |
1160 }, | |
1161 "parameterServerType": { | |
1162 "description": "Optional. Specifies the type of virtual mach
ine to use for your training\njob's parameter server.\n\nThe supported values ar
e the same as those described in the entry for\n`master_type`.\n\nThis value mus
t be present when `scaleTier` is set to `CUSTOM` and\n`parameter_server_count` i
s greater than zero.", | |
1163 "type": "string" | |
1164 }, | |
1165 "scaleTier": { | |
1166 "description": "Required. Specifies the machine types, the n
umber of replicas for workers\nand parameter servers.", | |
1167 "enum": [ | |
1168 "BASIC", | |
1169 "STANDARD_1", | |
1170 "PREMIUM_1", | |
1171 "CUSTOM" | |
1172 ], | |
1173 "enumDescriptions": [ | |
1174 "A single worker instance. This tier is suitable for lea
rning how to use\nCloud ML, and for experimenting with new models using small da
tasets.", | |
1175 "Many workers and a few parameter servers.", | |
1176 "A large number of workers with many parameter servers."
, | |
1177 "The CUSTOM tier is not a set tier, but rather enables y
ou to use your\nown cluster specification. When you use this tier, set values to
\nconfigure your processing cluster according to these guidelines:\n\n* You _m
ust_ set `TrainingInput.masterType` to specify the type\n of machine to use f
or your master node. This is the only required\n setting.\n\n* You _may_ se
t `TrainingInput.workerCount` to specify the number of\n workers to use. If y
ou specify one or more workers, you _must_ also\n set `TrainingInput.workerTy
pe` to specify the type of machine to use\n for your worker nodes.\n\n* You
_may_ set `TrainingInput.parameterServerCount` to specify the\n number of pa
rameter servers to use. If you specify one or more\n parameter servers, you _
must_ also set\n `TrainingInput.parameterServerType` to specify the type of m
achine to\n use for your parameter servers.\n\nNote that all of your workers
must use the same machine type, which can\nbe different from your parameter serv
er type and master type. Your\nparameter servers must likewise use the same mach
ine type, which can be\ndifferent from your worker type and master type." | |
1178 ], | |
1179 "type": "string" | |
1180 }, | |
1181 "pythonModule": { | |
1182 "description": "Required. The Python module name to run afte
r installing the packages.", | |
1183 "type": "string" | |
1184 } | |
1185 }, | |
1186 "type": "object" | |
1187 }, | |
1188 "GoogleCloudMlV1beta1__Version": { | 1218 "GoogleCloudMlV1beta1__Version": { |
1189 "description": "Represents a version of the model.\n\nEach version i
s a trained model deployed in the cloud, ready to handle\nprediction requests. A
model can have multiple versions. You can get\ninformation about all of the ver
sions of a given model by calling\n[projects.models.versions.list](/ml/reference
/rest/v1beta1/projects.models.versions/list).", | 1219 "description": "Represents a version of the model.\n\nEach version i
s a trained model deployed in the cloud, ready to handle\nprediction requests. A
model can have multiple versions. You can get\ninformation about all of the ver
sions of a given model by calling\n[projects.models.versions.list](/ml/reference
/rest/v1beta1/projects.models.versions/list).", |
1190 "id": "GoogleCloudMlV1beta1__Version", | 1220 "id": "GoogleCloudMlV1beta1__Version", |
1191 "properties": { | 1221 "properties": { |
1192 "description": { | 1222 "name": { |
1193 "description": "Optional. The description specified for the
version when it was created.", | 1223 "description": "Required.The name specified for the version
when it was created.\n\nThe version name must be unique within the model it is c
reated in.", |
1194 "type": "string" | |
1195 }, | |
1196 "runtimeVersion": { | |
1197 "description": "Optional. The Google Cloud ML runtime versio
n to use for this deployment.\nIf not set, Google Cloud ML will choose a version
.", | |
1198 "type": "string" | |
1199 }, | |
1200 "deploymentUri": { | |
1201 "description": "Required. The Google Cloud Storage location
of the trained model used to\ncreate the version. See the\n[overview of model de
ployment](/ml/docs/concepts/deployment-overview) for\nmore informaiton.\n\nWhen
passing Version to\n[projects.models.versions.create](/ml/reference/rest/v1beta1
/projects.models.versions/create)\nthe model service uses the specified location
as the source of the model.\nOnce deployed, the model version is hosted by the
prediction service, so\nthis location is useful only as a historical record.", | |
1202 "type": "string" | |
1203 }, | |
1204 "onlinePredictionLogging": { | |
1205 "description": "Optional. If true, enables StackDriver Loggi
ng for online prediction.\nDefault is false.", | |
1206 "type": "boolean" | |
1207 }, | |
1208 "createTime": { | |
1209 "description": "Output only. The time the version was create
d.", | |
1210 "format": "google-datetime", | |
1211 "type": "string" | 1224 "type": "string" |
1212 }, | 1225 }, |
1213 "lastUseTime": { | 1226 "lastUseTime": { |
1214 "description": "Output only. The time the version was last u
sed for prediction.", | 1227 "description": "Output only. The time the version was last u
sed for prediction.", |
1215 "format": "google-datetime", | 1228 "format": "google-datetime", |
1216 "type": "string" | 1229 "type": "string" |
1217 }, | 1230 }, |
1218 "name": { | 1231 "runtimeVersion": { |
1219 "description": "Required.The name specified for the version
when it was created.\n\nThe version name must be unique within the model it is c
reated in.", | 1232 "description": "Optional. The Google Cloud ML runtime versio
n to use for this deployment.\nIf not set, Google Cloud ML will choose a version
.", |
| 1233 "type": "string" |
| 1234 }, |
| 1235 "description": { |
| 1236 "description": "Optional. The description specified for the
version when it was created.", |
| 1237 "type": "string" |
| 1238 }, |
| 1239 "deploymentUri": { |
| 1240 "description": "Required. The Google Cloud Storage location
of the trained model used to\ncreate the version. See the\n[overview of model de
ployment](/ml/docs/concepts/deployment-overview) for\nmore informaiton.\n\nWhen
passing Version to\n[projects.models.versions.create](/ml/reference/rest/v1beta1
/projects.models.versions/create)\nthe model service uses the specified location
as the source of the model.\nOnce deployed, the model version is hosted by the
prediction service, so\nthis location is useful only as a historical record.", |
1220 "type": "string" | 1241 "type": "string" |
1221 }, | 1242 }, |
1222 "isDefault": { | 1243 "isDefault": { |
1223 "description": "Output only. If true, this version will be u
sed to handle prediction\nrequests that do not specify a version.\n\nYou can cha
nge the default version by calling\n[projects.methods.versions.setDefault](/ml/r
eference/rest/v1beta1/projects.models.versions/setDefault).", | 1244 "description": "Output only. If true, this version will be u
sed to handle prediction\nrequests that do not specify a version.\n\nYou can cha
nge the default version by calling\n[projects.methods.versions.setDefault](/ml/r
eference/rest/v1beta1/projects.models.versions/setDefault).", |
1224 "type": "boolean" | 1245 "type": "boolean" |
| 1246 }, |
| 1247 "createTime": { |
| 1248 "description": "Output only. The time the version was create
d.", |
| 1249 "format": "google-datetime", |
| 1250 "type": "string" |
1225 } | 1251 } |
1226 }, | 1252 }, |
1227 "type": "object" | 1253 "type": "object" |
1228 }, | 1254 }, |
1229 "GoogleCloudMlV1beta1__ListModelsResponse": { | 1255 "GoogleCloudMlV1beta1__ListVersionsResponse": { |
1230 "description": "Response message for the ListModels method.", | 1256 "description": "Response message for the ListVersions method.", |
1231 "id": "GoogleCloudMlV1beta1__ListModelsResponse", | 1257 "id": "GoogleCloudMlV1beta1__ListVersionsResponse", |
1232 "properties": { | 1258 "properties": { |
1233 "models": { | 1259 "versions": { |
1234 "description": "The list of models.", | 1260 "description": "The list of versions.", |
1235 "items": { | 1261 "items": { |
1236 "$ref": "GoogleCloudMlV1beta1__Model" | 1262 "$ref": "GoogleCloudMlV1beta1__Version" |
1237 }, | 1263 }, |
1238 "type": "array" | 1264 "type": "array" |
1239 }, | 1265 }, |
1240 "nextPageToken": { | 1266 "nextPageToken": { |
1241 "description": "Optional. Pass this token as the `page_token
` field of the request for a\nsubsequent call.", | 1267 "description": "Optional. Pass this token as the `page_token
` field of the request for a\nsubsequent call.", |
1242 "type": "string" | 1268 "type": "string" |
1243 } | 1269 } |
1244 }, | 1270 }, |
1245 "type": "object" | 1271 "type": "object" |
1246 }, | 1272 }, |
1247 "GoogleCloudMlV1beta1__OperationMetadata": { | 1273 "GoogleCloudMlV1beta1__CancelJobRequest": { |
1248 "description": "Represents the metadata of the long-running operatio
n.", | 1274 "description": "Request message for the CancelJob method.", |
1249 "id": "GoogleCloudMlV1beta1__OperationMetadata", | 1275 "id": "GoogleCloudMlV1beta1__CancelJobRequest", |
1250 "properties": { | 1276 "properties": {}, |
1251 "modelName": { | |
1252 "description": "Contains the name of the model associated wi
th the operation.", | |
1253 "type": "string" | |
1254 }, | |
1255 "isCancellationRequested": { | |
1256 "description": "Indicates whether a request to cancel this o
peration has been made.", | |
1257 "type": "boolean" | |
1258 }, | |
1259 "endTime": { | |
1260 "description": "The time operation processing completed.", | |
1261 "format": "google-datetime", | |
1262 "type": "string" | |
1263 }, | |
1264 "createTime": { | |
1265 "description": "The time the operation was submitted.", | |
1266 "format": "google-datetime", | |
1267 "type": "string" | |
1268 }, | |
1269 "startTime": { | |
1270 "description": "The time operation processing started.", | |
1271 "format": "google-datetime", | |
1272 "type": "string" | |
1273 }, | |
1274 "version": { | |
1275 "$ref": "GoogleCloudMlV1beta1__Version", | |
1276 "description": "Contains the version associated with the ope
ration." | |
1277 }, | |
1278 "operationType": { | |
1279 "description": "The operation type.", | |
1280 "enum": [ | |
1281 "OPERATION_TYPE_UNSPECIFIED", | |
1282 "CREATE_VERSION", | |
1283 "DELETE_VERSION", | |
1284 "DELETE_MODEL" | |
1285 ], | |
1286 "enumDescriptions": [ | |
1287 "Unspecified operation type.", | |
1288 "An operation to create a new version.", | |
1289 "An operation to delete an existing version.", | |
1290 "An operation to delete an existing model." | |
1291 ], | |
1292 "type": "string" | |
1293 } | |
1294 }, | |
1295 "type": "object" | |
1296 }, | |
1297 "GoogleCloudMlV1beta1__ParameterSpec": { | |
1298 "description": "Represents a single hyperparameter to optimize.", | |
1299 "id": "GoogleCloudMlV1beta1__ParameterSpec", | |
1300 "properties": { | |
1301 "parameterName": { | |
1302 "description": "Required. The parameter name must be unique
amongst all ParameterConfigs in\na HyperparameterSpec message. E.g., \"learning_
rate\".", | |
1303 "type": "string" | |
1304 }, | |
1305 "maxValue": { | |
1306 "description": "Required if typeis `DOUBLE` or `INTEGER`. Th
is field\nshould be unset if type is `CATEGORICAL`. This value should be integer
s if\ntype is `INTEGER`.", | |
1307 "format": "double", | |
1308 "type": "number" | |
1309 }, | |
1310 "categoricalValues": { | |
1311 "description": "Required if type is `CATEGORICAL`. The list
of possible categories.", | |
1312 "items": { | |
1313 "type": "string" | |
1314 }, | |
1315 "type": "array" | |
1316 }, | |
1317 "minValue": { | |
1318 "description": "Required if type is `DOUBLE` or `INTEGER`. T
his field\nshould be unset if type is `CATEGORICAL`. This value should be intege
rs if\ntype is INTEGER.", | |
1319 "format": "double", | |
1320 "type": "number" | |
1321 }, | |
1322 "scaleType": { | |
1323 "description": "Optional. How the parameter should be scaled
to the hypercube.\nLeave unset for categorical parameters.\nSome kind of scalin
g is strongly recommended for real or integral\nparameters (e.g., `UNIT_LINEAR_S
CALE`).", | |
1324 "enum": [ | |
1325 "NONE", | |
1326 "UNIT_LINEAR_SCALE", | |
1327 "UNIT_LOG_SCALE", | |
1328 "UNIT_REVERSE_LOG_SCALE" | |
1329 ], | |
1330 "enumDescriptions": [ | |
1331 "By default, no scaling is applied.", | |
1332 "Scales the feasible space to (0, 1) linearly.", | |
1333 "Scales the feasible space logarithmically to (0, 1). Th
e entire feasible\nspace must be strictly positive.", | |
1334 "Scales the feasible space \"reverse\" logarithmically t
o (0, 1). The result\nis that values close to the top of the feasible space are
spread out more\nthan points near the bottom. The entire feasible space must be
strictly\npositive." | |
1335 ], | |
1336 "type": "string" | |
1337 }, | |
1338 "discreteValues": { | |
1339 "description": "Required if type is `DISCRETE`.\nA list of f
easible points.\nThe list should be in strictly increasing order. For instance,
this\nparameter might have possible settings of 1.5, 2.5, and 4.0. This list\nsh
ould not contain more than 1,000 values.", | |
1340 "items": { | |
1341 "format": "double", | |
1342 "type": "number" | |
1343 }, | |
1344 "type": "array" | |
1345 }, | |
1346 "type": { | |
1347 "description": "Required. The type of the parameter.", | |
1348 "enum": [ | |
1349 "PARAMETER_TYPE_UNSPECIFIED", | |
1350 "DOUBLE", | |
1351 "INTEGER", | |
1352 "CATEGORICAL", | |
1353 "DISCRETE" | |
1354 ], | |
1355 "enumDescriptions": [ | |
1356 "You must specify a valid type. Using this unspecified t
ype will result in\nan error.", | |
1357 "Type for real-valued parameters.", | |
1358 "Type for integral parameters.", | |
1359 "The parameter is categorical, with a value chosen from
the categories\nfield.", | |
1360 "The parameter is real valued, with a fixed set of feasi
ble points. If\n`type==DISCRETE`, feasible_points must be provided, and\n{`min_v
alue`, `max_value`} will be ignored." | |
1361 ], | |
1362 "type": "string" | |
1363 } | |
1364 }, | |
1365 "type": "object" | 1277 "type": "object" |
1366 }, | 1278 }, |
1367 "GoogleCloudMlV1beta1__Model": { | 1279 "GoogleCloudMlV1beta1__Model": { |
1368 "description": "Represents a machine learning solution.\n\nA model c
an have multiple versions, each of which is a deployed, trained\nmodel ready to
receive prediction requests. The model itself is just a\ncontainer.", | 1280 "description": "Represents a machine learning solution.\n\nA model c
an have multiple versions, each of which is a deployed, trained\nmodel ready to
receive prediction requests. The model itself is just a\ncontainer.", |
1369 "id": "GoogleCloudMlV1beta1__Model", | 1281 "id": "GoogleCloudMlV1beta1__Model", |
1370 "properties": { | 1282 "properties": { |
| 1283 "regions": { |
| 1284 "description": "Optional. The list of regions where the mode
l is going to be deployed.\nCurrently only one region per model is supported.\nD
efaults to 'us-central1' if nothing is set.", |
| 1285 "items": { |
| 1286 "type": "string" |
| 1287 }, |
| 1288 "type": "array" |
| 1289 }, |
| 1290 "name": { |
| 1291 "description": "Required. The name specified for the model w
hen it was created.\n\nThe model name must be unique within the project it is cr
eated in.", |
| 1292 "type": "string" |
| 1293 }, |
1371 "description": { | 1294 "description": { |
1372 "description": "Optional. The description specified for the
model when it was created.", | 1295 "description": "Optional. The description specified for the
model when it was created.", |
1373 "type": "string" | 1296 "type": "string" |
1374 }, | 1297 }, |
1375 "regions": { | 1298 "onlinePredictionLogging": { |
1376 "description": "Optional. The list of regions where the mode
l is going to be deployed.\nCurrently only one region per model is supported.\nD
efaults to 'us-central1' if nothing is set.", | 1299 "description": "Optional. If true, enables StackDriver Loggi
ng for online prediction.\nDefault is false.", |
1377 "items": { | 1300 "type": "boolean" |
1378 "type": "string" | |
1379 }, | |
1380 "type": "array" | |
1381 }, | 1301 }, |
1382 "defaultVersion": { | 1302 "defaultVersion": { |
1383 "$ref": "GoogleCloudMlV1beta1__Version", | 1303 "$ref": "GoogleCloudMlV1beta1__Version", |
1384 "description": "Output only. The default version of the mode
l. This version will be used to\nhandle prediction requests that do not specify
a version.\n\nYou can change the default version by calling\n[projects.methods.v
ersions.setDefault](/ml/reference/rest/v1beta1/projects.models.versions/setDefau
lt)." | 1304 "description": "Output only. The default version of the mode
l. This version will be used to\nhandle prediction requests that do not specify
a version.\n\nYou can change the default version by calling\n[projects.methods.v
ersions.setDefault](/ml/reference/rest/v1beta1/projects.models.versions/setDefau
lt)." |
1385 }, | 1305 } |
1386 "name": { | 1306 }, |
1387 "description": "Required. The name specified for the model w
hen it was created.\n\nThe model name must be unique within the project it is cr
eated in.", | 1307 "type": "object" |
1388 "type": "string" | 1308 }, |
1389 } | 1309 "GoogleCloudMlV1beta1__Job": { |
1390 }, | 1310 "description": "Represents a training or prediction job.", |
| 1311 "id": "GoogleCloudMlV1beta1__Job", |
| 1312 "properties": { |
| 1313 "endTime": { |
| 1314 "description": "Output only. When the job processing was com
pleted.", |
| 1315 "format": "google-datetime", |
| 1316 "type": "string" |
| 1317 }, |
| 1318 "startTime": { |
| 1319 "description": "Output only. When the job processing was sta
rted.", |
| 1320 "format": "google-datetime", |
| 1321 "type": "string" |
| 1322 }, |
| 1323 "predictionOutput": { |
| 1324 "$ref": "GoogleCloudMlV1beta1__PredictionOutput", |
| 1325 "description": "The current prediction job result." |
| 1326 }, |
| 1327 "trainingOutput": { |
| 1328 "$ref": "GoogleCloudMlV1beta1__TrainingOutput", |
| 1329 "description": "The current training job result." |
| 1330 }, |
| 1331 "createTime": { |
| 1332 "description": "Output only. When the job was created.", |
| 1333 "format": "google-datetime", |
| 1334 "type": "string" |
| 1335 }, |
| 1336 "trainingInput": { |
| 1337 "$ref": "GoogleCloudMlV1beta1__TrainingInput", |
| 1338 "description": "Input parameters to create a training job." |
| 1339 }, |
| 1340 "state": { |
| 1341 "description": "Output only. The detailed state of a job.", |
| 1342 "enum": [ |
| 1343 "STATE_UNSPECIFIED", |
| 1344 "QUEUED", |
| 1345 "PREPARING", |
| 1346 "RUNNING", |
| 1347 "SUCCEEDED", |
| 1348 "FAILED", |
| 1349 "CANCELLING", |
| 1350 "CANCELLED" |
| 1351 ], |
| 1352 "enumDescriptions": [ |
| 1353 "The job state is unspecified.", |
| 1354 "The job has been just created and processing has not ye
t begun.", |
| 1355 "The service is preparing to run the job.", |
| 1356 "The job is in progress.", |
| 1357 "The job completed successfully.", |
| 1358 "The job failed.\n`error_message` should contain the det
ails of the failure.", |
| 1359 "The job is being cancelled.\n`error_message` should des
cribe the reason for the cancellation.", |
| 1360 "The job has been cancelled.\n`error_message` should des
cribe the reason for the cancellation." |
| 1361 ], |
| 1362 "type": "string" |
| 1363 }, |
| 1364 "predictionInput": { |
| 1365 "$ref": "GoogleCloudMlV1beta1__PredictionInput", |
| 1366 "description": "Input parameters to create a prediction job.
" |
| 1367 }, |
| 1368 "jobId": { |
| 1369 "description": "Required. The user-specified id of the job."
, |
| 1370 "type": "string" |
| 1371 }, |
| 1372 "errorMessage": { |
| 1373 "description": "Output only. The details of a failure or a c
ancellation.", |
| 1374 "type": "string" |
| 1375 } |
| 1376 }, |
| 1377 "type": "object" |
| 1378 }, |
| 1379 "GoogleLongrunning__ListOperationsResponse": { |
| 1380 "description": "The response message for Operations.ListOperations."
, |
| 1381 "id": "GoogleLongrunning__ListOperationsResponse", |
| 1382 "properties": { |
| 1383 "nextPageToken": { |
| 1384 "description": "The standard List next-page token.", |
| 1385 "type": "string" |
| 1386 }, |
| 1387 "operations": { |
| 1388 "description": "A list of operations that matches the specif
ied filter in the request.", |
| 1389 "items": { |
| 1390 "$ref": "GoogleLongrunning__Operation" |
| 1391 }, |
| 1392 "type": "array" |
| 1393 } |
| 1394 }, |
| 1395 "type": "object" |
| 1396 }, |
| 1397 "GoogleCloudMlV1beta1__TrainingInput": { |
| 1398 "description": "Represents input parameters for a training job.", |
| 1399 "id": "GoogleCloudMlV1beta1__TrainingInput", |
| 1400 "properties": { |
| 1401 "scaleTier": { |
| 1402 "description": "Required. Specifies the machine types, the n
umber of replicas for workers\nand parameter servers.", |
| 1403 "enum": [ |
| 1404 "BASIC", |
| 1405 "STANDARD_1", |
| 1406 "PREMIUM_1", |
| 1407 "BASIC_GPU", |
| 1408 "CUSTOM" |
| 1409 ], |
| 1410 "enumDescriptions": [ |
| 1411 "A single worker instance. This tier is suitable for lea
rning how to use\nCloud ML, and for experimenting with new models using small da
tasets.", |
| 1412 "Many workers and a few parameter servers.", |
| 1413 "A large number of workers with many parameter servers."
, |
| 1414 "A single worker instance with a GPU.", |
| 1415 "The CUSTOM tier is not a set tier, but rather enables y
ou to use your\nown cluster specification. When you use this tier, set values to
\nconfigure your processing cluster according to these guidelines:\n\n* You _m
ust_ set `TrainingInput.masterType` to specify the type\n of machine to use f
or your master node. This is the only required\n setting.\n\n* You _may_ se
t `TrainingInput.workerCount` to specify the number of\n workers to use. If y
ou specify one or more workers, you _must_ also\n set `TrainingInput.workerTy
pe` to specify the type of machine to use\n for your worker nodes.\n\n* You
_may_ set `TrainingInput.parameterServerCount` to specify the\n number of pa
rameter servers to use. If you specify one or more\n parameter servers, you _
must_ also set\n `TrainingInput.parameterServerType` to specify the type of m
achine to\n use for your parameter servers.\n\nNote that all of your workers
must use the same machine type, which can\nbe different from your parameter serv
er type and master type. Your\nparameter servers must likewise use the same mach
ine type, which can be\ndifferent from your worker type and master type." |
| 1416 ], |
| 1417 "type": "string" |
| 1418 }, |
| 1419 "jobDir": { |
| 1420 "description": "Optional. A GCS path in which to store train
ing outputs and other data\nneeded for training. This path will be passed to you
r TensorFlow program as\nthe 'job_dir' command-line arg. The benefit of specifyi
ng this field is that\nCloud ML will validate the path for use in training.", |
| 1421 "type": "string" |
| 1422 }, |
| 1423 "hyperparameters": { |
| 1424 "$ref": "GoogleCloudMlV1beta1__HyperparameterSpec", |
| 1425 "description": "Optional. The set of Hyperparameters to tune
." |
| 1426 }, |
| 1427 "parameterServerCount": { |
| 1428 "description": "Optional. The number of parameter server rep
licas to use for the training\njob. Each replica in the cluster will be of the t
ype specified in\n`parameter_server_type`.\n\nThis value can only be used when `
scale_tier` is set to `CUSTOM`.If you\nset this value, you must also set `parame
ter_server_type`.", |
| 1429 "format": "int64", |
| 1430 "type": "string" |
| 1431 }, |
| 1432 "packageUris": { |
| 1433 "description": "Required. The Google Cloud Storage location
of the packages with\nthe training program and any additional dependencies.", |
| 1434 "items": { |
| 1435 "type": "string" |
| 1436 }, |
| 1437 "type": "array" |
| 1438 }, |
| 1439 "workerCount": { |
| 1440 "description": "Optional. The number of worker replicas to u
se for the training job. Each\nreplica in the cluster will be of the type specif
ied in `worker_type`.\n\nThis value can only be used when `scale_tier` is set to
`CUSTOM`. If you\nset this value, you must also set `worker_type`.", |
| 1441 "format": "int64", |
| 1442 "type": "string" |
| 1443 }, |
| 1444 "masterType": { |
| 1445 "description": "Optional. Specifies the type of virtual mach
ine to use for your training\njob's master worker.\n\nThe following types are su
pported:\n\n<dl>\n <dt>standard</dt>\n <dd>\n A basic machine configuration s
uitable for training simple models with\n small to moderate datasets.\n </dd>\
n <dt>large_model</dt>\n <dd>\n A machine with a lot of memory, specially sui
ted for parameter servers\n when your model is large (having many hidden layers
or layers with very\n large numbers of nodes).\n </dd>\n <dt>complex_model_s
</dt>\n <dd>\n A machine suitable for the master and workers of the cluster wh
en your\n model requires more computation than the standard machine can handle\
n satisfactorily.\n </dd>\n <dt>complex_model_m</dt>\n <dd>\n A machine wit
h roughly twice the number of cores and roughly double the\n memory of <code su
ppresswarning=\"true\">complex_model_s</code>.\n </dd>\n <dt>complex_model_l</
dt>\n <dd>\n A machine with roughly twice the number of cores and roughly doub
le the\n memory of <code suppresswarning=\"true\">complex_model_m</code>.\n </
dd>\n</dl>\n\nYou must set this value when `scaleTier` is set to `CUSTOM`.", |
| 1446 "type": "string" |
| 1447 }, |
| 1448 "runtimeVersion": { |
| 1449 "description": "Optional. The Google Cloud ML runtime versio
n to use for training. If not\nset, Google Cloud ML will choose the latest stab
le version.", |
| 1450 "type": "string" |
| 1451 }, |
| 1452 "pythonModule": { |
| 1453 "description": "Required. The Python module name to run afte
r installing the packages.", |
| 1454 "type": "string" |
| 1455 }, |
| 1456 "workerType": { |
| 1457 "description": "Optional. Specifies the type of virtual mach
ine to use for your training\njob's worker nodes.\n\nThe supported values are th
e same as those described in the entry for\n`masterType`.\n\nThis value must be
present when `scaleTier` is set to `CUSTOM` and\n`workerCount` is greater than z
ero.", |
| 1458 "type": "string" |
| 1459 }, |
| 1460 "region": { |
| 1461 "description": "Required. The Google Compute Engine region t
o run the training job in.", |
| 1462 "type": "string" |
| 1463 }, |
| 1464 "args": { |
| 1465 "description": "Optional. Command line arguments to pass to
the program.", |
| 1466 "items": { |
| 1467 "type": "string" |
| 1468 }, |
| 1469 "type": "array" |
| 1470 }, |
| 1471 "parameterServerType": { |
| 1472 "description": "Optional. Specifies the type of virtual mach
ine to use for your training\njob's parameter server.\n\nThe supported values ar
e the same as those described in the entry for\n`master_type`.\n\nThis value mus
t be present when `scaleTier` is set to `CUSTOM` and\n`parameter_server_count` i
s greater than zero.", |
| 1473 "type": "string" |
| 1474 } |
| 1475 }, |
| 1476 "type": "object" |
| 1477 }, |
| 1478 "GoogleCloudMlV1beta1__GetConfigResponse": { |
| 1479 "description": "Returns service account information associated with
a project.", |
| 1480 "id": "GoogleCloudMlV1beta1__GetConfigResponse", |
| 1481 "properties": { |
| 1482 "serviceAccountProject": { |
| 1483 "description": "The project number for `service_account`.", |
| 1484 "format": "int64", |
| 1485 "type": "string" |
| 1486 }, |
| 1487 "serviceAccount": { |
| 1488 "description": "The service account Cloud ML uses to access
resources in the project.", |
| 1489 "type": "string" |
| 1490 } |
| 1491 }, |
1391 "type": "object" | 1492 "type": "object" |
1392 } | 1493 } |
1393 }, | 1494 }, |
1394 "servicePath": "", | 1495 "servicePath": "", |
1395 "title": "Google Cloud Machine Learning", | 1496 "title": "Google Cloud Machine Learning", |
1396 "version": "v1beta1" | 1497 "version": "v1beta1" |
1397 } | 1498 } |
OLD | NEW |