blob: 1ddb8679af4440fbd941f0b48f3d1463c711b4c4 [file] [log] [blame]
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="ml_v1.html">Google Cloud Machine Learning Engine</a> . <a href="ml_v1.projects.html">projects</a> . <a href="ml_v1.projects.models.html">models</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="ml_v1.projects.models.versions.html">versions()</a></code>
79</p>
80<p class="firstline">Returns the versions Resource.</p>
81
82<p class="toc_element">
83 <code><a href="#create">create(parent=None, body, x__xgafv=None)</a></code></p>
84<p class="firstline">Creates a model which will later contain one or more versions.</p>
85<p class="toc_element">
86 <code><a href="#delete">delete(name=None, x__xgafv=None)</a></code></p>
87<p class="firstline">Deletes a model.</p>
88<p class="toc_element">
89 <code><a href="#get">get(name=None, x__xgafv=None)</a></code></p>
90<p class="firstline">Gets information about a model, including its name, the description (if</p>
91<p class="toc_element">
92 <code><a href="#list">list(parent=None, pageToken=None, x__xgafv=None, pageSize=None)</a></code></p>
93<p class="firstline">Lists the models in a project.</p>
94<p class="toc_element">
95 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
96<p class="firstline">Retrieves the next page of results.</p>
97<h3>Method Details</h3>
98<div class="method">
99 <code class="details" id="create">create(parent=None, body, x__xgafv=None)</code>
100 <pre>Creates a model which will later contain one or more versions.
101
102You must add at least one version before you can request predictions from
103the model. Add versions by calling
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700104[projects.models.versions.create](/ml-engine/reference/rest/v1/projects.models.versions/create).
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400105
106Args:
107 parent: string, Required. The project name.
108
109Authorization: requires `Editor` role on the specified project. (required)
110 body: object, The request body. (required)
111 The object takes the form of:
112
113{ # Represents a machine learning solution.
114 #
115 # A model can have multiple versions, each of which is a deployed, trained
116 # model ready to receive prediction requests. The model itself is just a
117 # container.
118 "regions": [ # Optional. The list of regions where the model is going to be deployed.
119 # Currently only one region per model is supported.
120 # Defaults to 'us-central1' if nothing is set.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700121 # Note:
122 # * No matter where a model is deployed, it can always be accessed by
123 # users from anywhere, both for online and batch prediction.
124 # * The region for a batch prediction job is set by the region field when
125 # submitting the batch prediction job and does not take its value from
126 # this field.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400127 "A String",
128 ],
129 "defaultVersion": { # Represents a version of the model. # Output only. The default version of the model. This version will be used to
130 # handle prediction requests that do not specify a version.
131 #
132 # You can change the default version by calling
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700133 # [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1/projects.models.versions/setDefault).
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400134 #
135 # Each version is a trained model deployed in the cloud, ready to handle
136 # prediction requests. A model can have multiple versions. You can get
137 # information about all of the versions of a given model by calling
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700138 # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.versions/list).
139 "name": "A String", # Required.The name specified for the version when it was created.
140 #
141 # The version name must be unique within the model it is created in.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400142 "runtimeVersion": "A String", # Optional. The Google Cloud ML runtime version to use for this deployment.
143 # If not set, Google Cloud ML will choose a version.
144 "manualScaling": { # Options for manually scaling a model. # Optional. Manually select the number of nodes to use for serving the
145 # model. If unset (i.e., by default), the number of nodes used to serve
146 # the model automatically scales with traffic. However, care should be
147 # taken to ramp up traffic according to the model's ability to scale. If
148 # your model needs to handle bursts of traffic beyond it's ability to
149 # scale, it is recommended you set this field appropriately.
150 "nodes": 42, # The number of nodes to allocate for this model. These nodes are always up,
151 # starting from the time the model is deployed, so the cost of operating
152 # this model will be proportional to nodes * number of hours since
153 # deployment.
154 },
155 "lastUseTime": "A String", # Output only. The time the version was last used for prediction.
156 "deploymentUri": "A String", # Required. The Google Cloud Storage location of the trained model used to
157 # create the version. See the
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700158 # [overview of model deployment](/ml-engine/docs/concepts/deployment-overview) for
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400159 # more informaiton.
160 #
161 # When passing Version to
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700162 # [projects.models.versions.create](/ml-engine/reference/rest/v1/projects.models.versions/create)
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400163 # the model service uses the specified location as the source of the model.
164 # Once deployed, the model version is hosted by the prediction service, so
165 # this location is useful only as a historical record.
166 "createTime": "A String", # Output only. The time the version was created.
167 "isDefault": True or False, # Output only. If true, this version will be used to handle prediction
168 # requests that do not specify a version.
169 #
170 # You can change the default version by calling
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700171 # [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1/projects.models.versions/setDefault).
172 "description": "A String", # Optional. The description specified for the version when it was created.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400173 },
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700174 "description": "A String", # Optional. The description specified for the model when it was created.
175 "onlinePredictionLogging": True or False, # Optional. If true, enables StackDriver Logging for online prediction.
176 # Default is false.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400177 "name": "A String", # Required. The name specified for the model when it was created.
178 #
179 # The model name must be unique within the project it is created in.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400180 }
181
182 x__xgafv: string, V1 error format.
183 Allowed values
184 1 - v1 error format
185 2 - v2 error format
186
187Returns:
188 An object of the form:
189
190 { # Represents a machine learning solution.
191 #
192 # A model can have multiple versions, each of which is a deployed, trained
193 # model ready to receive prediction requests. The model itself is just a
194 # container.
195 "regions": [ # Optional. The list of regions where the model is going to be deployed.
196 # Currently only one region per model is supported.
197 # Defaults to 'us-central1' if nothing is set.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700198 # Note:
199 # * No matter where a model is deployed, it can always be accessed by
200 # users from anywhere, both for online and batch prediction.
201 # * The region for a batch prediction job is set by the region field when
202 # submitting the batch prediction job and does not take its value from
203 # this field.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400204 "A String",
205 ],
206 "defaultVersion": { # Represents a version of the model. # Output only. The default version of the model. This version will be used to
207 # handle prediction requests that do not specify a version.
208 #
209 # You can change the default version by calling
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700210 # [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1/projects.models.versions/setDefault).
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400211 #
212 # Each version is a trained model deployed in the cloud, ready to handle
213 # prediction requests. A model can have multiple versions. You can get
214 # information about all of the versions of a given model by calling
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700215 # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.versions/list).
216 "name": "A String", # Required.The name specified for the version when it was created.
217 #
218 # The version name must be unique within the model it is created in.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400219 "runtimeVersion": "A String", # Optional. The Google Cloud ML runtime version to use for this deployment.
220 # If not set, Google Cloud ML will choose a version.
221 "manualScaling": { # Options for manually scaling a model. # Optional. Manually select the number of nodes to use for serving the
222 # model. If unset (i.e., by default), the number of nodes used to serve
223 # the model automatically scales with traffic. However, care should be
224 # taken to ramp up traffic according to the model's ability to scale. If
225 # your model needs to handle bursts of traffic beyond it's ability to
226 # scale, it is recommended you set this field appropriately.
227 "nodes": 42, # The number of nodes to allocate for this model. These nodes are always up,
228 # starting from the time the model is deployed, so the cost of operating
229 # this model will be proportional to nodes * number of hours since
230 # deployment.
231 },
232 "lastUseTime": "A String", # Output only. The time the version was last used for prediction.
233 "deploymentUri": "A String", # Required. The Google Cloud Storage location of the trained model used to
234 # create the version. See the
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700235 # [overview of model deployment](/ml-engine/docs/concepts/deployment-overview) for
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400236 # more informaiton.
237 #
238 # When passing Version to
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700239 # [projects.models.versions.create](/ml-engine/reference/rest/v1/projects.models.versions/create)
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400240 # the model service uses the specified location as the source of the model.
241 # Once deployed, the model version is hosted by the prediction service, so
242 # this location is useful only as a historical record.
243 "createTime": "A String", # Output only. The time the version was created.
244 "isDefault": True or False, # Output only. If true, this version will be used to handle prediction
245 # requests that do not specify a version.
246 #
247 # You can change the default version by calling
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700248 # [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1/projects.models.versions/setDefault).
249 "description": "A String", # Optional. The description specified for the version when it was created.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400250 },
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700251 "description": "A String", # Optional. The description specified for the model when it was created.
252 "onlinePredictionLogging": True or False, # Optional. If true, enables StackDriver Logging for online prediction.
253 # Default is false.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400254 "name": "A String", # Required. The name specified for the model when it was created.
255 #
256 # The model name must be unique within the project it is created in.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400257 }</pre>
258</div>
259
260<div class="method">
261 <code class="details" id="delete">delete(name=None, x__xgafv=None)</code>
262 <pre>Deletes a model.
263
264You can only delete a model if there are no versions in it. You can delete
265versions by calling
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700266[projects.models.versions.delete](/ml-engine/reference/rest/v1/projects.models.versions/delete).
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400267
268Args:
269 name: string, Required. The name of the model.
270
271Authorization: requires `Editor` role on the parent project. (required)
272 x__xgafv: string, V1 error format.
273 Allowed values
274 1 - v1 error format
275 2 - v2 error format
276
277Returns:
278 An object of the form:
279
280 { # This resource represents a long-running operation that is the result of a
281 # network API call.
282 "metadata": { # Service-specific metadata associated with the operation. It typically
283 # contains progress information and common metadata such as create time.
284 # Some services might not provide such metadata. Any method that returns a
285 # long-running operation should document the metadata type, if any.
286 "a_key": "", # Properties of the object. Contains field @type with type URL.
287 },
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700288 "done": True or False, # If the value is `false`, it means the operation is still in progress.
289 # If true, the operation is completed, and either `error` or `response` is
290 # available.
291 "response": { # The normal response of the operation in case of success. If the original
292 # method returns no data on success, such as `Delete`, the response is
293 # `google.protobuf.Empty`. If the original method is standard
294 # `Get`/`Create`/`Update`, the response should be the resource. For other
295 # methods, the response should have the type `XxxResponse`, where `Xxx`
296 # is the original method name. For example, if the original method name
297 # is `TakeSnapshot()`, the inferred response type is
298 # `TakeSnapshotResponse`.
299 "a_key": "", # Properties of the object. Contains field @type with type URL.
300 },
301 "name": "A String", # The server-assigned name, which is only unique within the same service that
302 # originally returns it. If you use the default HTTP mapping, the
303 # `name` should have the format of `operations/some/unique/name`.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400304 "error": { # The `Status` type defines a logical error model that is suitable for different # The error result of the operation in case of failure or cancellation.
305 # programming environments, including REST APIs and RPC APIs. It is used by
306 # [gRPC](https://github.com/grpc). The error model is designed to be:
307 #
308 # - Simple to use and understand for most users
309 # - Flexible enough to meet unexpected needs
310 #
311 # # Overview
312 #
313 # The `Status` message contains three pieces of data: error code, error message,
314 # and error details. The error code should be an enum value of
315 # google.rpc.Code, but it may accept additional error codes if needed. The
316 # error message should be a developer-facing English message that helps
317 # developers *understand* and *resolve* the error. If a localized user-facing
318 # error message is needed, put the localized message in the error details or
319 # localize it in the client. The optional error details may contain arbitrary
320 # information about the error. There is a predefined set of error detail types
321 # in the package `google.rpc` which can be used for common error conditions.
322 #
323 # # Language mapping
324 #
325 # The `Status` message is the logical representation of the error model, but it
326 # is not necessarily the actual wire format. When the `Status` message is
327 # exposed in different client libraries and different wire protocols, it can be
328 # mapped differently. For example, it will likely be mapped to some exceptions
329 # in Java, but more likely mapped to some error codes in C.
330 #
331 # # Other uses
332 #
333 # The error model and the `Status` message can be used in a variety of
334 # environments, either with or without APIs, to provide a
335 # consistent developer experience across different environments.
336 #
337 # Example uses of this error model include:
338 #
339 # - Partial errors. If a service needs to return partial errors to the client,
340 # it may embed the `Status` in the normal response to indicate the partial
341 # errors.
342 #
343 # - Workflow errors. A typical workflow has multiple steps. Each step may
344 # have a `Status` message for error reporting purpose.
345 #
346 # - Batch operations. If a client uses batch request and batch response, the
347 # `Status` message should be used directly inside batch response, one for
348 # each error sub-response.
349 #
350 # - Asynchronous operations. If an API call embeds asynchronous operation
351 # results in its response, the status of those operations should be
352 # represented directly using the `Status` message.
353 #
354 # - Logging. If some API errors are stored in logs, the message `Status` could
355 # be used directly after any stripping needed for security/privacy reasons.
356 "message": "A String", # A developer-facing error message, which should be in English. Any
357 # user-facing error message should be localized and sent in the
358 # google.rpc.Status.details field, or localized by the client.
359 "code": 42, # The status code, which should be an enum value of google.rpc.Code.
360 "details": [ # A list of messages that carry the error details. There will be a
361 # common set of message types for APIs to use.
362 {
363 "a_key": "", # Properties of the object. Contains field @type with type URL.
364 },
365 ],
366 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400367 }</pre>
368</div>
369
370<div class="method">
371 <code class="details" id="get">get(name=None, x__xgafv=None)</code>
372 <pre>Gets information about a model, including its name, the description (if
373set), and the default version (if at least one version of the model has
374been deployed).
375
376Args:
377 name: string, Required. The name of the model.
378
379Authorization: requires `Viewer` role on the parent project. (required)
380 x__xgafv: string, V1 error format.
381 Allowed values
382 1 - v1 error format
383 2 - v2 error format
384
385Returns:
386 An object of the form:
387
388 { # Represents a machine learning solution.
389 #
390 # A model can have multiple versions, each of which is a deployed, trained
391 # model ready to receive prediction requests. The model itself is just a
392 # container.
393 "regions": [ # Optional. The list of regions where the model is going to be deployed.
394 # Currently only one region per model is supported.
395 # Defaults to 'us-central1' if nothing is set.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700396 # Note:
397 # * No matter where a model is deployed, it can always be accessed by
398 # users from anywhere, both for online and batch prediction.
399 # * The region for a batch prediction job is set by the region field when
400 # submitting the batch prediction job and does not take its value from
401 # this field.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400402 "A String",
403 ],
404 "defaultVersion": { # Represents a version of the model. # Output only. The default version of the model. This version will be used to
405 # handle prediction requests that do not specify a version.
406 #
407 # You can change the default version by calling
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700408 # [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1/projects.models.versions/setDefault).
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400409 #
410 # Each version is a trained model deployed in the cloud, ready to handle
411 # prediction requests. A model can have multiple versions. You can get
412 # information about all of the versions of a given model by calling
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700413 # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.versions/list).
414 "name": "A String", # Required.The name specified for the version when it was created.
415 #
416 # The version name must be unique within the model it is created in.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400417 "runtimeVersion": "A String", # Optional. The Google Cloud ML runtime version to use for this deployment.
418 # If not set, Google Cloud ML will choose a version.
419 "manualScaling": { # Options for manually scaling a model. # Optional. Manually select the number of nodes to use for serving the
420 # model. If unset (i.e., by default), the number of nodes used to serve
421 # the model automatically scales with traffic. However, care should be
422 # taken to ramp up traffic according to the model's ability to scale. If
423 # your model needs to handle bursts of traffic beyond it's ability to
424 # scale, it is recommended you set this field appropriately.
425 "nodes": 42, # The number of nodes to allocate for this model. These nodes are always up,
426 # starting from the time the model is deployed, so the cost of operating
427 # this model will be proportional to nodes * number of hours since
428 # deployment.
429 },
430 "lastUseTime": "A String", # Output only. The time the version was last used for prediction.
431 "deploymentUri": "A String", # Required. The Google Cloud Storage location of the trained model used to
432 # create the version. See the
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700433 # [overview of model deployment](/ml-engine/docs/concepts/deployment-overview) for
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400434 # more informaiton.
435 #
436 # When passing Version to
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700437 # [projects.models.versions.create](/ml-engine/reference/rest/v1/projects.models.versions/create)
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400438 # the model service uses the specified location as the source of the model.
439 # Once deployed, the model version is hosted by the prediction service, so
440 # this location is useful only as a historical record.
441 "createTime": "A String", # Output only. The time the version was created.
442 "isDefault": True or False, # Output only. If true, this version will be used to handle prediction
443 # requests that do not specify a version.
444 #
445 # You can change the default version by calling
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700446 # [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1/projects.models.versions/setDefault).
447 "description": "A String", # Optional. The description specified for the version when it was created.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400448 },
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700449 "description": "A String", # Optional. The description specified for the model when it was created.
450 "onlinePredictionLogging": True or False, # Optional. If true, enables StackDriver Logging for online prediction.
451 # Default is false.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400452 "name": "A String", # Required. The name specified for the model when it was created.
453 #
454 # The model name must be unique within the project it is created in.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400455 }</pre>
456</div>
457
458<div class="method">
459 <code class="details" id="list">list(parent=None, pageToken=None, x__xgafv=None, pageSize=None)</code>
460 <pre>Lists the models in a project.
461
462Each project can contain multiple models, and each model can have multiple
463versions.
464
465Args:
466 parent: string, Required. The name of the project whose models are to be listed.
467
468Authorization: requires `Viewer` role on the specified project. (required)
469 pageToken: string, Optional. A page token to request the next page of results.
470
471You get the token from the `next_page_token` field of the response from
472the previous call.
473 x__xgafv: string, V1 error format.
474 Allowed values
475 1 - v1 error format
476 2 - v2 error format
477 pageSize: integer, Optional. The number of models to retrieve per "page" of results. If there
478are more remaining results than this number, the response message will
479contain a valid value in the `next_page_token` field.
480
481The default value is 20, and the maximum page size is 100.
482
483Returns:
484 An object of the form:
485
486 { # Response message for the ListModels method.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400487 "models": [ # The list of models.
488 { # Represents a machine learning solution.
489 #
490 # A model can have multiple versions, each of which is a deployed, trained
491 # model ready to receive prediction requests. The model itself is just a
492 # container.
493 "regions": [ # Optional. The list of regions where the model is going to be deployed.
494 # Currently only one region per model is supported.
495 # Defaults to 'us-central1' if nothing is set.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700496 # Note:
497 # * No matter where a model is deployed, it can always be accessed by
498 # users from anywhere, both for online and batch prediction.
499 # * The region for a batch prediction job is set by the region field when
500 # submitting the batch prediction job and does not take its value from
501 # this field.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400502 "A String",
503 ],
504 "defaultVersion": { # Represents a version of the model. # Output only. The default version of the model. This version will be used to
505 # handle prediction requests that do not specify a version.
506 #
507 # You can change the default version by calling
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700508 # [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1/projects.models.versions/setDefault).
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400509 #
510 # Each version is a trained model deployed in the cloud, ready to handle
511 # prediction requests. A model can have multiple versions. You can get
512 # information about all of the versions of a given model by calling
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700513 # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.versions/list).
514 "name": "A String", # Required.The name specified for the version when it was created.
515 #
516 # The version name must be unique within the model it is created in.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400517 "runtimeVersion": "A String", # Optional. The Google Cloud ML runtime version to use for this deployment.
518 # If not set, Google Cloud ML will choose a version.
519 "manualScaling": { # Options for manually scaling a model. # Optional. Manually select the number of nodes to use for serving the
520 # model. If unset (i.e., by default), the number of nodes used to serve
521 # the model automatically scales with traffic. However, care should be
522 # taken to ramp up traffic according to the model's ability to scale. If
523 # your model needs to handle bursts of traffic beyond it's ability to
524 # scale, it is recommended you set this field appropriately.
525 "nodes": 42, # The number of nodes to allocate for this model. These nodes are always up,
526 # starting from the time the model is deployed, so the cost of operating
527 # this model will be proportional to nodes * number of hours since
528 # deployment.
529 },
530 "lastUseTime": "A String", # Output only. The time the version was last used for prediction.
531 "deploymentUri": "A String", # Required. The Google Cloud Storage location of the trained model used to
532 # create the version. See the
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700533 # [overview of model deployment](/ml-engine/docs/concepts/deployment-overview) for
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400534 # more informaiton.
535 #
536 # When passing Version to
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700537 # [projects.models.versions.create](/ml-engine/reference/rest/v1/projects.models.versions/create)
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400538 # the model service uses the specified location as the source of the model.
539 # Once deployed, the model version is hosted by the prediction service, so
540 # this location is useful only as a historical record.
541 "createTime": "A String", # Output only. The time the version was created.
542 "isDefault": True or False, # Output only. If true, this version will be used to handle prediction
543 # requests that do not specify a version.
544 #
545 # You can change the default version by calling
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700546 # [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1/projects.models.versions/setDefault).
547 "description": "A String", # Optional. The description specified for the version when it was created.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400548 },
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700549 "description": "A String", # Optional. The description specified for the model when it was created.
550 "onlinePredictionLogging": True or False, # Optional. If true, enables StackDriver Logging for online prediction.
551 # Default is false.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400552 "name": "A String", # Required. The name specified for the model when it was created.
553 #
554 # The model name must be unique within the project it is created in.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400555 },
556 ],
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700557 "nextPageToken": "A String", # Optional. Pass this token as the `page_token` field of the request for a
558 # subsequent call.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400559 }</pre>
560</div>
561
562<div class="method">
563 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
564 <pre>Retrieves the next page of results.
565
566Args:
567 previous_request: The request for the previous page. (required)
568 previous_response: The response from the request for the previous page. (required)
569
570Returns:
571 A request object that you can call 'execute()' on to request the next
572 page. Returns None if there are no more items in the collection.
573 </pre>
574</div>
575
576</body></html>