blob: 0432e8b0dce6db44ba99a8c28b5217f989bb35b9 [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
Dan O'Mearadd494642020-05-01 07:42:23 -070075<h1><a href="ml_v1.html">AI Platform Training & Prediction API</a> . <a href="ml_v1.projects.html">projects</a></h1>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040076<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="ml_v1.projects.jobs.html">jobs()</a></code>
79</p>
80<p class="firstline">Returns the jobs Resource.</p>
81
82<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070083 <code><a href="ml_v1.projects.locations.html">locations()</a></code>
84</p>
85<p class="firstline">Returns the locations Resource.</p>
86
87<p class="toc_element">
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040088 <code><a href="ml_v1.projects.models.html">models()</a></code>
89</p>
90<p class="firstline">Returns the models Resource.</p>
91
92<p class="toc_element">
93 <code><a href="ml_v1.projects.operations.html">operations()</a></code>
94</p>
95<p class="firstline">Returns the operations Resource.</p>
96
97<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070098 <code><a href="#close">close()</a></code></p>
99<p class="firstline">Close httplib2 connections.</p>
100<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700101 <code><a href="#explain">explain(name, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700102<p class="firstline">Performs explanation on the data in the request. {% dynamic include "/ai-platform/includes/___explain-request" %} </p>
Dan O'Mearadd494642020-05-01 07:42:23 -0700103<p class="toc_element">
Thomas Coffee2f245372017-03-27 10:39:26 -0700104 <code><a href="#getConfig">getConfig(name, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700105<p class="firstline">Get the service account information associated with your project. You need this information in order to grant the service account permissions for the Google Cloud Storage location where you put your model training code for training the model with Google Cloud Machine Learning.</p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400106<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700107 <code><a href="#predict">predict(name, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700108<p class="firstline">Performs online prediction on the data in the request. {% dynamic include "/ai-platform/includes/___predict-request" %} </p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400109<h3>Method Details</h3>
110<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700111 <code class="details" id="close">close()</code>
112 <pre>Close httplib2 connections.</pre>
113</div>
Bu Sun Kim65020912020-05-20 12:08:20 -0700114
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700115<div class="method">
116 <code class="details" id="explain">explain(name, body=None, x__xgafv=None)</code>
117 <pre>Performs explanation on the data in the request. {% dynamic include &quot;/ai-platform/includes/___explain-request&quot; %}
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400118
119Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700120 name: string, Required. The resource name of a model or a version. Authorization: requires the `predict` permission on the specified resource. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700121 body: object, The request body.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400122 The object takes the form of:
123
Dan O'Mearadd494642020-05-01 07:42:23 -0700124{ # Request for explanations to be issued against a trained model.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700125 &quot;httpBody&quot;: { # Message that represents an arbitrary HTTP body. It should only be used for payload formats that can&#x27;t be represented as JSON, such as raw binary or an HTML page. This message can be used both in streaming and non-streaming API methods in the request as well as the response. It can be used as a top-level request field, which is convenient if one wants to extract parameters from either the URL or HTTP template into the request fields and also want access to the raw HTTP body. Example: message GetResourceRequest { // A unique request id. string request_id = 1; // The raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; } service ResourceService { rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); } Example with streaming methods: service CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); } Use of this type only changes how the request and response bodies are handled, all other features will continue to work unchanged. # Required. The explanation request body.
126 &quot;data&quot;: &quot;A String&quot;, # The HTTP request/response body as raw binary.
127 &quot;extensions&quot;: [ # Application specific response metadata. Must be set in the first response for streaming APIs.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400128 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700129 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400130 },
131 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700132 &quot;contentType&quot;: &quot;A String&quot;, # The HTTP Content-Type header value specifying the content type of the body.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400133 },
134 }
135
136 x__xgafv: string, V1 error format.
137 Allowed values
138 1 - v1 error format
139 2 - v2 error format
140
141Returns:
142 An object of the form:
143
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700144 { # Message that represents an arbitrary HTTP body. It should only be used for payload formats that can&#x27;t be represented as JSON, such as raw binary or an HTML page. This message can be used both in streaming and non-streaming API methods in the request as well as the response. It can be used as a top-level request field, which is convenient if one wants to extract parameters from either the URL or HTTP template into the request fields and also want access to the raw HTTP body. Example: message GetResourceRequest { // A unique request id. string request_id = 1; // The raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; } service ResourceService { rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); } Example with streaming methods: service CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); } Use of this type only changes how the request and response bodies are handled, all other features will continue to work unchanged.
145 &quot;data&quot;: &quot;A String&quot;, # The HTTP request/response body as raw binary.
146 &quot;extensions&quot;: [ # Application specific response metadata. Must be set in the first response for streaming APIs.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400147 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700148 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400149 },
150 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700151 &quot;contentType&quot;: &quot;A String&quot;, # The HTTP Content-Type header value specifying the content type of the body.
Dan O'Mearadd494642020-05-01 07:42:23 -0700152 }</pre>
153</div>
154
155<div class="method">
156 <code class="details" id="getConfig">getConfig(name, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700157 <pre>Get the service account information associated with your project. You need this information in order to grant the service account permissions for the Google Cloud Storage location where you put your model training code for training the model with Google Cloud Machine Learning.
Dan O'Mearadd494642020-05-01 07:42:23 -0700158
159Args:
160 name: string, Required. The project name. (required)
161 x__xgafv: string, V1 error format.
162 Allowed values
163 1 - v1 error format
164 2 - v2 error format
165
166Returns:
167 An object of the form:
168
169 { # Returns service account information associated with a project.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700170 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account Cloud ML uses to access resources in the project.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700171 &quot;serviceAccountProject&quot;: &quot;A String&quot;, # The project number for `service_account`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700172 &quot;config&quot;: {
173 &quot;tpuServiceAccount&quot;: &quot;A String&quot;, # The service account Cloud ML uses to run on TPU node.
Dan O'Mearadd494642020-05-01 07:42:23 -0700174 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700175 }</pre>
176</div>
177
178<div class="method">
179 <code class="details" id="predict">predict(name, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700180 <pre>Performs online prediction on the data in the request. {% dynamic include &quot;/ai-platform/includes/___predict-request&quot; %}
Dan O'Mearadd494642020-05-01 07:42:23 -0700181
182Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700183 name: string, Required. The resource name of a model or a version. Authorization: requires the `predict` permission on the specified resource. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700184 body: object, The request body.
185 The object takes the form of:
186
187{ # Request for predictions to be issued against a trained model.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700188 &quot;httpBody&quot;: { # Message that represents an arbitrary HTTP body. It should only be used for payload formats that can&#x27;t be represented as JSON, such as raw binary or an HTML page. This message can be used both in streaming and non-streaming API methods in the request as well as the response. It can be used as a top-level request field, which is convenient if one wants to extract parameters from either the URL or HTTP template into the request fields and also want access to the raw HTTP body. Example: message GetResourceRequest { // A unique request id. string request_id = 1; // The raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; } service ResourceService { rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); } Example with streaming methods: service CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); } Use of this type only changes how the request and response bodies are handled, all other features will continue to work unchanged. # Required. The prediction request body. Refer to the [request body details section](#request-body-details) for more information on how to structure your request.
189 &quot;data&quot;: &quot;A String&quot;, # The HTTP request/response body as raw binary.
190 &quot;extensions&quot;: [ # Application specific response metadata. Must be set in the first response for streaming APIs.
Dan O'Mearadd494642020-05-01 07:42:23 -0700191 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700192 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700193 },
194 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700195 &quot;contentType&quot;: &quot;A String&quot;, # The HTTP Content-Type header value specifying the content type of the body.
Dan O'Mearadd494642020-05-01 07:42:23 -0700196 },
197 }
198
199 x__xgafv: string, V1 error format.
200 Allowed values
201 1 - v1 error format
202 2 - v2 error format
203
204Returns:
205 An object of the form:
206
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700207 { # Message that represents an arbitrary HTTP body. It should only be used for payload formats that can&#x27;t be represented as JSON, such as raw binary or an HTML page. This message can be used both in streaming and non-streaming API methods in the request as well as the response. It can be used as a top-level request field, which is convenient if one wants to extract parameters from either the URL or HTTP template into the request fields and also want access to the raw HTTP body. Example: message GetResourceRequest { // A unique request id. string request_id = 1; // The raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; } service ResourceService { rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); } Example with streaming methods: service CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); } Use of this type only changes how the request and response bodies are handled, all other features will continue to work unchanged.
208 &quot;data&quot;: &quot;A String&quot;, # The HTTP request/response body as raw binary.
209 &quot;extensions&quot;: [ # Application specific response metadata. Must be set in the first response for streaming APIs.
Dan O'Mearadd494642020-05-01 07:42:23 -0700210 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700211 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700212 },
213 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700214 &quot;contentType&quot;: &quot;A String&quot;, # The HTTP Content-Type header value specifying the content type of the body.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400215 }</pre>
216</div>
217
218</body></html>