Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Side by Side Diff: generated/googleapis/lib/ml/v1.dart

Issue 3006323002: Api-Roll 54: 2017-09-11 (Closed)
Patch Set: use 2.0.0-dev.infinity sdk constraint in pubspecs Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « generated/googleapis/lib/mirror/v1.dart ('k') | generated/googleapis/lib/monitoring/v3.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // This is a generated file (see the discoveryapis_generator project). 1 // This is a generated file (see the discoveryapis_generator project).
2 2
3 library googleapis.ml.v1; 3 library googleapis.ml.v1;
4 4
5 import 'dart:core' as core; 5 import 'dart:core' as core;
6 import 'dart:async' as async; 6 import 'dart:async' as async;
7 import 'dart:convert' as convert; 7 import 'dart:convert' as convert;
8 8
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
10 import 'package:http/http.dart' as http; 10 import 'package:http/http.dart' as http;
11 11
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart'
13 ApiRequestError, DetailedApiRequestError; 13 show ApiRequestError, DetailedApiRequestError;
14 14
15 const core.String USER_AGENT = 'dart-api-client ml/v1'; 15 const core.String USER_AGENT = 'dart-api-client ml/v1';
16 16
17 /** An API to enable creating and using machine learning models. */ 17 /// An API to enable creating and using machine learning models.
18 class MlApi { 18 class MlApi {
19 /** View and manage your data across Google Cloud Platform services */ 19 /// View and manage your data across Google Cloud Platform services
20 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf orm"; 20 static const CloudPlatformScope =
21 21 "https://www.googleapis.com/auth/cloud-platform";
22 22
23 final commons.ApiRequester _requester; 23 final commons.ApiRequester _requester;
24 24
25 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); 25 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester);
26 26
27 MlApi(http.Client client, {core.String rootUrl: "https://ml.googleapis.com/", core.String servicePath: ""}) : 27 MlApi(http.Client client,
28 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT); 28 {core.String rootUrl: "https://ml.googleapis.com/",
29 core.String servicePath: ""})
30 : _requester =
31 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
29 } 32 }
30 33
31
32 class ProjectsResourceApi { 34 class ProjectsResourceApi {
33 final commons.ApiRequester _requester; 35 final commons.ApiRequester _requester;
34 36
35 ProjectsJobsResourceApi get jobs => new ProjectsJobsResourceApi(_requester); 37 ProjectsJobsResourceApi get jobs => new ProjectsJobsResourceApi(_requester);
36 ProjectsModelsResourceApi get models => new ProjectsModelsResourceApi(_request er); 38 ProjectsModelsResourceApi get models =>
37 ProjectsOperationsResourceApi get operations => new ProjectsOperationsResource Api(_requester); 39 new ProjectsModelsResourceApi(_requester);
40 ProjectsOperationsResourceApi get operations =>
41 new ProjectsOperationsResourceApi(_requester);
38 42
39 ProjectsResourceApi(commons.ApiRequester client) : 43 ProjectsResourceApi(commons.ApiRequester client) : _requester = client;
40 _requester = client;
41 44
42 /** 45 /// Get the service account information associated with your project. You
43 * Get the service account information associated with your project. You need 46 /// need
44 * this information in order to grant the service account persmissions for 47 /// this information in order to grant the service account persmissions for
45 * the Google Cloud Storage location where you put your model training code 48 /// the Google Cloud Storage location where you put your model training code
46 * for training the model with Google Cloud Machine Learning. 49 /// for training the model with Google Cloud Machine Learning.
47 * 50 ///
48 * Request parameters: 51 /// Request parameters:
49 * 52 ///
50 * [name] - Required. The project name. 53 /// [name] - Required. The project name.
51 * Value must have pattern "^projects/[^/]+$". 54 /// Value must have pattern "^projects/[^/]+$".
52 * 55 ///
53 * Completes with a [GoogleCloudMlV1GetConfigResponse]. 56 /// Completes with a [GoogleCloudMlV1GetConfigResponse].
54 * 57 ///
55 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 58 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
56 * error. 59 /// an error.
57 * 60 ///
58 * If the used [http.Client] completes with an error when making a REST call, 61 /// If the used [http.Client] completes with an error when making a REST
59 * this method will complete with the same error. 62 /// call, this method will complete with the same error.
60 */
61 async.Future<GoogleCloudMlV1GetConfigResponse> getConfig(core.String name) { 63 async.Future<GoogleCloudMlV1GetConfigResponse> getConfig(core.String name) {
62 var _url = null; 64 var _url = null;
63 var _queryParams = new core.Map(); 65 var _queryParams = new core.Map();
64 var _uploadMedia = null; 66 var _uploadMedia = null;
65 var _uploadOptions = null; 67 var _uploadOptions = null;
66 var _downloadOptions = commons.DownloadOptions.Metadata; 68 var _downloadOptions = commons.DownloadOptions.Metadata;
67 var _body = null; 69 var _body = null;
68 70
69 if (name == null) { 71 if (name == null) {
70 throw new core.ArgumentError("Parameter name is required."); 72 throw new core.ArgumentError("Parameter name is required.");
71 } 73 }
72 74
73 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':getConfig' ; 75 _url =
76 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':getConfig';
74 77
75 var _response = _requester.request(_url, 78 var _response = _requester.request(_url, "GET",
76 "GET", 79 body: _body,
77 body: _body, 80 queryParams: _queryParams,
78 queryParams: _queryParams, 81 uploadOptions: _uploadOptions,
79 uploadOptions: _uploadOptions, 82 uploadMedia: _uploadMedia,
80 uploadMedia: _uploadMedia, 83 downloadOptions: _downloadOptions);
81 downloadOptions: _downloadOptions); 84 return _response
82 return _response.then((data) => new GoogleCloudMlV1GetConfigResponse.fromJso n(data)); 85 .then((data) => new GoogleCloudMlV1GetConfigResponse.fromJson(data));
83 } 86 }
84 87
85 /** 88 /// Performs prediction on the data in the request.
86 * Performs prediction on the data in the request. 89 ///
87 * 90 /// **** REMOVE FROM GENERATED DOCUMENTATION
88 * **** REMOVE FROM GENERATED DOCUMENTATION 91 ///
89 * 92 /// [request] - The metadata request object.
90 * [request] - The metadata request object. 93 ///
91 * 94 /// Request parameters:
92 * Request parameters: 95 ///
93 * 96 /// [name] - Required. The resource name of a model or a version.
94 * [name] - Required. The resource name of a model or a version. 97 ///
95 * 98 /// Authorization: requires the `predict` permission on the specified
96 * Authorization: requires the `predict` permission on the specified resource. 99 /// resource.
97 * Value must have pattern "^projects/.+$". 100 /// Value must have pattern "^projects/.+$".
98 * 101 ///
99 * Completes with a [GoogleApiHttpBody]. 102 /// Completes with a [GoogleApiHttpBody].
100 * 103 ///
101 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 104 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
102 * error. 105 /// an error.
103 * 106 ///
104 * If the used [http.Client] completes with an error when making a REST call, 107 /// If the used [http.Client] completes with an error when making a REST
105 * this method will complete with the same error. 108 /// call, this method will complete with the same error.
106 */ 109 async.Future<GoogleApiHttpBody> predict(
107 async.Future<GoogleApiHttpBody> predict(GoogleCloudMlV1PredictRequest request, core.String name) { 110 GoogleCloudMlV1PredictRequest request, core.String name) {
108 var _url = null; 111 var _url = null;
109 var _queryParams = new core.Map(); 112 var _queryParams = new core.Map();
110 var _uploadMedia = null; 113 var _uploadMedia = null;
111 var _uploadOptions = null; 114 var _uploadOptions = null;
112 var _downloadOptions = commons.DownloadOptions.Metadata; 115 var _downloadOptions = commons.DownloadOptions.Metadata;
113 var _body = null; 116 var _body = null;
114 117
115 if (request != null) { 118 if (request != null) {
116 _body = convert.JSON.encode((request).toJson()); 119 _body = convert.JSON.encode((request).toJson());
117 } 120 }
118 if (name == null) { 121 if (name == null) {
119 throw new core.ArgumentError("Parameter name is required."); 122 throw new core.ArgumentError("Parameter name is required.");
120 } 123 }
121 124
122 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':predict'; 125 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':predict';
123 126
124 var _response = _requester.request(_url, 127 var _response = _requester.request(_url, "POST",
125 "POST", 128 body: _body,
126 body: _body, 129 queryParams: _queryParams,
127 queryParams: _queryParams, 130 uploadOptions: _uploadOptions,
128 uploadOptions: _uploadOptions, 131 uploadMedia: _uploadMedia,
129 uploadMedia: _uploadMedia, 132 downloadOptions: _downloadOptions);
130 downloadOptions: _downloadOptions);
131 return _response.then((data) => new GoogleApiHttpBody.fromJson(data)); 133 return _response.then((data) => new GoogleApiHttpBody.fromJson(data));
132 } 134 }
133
134 } 135 }
135 136
136
137 class ProjectsJobsResourceApi { 137 class ProjectsJobsResourceApi {
138 final commons.ApiRequester _requester; 138 final commons.ApiRequester _requester;
139 139
140 ProjectsJobsResourceApi(commons.ApiRequester client) : 140 ProjectsJobsResourceApi(commons.ApiRequester client) : _requester = client;
141 _requester = client;
142 141
143 /** 142 /// Cancels a running job.
144 * Cancels a running job. 143 ///
145 * 144 /// [request] - The metadata request object.
146 * [request] - The metadata request object. 145 ///
147 * 146 /// Request parameters:
148 * Request parameters: 147 ///
149 * 148 /// [name] - Required. The name of the job to cancel.
150 * [name] - Required. The name of the job to cancel. 149 /// Value must have pattern "^projects/[^/]+/jobs/[^/]+$".
151 * Value must have pattern "^projects/[^/]+/jobs/[^/]+$". 150 ///
152 * 151 /// Completes with a [GoogleProtobufEmpty].
153 * Completes with a [GoogleProtobufEmpty]. 152 ///
154 * 153 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
155 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 154 /// an error.
156 * error. 155 ///
157 * 156 /// If the used [http.Client] completes with an error when making a REST
158 * If the used [http.Client] completes with an error when making a REST call, 157 /// call, this method will complete with the same error.
159 * this method will complete with the same error. 158 async.Future<GoogleProtobufEmpty> cancel(
160 */ 159 GoogleCloudMlV1CancelJobRequest request, core.String name) {
161 async.Future<GoogleProtobufEmpty> cancel(GoogleCloudMlV1CancelJobRequest reque st, core.String name) {
162 var _url = null; 160 var _url = null;
163 var _queryParams = new core.Map(); 161 var _queryParams = new core.Map();
164 var _uploadMedia = null; 162 var _uploadMedia = null;
165 var _uploadOptions = null; 163 var _uploadOptions = null;
166 var _downloadOptions = commons.DownloadOptions.Metadata; 164 var _downloadOptions = commons.DownloadOptions.Metadata;
167 var _body = null; 165 var _body = null;
168 166
169 if (request != null) { 167 if (request != null) {
170 _body = convert.JSON.encode((request).toJson()); 168 _body = convert.JSON.encode((request).toJson());
171 } 169 }
172 if (name == null) { 170 if (name == null) {
173 throw new core.ArgumentError("Parameter name is required."); 171 throw new core.ArgumentError("Parameter name is required.");
174 } 172 }
175 173
176 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':cancel'; 174 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':cancel';
177 175
178 var _response = _requester.request(_url, 176 var _response = _requester.request(_url, "POST",
179 "POST", 177 body: _body,
180 body: _body, 178 queryParams: _queryParams,
181 queryParams: _queryParams, 179 uploadOptions: _uploadOptions,
182 uploadOptions: _uploadOptions, 180 uploadMedia: _uploadMedia,
183 uploadMedia: _uploadMedia, 181 downloadOptions: _downloadOptions);
184 downloadOptions: _downloadOptions);
185 return _response.then((data) => new GoogleProtobufEmpty.fromJson(data)); 182 return _response.then((data) => new GoogleProtobufEmpty.fromJson(data));
186 } 183 }
187 184
188 /** 185 /// Creates a training or a batch prediction job.
189 * Creates a training or a batch prediction job. 186 ///
190 * 187 /// [request] - The metadata request object.
191 * [request] - The metadata request object. 188 ///
192 * 189 /// Request parameters:
193 * Request parameters: 190 ///
194 * 191 /// [parent] - Required. The project name.
195 * [parent] - Required. The project name. 192 /// Value must have pattern "^projects/[^/]+$".
196 * Value must have pattern "^projects/[^/]+$". 193 ///
197 * 194 /// Completes with a [GoogleCloudMlV1Job].
198 * Completes with a [GoogleCloudMlV1Job]. 195 ///
199 * 196 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
200 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 197 /// an error.
201 * error. 198 ///
202 * 199 /// If the used [http.Client] completes with an error when making a REST
203 * If the used [http.Client] completes with an error when making a REST call, 200 /// call, this method will complete with the same error.
204 * this method will complete with the same error. 201 async.Future<GoogleCloudMlV1Job> create(
205 */ 202 GoogleCloudMlV1Job request, core.String parent) {
206 async.Future<GoogleCloudMlV1Job> create(GoogleCloudMlV1Job request, core.Strin g parent) {
207 var _url = null; 203 var _url = null;
208 var _queryParams = new core.Map(); 204 var _queryParams = new core.Map();
209 var _uploadMedia = null; 205 var _uploadMedia = null;
210 var _uploadOptions = null; 206 var _uploadOptions = null;
211 var _downloadOptions = commons.DownloadOptions.Metadata; 207 var _downloadOptions = commons.DownloadOptions.Metadata;
212 var _body = null; 208 var _body = null;
213 209
214 if (request != null) { 210 if (request != null) {
215 _body = convert.JSON.encode((request).toJson()); 211 _body = convert.JSON.encode((request).toJson());
216 } 212 }
217 if (parent == null) { 213 if (parent == null) {
218 throw new core.ArgumentError("Parameter parent is required."); 214 throw new core.ArgumentError("Parameter parent is required.");
219 } 215 }
220 216
221 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/jobs'; 217 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/jobs';
222 218
223 var _response = _requester.request(_url, 219 var _response = _requester.request(_url, "POST",
224 "POST", 220 body: _body,
225 body: _body, 221 queryParams: _queryParams,
226 queryParams: _queryParams, 222 uploadOptions: _uploadOptions,
227 uploadOptions: _uploadOptions, 223 uploadMedia: _uploadMedia,
228 uploadMedia: _uploadMedia, 224 downloadOptions: _downloadOptions);
229 downloadOptions: _downloadOptions);
230 return _response.then((data) => new GoogleCloudMlV1Job.fromJson(data)); 225 return _response.then((data) => new GoogleCloudMlV1Job.fromJson(data));
231 } 226 }
232 227
233 /** 228 /// Describes a job.
234 * Describes a job. 229 ///
235 * 230 /// Request parameters:
236 * Request parameters: 231 ///
237 * 232 /// [name] - Required. The name of the job to get the description of.
238 * [name] - Required. The name of the job to get the description of. 233 /// Value must have pattern "^projects/[^/]+/jobs/[^/]+$".
239 * Value must have pattern "^projects/[^/]+/jobs/[^/]+$". 234 ///
240 * 235 /// Completes with a [GoogleCloudMlV1Job].
241 * Completes with a [GoogleCloudMlV1Job]. 236 ///
242 * 237 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
243 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 238 /// an error.
244 * error. 239 ///
245 * 240 /// If the used [http.Client] completes with an error when making a REST
246 * If the used [http.Client] completes with an error when making a REST call, 241 /// call, this method will complete with the same error.
247 * this method will complete with the same error.
248 */
249 async.Future<GoogleCloudMlV1Job> get(core.String name) { 242 async.Future<GoogleCloudMlV1Job> get(core.String name) {
250 var _url = null; 243 var _url = null;
251 var _queryParams = new core.Map(); 244 var _queryParams = new core.Map();
252 var _uploadMedia = null; 245 var _uploadMedia = null;
253 var _uploadOptions = null; 246 var _uploadOptions = null;
254 var _downloadOptions = commons.DownloadOptions.Metadata; 247 var _downloadOptions = commons.DownloadOptions.Metadata;
255 var _body = null; 248 var _body = null;
256 249
257 if (name == null) { 250 if (name == null) {
258 throw new core.ArgumentError("Parameter name is required."); 251 throw new core.ArgumentError("Parameter name is required.");
259 } 252 }
260 253
261 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); 254 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name');
262 255
263 var _response = _requester.request(_url, 256 var _response = _requester.request(_url, "GET",
264 "GET", 257 body: _body,
265 body: _body, 258 queryParams: _queryParams,
266 queryParams: _queryParams, 259 uploadOptions: _uploadOptions,
267 uploadOptions: _uploadOptions, 260 uploadMedia: _uploadMedia,
268 uploadMedia: _uploadMedia, 261 downloadOptions: _downloadOptions);
269 downloadOptions: _downloadOptions);
270 return _response.then((data) => new GoogleCloudMlV1Job.fromJson(data)); 262 return _response.then((data) => new GoogleCloudMlV1Job.fromJson(data));
271 } 263 }
272 264
273 /** 265 /// Gets the access control policy for a resource.
274 * Gets the access control policy for a resource. 266 /// Returns an empty policy if the resource exists and does not have a policy
275 * Returns an empty policy if the resource exists and does not have a policy 267 /// set.
276 * set. 268 ///
277 * 269 /// Request parameters:
278 * Request parameters: 270 ///
279 * 271 /// [resource] - REQUIRED: The resource for which the policy is being
280 * [resource] - REQUIRED: The resource for which the policy is being 272 /// requested.
281 * requested. 273 /// See the operation documentation for the appropriate value for this field.
282 * See the operation documentation for the appropriate value for this field. 274 /// Value must have pattern "^projects/[^/]+/jobs/[^/]+$".
283 * Value must have pattern "^projects/[^/]+/jobs/[^/]+$". 275 ///
284 * 276 /// Completes with a [GoogleIamV1Policy].
285 * Completes with a [GoogleIamV1Policy]. 277 ///
286 * 278 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
287 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 279 /// an error.
288 * error. 280 ///
289 * 281 /// If the used [http.Client] completes with an error when making a REST
290 * If the used [http.Client] completes with an error when making a REST call, 282 /// call, this method will complete with the same error.
291 * this method will complete with the same error.
292 */
293 async.Future<GoogleIamV1Policy> getIamPolicy(core.String resource) { 283 async.Future<GoogleIamV1Policy> getIamPolicy(core.String resource) {
294 var _url = null; 284 var _url = null;
295 var _queryParams = new core.Map(); 285 var _queryParams = new core.Map();
296 var _uploadMedia = null; 286 var _uploadMedia = null;
297 var _uploadOptions = null; 287 var _uploadOptions = null;
298 var _downloadOptions = commons.DownloadOptions.Metadata; 288 var _downloadOptions = commons.DownloadOptions.Metadata;
299 var _body = null; 289 var _body = null;
300 290
301 if (resource == null) { 291 if (resource == null) {
302 throw new core.ArgumentError("Parameter resource is required."); 292 throw new core.ArgumentError("Parameter resource is required.");
303 } 293 }
304 294
305 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':getIam Policy'; 295 _url = 'v1/' +
296 commons.Escaper.ecapeVariableReserved('$resource') +
297 ':getIamPolicy';
306 298
307 var _response = _requester.request(_url, 299 var _response = _requester.request(_url, "GET",
308 "GET", 300 body: _body,
309 body: _body, 301 queryParams: _queryParams,
310 queryParams: _queryParams, 302 uploadOptions: _uploadOptions,
311 uploadOptions: _uploadOptions, 303 uploadMedia: _uploadMedia,
312 uploadMedia: _uploadMedia, 304 downloadOptions: _downloadOptions);
313 downloadOptions: _downloadOptions);
314 return _response.then((data) => new GoogleIamV1Policy.fromJson(data)); 305 return _response.then((data) => new GoogleIamV1Policy.fromJson(data));
315 } 306 }
316 307
317 /** 308 /// Lists the jobs in the project.
318 * Lists the jobs in the project. 309 ///
319 * 310 /// Request parameters:
320 * Request parameters: 311 ///
321 * 312 /// [parent] - Required. The name of the project for which to list jobs.
322 * [parent] - Required. The name of the project for which to list jobs. 313 /// Value must have pattern "^projects/[^/]+$".
323 * Value must have pattern "^projects/[^/]+$". 314 ///
324 * 315 /// [filter] - Optional. Specifies the subset of jobs to retrieve.
325 * [pageToken] - Optional. A page token to request the next page of results. 316 ///
326 * 317 /// [pageToken] - Optional. A page token to request the next page of results.
327 * You get the token from the `next_page_token` field of the response from 318 ///
328 * the previous call. 319 /// You get the token from the `next_page_token` field of the response from
329 * 320 /// the previous call.
330 * [pageSize] - Optional. The number of jobs to retrieve per "page" of 321 ///
331 * results. If there 322 /// [pageSize] - Optional. The number of jobs to retrieve per "page" of
332 * are more remaining results than this number, the response message will 323 /// results. If there
333 * contain a valid value in the `next_page_token` field. 324 /// are more remaining results than this number, the response message will
334 * 325 /// contain a valid value in the `next_page_token` field.
335 * The default value is 20, and the maximum page size is 100. 326 ///
336 * 327 /// The default value is 20, and the maximum page size is 100.
337 * [filter] - Optional. Specifies the subset of jobs to retrieve. 328 ///
338 * 329 /// Completes with a [GoogleCloudMlV1ListJobsResponse].
339 * Completes with a [GoogleCloudMlV1ListJobsResponse]. 330 ///
340 * 331 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
341 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 332 /// an error.
342 * error. 333 ///
343 * 334 /// If the used [http.Client] completes with an error when making a REST
344 * If the used [http.Client] completes with an error when making a REST call, 335 /// call, this method will complete with the same error.
345 * this method will complete with the same error. 336 async.Future<GoogleCloudMlV1ListJobsResponse> list(core.String parent,
346 */ 337 {core.String filter, core.String pageToken, core.int pageSize}) {
347 async.Future<GoogleCloudMlV1ListJobsResponse> list(core.String parent, {core.S tring pageToken, core.int pageSize, core.String filter}) {
348 var _url = null; 338 var _url = null;
349 var _queryParams = new core.Map(); 339 var _queryParams = new core.Map();
350 var _uploadMedia = null; 340 var _uploadMedia = null;
351 var _uploadOptions = null; 341 var _uploadOptions = null;
352 var _downloadOptions = commons.DownloadOptions.Metadata; 342 var _downloadOptions = commons.DownloadOptions.Metadata;
353 var _body = null; 343 var _body = null;
354 344
355 if (parent == null) { 345 if (parent == null) {
356 throw new core.ArgumentError("Parameter parent is required."); 346 throw new core.ArgumentError("Parameter parent is required.");
357 } 347 }
348 if (filter != null) {
349 _queryParams["filter"] = [filter];
350 }
358 if (pageToken != null) { 351 if (pageToken != null) {
359 _queryParams["pageToken"] = [pageToken]; 352 _queryParams["pageToken"] = [pageToken];
360 } 353 }
361 if (pageSize != null) { 354 if (pageSize != null) {
362 _queryParams["pageSize"] = ["${pageSize}"]; 355 _queryParams["pageSize"] = ["${pageSize}"];
363 } 356 }
364 if (filter != null) {
365 _queryParams["filter"] = [filter];
366 }
367 357
368 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/jobs'; 358 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/jobs';
369 359
370 var _response = _requester.request(_url, 360 var _response = _requester.request(_url, "GET",
371 "GET", 361 body: _body,
372 body: _body, 362 queryParams: _queryParams,
373 queryParams: _queryParams, 363 uploadOptions: _uploadOptions,
374 uploadOptions: _uploadOptions, 364 uploadMedia: _uploadMedia,
375 uploadMedia: _uploadMedia, 365 downloadOptions: _downloadOptions);
376 downloadOptions: _downloadOptions); 366 return _response
377 return _response.then((data) => new GoogleCloudMlV1ListJobsResponse.fromJson (data)); 367 .then((data) => new GoogleCloudMlV1ListJobsResponse.fromJson(data));
378 } 368 }
379 369
380 /** 370 /// Sets the access control policy on the specified resource. Replaces any
381 * Sets the access control policy on the specified resource. Replaces any 371 /// existing policy.
382 * existing policy. 372 ///
383 * 373 /// [request] - The metadata request object.
384 * [request] - The metadata request object. 374 ///
385 * 375 /// Request parameters:
386 * Request parameters: 376 ///
387 * 377 /// [resource] - REQUIRED: The resource for which the policy is being
388 * [resource] - REQUIRED: The resource for which the policy is being 378 /// specified.
389 * specified. 379 /// See the operation documentation for the appropriate value for this field.
390 * See the operation documentation for the appropriate value for this field. 380 /// Value must have pattern "^projects/[^/]+/jobs/[^/]+$".
391 * Value must have pattern "^projects/[^/]+/jobs/[^/]+$". 381 ///
392 * 382 /// Completes with a [GoogleIamV1Policy].
393 * Completes with a [GoogleIamV1Policy]. 383 ///
394 * 384 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
395 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 385 /// an error.
396 * error. 386 ///
397 * 387 /// If the used [http.Client] completes with an error when making a REST
398 * If the used [http.Client] completes with an error when making a REST call, 388 /// call, this method will complete with the same error.
399 * this method will complete with the same error. 389 async.Future<GoogleIamV1Policy> setIamPolicy(
400 */ 390 GoogleIamV1SetIamPolicyRequest request, core.String resource) {
401 async.Future<GoogleIamV1Policy> setIamPolicy(GoogleIamV1SetIamPolicyRequest re quest, core.String resource) {
402 var _url = null; 391 var _url = null;
403 var _queryParams = new core.Map(); 392 var _queryParams = new core.Map();
404 var _uploadMedia = null; 393 var _uploadMedia = null;
405 var _uploadOptions = null; 394 var _uploadOptions = null;
406 var _downloadOptions = commons.DownloadOptions.Metadata; 395 var _downloadOptions = commons.DownloadOptions.Metadata;
407 var _body = null; 396 var _body = null;
408 397
409 if (request != null) { 398 if (request != null) {
410 _body = convert.JSON.encode((request).toJson()); 399 _body = convert.JSON.encode((request).toJson());
411 } 400 }
412 if (resource == null) { 401 if (resource == null) {
413 throw new core.ArgumentError("Parameter resource is required."); 402 throw new core.ArgumentError("Parameter resource is required.");
414 } 403 }
415 404
416 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':setIam Policy'; 405 _url = 'v1/' +
406 commons.Escaper.ecapeVariableReserved('$resource') +
407 ':setIamPolicy';
417 408
418 var _response = _requester.request(_url, 409 var _response = _requester.request(_url, "POST",
419 "POST", 410 body: _body,
420 body: _body, 411 queryParams: _queryParams,
421 queryParams: _queryParams, 412 uploadOptions: _uploadOptions,
422 uploadOptions: _uploadOptions, 413 uploadMedia: _uploadMedia,
423 uploadMedia: _uploadMedia, 414 downloadOptions: _downloadOptions);
424 downloadOptions: _downloadOptions);
425 return _response.then((data) => new GoogleIamV1Policy.fromJson(data)); 415 return _response.then((data) => new GoogleIamV1Policy.fromJson(data));
426 } 416 }
427 417
428 /** 418 /// Returns permissions that a caller has on the specified resource.
429 * Returns permissions that a caller has on the specified resource. 419 /// If the resource does not exist, this will return an empty set of
430 * If the resource does not exist, this will return an empty set of 420 /// permissions, not a NOT_FOUND error.
431 * permissions, not a NOT_FOUND error. 421 ///
432 * 422 /// Note: This operation is designed to be used for building permission-aware
433 * Note: This operation is designed to be used for building permission-aware 423 /// UIs and command-line tools, not for authorization checking. This
434 * UIs and command-line tools, not for authorization checking. This operation 424 /// operation
435 * may "fail open" without warning. 425 /// may "fail open" without warning.
436 * 426 ///
437 * [request] - The metadata request object. 427 /// [request] - The metadata request object.
438 * 428 ///
439 * Request parameters: 429 /// Request parameters:
440 * 430 ///
441 * [resource] - REQUIRED: The resource for which the policy detail is being 431 /// [resource] - REQUIRED: The resource for which the policy detail is being
442 * requested. 432 /// requested.
443 * See the operation documentation for the appropriate value for this field. 433 /// See the operation documentation for the appropriate value for this field.
444 * Value must have pattern "^projects/[^/]+/jobs/[^/]+$". 434 /// Value must have pattern "^projects/[^/]+/jobs/[^/]+$".
445 * 435 ///
446 * Completes with a [GoogleIamV1TestIamPermissionsResponse]. 436 /// Completes with a [GoogleIamV1TestIamPermissionsResponse].
447 * 437 ///
448 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 438 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
449 * error. 439 /// an error.
450 * 440 ///
451 * If the used [http.Client] completes with an error when making a REST call, 441 /// If the used [http.Client] completes with an error when making a REST
452 * this method will complete with the same error. 442 /// call, this method will complete with the same error.
453 */ 443 async.Future<GoogleIamV1TestIamPermissionsResponse> testIamPermissions(
454 async.Future<GoogleIamV1TestIamPermissionsResponse> testIamPermissions(GoogleI amV1TestIamPermissionsRequest request, core.String resource) { 444 GoogleIamV1TestIamPermissionsRequest request, core.String resource) {
455 var _url = null; 445 var _url = null;
456 var _queryParams = new core.Map(); 446 var _queryParams = new core.Map();
457 var _uploadMedia = null; 447 var _uploadMedia = null;
458 var _uploadOptions = null; 448 var _uploadOptions = null;
459 var _downloadOptions = commons.DownloadOptions.Metadata; 449 var _downloadOptions = commons.DownloadOptions.Metadata;
460 var _body = null; 450 var _body = null;
461 451
462 if (request != null) { 452 if (request != null) {
463 _body = convert.JSON.encode((request).toJson()); 453 _body = convert.JSON.encode((request).toJson());
464 } 454 }
465 if (resource == null) { 455 if (resource == null) {
466 throw new core.ArgumentError("Parameter resource is required."); 456 throw new core.ArgumentError("Parameter resource is required.");
467 } 457 }
468 458
469 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':testIa mPermissions'; 459 _url = 'v1/' +
460 commons.Escaper.ecapeVariableReserved('$resource') +
461 ':testIamPermissions';
470 462
471 var _response = _requester.request(_url, 463 var _response = _requester.request(_url, "POST",
472 "POST", 464 body: _body,
473 body: _body, 465 queryParams: _queryParams,
474 queryParams: _queryParams, 466 uploadOptions: _uploadOptions,
475 uploadOptions: _uploadOptions, 467 uploadMedia: _uploadMedia,
476 uploadMedia: _uploadMedia, 468 downloadOptions: _downloadOptions);
477 downloadOptions: _downloadOptions); 469 return _response.then(
478 return _response.then((data) => new GoogleIamV1TestIamPermissionsResponse.fr omJson(data)); 470 (data) => new GoogleIamV1TestIamPermissionsResponse.fromJson(data));
479 } 471 }
480
481 } 472 }
482 473
483
484 class ProjectsModelsResourceApi { 474 class ProjectsModelsResourceApi {
485 final commons.ApiRequester _requester; 475 final commons.ApiRequester _requester;
486 476
487 ProjectsModelsVersionsResourceApi get versions => new ProjectsModelsVersionsRe sourceApi(_requester); 477 ProjectsModelsVersionsResourceApi get versions =>
478 new ProjectsModelsVersionsResourceApi(_requester);
488 479
489 ProjectsModelsResourceApi(commons.ApiRequester client) : 480 ProjectsModelsResourceApi(commons.ApiRequester client) : _requester = client;
490 _requester = client;
491 481
492 /** 482 /// Creates a model which will later contain one or more versions.
493 * Creates a model which will later contain one or more versions. 483 ///
494 * 484 /// You must add at least one version before you can request predictions from
495 * You must add at least one version before you can request predictions from 485 /// the model. Add versions by calling
496 * the model. Add versions by calling 486 /// [projects.models.versions.create](/ml-engine/reference/rest/v1/projects.mo dels.versions/create).
497 * [projects.models.versions.create](/ml-engine/reference/rest/v1/projects.mod els.versions/create). 487 ///
498 * 488 /// [request] - The metadata request object.
499 * [request] - The metadata request object. 489 ///
500 * 490 /// Request parameters:
501 * Request parameters: 491 ///
502 * 492 /// [parent] - Required. The project name.
503 * [parent] - Required. The project name. 493 /// Value must have pattern "^projects/[^/]+$".
504 * Value must have pattern "^projects/[^/]+$". 494 ///
505 * 495 /// Completes with a [GoogleCloudMlV1Model].
506 * Completes with a [GoogleCloudMlV1Model]. 496 ///
507 * 497 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
508 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 498 /// an error.
509 * error. 499 ///
510 * 500 /// If the used [http.Client] completes with an error when making a REST
511 * If the used [http.Client] completes with an error when making a REST call, 501 /// call, this method will complete with the same error.
512 * this method will complete with the same error. 502 async.Future<GoogleCloudMlV1Model> create(
513 */ 503 GoogleCloudMlV1Model request, core.String parent) {
514 async.Future<GoogleCloudMlV1Model> create(GoogleCloudMlV1Model request, core.S tring parent) {
515 var _url = null; 504 var _url = null;
516 var _queryParams = new core.Map(); 505 var _queryParams = new core.Map();
517 var _uploadMedia = null; 506 var _uploadMedia = null;
518 var _uploadOptions = null; 507 var _uploadOptions = null;
519 var _downloadOptions = commons.DownloadOptions.Metadata; 508 var _downloadOptions = commons.DownloadOptions.Metadata;
520 var _body = null; 509 var _body = null;
521 510
522 if (request != null) { 511 if (request != null) {
523 _body = convert.JSON.encode((request).toJson()); 512 _body = convert.JSON.encode((request).toJson());
524 } 513 }
525 if (parent == null) { 514 if (parent == null) {
526 throw new core.ArgumentError("Parameter parent is required."); 515 throw new core.ArgumentError("Parameter parent is required.");
527 } 516 }
528 517
529 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/models'; 518 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/models';
530 519
531 var _response = _requester.request(_url, 520 var _response = _requester.request(_url, "POST",
532 "POST", 521 body: _body,
533 body: _body, 522 queryParams: _queryParams,
534 queryParams: _queryParams, 523 uploadOptions: _uploadOptions,
535 uploadOptions: _uploadOptions, 524 uploadMedia: _uploadMedia,
536 uploadMedia: _uploadMedia, 525 downloadOptions: _downloadOptions);
537 downloadOptions: _downloadOptions);
538 return _response.then((data) => new GoogleCloudMlV1Model.fromJson(data)); 526 return _response.then((data) => new GoogleCloudMlV1Model.fromJson(data));
539 } 527 }
540 528
541 /** 529 /// Deletes a model.
542 * Deletes a model. 530 ///
543 * 531 /// You can only delete a model if there are no versions in it. You can
544 * You can only delete a model if there are no versions in it. You can delete 532 /// delete
545 * versions by calling 533 /// versions by calling
546 * [projects.models.versions.delete](/ml-engine/reference/rest/v1/projects.mod els.versions/delete). 534 /// [projects.models.versions.delete](/ml-engine/reference/rest/v1/projects.mo dels.versions/delete).
547 * 535 ///
548 * Request parameters: 536 /// Request parameters:
549 * 537 ///
550 * [name] - Required. The name of the model. 538 /// [name] - Required. The name of the model.
551 * Value must have pattern "^projects/[^/]+/models/[^/]+$". 539 /// Value must have pattern "^projects/[^/]+/models/[^/]+$".
552 * 540 ///
553 * Completes with a [GoogleLongrunningOperation]. 541 /// Completes with a [GoogleLongrunningOperation].
554 * 542 ///
555 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 543 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
556 * error. 544 /// an error.
557 * 545 ///
558 * If the used [http.Client] completes with an error when making a REST call, 546 /// If the used [http.Client] completes with an error when making a REST
559 * this method will complete with the same error. 547 /// call, this method will complete with the same error.
560 */
561 async.Future<GoogleLongrunningOperation> delete(core.String name) { 548 async.Future<GoogleLongrunningOperation> delete(core.String name) {
562 var _url = null; 549 var _url = null;
563 var _queryParams = new core.Map(); 550 var _queryParams = new core.Map();
564 var _uploadMedia = null; 551 var _uploadMedia = null;
565 var _uploadOptions = null; 552 var _uploadOptions = null;
566 var _downloadOptions = commons.DownloadOptions.Metadata; 553 var _downloadOptions = commons.DownloadOptions.Metadata;
567 var _body = null; 554 var _body = null;
568 555
569 if (name == null) { 556 if (name == null) {
570 throw new core.ArgumentError("Parameter name is required."); 557 throw new core.ArgumentError("Parameter name is required.");
571 } 558 }
572 559
573 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); 560 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name');
574 561
575 var _response = _requester.request(_url, 562 var _response = _requester.request(_url, "DELETE",
576 "DELETE", 563 body: _body,
577 body: _body, 564 queryParams: _queryParams,
578 queryParams: _queryParams, 565 uploadOptions: _uploadOptions,
579 uploadOptions: _uploadOptions, 566 uploadMedia: _uploadMedia,
580 uploadMedia: _uploadMedia, 567 downloadOptions: _downloadOptions);
581 downloadOptions: _downloadOptions); 568 return _response
582 return _response.then((data) => new GoogleLongrunningOperation.fromJson(data )); 569 .then((data) => new GoogleLongrunningOperation.fromJson(data));
583 } 570 }
584 571
585 /** 572 /// Gets information about a model, including its name, the description (if
586 * Gets information about a model, including its name, the description (if 573 /// set), and the default version (if at least one version of the model has
587 * set), and the default version (if at least one version of the model has 574 /// been deployed).
588 * been deployed). 575 ///
589 * 576 /// Request parameters:
590 * Request parameters: 577 ///
591 * 578 /// [name] - Required. The name of the model.
592 * [name] - Required. The name of the model. 579 /// Value must have pattern "^projects/[^/]+/models/[^/]+$".
593 * Value must have pattern "^projects/[^/]+/models/[^/]+$". 580 ///
594 * 581 /// Completes with a [GoogleCloudMlV1Model].
595 * Completes with a [GoogleCloudMlV1Model]. 582 ///
596 * 583 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
597 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 584 /// an error.
598 * error. 585 ///
599 * 586 /// If the used [http.Client] completes with an error when making a REST
600 * If the used [http.Client] completes with an error when making a REST call, 587 /// call, this method will complete with the same error.
601 * this method will complete with the same error.
602 */
603 async.Future<GoogleCloudMlV1Model> get(core.String name) { 588 async.Future<GoogleCloudMlV1Model> get(core.String name) {
604 var _url = null; 589 var _url = null;
605 var _queryParams = new core.Map(); 590 var _queryParams = new core.Map();
606 var _uploadMedia = null; 591 var _uploadMedia = null;
607 var _uploadOptions = null; 592 var _uploadOptions = null;
608 var _downloadOptions = commons.DownloadOptions.Metadata; 593 var _downloadOptions = commons.DownloadOptions.Metadata;
609 var _body = null; 594 var _body = null;
610 595
611 if (name == null) { 596 if (name == null) {
612 throw new core.ArgumentError("Parameter name is required."); 597 throw new core.ArgumentError("Parameter name is required.");
613 } 598 }
614 599
615 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); 600 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name');
616 601
617 var _response = _requester.request(_url, 602 var _response = _requester.request(_url, "GET",
618 "GET", 603 body: _body,
619 body: _body, 604 queryParams: _queryParams,
620 queryParams: _queryParams, 605 uploadOptions: _uploadOptions,
621 uploadOptions: _uploadOptions, 606 uploadMedia: _uploadMedia,
622 uploadMedia: _uploadMedia, 607 downloadOptions: _downloadOptions);
623 downloadOptions: _downloadOptions);
624 return _response.then((data) => new GoogleCloudMlV1Model.fromJson(data)); 608 return _response.then((data) => new GoogleCloudMlV1Model.fromJson(data));
625 } 609 }
626 610
627 /** 611 /// Gets the access control policy for a resource.
628 * Gets the access control policy for a resource. 612 /// Returns an empty policy if the resource exists and does not have a policy
629 * Returns an empty policy if the resource exists and does not have a policy 613 /// set.
630 * set. 614 ///
631 * 615 /// Request parameters:
632 * Request parameters: 616 ///
633 * 617 /// [resource] - REQUIRED: The resource for which the policy is being
634 * [resource] - REQUIRED: The resource for which the policy is being 618 /// requested.
635 * requested. 619 /// See the operation documentation for the appropriate value for this field.
636 * See the operation documentation for the appropriate value for this field. 620 /// Value must have pattern "^projects/[^/]+/models/[^/]+$".
637 * Value must have pattern "^projects/[^/]+/models/[^/]+$". 621 ///
638 * 622 /// Completes with a [GoogleIamV1Policy].
639 * Completes with a [GoogleIamV1Policy]. 623 ///
640 * 624 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
641 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 625 /// an error.
642 * error. 626 ///
643 * 627 /// If the used [http.Client] completes with an error when making a REST
644 * If the used [http.Client] completes with an error when making a REST call, 628 /// call, this method will complete with the same error.
645 * this method will complete with the same error.
646 */
647 async.Future<GoogleIamV1Policy> getIamPolicy(core.String resource) { 629 async.Future<GoogleIamV1Policy> getIamPolicy(core.String resource) {
648 var _url = null; 630 var _url = null;
649 var _queryParams = new core.Map(); 631 var _queryParams = new core.Map();
650 var _uploadMedia = null; 632 var _uploadMedia = null;
651 var _uploadOptions = null; 633 var _uploadOptions = null;
652 var _downloadOptions = commons.DownloadOptions.Metadata; 634 var _downloadOptions = commons.DownloadOptions.Metadata;
653 var _body = null; 635 var _body = null;
654 636
655 if (resource == null) { 637 if (resource == null) {
656 throw new core.ArgumentError("Parameter resource is required."); 638 throw new core.ArgumentError("Parameter resource is required.");
657 } 639 }
658 640
659 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':getIam Policy'; 641 _url = 'v1/' +
642 commons.Escaper.ecapeVariableReserved('$resource') +
643 ':getIamPolicy';
660 644
661 var _response = _requester.request(_url, 645 var _response = _requester.request(_url, "GET",
662 "GET", 646 body: _body,
663 body: _body, 647 queryParams: _queryParams,
664 queryParams: _queryParams, 648 uploadOptions: _uploadOptions,
665 uploadOptions: _uploadOptions, 649 uploadMedia: _uploadMedia,
666 uploadMedia: _uploadMedia, 650 downloadOptions: _downloadOptions);
667 downloadOptions: _downloadOptions);
668 return _response.then((data) => new GoogleIamV1Policy.fromJson(data)); 651 return _response.then((data) => new GoogleIamV1Policy.fromJson(data));
669 } 652 }
670 653
671 /** 654 /// Lists the models in a project.
672 * Lists the models in a project. 655 ///
673 * 656 /// Each project can contain multiple models, and each model can have
674 * Each project can contain multiple models, and each model can have multiple 657 /// multiple
675 * versions. 658 /// versions.
676 * 659 ///
677 * Request parameters: 660 /// Request parameters:
678 * 661 ///
679 * [parent] - Required. The name of the project whose models are to be listed. 662 /// [parent] - Required. The name of the project whose models are to be
680 * Value must have pattern "^projects/[^/]+$". 663 /// listed.
681 * 664 /// Value must have pattern "^projects/[^/]+$".
682 * [pageToken] - Optional. A page token to request the next page of results. 665 ///
683 * 666 /// [pageToken] - Optional. A page token to request the next page of results.
684 * You get the token from the `next_page_token` field of the response from 667 ///
685 * the previous call. 668 /// You get the token from the `next_page_token` field of the response from
686 * 669 /// the previous call.
687 * [pageSize] - Optional. The number of models to retrieve per "page" of 670 ///
688 * results. If there 671 /// [pageSize] - Optional. The number of models to retrieve per "page" of
689 * are more remaining results than this number, the response message will 672 /// results. If there
690 * contain a valid value in the `next_page_token` field. 673 /// are more remaining results than this number, the response message will
691 * 674 /// contain a valid value in the `next_page_token` field.
692 * The default value is 20, and the maximum page size is 100. 675 ///
693 * 676 /// The default value is 20, and the maximum page size is 100.
694 * Completes with a [GoogleCloudMlV1ListModelsResponse]. 677 ///
695 * 678 /// Completes with a [GoogleCloudMlV1ListModelsResponse].
696 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 679 ///
697 * error. 680 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
698 * 681 /// an error.
699 * If the used [http.Client] completes with an error when making a REST call, 682 ///
700 * this method will complete with the same error. 683 /// If the used [http.Client] completes with an error when making a REST
701 */ 684 /// call, this method will complete with the same error.
702 async.Future<GoogleCloudMlV1ListModelsResponse> list(core.String parent, {core .String pageToken, core.int pageSize}) { 685 async.Future<GoogleCloudMlV1ListModelsResponse> list(core.String parent,
686 {core.String pageToken, core.int pageSize}) {
703 var _url = null; 687 var _url = null;
704 var _queryParams = new core.Map(); 688 var _queryParams = new core.Map();
705 var _uploadMedia = null; 689 var _uploadMedia = null;
706 var _uploadOptions = null; 690 var _uploadOptions = null;
707 var _downloadOptions = commons.DownloadOptions.Metadata; 691 var _downloadOptions = commons.DownloadOptions.Metadata;
708 var _body = null; 692 var _body = null;
709 693
710 if (parent == null) { 694 if (parent == null) {
711 throw new core.ArgumentError("Parameter parent is required."); 695 throw new core.ArgumentError("Parameter parent is required.");
712 } 696 }
713 if (pageToken != null) { 697 if (pageToken != null) {
714 _queryParams["pageToken"] = [pageToken]; 698 _queryParams["pageToken"] = [pageToken];
715 } 699 }
716 if (pageSize != null) { 700 if (pageSize != null) {
717 _queryParams["pageSize"] = ["${pageSize}"]; 701 _queryParams["pageSize"] = ["${pageSize}"];
718 } 702 }
719 703
720 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/models'; 704 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/models';
721 705
722 var _response = _requester.request(_url, 706 var _response = _requester.request(_url, "GET",
723 "GET", 707 body: _body,
724 body: _body, 708 queryParams: _queryParams,
725 queryParams: _queryParams, 709 uploadOptions: _uploadOptions,
726 uploadOptions: _uploadOptions, 710 uploadMedia: _uploadMedia,
727 uploadMedia: _uploadMedia, 711 downloadOptions: _downloadOptions);
728 downloadOptions: _downloadOptions); 712 return _response
729 return _response.then((data) => new GoogleCloudMlV1ListModelsResponse.fromJs on(data)); 713 .then((data) => new GoogleCloudMlV1ListModelsResponse.fromJson(data));
730 } 714 }
731 715
732 /** 716 /// Sets the access control policy on the specified resource. Replaces any
733 * Sets the access control policy on the specified resource. Replaces any 717 /// existing policy.
734 * existing policy. 718 ///
735 * 719 /// [request] - The metadata request object.
736 * [request] - The metadata request object. 720 ///
737 * 721 /// Request parameters:
738 * Request parameters: 722 ///
739 * 723 /// [resource] - REQUIRED: The resource for which the policy is being
740 * [resource] - REQUIRED: The resource for which the policy is being 724 /// specified.
741 * specified. 725 /// See the operation documentation for the appropriate value for this field.
742 * See the operation documentation for the appropriate value for this field. 726 /// Value must have pattern "^projects/[^/]+/models/[^/]+$".
743 * Value must have pattern "^projects/[^/]+/models/[^/]+$". 727 ///
744 * 728 /// Completes with a [GoogleIamV1Policy].
745 * Completes with a [GoogleIamV1Policy]. 729 ///
746 * 730 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
747 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 731 /// an error.
748 * error. 732 ///
749 * 733 /// If the used [http.Client] completes with an error when making a REST
750 * If the used [http.Client] completes with an error when making a REST call, 734 /// call, this method will complete with the same error.
751 * this method will complete with the same error. 735 async.Future<GoogleIamV1Policy> setIamPolicy(
752 */ 736 GoogleIamV1SetIamPolicyRequest request, core.String resource) {
753 async.Future<GoogleIamV1Policy> setIamPolicy(GoogleIamV1SetIamPolicyRequest re quest, core.String resource) {
754 var _url = null; 737 var _url = null;
755 var _queryParams = new core.Map(); 738 var _queryParams = new core.Map();
756 var _uploadMedia = null; 739 var _uploadMedia = null;
757 var _uploadOptions = null; 740 var _uploadOptions = null;
758 var _downloadOptions = commons.DownloadOptions.Metadata; 741 var _downloadOptions = commons.DownloadOptions.Metadata;
759 var _body = null; 742 var _body = null;
760 743
761 if (request != null) { 744 if (request != null) {
762 _body = convert.JSON.encode((request).toJson()); 745 _body = convert.JSON.encode((request).toJson());
763 } 746 }
764 if (resource == null) { 747 if (resource == null) {
765 throw new core.ArgumentError("Parameter resource is required."); 748 throw new core.ArgumentError("Parameter resource is required.");
766 } 749 }
767 750
768 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':setIam Policy'; 751 _url = 'v1/' +
752 commons.Escaper.ecapeVariableReserved('$resource') +
753 ':setIamPolicy';
769 754
770 var _response = _requester.request(_url, 755 var _response = _requester.request(_url, "POST",
771 "POST", 756 body: _body,
772 body: _body, 757 queryParams: _queryParams,
773 queryParams: _queryParams, 758 uploadOptions: _uploadOptions,
774 uploadOptions: _uploadOptions, 759 uploadMedia: _uploadMedia,
775 uploadMedia: _uploadMedia, 760 downloadOptions: _downloadOptions);
776 downloadOptions: _downloadOptions);
777 return _response.then((data) => new GoogleIamV1Policy.fromJson(data)); 761 return _response.then((data) => new GoogleIamV1Policy.fromJson(data));
778 } 762 }
779 763
780 /** 764 /// Returns permissions that a caller has on the specified resource.
781 * Returns permissions that a caller has on the specified resource. 765 /// If the resource does not exist, this will return an empty set of
782 * If the resource does not exist, this will return an empty set of 766 /// permissions, not a NOT_FOUND error.
783 * permissions, not a NOT_FOUND error. 767 ///
784 * 768 /// Note: This operation is designed to be used for building permission-aware
785 * Note: This operation is designed to be used for building permission-aware 769 /// UIs and command-line tools, not for authorization checking. This
786 * UIs and command-line tools, not for authorization checking. This operation 770 /// operation
787 * may "fail open" without warning. 771 /// may "fail open" without warning.
788 * 772 ///
789 * [request] - The metadata request object. 773 /// [request] - The metadata request object.
790 * 774 ///
791 * Request parameters: 775 /// Request parameters:
792 * 776 ///
793 * [resource] - REQUIRED: The resource for which the policy detail is being 777 /// [resource] - REQUIRED: The resource for which the policy detail is being
794 * requested. 778 /// requested.
795 * See the operation documentation for the appropriate value for this field. 779 /// See the operation documentation for the appropriate value for this field.
796 * Value must have pattern "^projects/[^/]+/models/[^/]+$". 780 /// Value must have pattern "^projects/[^/]+/models/[^/]+$".
797 * 781 ///
798 * Completes with a [GoogleIamV1TestIamPermissionsResponse]. 782 /// Completes with a [GoogleIamV1TestIamPermissionsResponse].
799 * 783 ///
800 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 784 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
801 * error. 785 /// an error.
802 * 786 ///
803 * If the used [http.Client] completes with an error when making a REST call, 787 /// If the used [http.Client] completes with an error when making a REST
804 * this method will complete with the same error. 788 /// call, this method will complete with the same error.
805 */ 789 async.Future<GoogleIamV1TestIamPermissionsResponse> testIamPermissions(
806 async.Future<GoogleIamV1TestIamPermissionsResponse> testIamPermissions(GoogleI amV1TestIamPermissionsRequest request, core.String resource) { 790 GoogleIamV1TestIamPermissionsRequest request, core.String resource) {
807 var _url = null; 791 var _url = null;
808 var _queryParams = new core.Map(); 792 var _queryParams = new core.Map();
809 var _uploadMedia = null; 793 var _uploadMedia = null;
810 var _uploadOptions = null; 794 var _uploadOptions = null;
811 var _downloadOptions = commons.DownloadOptions.Metadata; 795 var _downloadOptions = commons.DownloadOptions.Metadata;
812 var _body = null; 796 var _body = null;
813 797
814 if (request != null) { 798 if (request != null) {
815 _body = convert.JSON.encode((request).toJson()); 799 _body = convert.JSON.encode((request).toJson());
816 } 800 }
817 if (resource == null) { 801 if (resource == null) {
818 throw new core.ArgumentError("Parameter resource is required."); 802 throw new core.ArgumentError("Parameter resource is required.");
819 } 803 }
820 804
821 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':testIa mPermissions'; 805 _url = 'v1/' +
806 commons.Escaper.ecapeVariableReserved('$resource') +
807 ':testIamPermissions';
822 808
823 var _response = _requester.request(_url, 809 var _response = _requester.request(_url, "POST",
824 "POST", 810 body: _body,
825 body: _body, 811 queryParams: _queryParams,
826 queryParams: _queryParams, 812 uploadOptions: _uploadOptions,
827 uploadOptions: _uploadOptions, 813 uploadMedia: _uploadMedia,
828 uploadMedia: _uploadMedia, 814 downloadOptions: _downloadOptions);
829 downloadOptions: _downloadOptions); 815 return _response.then(
830 return _response.then((data) => new GoogleIamV1TestIamPermissionsResponse.fr omJson(data)); 816 (data) => new GoogleIamV1TestIamPermissionsResponse.fromJson(data));
831 } 817 }
832
833 } 818 }
834 819
835
836 class ProjectsModelsVersionsResourceApi { 820 class ProjectsModelsVersionsResourceApi {
837 final commons.ApiRequester _requester; 821 final commons.ApiRequester _requester;
838 822
839 ProjectsModelsVersionsResourceApi(commons.ApiRequester client) : 823 ProjectsModelsVersionsResourceApi(commons.ApiRequester client)
840 _requester = client; 824 : _requester = client;
841 825
842 /** 826 /// Creates a new version of a model from a trained TensorFlow model.
843 * Creates a new version of a model from a trained TensorFlow model. 827 ///
844 * 828 /// If the version created in the cloud by this call is the first deployed
845 * If the version created in the cloud by this call is the first deployed 829 /// version of the specified model, it will be made the default version of
846 * version of the specified model, it will be made the default version of the 830 /// the
847 * model. When you add a version to a model that already has one or more 831 /// model. When you add a version to a model that already has one or more
848 * versions, the default version does not automatically change. If you want a 832 /// versions, the default version does not automatically change. If you want
849 * new version to be the default, you must call 833 /// a
850 * [projects.models.versions.setDefault](/ml-engine/reference/rest/v1/projects .models.versions/setDefault). 834 /// new version to be the default, you must call
851 * 835 /// [projects.models.versions.setDefault](/ml-engine/reference/rest/v1/project s.models.versions/setDefault).
852 * [request] - The metadata request object. 836 ///
853 * 837 /// [request] - The metadata request object.
854 * Request parameters: 838 ///
855 * 839 /// Request parameters:
856 * [parent] - Required. The name of the model. 840 ///
857 * Value must have pattern "^projects/[^/]+/models/[^/]+$". 841 /// [parent] - Required. The name of the model.
858 * 842 /// Value must have pattern "^projects/[^/]+/models/[^/]+$".
859 * Completes with a [GoogleLongrunningOperation]. 843 ///
860 * 844 /// Completes with a [GoogleLongrunningOperation].
861 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 845 ///
862 * error. 846 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
863 * 847 /// an error.
864 * If the used [http.Client] completes with an error when making a REST call, 848 ///
865 * this method will complete with the same error. 849 /// If the used [http.Client] completes with an error when making a REST
866 */ 850 /// call, this method will complete with the same error.
867 async.Future<GoogleLongrunningOperation> create(GoogleCloudMlV1Version request , core.String parent) { 851 async.Future<GoogleLongrunningOperation> create(
852 GoogleCloudMlV1Version request, core.String parent) {
868 var _url = null; 853 var _url = null;
869 var _queryParams = new core.Map(); 854 var _queryParams = new core.Map();
870 var _uploadMedia = null; 855 var _uploadMedia = null;
871 var _uploadOptions = null; 856 var _uploadOptions = null;
872 var _downloadOptions = commons.DownloadOptions.Metadata; 857 var _downloadOptions = commons.DownloadOptions.Metadata;
873 var _body = null; 858 var _body = null;
874 859
875 if (request != null) { 860 if (request != null) {
876 _body = convert.JSON.encode((request).toJson()); 861 _body = convert.JSON.encode((request).toJson());
877 } 862 }
878 if (parent == null) { 863 if (parent == null) {
879 throw new core.ArgumentError("Parameter parent is required."); 864 throw new core.ArgumentError("Parameter parent is required.");
880 } 865 }
881 866
882 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/versions '; 867 _url =
868 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/versions';
883 869
884 var _response = _requester.request(_url, 870 var _response = _requester.request(_url, "POST",
885 "POST", 871 body: _body,
886 body: _body, 872 queryParams: _queryParams,
887 queryParams: _queryParams, 873 uploadOptions: _uploadOptions,
888 uploadOptions: _uploadOptions, 874 uploadMedia: _uploadMedia,
889 uploadMedia: _uploadMedia, 875 downloadOptions: _downloadOptions);
890 downloadOptions: _downloadOptions); 876 return _response
891 return _response.then((data) => new GoogleLongrunningOperation.fromJson(data )); 877 .then((data) => new GoogleLongrunningOperation.fromJson(data));
892 } 878 }
893 879
894 /** 880 /// Deletes a model version.
895 * Deletes a model version. 881 ///
896 * 882 /// Each model can have multiple versions deployed and in use at any given
897 * Each model can have multiple versions deployed and in use at any given 883 /// time. Use this method to remove a single version.
898 * time. Use this method to remove a single version. 884 ///
899 * 885 /// Note: You cannot delete the version that is set as the default version
900 * Note: You cannot delete the version that is set as the default version 886 /// of the model unless it is the only remaining version.
901 * of the model unless it is the only remaining version. 887 ///
902 * 888 /// Request parameters:
903 * Request parameters: 889 ///
904 * 890 /// [name] - Required. The name of the version. You can get the names of all
905 * [name] - Required. The name of the version. You can get the names of all 891 /// the
906 * the 892 /// versions of a model by calling
907 * versions of a model by calling 893 /// [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.mode ls.versions/list).
908 * [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.model s.versions/list). 894 /// Value must have pattern "^projects/[^/]+/models/[^/]+/versions/[^/]+$".
909 * Value must have pattern "^projects/[^/]+/models/[^/]+/versions/[^/]+$". 895 ///
910 * 896 /// Completes with a [GoogleLongrunningOperation].
911 * Completes with a [GoogleLongrunningOperation]. 897 ///
912 * 898 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
913 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 899 /// an error.
914 * error. 900 ///
915 * 901 /// If the used [http.Client] completes with an error when making a REST
916 * If the used [http.Client] completes with an error when making a REST call, 902 /// call, this method will complete with the same error.
917 * this method will complete with the same error.
918 */
919 async.Future<GoogleLongrunningOperation> delete(core.String name) { 903 async.Future<GoogleLongrunningOperation> delete(core.String name) {
920 var _url = null; 904 var _url = null;
921 var _queryParams = new core.Map(); 905 var _queryParams = new core.Map();
922 var _uploadMedia = null; 906 var _uploadMedia = null;
923 var _uploadOptions = null; 907 var _uploadOptions = null;
924 var _downloadOptions = commons.DownloadOptions.Metadata; 908 var _downloadOptions = commons.DownloadOptions.Metadata;
925 var _body = null; 909 var _body = null;
926 910
927 if (name == null) { 911 if (name == null) {
928 throw new core.ArgumentError("Parameter name is required."); 912 throw new core.ArgumentError("Parameter name is required.");
929 } 913 }
930 914
931 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); 915 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name');
932 916
933 var _response = _requester.request(_url, 917 var _response = _requester.request(_url, "DELETE",
934 "DELETE", 918 body: _body,
935 body: _body, 919 queryParams: _queryParams,
936 queryParams: _queryParams, 920 uploadOptions: _uploadOptions,
937 uploadOptions: _uploadOptions, 921 uploadMedia: _uploadMedia,
938 uploadMedia: _uploadMedia, 922 downloadOptions: _downloadOptions);
939 downloadOptions: _downloadOptions); 923 return _response
940 return _response.then((data) => new GoogleLongrunningOperation.fromJson(data )); 924 .then((data) => new GoogleLongrunningOperation.fromJson(data));
941 } 925 }
942 926
943 /** 927 /// Gets information about a model version.
944 * Gets information about a model version. 928 ///
945 * 929 /// Models can have multiple versions. You can call
946 * Models can have multiple versions. You can call 930 /// [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.mode ls.versions/list)
947 * [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.model s.versions/list) 931 /// to get the same information that this method returns for all of the
948 * to get the same information that this method returns for all of the 932 /// versions of a model.
949 * versions of a model. 933 ///
950 * 934 /// Request parameters:
951 * Request parameters: 935 ///
952 * 936 /// [name] - Required. The name of the version.
953 * [name] - Required. The name of the version. 937 /// Value must have pattern "^projects/[^/]+/models/[^/]+/versions/[^/]+$".
954 * Value must have pattern "^projects/[^/]+/models/[^/]+/versions/[^/]+$". 938 ///
955 * 939 /// Completes with a [GoogleCloudMlV1Version].
956 * Completes with a [GoogleCloudMlV1Version]. 940 ///
957 * 941 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
958 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 942 /// an error.
959 * error. 943 ///
960 * 944 /// If the used [http.Client] completes with an error when making a REST
961 * If the used [http.Client] completes with an error when making a REST call, 945 /// call, this method will complete with the same error.
962 * this method will complete with the same error.
963 */
964 async.Future<GoogleCloudMlV1Version> get(core.String name) { 946 async.Future<GoogleCloudMlV1Version> get(core.String name) {
965 var _url = null; 947 var _url = null;
966 var _queryParams = new core.Map(); 948 var _queryParams = new core.Map();
967 var _uploadMedia = null; 949 var _uploadMedia = null;
968 var _uploadOptions = null; 950 var _uploadOptions = null;
969 var _downloadOptions = commons.DownloadOptions.Metadata; 951 var _downloadOptions = commons.DownloadOptions.Metadata;
970 var _body = null; 952 var _body = null;
971 953
972 if (name == null) { 954 if (name == null) {
973 throw new core.ArgumentError("Parameter name is required."); 955 throw new core.ArgumentError("Parameter name is required.");
974 } 956 }
975 957
976 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); 958 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name');
977 959
978 var _response = _requester.request(_url, 960 var _response = _requester.request(_url, "GET",
979 "GET", 961 body: _body,
980 body: _body, 962 queryParams: _queryParams,
981 queryParams: _queryParams, 963 uploadOptions: _uploadOptions,
982 uploadOptions: _uploadOptions, 964 uploadMedia: _uploadMedia,
983 uploadMedia: _uploadMedia, 965 downloadOptions: _downloadOptions);
984 downloadOptions: _downloadOptions);
985 return _response.then((data) => new GoogleCloudMlV1Version.fromJson(data)); 966 return _response.then((data) => new GoogleCloudMlV1Version.fromJson(data));
986 } 967 }
987 968
988 /** 969 /// Gets basic information about all the versions of a model.
989 * Gets basic information about all the versions of a model. 970 ///
990 * 971 /// If you expect that a model has a lot of versions, or if you need to
991 * If you expect that a model has a lot of versions, or if you need to handle 972 /// handle
992 * only a limited number of results at a time, you can request that the list 973 /// only a limited number of results at a time, you can request that the list
993 * be retrieved in batches (called pages): 974 /// be retrieved in batches (called pages):
994 * 975 ///
995 * Request parameters: 976 /// Request parameters:
996 * 977 ///
997 * [parent] - Required. The name of the model for which to list the version. 978 /// [parent] - Required. The name of the model for which to list the version.
998 * Value must have pattern "^projects/[^/]+/models/[^/]+$". 979 /// Value must have pattern "^projects/[^/]+/models/[^/]+$".
999 * 980 ///
1000 * [pageToken] - Optional. A page token to request the next page of results. 981 /// [pageToken] - Optional. A page token to request the next page of results.
1001 * 982 ///
1002 * You get the token from the `next_page_token` field of the response from 983 /// You get the token from the `next_page_token` field of the response from
1003 * the previous call. 984 /// the previous call.
1004 * 985 ///
1005 * [pageSize] - Optional. The number of versions to retrieve per "page" of 986 /// [pageSize] - Optional. The number of versions to retrieve per "page" of
1006 * results. If 987 /// results. If
1007 * there are more remaining results than this number, the response message 988 /// there are more remaining results than this number, the response message
1008 * will contain a valid value in the `next_page_token` field. 989 /// will contain a valid value in the `next_page_token` field.
1009 * 990 ///
1010 * The default value is 20, and the maximum page size is 100. 991 /// The default value is 20, and the maximum page size is 100.
1011 * 992 ///
1012 * Completes with a [GoogleCloudMlV1ListVersionsResponse]. 993 /// Completes with a [GoogleCloudMlV1ListVersionsResponse].
1013 * 994 ///
1014 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 995 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1015 * error. 996 /// an error.
1016 * 997 ///
1017 * If the used [http.Client] completes with an error when making a REST call, 998 /// If the used [http.Client] completes with an error when making a REST
1018 * this method will complete with the same error. 999 /// call, this method will complete with the same error.
1019 */ 1000 async.Future<GoogleCloudMlV1ListVersionsResponse> list(core.String parent,
1020 async.Future<GoogleCloudMlV1ListVersionsResponse> list(core.String parent, {co re.String pageToken, core.int pageSize}) { 1001 {core.String pageToken, core.int pageSize}) {
1021 var _url = null; 1002 var _url = null;
1022 var _queryParams = new core.Map(); 1003 var _queryParams = new core.Map();
1023 var _uploadMedia = null; 1004 var _uploadMedia = null;
1024 var _uploadOptions = null; 1005 var _uploadOptions = null;
1025 var _downloadOptions = commons.DownloadOptions.Metadata; 1006 var _downloadOptions = commons.DownloadOptions.Metadata;
1026 var _body = null; 1007 var _body = null;
1027 1008
1028 if (parent == null) { 1009 if (parent == null) {
1029 throw new core.ArgumentError("Parameter parent is required."); 1010 throw new core.ArgumentError("Parameter parent is required.");
1030 } 1011 }
1031 if (pageToken != null) { 1012 if (pageToken != null) {
1032 _queryParams["pageToken"] = [pageToken]; 1013 _queryParams["pageToken"] = [pageToken];
1033 } 1014 }
1034 if (pageSize != null) { 1015 if (pageSize != null) {
1035 _queryParams["pageSize"] = ["${pageSize}"]; 1016 _queryParams["pageSize"] = ["${pageSize}"];
1036 } 1017 }
1037 1018
1038 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/versions '; 1019 _url =
1020 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/versions';
1039 1021
1040 var _response = _requester.request(_url, 1022 var _response = _requester.request(_url, "GET",
1041 "GET", 1023 body: _body,
1042 body: _body, 1024 queryParams: _queryParams,
1043 queryParams: _queryParams, 1025 uploadOptions: _uploadOptions,
1044 uploadOptions: _uploadOptions, 1026 uploadMedia: _uploadMedia,
1045 uploadMedia: _uploadMedia, 1027 downloadOptions: _downloadOptions);
1046 downloadOptions: _downloadOptions); 1028 return _response
1047 return _response.then((data) => new GoogleCloudMlV1ListVersionsResponse.from Json(data)); 1029 .then((data) => new GoogleCloudMlV1ListVersionsResponse.fromJson(data));
1048 } 1030 }
1049 1031
1050 /** 1032 /// Designates a version to be the default for the model.
1051 * Designates a version to be the default for the model. 1033 ///
1052 * 1034 /// The default version is used for prediction requests made against the
1053 * The default version is used for prediction requests made against the model 1035 /// model
1054 * that don't specify a version. 1036 /// that don't specify a version.
1055 * 1037 ///
1056 * The first version to be created for a model is automatically set as the 1038 /// The first version to be created for a model is automatically set as the
1057 * default. You must make any subsequent changes to the default version 1039 /// default. You must make any subsequent changes to the default version
1058 * setting manually using this method. 1040 /// setting manually using this method.
1059 * 1041 ///
1060 * [request] - The metadata request object. 1042 /// [request] - The metadata request object.
1061 * 1043 ///
1062 * Request parameters: 1044 /// Request parameters:
1063 * 1045 ///
1064 * [name] - Required. The name of the version to make the default for the 1046 /// [name] - Required. The name of the version to make the default for the
1065 * model. You 1047 /// model. You
1066 * can get the names of all the versions of a model by calling 1048 /// can get the names of all the versions of a model by calling
1067 * [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.model s.versions/list). 1049 /// [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.mode ls.versions/list).
1068 * Value must have pattern "^projects/[^/]+/models/[^/]+/versions/[^/]+$". 1050 /// Value must have pattern "^projects/[^/]+/models/[^/]+/versions/[^/]+$".
1069 * 1051 ///
1070 * Completes with a [GoogleCloudMlV1Version]. 1052 /// Completes with a [GoogleCloudMlV1Version].
1071 * 1053 ///
1072 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1054 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1073 * error. 1055 /// an error.
1074 * 1056 ///
1075 * If the used [http.Client] completes with an error when making a REST call, 1057 /// If the used [http.Client] completes with an error when making a REST
1076 * this method will complete with the same error. 1058 /// call, this method will complete with the same error.
1077 */ 1059 async.Future<GoogleCloudMlV1Version> setDefault(
1078 async.Future<GoogleCloudMlV1Version> setDefault(GoogleCloudMlV1SetDefaultVersi onRequest request, core.String name) { 1060 GoogleCloudMlV1SetDefaultVersionRequest request, core.String name) {
1079 var _url = null; 1061 var _url = null;
1080 var _queryParams = new core.Map(); 1062 var _queryParams = new core.Map();
1081 var _uploadMedia = null; 1063 var _uploadMedia = null;
1082 var _uploadOptions = null; 1064 var _uploadOptions = null;
1083 var _downloadOptions = commons.DownloadOptions.Metadata; 1065 var _downloadOptions = commons.DownloadOptions.Metadata;
1084 var _body = null; 1066 var _body = null;
1085 1067
1086 if (request != null) { 1068 if (request != null) {
1087 _body = convert.JSON.encode((request).toJson()); 1069 _body = convert.JSON.encode((request).toJson());
1088 } 1070 }
1089 if (name == null) { 1071 if (name == null) {
1090 throw new core.ArgumentError("Parameter name is required."); 1072 throw new core.ArgumentError("Parameter name is required.");
1091 } 1073 }
1092 1074
1093 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':setDefault '; 1075 _url =
1076 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':setDefault';
1094 1077
1095 var _response = _requester.request(_url, 1078 var _response = _requester.request(_url, "POST",
1096 "POST", 1079 body: _body,
1097 body: _body, 1080 queryParams: _queryParams,
1098 queryParams: _queryParams, 1081 uploadOptions: _uploadOptions,
1099 uploadOptions: _uploadOptions, 1082 uploadMedia: _uploadMedia,
1100 uploadMedia: _uploadMedia, 1083 downloadOptions: _downloadOptions);
1101 downloadOptions: _downloadOptions);
1102 return _response.then((data) => new GoogleCloudMlV1Version.fromJson(data)); 1084 return _response.then((data) => new GoogleCloudMlV1Version.fromJson(data));
1103 } 1085 }
1104
1105 } 1086 }
1106 1087
1107
1108 class ProjectsOperationsResourceApi { 1088 class ProjectsOperationsResourceApi {
1109 final commons.ApiRequester _requester; 1089 final commons.ApiRequester _requester;
1110 1090
1111 ProjectsOperationsResourceApi(commons.ApiRequester client) : 1091 ProjectsOperationsResourceApi(commons.ApiRequester client)
1112 _requester = client; 1092 : _requester = client;
1113 1093
1114 /** 1094 /// Starts asynchronous cancellation on a long-running operation. The server
1115 * Starts asynchronous cancellation on a long-running operation. The server 1095 /// makes a best effort to cancel the operation, but success is not
1116 * makes a best effort to cancel the operation, but success is not 1096 /// guaranteed. If the server doesn't support this method, it returns
1117 * guaranteed. If the server doesn't support this method, it returns 1097 /// `google.rpc.Code.UNIMPLEMENTED`. Clients can use
1118 * `google.rpc.Code.UNIMPLEMENTED`. Clients can use 1098 /// Operations.GetOperation or
1119 * Operations.GetOperation or 1099 /// other methods to check whether the cancellation succeeded or whether the
1120 * other methods to check whether the cancellation succeeded or whether the 1100 /// operation completed despite cancellation. On successful cancellation,
1121 * operation completed despite cancellation. On successful cancellation, 1101 /// the operation is not deleted; instead, it becomes an operation with
1122 * the operation is not deleted; instead, it becomes an operation with 1102 /// an Operation.error value with a google.rpc.Status.code of 1,
1123 * an Operation.error value with a google.rpc.Status.code of 1, 1103 /// corresponding to `Code.CANCELLED`.
1124 * corresponding to `Code.CANCELLED`. 1104 ///
1125 * 1105 /// Request parameters:
1126 * Request parameters: 1106 ///
1127 * 1107 /// [name] - The name of the operation resource to be cancelled.
1128 * [name] - The name of the operation resource to be cancelled. 1108 /// Value must have pattern "^projects/[^/]+/operations/[^/]+$".
1129 * Value must have pattern "^projects/[^/]+/operations/[^/]+$". 1109 ///
1130 * 1110 /// Completes with a [GoogleProtobufEmpty].
1131 * Completes with a [GoogleProtobufEmpty]. 1111 ///
1132 * 1112 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1133 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1113 /// an error.
1134 * error. 1114 ///
1135 * 1115 /// If the used [http.Client] completes with an error when making a REST
1136 * If the used [http.Client] completes with an error when making a REST call, 1116 /// call, this method will complete with the same error.
1137 * this method will complete with the same error.
1138 */
1139 async.Future<GoogleProtobufEmpty> cancel(core.String name) { 1117 async.Future<GoogleProtobufEmpty> cancel(core.String name) {
1140 var _url = null; 1118 var _url = null;
1141 var _queryParams = new core.Map(); 1119 var _queryParams = new core.Map();
1142 var _uploadMedia = null; 1120 var _uploadMedia = null;
1143 var _uploadOptions = null; 1121 var _uploadOptions = null;
1144 var _downloadOptions = commons.DownloadOptions.Metadata; 1122 var _downloadOptions = commons.DownloadOptions.Metadata;
1145 var _body = null; 1123 var _body = null;
1146 1124
1147 if (name == null) { 1125 if (name == null) {
1148 throw new core.ArgumentError("Parameter name is required."); 1126 throw new core.ArgumentError("Parameter name is required.");
1149 } 1127 }
1150 1128
1151 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':cancel'; 1129 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':cancel';
1152 1130
1153 var _response = _requester.request(_url, 1131 var _response = _requester.request(_url, "POST",
1154 "POST", 1132 body: _body,
1155 body: _body, 1133 queryParams: _queryParams,
1156 queryParams: _queryParams, 1134 uploadOptions: _uploadOptions,
1157 uploadOptions: _uploadOptions, 1135 uploadMedia: _uploadMedia,
1158 uploadMedia: _uploadMedia, 1136 downloadOptions: _downloadOptions);
1159 downloadOptions: _downloadOptions);
1160 return _response.then((data) => new GoogleProtobufEmpty.fromJson(data)); 1137 return _response.then((data) => new GoogleProtobufEmpty.fromJson(data));
1161 } 1138 }
1162 1139
1163 /** 1140 /// Deletes a long-running operation. This method indicates that the client
1164 * Deletes a long-running operation. This method indicates that the client is 1141 /// is
1165 * no longer interested in the operation result. It does not cancel the 1142 /// no longer interested in the operation result. It does not cancel the
1166 * operation. If the server doesn't support this method, it returns 1143 /// operation. If the server doesn't support this method, it returns
1167 * `google.rpc.Code.UNIMPLEMENTED`. 1144 /// `google.rpc.Code.UNIMPLEMENTED`.
1168 * 1145 ///
1169 * Request parameters: 1146 /// Request parameters:
1170 * 1147 ///
1171 * [name] - The name of the operation resource to be deleted. 1148 /// [name] - The name of the operation resource to be deleted.
1172 * Value must have pattern "^projects/[^/]+/operations/[^/]+$". 1149 /// Value must have pattern "^projects/[^/]+/operations/[^/]+$".
1173 * 1150 ///
1174 * Completes with a [GoogleProtobufEmpty]. 1151 /// Completes with a [GoogleProtobufEmpty].
1175 * 1152 ///
1176 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1153 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1177 * error. 1154 /// an error.
1178 * 1155 ///
1179 * If the used [http.Client] completes with an error when making a REST call, 1156 /// If the used [http.Client] completes with an error when making a REST
1180 * this method will complete with the same error. 1157 /// call, this method will complete with the same error.
1181 */
1182 async.Future<GoogleProtobufEmpty> delete(core.String name) { 1158 async.Future<GoogleProtobufEmpty> delete(core.String name) {
1183 var _url = null; 1159 var _url = null;
1184 var _queryParams = new core.Map(); 1160 var _queryParams = new core.Map();
1185 var _uploadMedia = null; 1161 var _uploadMedia = null;
1186 var _uploadOptions = null; 1162 var _uploadOptions = null;
1187 var _downloadOptions = commons.DownloadOptions.Metadata; 1163 var _downloadOptions = commons.DownloadOptions.Metadata;
1188 var _body = null; 1164 var _body = null;
1189 1165
1190 if (name == null) { 1166 if (name == null) {
1191 throw new core.ArgumentError("Parameter name is required."); 1167 throw new core.ArgumentError("Parameter name is required.");
1192 } 1168 }
1193 1169
1194 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); 1170 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name');
1195 1171
1196 var _response = _requester.request(_url, 1172 var _response = _requester.request(_url, "DELETE",
1197 "DELETE", 1173 body: _body,
1198 body: _body, 1174 queryParams: _queryParams,
1199 queryParams: _queryParams, 1175 uploadOptions: _uploadOptions,
1200 uploadOptions: _uploadOptions, 1176 uploadMedia: _uploadMedia,
1201 uploadMedia: _uploadMedia, 1177 downloadOptions: _downloadOptions);
1202 downloadOptions: _downloadOptions);
1203 return _response.then((data) => new GoogleProtobufEmpty.fromJson(data)); 1178 return _response.then((data) => new GoogleProtobufEmpty.fromJson(data));
1204 } 1179 }
1205 1180
1206 /** 1181 /// Gets the latest state of a long-running operation. Clients can use this
1207 * Gets the latest state of a long-running operation. Clients can use this 1182 /// method to poll the operation result at intervals as recommended by the
1208 * method to poll the operation result at intervals as recommended by the API 1183 /// API
1209 * service. 1184 /// service.
1210 * 1185 ///
1211 * Request parameters: 1186 /// Request parameters:
1212 * 1187 ///
1213 * [name] - The name of the operation resource. 1188 /// [name] - The name of the operation resource.
1214 * Value must have pattern "^projects/[^/]+/operations/[^/]+$". 1189 /// Value must have pattern "^projects/[^/]+/operations/[^/]+$".
1215 * 1190 ///
1216 * Completes with a [GoogleLongrunningOperation]. 1191 /// Completes with a [GoogleLongrunningOperation].
1217 * 1192 ///
1218 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1193 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1219 * error. 1194 /// an error.
1220 * 1195 ///
1221 * If the used [http.Client] completes with an error when making a REST call, 1196 /// If the used [http.Client] completes with an error when making a REST
1222 * this method will complete with the same error. 1197 /// call, this method will complete with the same error.
1223 */
1224 async.Future<GoogleLongrunningOperation> get(core.String name) { 1198 async.Future<GoogleLongrunningOperation> get(core.String name) {
1225 var _url = null; 1199 var _url = null;
1226 var _queryParams = new core.Map(); 1200 var _queryParams = new core.Map();
1227 var _uploadMedia = null; 1201 var _uploadMedia = null;
1228 var _uploadOptions = null; 1202 var _uploadOptions = null;
1229 var _downloadOptions = commons.DownloadOptions.Metadata; 1203 var _downloadOptions = commons.DownloadOptions.Metadata;
1230 var _body = null; 1204 var _body = null;
1231 1205
1232 if (name == null) { 1206 if (name == null) {
1233 throw new core.ArgumentError("Parameter name is required."); 1207 throw new core.ArgumentError("Parameter name is required.");
1234 } 1208 }
1235 1209
1236 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); 1210 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name');
1237 1211
1238 var _response = _requester.request(_url, 1212 var _response = _requester.request(_url, "GET",
1239 "GET", 1213 body: _body,
1240 body: _body, 1214 queryParams: _queryParams,
1241 queryParams: _queryParams, 1215 uploadOptions: _uploadOptions,
1242 uploadOptions: _uploadOptions, 1216 uploadMedia: _uploadMedia,
1243 uploadMedia: _uploadMedia, 1217 downloadOptions: _downloadOptions);
1244 downloadOptions: _downloadOptions); 1218 return _response
1245 return _response.then((data) => new GoogleLongrunningOperation.fromJson(data )); 1219 .then((data) => new GoogleLongrunningOperation.fromJson(data));
1246 } 1220 }
1247 1221
1248 /** 1222 /// Lists operations that match the specified filter in the request. If the
1249 * Lists operations that match the specified filter in the request. If the 1223 /// server doesn't support this method, it returns `UNIMPLEMENTED`.
1250 * server doesn't support this method, it returns `UNIMPLEMENTED`. 1224 ///
1251 * 1225 /// NOTE: the `name` binding allows API services to override the binding
1252 * NOTE: the `name` binding allows API services to override the binding 1226 /// to use different resource name schemes, such as `users / * /operations`.
1253 * to use different resource name schemes, such as `users / * /operations`. To 1227 /// To
1254 * override the binding, API services can add a binding such as 1228 /// override the binding, API services can add a binding such as
1255 * `"/v1/{name=users / * }/operations"` to their service configuration. 1229 /// `"/v1/{name=users / * }/operations"` to their service configuration.
1256 * For backwards compatibility, the default name includes the operations 1230 /// For backwards compatibility, the default name includes the operations
1257 * collection id, however overriding users must ensure the name binding 1231 /// collection id, however overriding users must ensure the name binding
1258 * is the parent resource, without the operations collection id. 1232 /// is the parent resource, without the operations collection id.
1259 * 1233 ///
1260 * Request parameters: 1234 /// Request parameters:
1261 * 1235 ///
1262 * [name] - The name of the operation's parent resource. 1236 /// [name] - The name of the operation's parent resource.
1263 * Value must have pattern "^projects/[^/]+$". 1237 /// Value must have pattern "^projects/[^/]+$".
1264 * 1238 ///
1265 * [pageToken] - The standard list page token. 1239 /// [pageToken] - The standard list page token.
1266 * 1240 ///
1267 * [pageSize] - The standard list page size. 1241 /// [pageSize] - The standard list page size.
1268 * 1242 ///
1269 * [filter] - The standard list filter. 1243 /// [filter] - The standard list filter.
1270 * 1244 ///
1271 * Completes with a [GoogleLongrunningListOperationsResponse]. 1245 /// Completes with a [GoogleLongrunningListOperationsResponse].
1272 * 1246 ///
1273 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1247 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1274 * error. 1248 /// an error.
1275 * 1249 ///
1276 * If the used [http.Client] completes with an error when making a REST call, 1250 /// If the used [http.Client] completes with an error when making a REST
1277 * this method will complete with the same error. 1251 /// call, this method will complete with the same error.
1278 */ 1252 async.Future<GoogleLongrunningListOperationsResponse> list(core.String name,
1279 async.Future<GoogleLongrunningListOperationsResponse> list(core.String name, { core.String pageToken, core.int pageSize, core.String filter}) { 1253 {core.String pageToken, core.int pageSize, core.String filter}) {
1280 var _url = null; 1254 var _url = null;
1281 var _queryParams = new core.Map(); 1255 var _queryParams = new core.Map();
1282 var _uploadMedia = null; 1256 var _uploadMedia = null;
1283 var _uploadOptions = null; 1257 var _uploadOptions = null;
1284 var _downloadOptions = commons.DownloadOptions.Metadata; 1258 var _downloadOptions = commons.DownloadOptions.Metadata;
1285 var _body = null; 1259 var _body = null;
1286 1260
1287 if (name == null) { 1261 if (name == null) {
1288 throw new core.ArgumentError("Parameter name is required."); 1262 throw new core.ArgumentError("Parameter name is required.");
1289 } 1263 }
1290 if (pageToken != null) { 1264 if (pageToken != null) {
1291 _queryParams["pageToken"] = [pageToken]; 1265 _queryParams["pageToken"] = [pageToken];
1292 } 1266 }
1293 if (pageSize != null) { 1267 if (pageSize != null) {
1294 _queryParams["pageSize"] = ["${pageSize}"]; 1268 _queryParams["pageSize"] = ["${pageSize}"];
1295 } 1269 }
1296 if (filter != null) { 1270 if (filter != null) {
1297 _queryParams["filter"] = [filter]; 1271 _queryParams["filter"] = [filter];
1298 } 1272 }
1299 1273
1300 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + '/operations '; 1274 _url =
1275 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + '/operations';
1301 1276
1302 var _response = _requester.request(_url, 1277 var _response = _requester.request(_url, "GET",
1303 "GET", 1278 body: _body,
1304 body: _body, 1279 queryParams: _queryParams,
1305 queryParams: _queryParams, 1280 uploadOptions: _uploadOptions,
1306 uploadOptions: _uploadOptions, 1281 uploadMedia: _uploadMedia,
1307 uploadMedia: _uploadMedia, 1282 downloadOptions: _downloadOptions);
1308 downloadOptions: _downloadOptions); 1283 return _response.then(
1309 return _response.then((data) => new GoogleLongrunningListOperationsResponse. fromJson(data)); 1284 (data) => new GoogleLongrunningListOperationsResponse.fromJson(data));
1310 } 1285 }
1311
1312 } 1286 }
1313 1287
1288 /// Message that represents an arbitrary HTTP body. It should only be used for
1289 /// payload formats that can't be represented as JSON, such as raw binary or
1290 /// an HTML page.
1291 ///
1292 ///
1293 /// This message can be used both in streaming and non-streaming API methods in
1294 /// the request as well as the response.
1295 ///
1296 /// It can be used as a top-level request field, which is convenient if one
1297 /// wants to extract parameters from either the URL or HTTP template into the
1298 /// request fields and also want access to the raw HTTP body.
1299 ///
1300 /// Example:
1301 ///
1302 /// message GetResourceRequest {
1303 /// // A unique request id.
1304 /// string request_id = 1;
1305 ///
1306 /// // The raw HTTP body is bound to this field.
1307 /// google.api.HttpBody http_body = 2;
1308 /// }
1309 ///
1310 /// service ResourceService {
1311 /// rpc GetResource(GetResourceRequest) returns (google.api.HttpBody);
1312 /// rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty);
1313 /// }
1314 ///
1315 /// Example with streaming methods:
1316 ///
1317 /// service CaldavService {
1318 /// rpc GetCalendar(stream google.api.HttpBody)
1319 /// returns (stream google.api.HttpBody);
1320 /// rpc UpdateCalendar(stream google.api.HttpBody)
1321 /// returns (stream google.api.HttpBody);
1322 /// }
1323 ///
1324 /// Use of this type only changes how the request and response bodies are
1325 /// handled, all other features will continue to work unchanged.
1326 class GoogleApiHttpBody {
1327 /// The HTTP Content-Type string representing the content type of the body.
1328 core.String contentType;
1314 1329
1315 1330 /// HTTP body binary data.
1316 /**
1317 * Message that represents an arbitrary HTTP body. It should only be used for
1318 * payload formats that can't be represented as JSON, such as raw binary or
1319 * an HTML page.
1320 *
1321 *
1322 * This message can be used both in streaming and non-streaming API methods in
1323 * the request as well as the response.
1324 *
1325 * It can be used as a top-level request field, which is convenient if one
1326 * wants to extract parameters from either the URL or HTTP template into the
1327 * request fields and also want access to the raw HTTP body.
1328 *
1329 * Example:
1330 *
1331 * message GetResourceRequest {
1332 * // A unique request id.
1333 * string request_id = 1;
1334 *
1335 * // The raw HTTP body is bound to this field.
1336 * google.api.HttpBody http_body = 2;
1337 * }
1338 *
1339 * service ResourceService {
1340 * rpc GetResource(GetResourceRequest) returns (google.api.HttpBody);
1341 * rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty);
1342 * }
1343 *
1344 * Example with streaming methods:
1345 *
1346 * service CaldavService {
1347 * rpc GetCalendar(stream google.api.HttpBody)
1348 * returns (stream google.api.HttpBody);
1349 * rpc UpdateCalendar(stream google.api.HttpBody)
1350 * returns (stream google.api.HttpBody);
1351 * }
1352 *
1353 * Use of this type only changes how the request and response bodies are
1354 * handled, all other features will continue to work unchanged.
1355 */
1356 class GoogleApiHttpBody {
1357 /**
1358 * The HTTP Content-Type string representing the content type of the body.
1359 */
1360 core.String contentType;
1361 /** HTTP body binary data. */
1362 core.String data; 1331 core.String data;
1363 core.List<core.int> get dataAsBytes { 1332 core.List<core.int> get dataAsBytes {
1364 return convert.BASE64.decode(data); 1333 return convert.BASE64.decode(data);
1365 } 1334 }
1366 1335
1367 void set dataAsBytes(core.List<core.int> _bytes) { 1336 void set dataAsBytes(core.List<core.int> _bytes) {
1368 data = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "- "); 1337 data =
1338 convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
1369 } 1339 }
1370 /** 1340
1371 * Application specific response metadata. Must be set in the first response 1341 /// Application specific response metadata. Must be set in the first response
1372 * for streaming APIs. 1342 /// for streaming APIs.
1373 * 1343 ///
1374 * The values for Object must be JSON objects. It can consist of `num`, 1344 /// The values for Object must be JSON objects. It can consist of `num`,
1375 * `String`, `bool` and `null` as well as `Map` and `List` values. 1345 /// `String`, `bool` and `null` as well as `Map` and `List` values.
1376 */
1377 core.List<core.Map<core.String, core.Object>> extensions; 1346 core.List<core.Map<core.String, core.Object>> extensions;
1378 1347
1379 GoogleApiHttpBody(); 1348 GoogleApiHttpBody();
1380 1349
1381 GoogleApiHttpBody.fromJson(core.Map _json) { 1350 GoogleApiHttpBody.fromJson(core.Map _json) {
1382 if (_json.containsKey("contentType")) { 1351 if (_json.containsKey("contentType")) {
1383 contentType = _json["contentType"]; 1352 contentType = _json["contentType"];
1384 } 1353 }
1385 if (_json.containsKey("data")) { 1354 if (_json.containsKey("data")) {
1386 data = _json["data"]; 1355 data = _json["data"];
1387 } 1356 }
1388 if (_json.containsKey("extensions")) { 1357 if (_json.containsKey("extensions")) {
1389 extensions = _json["extensions"]; 1358 extensions = _json["extensions"];
1390 } 1359 }
1391 } 1360 }
1392 1361
1393 core.Map<core.String, core.Object> toJson() { 1362 core.Map<core.String, core.Object> toJson() {
1394 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1363 final core.Map<core.String, core.Object> _json =
1364 new core.Map<core.String, core.Object>();
1395 if (contentType != null) { 1365 if (contentType != null) {
1396 _json["contentType"] = contentType; 1366 _json["contentType"] = contentType;
1397 } 1367 }
1398 if (data != null) { 1368 if (data != null) {
1399 _json["data"] = data; 1369 _json["data"] = data;
1400 } 1370 }
1401 if (extensions != null) { 1371 if (extensions != null) {
1402 _json["extensions"] = extensions; 1372 _json["extensions"] = extensions;
1403 } 1373 }
1404 return _json; 1374 return _json;
1405 } 1375 }
1406 } 1376 }
1407 1377
1408 /** An observed value of a metric. */ 1378 /// An observed value of a metric.
1409 class GoogleCloudMlV1HyperparameterOutputHyperparameterMetric { 1379 class GoogleCloudMlV1HyperparameterOutputHyperparameterMetric {
1410 /** The objective value at this training step. */ 1380 /// The objective value at this training step.
1411 core.double objectiveValue; 1381 core.double objectiveValue;
1412 /** The global training step for this metric. */ 1382
1383 /// The global training step for this metric.
1413 core.String trainingStep; 1384 core.String trainingStep;
1414 1385
1415 GoogleCloudMlV1HyperparameterOutputHyperparameterMetric(); 1386 GoogleCloudMlV1HyperparameterOutputHyperparameterMetric();
1416 1387
1417 GoogleCloudMlV1HyperparameterOutputHyperparameterMetric.fromJson(core.Map _jso n) { 1388 GoogleCloudMlV1HyperparameterOutputHyperparameterMetric.fromJson(
1389 core.Map _json) {
1418 if (_json.containsKey("objectiveValue")) { 1390 if (_json.containsKey("objectiveValue")) {
1419 objectiveValue = _json["objectiveValue"]; 1391 objectiveValue = _json["objectiveValue"];
1420 } 1392 }
1421 if (_json.containsKey("trainingStep")) { 1393 if (_json.containsKey("trainingStep")) {
1422 trainingStep = _json["trainingStep"]; 1394 trainingStep = _json["trainingStep"];
1423 } 1395 }
1424 } 1396 }
1425 1397
1426 core.Map<core.String, core.Object> toJson() { 1398 core.Map<core.String, core.Object> toJson() {
1427 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1399 final core.Map<core.String, core.Object> _json =
1400 new core.Map<core.String, core.Object>();
1428 if (objectiveValue != null) { 1401 if (objectiveValue != null) {
1429 _json["objectiveValue"] = objectiveValue; 1402 _json["objectiveValue"] = objectiveValue;
1430 } 1403 }
1431 if (trainingStep != null) { 1404 if (trainingStep != null) {
1432 _json["trainingStep"] = trainingStep; 1405 _json["trainingStep"] = trainingStep;
1433 } 1406 }
1434 return _json; 1407 return _json;
1435 } 1408 }
1436 } 1409 }
1437 1410
1438 /** Options for automatically scaling a model. */ 1411 /// Options for automatically scaling a model.
1439 class GoogleCloudMlV1AutoScaling { 1412 class GoogleCloudMlV1AutoScaling {
1440 /** 1413 /// Optional. The minimum number of nodes to allocate for this model. These
1441 * Optional. The minimum number of nodes to allocate for this model. These 1414 /// nodes are always up, starting from the time the model is deployed, so the
1442 * nodes are always up, starting from the time the model is deployed, so the 1415 /// cost of operating this model will be at least
1443 * cost of operating this model will be at least 1416 /// `rate` * `min_nodes` * number of hours since last billing cycle,
1444 * `rate` * `min_nodes` * number of hours since last billing cycle, 1417 /// where `rate` is the cost per node-hour as documented in
1445 * where `rate` is the cost per node-hour as documented in 1418 /// [pricing](https://cloud.google.com/ml-engine/pricing#prediction_pricing),
1446 * [pricing](https://cloud.google.com/ml-engine/pricing#prediction_pricing), 1419 /// even if no predictions are performed. There is additional cost for each
1447 * even if no predictions are performed. There is additional cost for each 1420 /// prediction performed.
1448 * prediction performed. 1421 ///
1449 * 1422 /// Unlike manual scaling, if the load gets too heavy for the nodes
1450 * Unlike manual scaling, if the load gets too heavy for the nodes 1423 /// that are up, the service will automatically add nodes to handle the
1451 * that are up, the service will automatically add nodes to handle the 1424 /// increased load as well as scale back as traffic drops, always maintaining
1452 * increased load as well as scale back as traffic drops, always maintaining 1425 /// at least `min_nodes`. You will be charged for the time in which
1453 * at least `min_nodes`. You will be charged for the time in which additional 1426 /// additional
1454 * nodes are used. 1427 /// nodes are used.
1455 * 1428 ///
1456 * If not specified, `min_nodes` defaults to 0, in which case, when traffic 1429 /// If not specified, `min_nodes` defaults to 0, in which case, when traffic
1457 * to a model stops (and after a cool-down period), nodes will be shut down 1430 /// to a model stops (and after a cool-down period), nodes will be shut down
1458 * and no charges will be incurred until traffic to the model resumes. 1431 /// and no charges will be incurred until traffic to the model resumes.
1459 */
1460 core.int minNodes; 1432 core.int minNodes;
1461 1433
1462 GoogleCloudMlV1AutoScaling(); 1434 GoogleCloudMlV1AutoScaling();
1463 1435
1464 GoogleCloudMlV1AutoScaling.fromJson(core.Map _json) { 1436 GoogleCloudMlV1AutoScaling.fromJson(core.Map _json) {
1465 if (_json.containsKey("minNodes")) { 1437 if (_json.containsKey("minNodes")) {
1466 minNodes = _json["minNodes"]; 1438 minNodes = _json["minNodes"];
1467 } 1439 }
1468 } 1440 }
1469 1441
1470 core.Map<core.String, core.Object> toJson() { 1442 core.Map<core.String, core.Object> toJson() {
1471 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1443 final core.Map<core.String, core.Object> _json =
1444 new core.Map<core.String, core.Object>();
1472 if (minNodes != null) { 1445 if (minNodes != null) {
1473 _json["minNodes"] = minNodes; 1446 _json["minNodes"] = minNodes;
1474 } 1447 }
1475 return _json; 1448 return _json;
1476 } 1449 }
1477 } 1450 }
1478 1451
1479 /** Request message for the CancelJob method. */ 1452 /// Request message for the CancelJob method.
1480 class GoogleCloudMlV1CancelJobRequest { 1453 class GoogleCloudMlV1CancelJobRequest {
1481
1482 GoogleCloudMlV1CancelJobRequest(); 1454 GoogleCloudMlV1CancelJobRequest();
1483 1455
1484 GoogleCloudMlV1CancelJobRequest.fromJson(core.Map _json) { 1456 GoogleCloudMlV1CancelJobRequest.fromJson(core.Map _json) {}
1485 }
1486 1457
1487 core.Map<core.String, core.Object> toJson() { 1458 core.Map<core.String, core.Object> toJson() {
1488 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1459 final core.Map<core.String, core.Object> _json =
1460 new core.Map<core.String, core.Object>();
1489 return _json; 1461 return _json;
1490 } 1462 }
1491 } 1463 }
1492 1464
1493 /** Returns service account information associated with a project. */ 1465 /// Returns service account information associated with a project.
1494 class GoogleCloudMlV1GetConfigResponse { 1466 class GoogleCloudMlV1GetConfigResponse {
1495 /** The service account Cloud ML uses to access resources in the project. */ 1467 /// The service account Cloud ML uses to access resources in the project.
1496 core.String serviceAccount; 1468 core.String serviceAccount;
1497 /** The project number for `service_account`. */ 1469
1470 /// The project number for `service_account`.
1498 core.String serviceAccountProject; 1471 core.String serviceAccountProject;
1499 1472
1500 GoogleCloudMlV1GetConfigResponse(); 1473 GoogleCloudMlV1GetConfigResponse();
1501 1474
1502 GoogleCloudMlV1GetConfigResponse.fromJson(core.Map _json) { 1475 GoogleCloudMlV1GetConfigResponse.fromJson(core.Map _json) {
1503 if (_json.containsKey("serviceAccount")) { 1476 if (_json.containsKey("serviceAccount")) {
1504 serviceAccount = _json["serviceAccount"]; 1477 serviceAccount = _json["serviceAccount"];
1505 } 1478 }
1506 if (_json.containsKey("serviceAccountProject")) { 1479 if (_json.containsKey("serviceAccountProject")) {
1507 serviceAccountProject = _json["serviceAccountProject"]; 1480 serviceAccountProject = _json["serviceAccountProject"];
1508 } 1481 }
1509 } 1482 }
1510 1483
1511 core.Map<core.String, core.Object> toJson() { 1484 core.Map<core.String, core.Object> toJson() {
1512 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1485 final core.Map<core.String, core.Object> _json =
1486 new core.Map<core.String, core.Object>();
1513 if (serviceAccount != null) { 1487 if (serviceAccount != null) {
1514 _json["serviceAccount"] = serviceAccount; 1488 _json["serviceAccount"] = serviceAccount;
1515 } 1489 }
1516 if (serviceAccountProject != null) { 1490 if (serviceAccountProject != null) {
1517 _json["serviceAccountProject"] = serviceAccountProject; 1491 _json["serviceAccountProject"] = serviceAccountProject;
1518 } 1492 }
1519 return _json; 1493 return _json;
1520 } 1494 }
1521 } 1495 }
1522 1496
1523 /** 1497 /// Represents the result of a single hyperparameter tuning trial from a
1524 * Represents the result of a single hyperparameter tuning trial from a 1498 /// training job. The TrainingOutput object that is returned on successful
1525 * training job. The TrainingOutput object that is returned on successful 1499 /// completion of a training job with hyperparameter tuning includes a list
1526 * completion of a training job with hyperparameter tuning includes a list 1500 /// of HyperparameterOutput objects, one for each successful trial.
1527 * of HyperparameterOutput objects, one for each successful trial.
1528 */
1529 class GoogleCloudMlV1HyperparameterOutput { 1501 class GoogleCloudMlV1HyperparameterOutput {
1530 /** All recorded object metrics for this trial. */ 1502 /// All recorded object metrics for this trial.
1531 core.List<GoogleCloudMlV1HyperparameterOutputHyperparameterMetric> allMetrics; 1503 core.List<GoogleCloudMlV1HyperparameterOutputHyperparameterMetric> allMetrics;
1532 /** The final objective metric seen for this trial. */ 1504
1505 /// The final objective metric seen for this trial.
1533 GoogleCloudMlV1HyperparameterOutputHyperparameterMetric finalMetric; 1506 GoogleCloudMlV1HyperparameterOutputHyperparameterMetric finalMetric;
1534 /** The hyperparameters given to this trial. */ 1507
1508 /// The hyperparameters given to this trial.
1535 core.Map<core.String, core.String> hyperparameters; 1509 core.Map<core.String, core.String> hyperparameters;
1536 /** The trial id for these results. */ 1510
1511 /// The trial id for these results.
1537 core.String trialId; 1512 core.String trialId;
1538 1513
1539 GoogleCloudMlV1HyperparameterOutput(); 1514 GoogleCloudMlV1HyperparameterOutput();
1540 1515
1541 GoogleCloudMlV1HyperparameterOutput.fromJson(core.Map _json) { 1516 GoogleCloudMlV1HyperparameterOutput.fromJson(core.Map _json) {
1542 if (_json.containsKey("allMetrics")) { 1517 if (_json.containsKey("allMetrics")) {
1543 allMetrics = _json["allMetrics"].map((value) => new GoogleCloudMlV1Hyperpa rameterOutputHyperparameterMetric.fromJson(value)).toList(); 1518 allMetrics = _json["allMetrics"]
1519 .map((value) =>
1520 new GoogleCloudMlV1HyperparameterOutputHyperparameterMetric
1521 .fromJson(value))
1522 .toList();
1544 } 1523 }
1545 if (_json.containsKey("finalMetric")) { 1524 if (_json.containsKey("finalMetric")) {
1546 finalMetric = new GoogleCloudMlV1HyperparameterOutputHyperparameterMetric. fromJson(_json["finalMetric"]); 1525 finalMetric =
1526 new GoogleCloudMlV1HyperparameterOutputHyperparameterMetric.fromJson(
1527 _json["finalMetric"]);
1547 } 1528 }
1548 if (_json.containsKey("hyperparameters")) { 1529 if (_json.containsKey("hyperparameters")) {
1549 hyperparameters = _json["hyperparameters"]; 1530 hyperparameters = _json["hyperparameters"];
1550 } 1531 }
1551 if (_json.containsKey("trialId")) { 1532 if (_json.containsKey("trialId")) {
1552 trialId = _json["trialId"]; 1533 trialId = _json["trialId"];
1553 } 1534 }
1554 } 1535 }
1555 1536
1556 core.Map<core.String, core.Object> toJson() { 1537 core.Map<core.String, core.Object> toJson() {
1557 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1538 final core.Map<core.String, core.Object> _json =
1539 new core.Map<core.String, core.Object>();
1558 if (allMetrics != null) { 1540 if (allMetrics != null) {
1559 _json["allMetrics"] = allMetrics.map((value) => (value).toJson()).toList() ; 1541 _json["allMetrics"] =
1542 allMetrics.map((value) => (value).toJson()).toList();
1560 } 1543 }
1561 if (finalMetric != null) { 1544 if (finalMetric != null) {
1562 _json["finalMetric"] = (finalMetric).toJson(); 1545 _json["finalMetric"] = (finalMetric).toJson();
1563 } 1546 }
1564 if (hyperparameters != null) { 1547 if (hyperparameters != null) {
1565 _json["hyperparameters"] = hyperparameters; 1548 _json["hyperparameters"] = hyperparameters;
1566 } 1549 }
1567 if (trialId != null) { 1550 if (trialId != null) {
1568 _json["trialId"] = trialId; 1551 _json["trialId"] = trialId;
1569 } 1552 }
1570 return _json; 1553 return _json;
1571 } 1554 }
1572 } 1555 }
1573 1556
1574 /** Represents a set of hyperparameters to optimize. */ 1557 /// Represents a set of hyperparameters to optimize.
1575 class GoogleCloudMlV1HyperparameterSpec { 1558 class GoogleCloudMlV1HyperparameterSpec {
1576 /** 1559 /// Required. The type of goal to use for tuning. Available types are
1577 * Required. The type of goal to use for tuning. Available types are 1560 /// `MAXIMIZE` and `MINIMIZE`.
1578 * `MAXIMIZE` and `MINIMIZE`. 1561 ///
1579 * 1562 /// Defaults to `MAXIMIZE`.
1580 * Defaults to `MAXIMIZE`. 1563 /// Possible string values are:
1581 * Possible string values are: 1564 /// - "GOAL_TYPE_UNSPECIFIED" : Goal Type will default to maximize.
1582 * - "GOAL_TYPE_UNSPECIFIED" : Goal Type will default to maximize. 1565 /// - "MAXIMIZE" : Maximize the goal metric.
1583 * - "MAXIMIZE" : Maximize the goal metric. 1566 /// - "MINIMIZE" : Minimize the goal metric.
1584 * - "MINIMIZE" : Minimize the goal metric.
1585 */
1586 core.String goal; 1567 core.String goal;
1587 /** 1568
1588 * Optional. The Tensorflow summary tag name to use for optimizing trials. For 1569 /// Optional. The Tensorflow summary tag name to use for optimizing trials.
1589 * current versions of Tensorflow, this tag name should exactly match what is 1570 /// For
1590 * shown in Tensorboard, including all scopes. For versions of Tensorflow 1571 /// current versions of Tensorflow, this tag name should exactly match what
1591 * prior to 0.12, this should be only the tag passed to tf.Summary. 1572 /// is
1592 * By default, "training/hptuning/metric" will be used. 1573 /// shown in Tensorboard, including all scopes. For versions of Tensorflow
1593 */ 1574 /// prior to 0.12, this should be only the tag passed to tf.Summary.
1575 /// By default, "training/hptuning/metric" will be used.
1594 core.String hyperparameterMetricTag; 1576 core.String hyperparameterMetricTag;
1595 /** 1577
1596 * Optional. The number of training trials to run concurrently. 1578 /// Optional. The number of training trials to run concurrently.
1597 * You can reduce the time it takes to perform hyperparameter tuning by adding 1579 /// You can reduce the time it takes to perform hyperparameter tuning by
1598 * trials in parallel. However, each trail only benefits from the information 1580 /// adding
1599 * gained in completed trials. That means that a trial does not get access to 1581 /// trials in parallel. However, each trail only benefits from the
1600 * the results of trials running at the same time, which could reduce the 1582 /// information
1601 * quality of the overall optimization. 1583 /// gained in completed trials. That means that a trial does not get access
1602 * 1584 /// to
1603 * Each trial will use the same scale tier and machine types. 1585 /// the results of trials running at the same time, which could reduce the
1604 * 1586 /// quality of the overall optimization.
1605 * Defaults to one. 1587 ///
1606 */ 1588 /// Each trial will use the same scale tier and machine types.
1589 ///
1590 /// Defaults to one.
1607 core.int maxParallelTrials; 1591 core.int maxParallelTrials;
1608 /** 1592
1609 * Optional. How many training trials should be attempted to optimize 1593 /// Optional. How many training trials should be attempted to optimize
1610 * the specified hyperparameters. 1594 /// the specified hyperparameters.
1611 * 1595 ///
1612 * Defaults to one. 1596 /// Defaults to one.
1613 */
1614 core.int maxTrials; 1597 core.int maxTrials;
1615 /** Required. The set of parameters to tune. */ 1598
1599 /// Required. The set of parameters to tune.
1616 core.List<GoogleCloudMlV1ParameterSpec> params; 1600 core.List<GoogleCloudMlV1ParameterSpec> params;
1617 1601
1618 GoogleCloudMlV1HyperparameterSpec(); 1602 GoogleCloudMlV1HyperparameterSpec();
1619 1603
1620 GoogleCloudMlV1HyperparameterSpec.fromJson(core.Map _json) { 1604 GoogleCloudMlV1HyperparameterSpec.fromJson(core.Map _json) {
1621 if (_json.containsKey("goal")) { 1605 if (_json.containsKey("goal")) {
1622 goal = _json["goal"]; 1606 goal = _json["goal"];
1623 } 1607 }
1624 if (_json.containsKey("hyperparameterMetricTag")) { 1608 if (_json.containsKey("hyperparameterMetricTag")) {
1625 hyperparameterMetricTag = _json["hyperparameterMetricTag"]; 1609 hyperparameterMetricTag = _json["hyperparameterMetricTag"];
1626 } 1610 }
1627 if (_json.containsKey("maxParallelTrials")) { 1611 if (_json.containsKey("maxParallelTrials")) {
1628 maxParallelTrials = _json["maxParallelTrials"]; 1612 maxParallelTrials = _json["maxParallelTrials"];
1629 } 1613 }
1630 if (_json.containsKey("maxTrials")) { 1614 if (_json.containsKey("maxTrials")) {
1631 maxTrials = _json["maxTrials"]; 1615 maxTrials = _json["maxTrials"];
1632 } 1616 }
1633 if (_json.containsKey("params")) { 1617 if (_json.containsKey("params")) {
1634 params = _json["params"].map((value) => new GoogleCloudMlV1ParameterSpec.f romJson(value)).toList(); 1618 params = _json["params"]
1619 .map((value) => new GoogleCloudMlV1ParameterSpec.fromJson(value))
1620 .toList();
1635 } 1621 }
1636 } 1622 }
1637 1623
1638 core.Map<core.String, core.Object> toJson() { 1624 core.Map<core.String, core.Object> toJson() {
1639 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1625 final core.Map<core.String, core.Object> _json =
1626 new core.Map<core.String, core.Object>();
1640 if (goal != null) { 1627 if (goal != null) {
1641 _json["goal"] = goal; 1628 _json["goal"] = goal;
1642 } 1629 }
1643 if (hyperparameterMetricTag != null) { 1630 if (hyperparameterMetricTag != null) {
1644 _json["hyperparameterMetricTag"] = hyperparameterMetricTag; 1631 _json["hyperparameterMetricTag"] = hyperparameterMetricTag;
1645 } 1632 }
1646 if (maxParallelTrials != null) { 1633 if (maxParallelTrials != null) {
1647 _json["maxParallelTrials"] = maxParallelTrials; 1634 _json["maxParallelTrials"] = maxParallelTrials;
1648 } 1635 }
1649 if (maxTrials != null) { 1636 if (maxTrials != null) {
1650 _json["maxTrials"] = maxTrials; 1637 _json["maxTrials"] = maxTrials;
1651 } 1638 }
1652 if (params != null) { 1639 if (params != null) {
1653 _json["params"] = params.map((value) => (value).toJson()).toList(); 1640 _json["params"] = params.map((value) => (value).toJson()).toList();
1654 } 1641 }
1655 return _json; 1642 return _json;
1656 } 1643 }
1657 } 1644 }
1658 1645
1659 /** 1646 /// Represents a training or prediction job.
1660 * Represents a training or prediction job. 1647 ///
1661 * 1648 /// Next ID: 16
1662 * Next ID: 16
1663 */
1664 class GoogleCloudMlV1Job { 1649 class GoogleCloudMlV1Job {
1665 /** Output only. When the job was created. */ 1650 /// Output only. When the job was created.
1666 core.String createTime; 1651 core.String createTime;
1667 /** Output only. When the job processing was completed. */ 1652
1653 /// Output only. When the job processing was completed.
1668 core.String endTime; 1654 core.String endTime;
1669 /** Output only. The details of a failure or a cancellation. */ 1655
1656 /// Output only. The details of a failure or a cancellation.
1670 core.String errorMessage; 1657 core.String errorMessage;
1671 /** Required. The user-specified id of the job. */ 1658
1659 /// Required. The user-specified id of the job.
1672 core.String jobId; 1660 core.String jobId;
1673 /** Input parameters to create a prediction job. */ 1661
1662 /// Input parameters to create a prediction job.
1674 GoogleCloudMlV1PredictionInput predictionInput; 1663 GoogleCloudMlV1PredictionInput predictionInput;
1675 /** The current prediction job result. */ 1664
1665 /// The current prediction job result.
1676 GoogleCloudMlV1PredictionOutput predictionOutput; 1666 GoogleCloudMlV1PredictionOutput predictionOutput;
1677 /** Output only. When the job processing was started. */ 1667
1668 /// Output only. When the job processing was started.
1678 core.String startTime; 1669 core.String startTime;
1679 /** 1670
1680 * Output only. The detailed state of a job. 1671 /// Output only. The detailed state of a job.
1681 * Possible string values are: 1672 /// Possible string values are:
1682 * - "STATE_UNSPECIFIED" : The job state is unspecified. 1673 /// - "STATE_UNSPECIFIED" : The job state is unspecified.
1683 * - "QUEUED" : The job has been just created and processing has not yet 1674 /// - "QUEUED" : The job has been just created and processing has not yet
1684 * begun. 1675 /// begun.
1685 * - "PREPARING" : The service is preparing to run the job. 1676 /// - "PREPARING" : The service is preparing to run the job.
1686 * - "RUNNING" : The job is in progress. 1677 /// - "RUNNING" : The job is in progress.
1687 * - "SUCCEEDED" : The job completed successfully. 1678 /// - "SUCCEEDED" : The job completed successfully.
1688 * - "FAILED" : The job failed. 1679 /// - "FAILED" : The job failed.
1689 * `error_message` should contain the details of the failure. 1680 /// `error_message` should contain the details of the failure.
1690 * - "CANCELLING" : The job is being cancelled. 1681 /// - "CANCELLING" : The job is being cancelled.
1691 * `error_message` should describe the reason for the cancellation. 1682 /// `error_message` should describe the reason for the cancellation.
1692 * - "CANCELLED" : The job has been cancelled. 1683 /// - "CANCELLED" : The job has been cancelled.
1693 * `error_message` should describe the reason for the cancellation. 1684 /// `error_message` should describe the reason for the cancellation.
1694 */
1695 core.String state; 1685 core.String state;
1696 /** Input parameters to create a training job. */ 1686
1687 /// Input parameters to create a training job.
1697 GoogleCloudMlV1TrainingInput trainingInput; 1688 GoogleCloudMlV1TrainingInput trainingInput;
1698 /** The current training job result. */ 1689
1690 /// The current training job result.
1699 GoogleCloudMlV1TrainingOutput trainingOutput; 1691 GoogleCloudMlV1TrainingOutput trainingOutput;
1700 1692
1701 GoogleCloudMlV1Job(); 1693 GoogleCloudMlV1Job();
1702 1694
1703 GoogleCloudMlV1Job.fromJson(core.Map _json) { 1695 GoogleCloudMlV1Job.fromJson(core.Map _json) {
1704 if (_json.containsKey("createTime")) { 1696 if (_json.containsKey("createTime")) {
1705 createTime = _json["createTime"]; 1697 createTime = _json["createTime"];
1706 } 1698 }
1707 if (_json.containsKey("endTime")) { 1699 if (_json.containsKey("endTime")) {
1708 endTime = _json["endTime"]; 1700 endTime = _json["endTime"];
1709 } 1701 }
1710 if (_json.containsKey("errorMessage")) { 1702 if (_json.containsKey("errorMessage")) {
1711 errorMessage = _json["errorMessage"]; 1703 errorMessage = _json["errorMessage"];
1712 } 1704 }
1713 if (_json.containsKey("jobId")) { 1705 if (_json.containsKey("jobId")) {
1714 jobId = _json["jobId"]; 1706 jobId = _json["jobId"];
1715 } 1707 }
1716 if (_json.containsKey("predictionInput")) { 1708 if (_json.containsKey("predictionInput")) {
1717 predictionInput = new GoogleCloudMlV1PredictionInput.fromJson(_json["predi ctionInput"]); 1709 predictionInput =
1710 new GoogleCloudMlV1PredictionInput.fromJson(_json["predictionInput"]);
1718 } 1711 }
1719 if (_json.containsKey("predictionOutput")) { 1712 if (_json.containsKey("predictionOutput")) {
1720 predictionOutput = new GoogleCloudMlV1PredictionOutput.fromJson(_json["pre dictionOutput"]); 1713 predictionOutput = new GoogleCloudMlV1PredictionOutput.fromJson(
1714 _json["predictionOutput"]);
1721 } 1715 }
1722 if (_json.containsKey("startTime")) { 1716 if (_json.containsKey("startTime")) {
1723 startTime = _json["startTime"]; 1717 startTime = _json["startTime"];
1724 } 1718 }
1725 if (_json.containsKey("state")) { 1719 if (_json.containsKey("state")) {
1726 state = _json["state"]; 1720 state = _json["state"];
1727 } 1721 }
1728 if (_json.containsKey("trainingInput")) { 1722 if (_json.containsKey("trainingInput")) {
1729 trainingInput = new GoogleCloudMlV1TrainingInput.fromJson(_json["trainingI nput"]); 1723 trainingInput =
1724 new GoogleCloudMlV1TrainingInput.fromJson(_json["trainingInput"]);
1730 } 1725 }
1731 if (_json.containsKey("trainingOutput")) { 1726 if (_json.containsKey("trainingOutput")) {
1732 trainingOutput = new GoogleCloudMlV1TrainingOutput.fromJson(_json["trainin gOutput"]); 1727 trainingOutput =
1728 new GoogleCloudMlV1TrainingOutput.fromJson(_json["trainingOutput"]);
1733 } 1729 }
1734 } 1730 }
1735 1731
1736 core.Map<core.String, core.Object> toJson() { 1732 core.Map<core.String, core.Object> toJson() {
1737 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1733 final core.Map<core.String, core.Object> _json =
1734 new core.Map<core.String, core.Object>();
1738 if (createTime != null) { 1735 if (createTime != null) {
1739 _json["createTime"] = createTime; 1736 _json["createTime"] = createTime;
1740 } 1737 }
1741 if (endTime != null) { 1738 if (endTime != null) {
1742 _json["endTime"] = endTime; 1739 _json["endTime"] = endTime;
1743 } 1740 }
1744 if (errorMessage != null) { 1741 if (errorMessage != null) {
1745 _json["errorMessage"] = errorMessage; 1742 _json["errorMessage"] = errorMessage;
1746 } 1743 }
1747 if (jobId != null) { 1744 if (jobId != null) {
(...skipping 14 matching lines...) Expand all
1762 if (trainingInput != null) { 1759 if (trainingInput != null) {
1763 _json["trainingInput"] = (trainingInput).toJson(); 1760 _json["trainingInput"] = (trainingInput).toJson();
1764 } 1761 }
1765 if (trainingOutput != null) { 1762 if (trainingOutput != null) {
1766 _json["trainingOutput"] = (trainingOutput).toJson(); 1763 _json["trainingOutput"] = (trainingOutput).toJson();
1767 } 1764 }
1768 return _json; 1765 return _json;
1769 } 1766 }
1770 } 1767 }
1771 1768
1772 /** Response message for the ListJobs method. */ 1769 /// Response message for the ListJobs method.
1773 class GoogleCloudMlV1ListJobsResponse { 1770 class GoogleCloudMlV1ListJobsResponse {
1774 /** The list of jobs. */ 1771 /// The list of jobs.
1775 core.List<GoogleCloudMlV1Job> jobs; 1772 core.List<GoogleCloudMlV1Job> jobs;
1776 /** 1773
1777 * Optional. Pass this token as the `page_token` field of the request for a 1774 /// Optional. Pass this token as the `page_token` field of the request for a
1778 * subsequent call. 1775 /// subsequent call.
1779 */
1780 core.String nextPageToken; 1776 core.String nextPageToken;
1781 1777
1782 GoogleCloudMlV1ListJobsResponse(); 1778 GoogleCloudMlV1ListJobsResponse();
1783 1779
1784 GoogleCloudMlV1ListJobsResponse.fromJson(core.Map _json) { 1780 GoogleCloudMlV1ListJobsResponse.fromJson(core.Map _json) {
1785 if (_json.containsKey("jobs")) { 1781 if (_json.containsKey("jobs")) {
1786 jobs = _json["jobs"].map((value) => new GoogleCloudMlV1Job.fromJson(value) ).toList(); 1782 jobs = _json["jobs"]
1783 .map((value) => new GoogleCloudMlV1Job.fromJson(value))
1784 .toList();
1787 } 1785 }
1788 if (_json.containsKey("nextPageToken")) { 1786 if (_json.containsKey("nextPageToken")) {
1789 nextPageToken = _json["nextPageToken"]; 1787 nextPageToken = _json["nextPageToken"];
1790 } 1788 }
1791 } 1789 }
1792 1790
1793 core.Map<core.String, core.Object> toJson() { 1791 core.Map<core.String, core.Object> toJson() {
1794 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1792 final core.Map<core.String, core.Object> _json =
1793 new core.Map<core.String, core.Object>();
1795 if (jobs != null) { 1794 if (jobs != null) {
1796 _json["jobs"] = jobs.map((value) => (value).toJson()).toList(); 1795 _json["jobs"] = jobs.map((value) => (value).toJson()).toList();
1797 } 1796 }
1798 if (nextPageToken != null) { 1797 if (nextPageToken != null) {
1799 _json["nextPageToken"] = nextPageToken; 1798 _json["nextPageToken"] = nextPageToken;
1800 } 1799 }
1801 return _json; 1800 return _json;
1802 } 1801 }
1803 } 1802 }
1804 1803
1805 /** Response message for the ListModels method. */ 1804 /// Response message for the ListModels method.
1806 class GoogleCloudMlV1ListModelsResponse { 1805 class GoogleCloudMlV1ListModelsResponse {
1807 /** The list of models. */ 1806 /// The list of models.
1808 core.List<GoogleCloudMlV1Model> models; 1807 core.List<GoogleCloudMlV1Model> models;
1809 /** 1808
1810 * Optional. Pass this token as the `page_token` field of the request for a 1809 /// Optional. Pass this token as the `page_token` field of the request for a
1811 * subsequent call. 1810 /// subsequent call.
1812 */
1813 core.String nextPageToken; 1811 core.String nextPageToken;
1814 1812
1815 GoogleCloudMlV1ListModelsResponse(); 1813 GoogleCloudMlV1ListModelsResponse();
1816 1814
1817 GoogleCloudMlV1ListModelsResponse.fromJson(core.Map _json) { 1815 GoogleCloudMlV1ListModelsResponse.fromJson(core.Map _json) {
1818 if (_json.containsKey("models")) { 1816 if (_json.containsKey("models")) {
1819 models = _json["models"].map((value) => new GoogleCloudMlV1Model.fromJson( value)).toList(); 1817 models = _json["models"]
1818 .map((value) => new GoogleCloudMlV1Model.fromJson(value))
1819 .toList();
1820 } 1820 }
1821 if (_json.containsKey("nextPageToken")) { 1821 if (_json.containsKey("nextPageToken")) {
1822 nextPageToken = _json["nextPageToken"]; 1822 nextPageToken = _json["nextPageToken"];
1823 } 1823 }
1824 } 1824 }
1825 1825
1826 core.Map<core.String, core.Object> toJson() { 1826 core.Map<core.String, core.Object> toJson() {
1827 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1827 final core.Map<core.String, core.Object> _json =
1828 new core.Map<core.String, core.Object>();
1828 if (models != null) { 1829 if (models != null) {
1829 _json["models"] = models.map((value) => (value).toJson()).toList(); 1830 _json["models"] = models.map((value) => (value).toJson()).toList();
1830 } 1831 }
1831 if (nextPageToken != null) { 1832 if (nextPageToken != null) {
1832 _json["nextPageToken"] = nextPageToken; 1833 _json["nextPageToken"] = nextPageToken;
1833 } 1834 }
1834 return _json; 1835 return _json;
1835 } 1836 }
1836 } 1837 }
1837 1838
1838 /** Response message for the ListVersions method. */ 1839 /// Response message for the ListVersions method.
1839 class GoogleCloudMlV1ListVersionsResponse { 1840 class GoogleCloudMlV1ListVersionsResponse {
1840 /** 1841 /// Optional. Pass this token as the `page_token` field of the request for a
1841 * Optional. Pass this token as the `page_token` field of the request for a 1842 /// subsequent call.
1842 * subsequent call.
1843 */
1844 core.String nextPageToken; 1843 core.String nextPageToken;
1845 /** The list of versions. */ 1844
1845 /// The list of versions.
1846 core.List<GoogleCloudMlV1Version> versions; 1846 core.List<GoogleCloudMlV1Version> versions;
1847 1847
1848 GoogleCloudMlV1ListVersionsResponse(); 1848 GoogleCloudMlV1ListVersionsResponse();
1849 1849
1850 GoogleCloudMlV1ListVersionsResponse.fromJson(core.Map _json) { 1850 GoogleCloudMlV1ListVersionsResponse.fromJson(core.Map _json) {
1851 if (_json.containsKey("nextPageToken")) { 1851 if (_json.containsKey("nextPageToken")) {
1852 nextPageToken = _json["nextPageToken"]; 1852 nextPageToken = _json["nextPageToken"];
1853 } 1853 }
1854 if (_json.containsKey("versions")) { 1854 if (_json.containsKey("versions")) {
1855 versions = _json["versions"].map((value) => new GoogleCloudMlV1Version.fro mJson(value)).toList(); 1855 versions = _json["versions"]
1856 .map((value) => new GoogleCloudMlV1Version.fromJson(value))
1857 .toList();
1856 } 1858 }
1857 } 1859 }
1858 1860
1859 core.Map<core.String, core.Object> toJson() { 1861 core.Map<core.String, core.Object> toJson() {
1860 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1862 final core.Map<core.String, core.Object> _json =
1863 new core.Map<core.String, core.Object>();
1861 if (nextPageToken != null) { 1864 if (nextPageToken != null) {
1862 _json["nextPageToken"] = nextPageToken; 1865 _json["nextPageToken"] = nextPageToken;
1863 } 1866 }
1864 if (versions != null) { 1867 if (versions != null) {
1865 _json["versions"] = versions.map((value) => (value).toJson()).toList(); 1868 _json["versions"] = versions.map((value) => (value).toJson()).toList();
1866 } 1869 }
1867 return _json; 1870 return _json;
1868 } 1871 }
1869 } 1872 }
1870 1873
1871 /** Options for manually scaling a model. */ 1874 /// Options for manually scaling a model.
1872 class GoogleCloudMlV1ManualScaling { 1875 class GoogleCloudMlV1ManualScaling {
1873 /** 1876 /// The number of nodes to allocate for this model. These nodes are always
1874 * The number of nodes to allocate for this model. These nodes are always up, 1877 /// up,
1875 * starting from the time the model is deployed, so the cost of operating 1878 /// starting from the time the model is deployed, so the cost of operating
1876 * this model will be proportional to `nodes` * number of hours since 1879 /// this model will be proportional to `nodes` * number of hours since
1877 * last billing cycle plus the cost for each prediction performed. 1880 /// last billing cycle plus the cost for each prediction performed.
1878 */
1879 core.int nodes; 1881 core.int nodes;
1880 1882
1881 GoogleCloudMlV1ManualScaling(); 1883 GoogleCloudMlV1ManualScaling();
1882 1884
1883 GoogleCloudMlV1ManualScaling.fromJson(core.Map _json) { 1885 GoogleCloudMlV1ManualScaling.fromJson(core.Map _json) {
1884 if (_json.containsKey("nodes")) { 1886 if (_json.containsKey("nodes")) {
1885 nodes = _json["nodes"]; 1887 nodes = _json["nodes"];
1886 } 1888 }
1887 } 1889 }
1888 1890
1889 core.Map<core.String, core.Object> toJson() { 1891 core.Map<core.String, core.Object> toJson() {
1890 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1892 final core.Map<core.String, core.Object> _json =
1893 new core.Map<core.String, core.Object>();
1891 if (nodes != null) { 1894 if (nodes != null) {
1892 _json["nodes"] = nodes; 1895 _json["nodes"] = nodes;
1893 } 1896 }
1894 return _json; 1897 return _json;
1895 } 1898 }
1896 } 1899 }
1897 1900
1898 /** 1901 /// Represents a machine learning solution.
1899 * Represents a machine learning solution. 1902 ///
1900 * 1903 /// A model can have multiple versions, each of which is a deployed, trained
1901 * A model can have multiple versions, each of which is a deployed, trained 1904 /// model ready to receive prediction requests. The model itself is just a
1902 * model ready to receive prediction requests. The model itself is just a 1905 /// container.
1903 * container. 1906 ///
1904 * 1907 /// Next ID: 8
1905 * Next ID: 8
1906 */
1907 class GoogleCloudMlV1Model { 1908 class GoogleCloudMlV1Model {
1908 /** 1909 /// Output only. The default version of the model. This version will be used
1909 * Output only. The default version of the model. This version will be used to 1910 /// to
1910 * handle prediction requests that do not specify a version. 1911 /// handle prediction requests that do not specify a version.
1911 * 1912 ///
1912 * You can change the default version by calling 1913 /// You can change the default version by calling
1913 * [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1/project s.models.versions/setDefault). 1914 /// [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1/projec ts.models.versions/setDefault).
1914 */
1915 GoogleCloudMlV1Version defaultVersion; 1915 GoogleCloudMlV1Version defaultVersion;
1916 /** Optional. The description specified for the model when it was created. */ 1916
1917 /// Optional. The description specified for the model when it was created.
1917 core.String description; 1918 core.String description;
1918 /** 1919
1919 * Required. The name specified for the model when it was created. 1920 /// Required. The name specified for the model when it was created.
1920 * 1921 ///
1921 * The model name must be unique within the project it is created in. 1922 /// The model name must be unique within the project it is created in.
1922 */
1923 core.String name; 1923 core.String name;
1924 /** 1924
1925 * Optional. If true, enables StackDriver Logging for online prediction. 1925 /// Optional. If true, enables StackDriver Logging for online prediction.
1926 * Default is false. 1926 /// Default is false.
1927 */
1928 core.bool onlinePredictionLogging; 1927 core.bool onlinePredictionLogging;
1929 /** 1928
1930 * Optional. The list of regions where the model is going to be deployed. 1929 /// Optional. The list of regions where the model is going to be deployed.
1931 * Currently only one region per model is supported. 1930 /// Currently only one region per model is supported.
1932 * Defaults to 'us-central1' if nothing is set. 1931 /// Defaults to 'us-central1' if nothing is set.
1933 * Note: 1932 /// Note:
1934 * * No matter where a model is deployed, it can always be accessed by 1933 /// * No matter where a model is deployed, it can always be accessed by
1935 * users from anywhere, both for online and batch prediction. 1934 /// users from anywhere, both for online and batch prediction.
1936 * * The region for a batch prediction job is set by the region field when 1935 /// * The region for a batch prediction job is set by the region field when
1937 * submitting the batch prediction job and does not take its value from 1936 /// submitting the batch prediction job and does not take its value from
1938 * this field. 1937 /// this field.
1939 */
1940 core.List<core.String> regions; 1938 core.List<core.String> regions;
1941 1939
1942 GoogleCloudMlV1Model(); 1940 GoogleCloudMlV1Model();
1943 1941
1944 GoogleCloudMlV1Model.fromJson(core.Map _json) { 1942 GoogleCloudMlV1Model.fromJson(core.Map _json) {
1945 if (_json.containsKey("defaultVersion")) { 1943 if (_json.containsKey("defaultVersion")) {
1946 defaultVersion = new GoogleCloudMlV1Version.fromJson(_json["defaultVersion "]); 1944 defaultVersion =
1945 new GoogleCloudMlV1Version.fromJson(_json["defaultVersion"]);
1947 } 1946 }
1948 if (_json.containsKey("description")) { 1947 if (_json.containsKey("description")) {
1949 description = _json["description"]; 1948 description = _json["description"];
1950 } 1949 }
1951 if (_json.containsKey("name")) { 1950 if (_json.containsKey("name")) {
1952 name = _json["name"]; 1951 name = _json["name"];
1953 } 1952 }
1954 if (_json.containsKey("onlinePredictionLogging")) { 1953 if (_json.containsKey("onlinePredictionLogging")) {
1955 onlinePredictionLogging = _json["onlinePredictionLogging"]; 1954 onlinePredictionLogging = _json["onlinePredictionLogging"];
1956 } 1955 }
1957 if (_json.containsKey("regions")) { 1956 if (_json.containsKey("regions")) {
1958 regions = _json["regions"]; 1957 regions = _json["regions"];
1959 } 1958 }
1960 } 1959 }
1961 1960
1962 core.Map<core.String, core.Object> toJson() { 1961 core.Map<core.String, core.Object> toJson() {
1963 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1962 final core.Map<core.String, core.Object> _json =
1963 new core.Map<core.String, core.Object>();
1964 if (defaultVersion != null) { 1964 if (defaultVersion != null) {
1965 _json["defaultVersion"] = (defaultVersion).toJson(); 1965 _json["defaultVersion"] = (defaultVersion).toJson();
1966 } 1966 }
1967 if (description != null) { 1967 if (description != null) {
1968 _json["description"] = description; 1968 _json["description"] = description;
1969 } 1969 }
1970 if (name != null) { 1970 if (name != null) {
1971 _json["name"] = name; 1971 _json["name"] = name;
1972 } 1972 }
1973 if (onlinePredictionLogging != null) { 1973 if (onlinePredictionLogging != null) {
1974 _json["onlinePredictionLogging"] = onlinePredictionLogging; 1974 _json["onlinePredictionLogging"] = onlinePredictionLogging;
1975 } 1975 }
1976 if (regions != null) { 1976 if (regions != null) {
1977 _json["regions"] = regions; 1977 _json["regions"] = regions;
1978 } 1978 }
1979 return _json; 1979 return _json;
1980 } 1980 }
1981 } 1981 }
1982 1982
1983 /** 1983 /// Represents the metadata of the long-running operation.
1984 * Represents the metadata of the long-running operation. 1984 ///
1985 * 1985 /// Next ID: 9
1986 * Next ID: 9
1987 */
1988 class GoogleCloudMlV1OperationMetadata { 1986 class GoogleCloudMlV1OperationMetadata {
1989 /** The time the operation was submitted. */ 1987 /// The time the operation was submitted.
1990 core.String createTime; 1988 core.String createTime;
1991 /** The time operation processing completed. */ 1989
1990 /// The time operation processing completed.
1992 core.String endTime; 1991 core.String endTime;
1993 /** Indicates whether a request to cancel this operation has been made. */ 1992
1993 /// Indicates whether a request to cancel this operation has been made.
1994 core.bool isCancellationRequested; 1994 core.bool isCancellationRequested;
1995 /** Contains the name of the model associated with the operation. */ 1995
1996 /// Contains the name of the model associated with the operation.
1996 core.String modelName; 1997 core.String modelName;
1997 /** 1998
1998 * The operation type. 1999 /// The operation type.
1999 * Possible string values are: 2000 /// Possible string values are:
2000 * - "OPERATION_TYPE_UNSPECIFIED" : Unspecified operation type. 2001 /// - "OPERATION_TYPE_UNSPECIFIED" : Unspecified operation type.
2001 * - "CREATE_VERSION" : An operation to create a new version. 2002 /// - "CREATE_VERSION" : An operation to create a new version.
2002 * - "DELETE_VERSION" : An operation to delete an existing version. 2003 /// - "DELETE_VERSION" : An operation to delete an existing version.
2003 * - "DELETE_MODEL" : An operation to delete an existing model. 2004 /// - "DELETE_MODEL" : An operation to delete an existing model.
2004 * - "UPDATE_MODEL" : An operation to update an existing model. 2005 /// - "UPDATE_MODEL" : An operation to update an existing model.
2005 * - "UPDATE_VERSION" : An operation to update an existing version. 2006 /// - "UPDATE_VERSION" : An operation to update an existing version.
2006 */
2007 core.String operationType; 2007 core.String operationType;
2008 /** The time operation processing started. */ 2008
2009 /// The time operation processing started.
2009 core.String startTime; 2010 core.String startTime;
2010 /** Contains the version associated with the operation. */ 2011
2012 /// Contains the version associated with the operation.
2011 GoogleCloudMlV1Version version; 2013 GoogleCloudMlV1Version version;
2012 2014
2013 GoogleCloudMlV1OperationMetadata(); 2015 GoogleCloudMlV1OperationMetadata();
2014 2016
2015 GoogleCloudMlV1OperationMetadata.fromJson(core.Map _json) { 2017 GoogleCloudMlV1OperationMetadata.fromJson(core.Map _json) {
2016 if (_json.containsKey("createTime")) { 2018 if (_json.containsKey("createTime")) {
2017 createTime = _json["createTime"]; 2019 createTime = _json["createTime"];
2018 } 2020 }
2019 if (_json.containsKey("endTime")) { 2021 if (_json.containsKey("endTime")) {
2020 endTime = _json["endTime"]; 2022 endTime = _json["endTime"];
2021 } 2023 }
2022 if (_json.containsKey("isCancellationRequested")) { 2024 if (_json.containsKey("isCancellationRequested")) {
2023 isCancellationRequested = _json["isCancellationRequested"]; 2025 isCancellationRequested = _json["isCancellationRequested"];
2024 } 2026 }
2025 if (_json.containsKey("modelName")) { 2027 if (_json.containsKey("modelName")) {
2026 modelName = _json["modelName"]; 2028 modelName = _json["modelName"];
2027 } 2029 }
2028 if (_json.containsKey("operationType")) { 2030 if (_json.containsKey("operationType")) {
2029 operationType = _json["operationType"]; 2031 operationType = _json["operationType"];
2030 } 2032 }
2031 if (_json.containsKey("startTime")) { 2033 if (_json.containsKey("startTime")) {
2032 startTime = _json["startTime"]; 2034 startTime = _json["startTime"];
2033 } 2035 }
2034 if (_json.containsKey("version")) { 2036 if (_json.containsKey("version")) {
2035 version = new GoogleCloudMlV1Version.fromJson(_json["version"]); 2037 version = new GoogleCloudMlV1Version.fromJson(_json["version"]);
2036 } 2038 }
2037 } 2039 }
2038 2040
2039 core.Map<core.String, core.Object> toJson() { 2041 core.Map<core.String, core.Object> toJson() {
2040 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2042 final core.Map<core.String, core.Object> _json =
2043 new core.Map<core.String, core.Object>();
2041 if (createTime != null) { 2044 if (createTime != null) {
2042 _json["createTime"] = createTime; 2045 _json["createTime"] = createTime;
2043 } 2046 }
2044 if (endTime != null) { 2047 if (endTime != null) {
2045 _json["endTime"] = endTime; 2048 _json["endTime"] = endTime;
2046 } 2049 }
2047 if (isCancellationRequested != null) { 2050 if (isCancellationRequested != null) {
2048 _json["isCancellationRequested"] = isCancellationRequested; 2051 _json["isCancellationRequested"] = isCancellationRequested;
2049 } 2052 }
2050 if (modelName != null) { 2053 if (modelName != null) {
2051 _json["modelName"] = modelName; 2054 _json["modelName"] = modelName;
2052 } 2055 }
2053 if (operationType != null) { 2056 if (operationType != null) {
2054 _json["operationType"] = operationType; 2057 _json["operationType"] = operationType;
2055 } 2058 }
2056 if (startTime != null) { 2059 if (startTime != null) {
2057 _json["startTime"] = startTime; 2060 _json["startTime"] = startTime;
2058 } 2061 }
2059 if (version != null) { 2062 if (version != null) {
2060 _json["version"] = (version).toJson(); 2063 _json["version"] = (version).toJson();
2061 } 2064 }
2062 return _json; 2065 return _json;
2063 } 2066 }
2064 } 2067 }
2065 2068
2066 /** Represents a single hyperparameter to optimize. */ 2069 /// Represents a single hyperparameter to optimize.
2067 class GoogleCloudMlV1ParameterSpec { 2070 class GoogleCloudMlV1ParameterSpec {
2068 /** Required if type is `CATEGORICAL`. The list of possible categories. */ 2071 /// Required if type is `CATEGORICAL`. The list of possible categories.
2069 core.List<core.String> categoricalValues; 2072 core.List<core.String> categoricalValues;
2070 /** 2073
2071 * Required if type is `DISCRETE`. 2074 /// Required if type is `DISCRETE`.
2072 * A list of feasible points. 2075 /// A list of feasible points.
2073 * The list should be in strictly increasing order. For instance, this 2076 /// The list should be in strictly increasing order. For instance, this
2074 * parameter might have possible settings of 1.5, 2.5, and 4.0. This list 2077 /// parameter might have possible settings of 1.5, 2.5, and 4.0. This list
2075 * should not contain more than 1,000 values. 2078 /// should not contain more than 1,000 values.
2076 */
2077 core.List<core.double> discreteValues; 2079 core.List<core.double> discreteValues;
2078 /** 2080
2079 * Required if typeis `DOUBLE` or `INTEGER`. This field 2081 /// Required if typeis `DOUBLE` or `INTEGER`. This field
2080 * should be unset if type is `CATEGORICAL`. This value should be integers if 2082 /// should be unset if type is `CATEGORICAL`. This value should be integers
2081 * type is `INTEGER`. 2083 /// if
2082 */ 2084 /// type is `INTEGER`.
2083 core.double maxValue; 2085 core.double maxValue;
2084 /** 2086
2085 * Required if type is `DOUBLE` or `INTEGER`. This field 2087 /// Required if type is `DOUBLE` or `INTEGER`. This field
2086 * should be unset if type is `CATEGORICAL`. This value should be integers if 2088 /// should be unset if type is `CATEGORICAL`. This value should be integers
2087 * type is INTEGER. 2089 /// if
2088 */ 2090 /// type is INTEGER.
2089 core.double minValue; 2091 core.double minValue;
2090 /** 2092
2091 * Required. The parameter name must be unique amongst all ParameterConfigs in 2093 /// Required. The parameter name must be unique amongst all ParameterConfigs
2092 * a HyperparameterSpec message. E.g., "learning_rate". 2094 /// in
2093 */ 2095 /// a HyperparameterSpec message. E.g., "learning_rate".
2094 core.String parameterName; 2096 core.String parameterName;
2095 /** 2097
2096 * Optional. How the parameter should be scaled to the hypercube. 2098 /// Optional. How the parameter should be scaled to the hypercube.
2097 * Leave unset for categorical parameters. 2099 /// Leave unset for categorical parameters.
2098 * Some kind of scaling is strongly recommended for real or integral 2100 /// Some kind of scaling is strongly recommended for real or integral
2099 * parameters (e.g., `UNIT_LINEAR_SCALE`). 2101 /// parameters (e.g., `UNIT_LINEAR_SCALE`).
2100 * Possible string values are: 2102 /// Possible string values are:
2101 * - "NONE" : By default, no scaling is applied. 2103 /// - "NONE" : By default, no scaling is applied.
2102 * - "UNIT_LINEAR_SCALE" : Scales the feasible space to (0, 1) linearly. 2104 /// - "UNIT_LINEAR_SCALE" : Scales the feasible space to (0, 1) linearly.
2103 * - "UNIT_LOG_SCALE" : Scales the feasible space logarithmically to (0, 1). 2105 /// - "UNIT_LOG_SCALE" : Scales the feasible space logarithmically to (0, 1).
2104 * The entire feasible 2106 /// The entire feasible
2105 * space must be strictly positive. 2107 /// space must be strictly positive.
2106 * - "UNIT_REVERSE_LOG_SCALE" : Scales the feasible space "reverse" 2108 /// - "UNIT_REVERSE_LOG_SCALE" : Scales the feasible space "reverse"
2107 * logarithmically to (0, 1). The result 2109 /// logarithmically to (0, 1). The result
2108 * is that values close to the top of the feasible space are spread out more 2110 /// is that values close to the top of the feasible space are spread out more
2109 * than points near the bottom. The entire feasible space must be strictly 2111 /// than points near the bottom. The entire feasible space must be strictly
2110 * positive. 2112 /// positive.
2111 */
2112 core.String scaleType; 2113 core.String scaleType;
2113 /** 2114
2114 * Required. The type of the parameter. 2115 /// Required. The type of the parameter.
2115 * Possible string values are: 2116 /// Possible string values are:
2116 * - "PARAMETER_TYPE_UNSPECIFIED" : You must specify a valid type. Using this 2117 /// - "PARAMETER_TYPE_UNSPECIFIED" : You must specify a valid type. Using
2117 * unspecified type will result in 2118 /// this unspecified type will result in
2118 * an error. 2119 /// an error.
2119 * - "DOUBLE" : Type for real-valued parameters. 2120 /// - "DOUBLE" : Type for real-valued parameters.
2120 * - "INTEGER" : Type for integral parameters. 2121 /// - "INTEGER" : Type for integral parameters.
2121 * - "CATEGORICAL" : The parameter is categorical, with a value chosen from 2122 /// - "CATEGORICAL" : The parameter is categorical, with a value chosen from
2122 * the categories 2123 /// the categories
2123 * field. 2124 /// field.
2124 * - "DISCRETE" : The parameter is real valued, with a fixed set of feasible 2125 /// - "DISCRETE" : The parameter is real valued, with a fixed set of feasible
2125 * points. If 2126 /// points. If
2126 * `type==DISCRETE`, feasible_points must be provided, and 2127 /// `type==DISCRETE`, feasible_points must be provided, and
2127 * {`min_value`, `max_value`} will be ignored. 2128 /// {`min_value`, `max_value`} will be ignored.
2128 */
2129 core.String type; 2129 core.String type;
2130 2130
2131 GoogleCloudMlV1ParameterSpec(); 2131 GoogleCloudMlV1ParameterSpec();
2132 2132
2133 GoogleCloudMlV1ParameterSpec.fromJson(core.Map _json) { 2133 GoogleCloudMlV1ParameterSpec.fromJson(core.Map _json) {
2134 if (_json.containsKey("categoricalValues")) { 2134 if (_json.containsKey("categoricalValues")) {
2135 categoricalValues = _json["categoricalValues"]; 2135 categoricalValues = _json["categoricalValues"];
2136 } 2136 }
2137 if (_json.containsKey("discreteValues")) { 2137 if (_json.containsKey("discreteValues")) {
2138 discreteValues = _json["discreteValues"]; 2138 discreteValues = _json["discreteValues"];
2139 } 2139 }
2140 if (_json.containsKey("maxValue")) { 2140 if (_json.containsKey("maxValue")) {
2141 maxValue = _json["maxValue"]; 2141 maxValue = _json["maxValue"];
2142 } 2142 }
2143 if (_json.containsKey("minValue")) { 2143 if (_json.containsKey("minValue")) {
2144 minValue = _json["minValue"]; 2144 minValue = _json["minValue"];
2145 } 2145 }
2146 if (_json.containsKey("parameterName")) { 2146 if (_json.containsKey("parameterName")) {
2147 parameterName = _json["parameterName"]; 2147 parameterName = _json["parameterName"];
2148 } 2148 }
2149 if (_json.containsKey("scaleType")) { 2149 if (_json.containsKey("scaleType")) {
2150 scaleType = _json["scaleType"]; 2150 scaleType = _json["scaleType"];
2151 } 2151 }
2152 if (_json.containsKey("type")) { 2152 if (_json.containsKey("type")) {
2153 type = _json["type"]; 2153 type = _json["type"];
2154 } 2154 }
2155 } 2155 }
2156 2156
2157 core.Map<core.String, core.Object> toJson() { 2157 core.Map<core.String, core.Object> toJson() {
2158 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2158 final core.Map<core.String, core.Object> _json =
2159 new core.Map<core.String, core.Object>();
2159 if (categoricalValues != null) { 2160 if (categoricalValues != null) {
2160 _json["categoricalValues"] = categoricalValues; 2161 _json["categoricalValues"] = categoricalValues;
2161 } 2162 }
2162 if (discreteValues != null) { 2163 if (discreteValues != null) {
2163 _json["discreteValues"] = discreteValues; 2164 _json["discreteValues"] = discreteValues;
2164 } 2165 }
2165 if (maxValue != null) { 2166 if (maxValue != null) {
2166 _json["maxValue"] = maxValue; 2167 _json["maxValue"] = maxValue;
2167 } 2168 }
2168 if (minValue != null) { 2169 if (minValue != null) {
2169 _json["minValue"] = minValue; 2170 _json["minValue"] = minValue;
2170 } 2171 }
2171 if (parameterName != null) { 2172 if (parameterName != null) {
2172 _json["parameterName"] = parameterName; 2173 _json["parameterName"] = parameterName;
2173 } 2174 }
2174 if (scaleType != null) { 2175 if (scaleType != null) {
2175 _json["scaleType"] = scaleType; 2176 _json["scaleType"] = scaleType;
2176 } 2177 }
2177 if (type != null) { 2178 if (type != null) {
2178 _json["type"] = type; 2179 _json["type"] = type;
2179 } 2180 }
2180 return _json; 2181 return _json;
2181 } 2182 }
2182 } 2183 }
2183 2184
2184 /** 2185 /// Request for predictions to be issued against a trained model.
2185 * Request for predictions to be issued against a trained model. 2186 ///
2186 * 2187 /// The body of the request is a single JSON object with a single top-level
2187 * The body of the request is a single JSON object with a single top-level 2188 /// field:
2188 * field: 2189 ///
2189 * 2190 /// <dl>
2190 * <dl> 2191 /// <dt>instances</dt>
2191 * <dt>instances</dt> 2192 /// <dd>A JSON array containing values representing the instances to use for
2192 * <dd>A JSON array containing values representing the instances to use for 2193 /// prediction.</dd>
2193 * prediction.</dd> 2194 /// </dl>
2194 * </dl> 2195 ///
2195 * 2196 /// The structure of each element of the instances list is determined by your
2196 * The structure of each element of the instances list is determined by your 2197 /// model's input definition. Instances can include named inputs or can contain
2197 * model's input definition. Instances can include named inputs or can contain 2198 /// only unlabeled values.
2198 * only unlabeled values. 2199 ///
2199 * 2200 /// Not all data includes named inputs. Some instances will be simple
2200 * Not all data includes named inputs. Some instances will be simple 2201 /// JSON values (boolean, number, or string). However, instances are often
2201 * JSON values (boolean, number, or string). However, instances are often lists 2202 /// lists
2202 * of simple values, or complex nested lists. Here are some examples of request 2203 /// of simple values, or complex nested lists. Here are some examples of
2203 * bodies: 2204 /// request
2204 * 2205 /// bodies:
2205 * CSV data with each row encoded as a string value: 2206 ///
2206 * <pre> 2207 /// CSV data with each row encoded as a string value:
2207 * {"instances": ["1.0,true,\\"x\\"", "-2.0,false,\\"y\\""]} 2208 /// <pre>
2208 * </pre> 2209 /// {"instances": ["1.0,true,\\"x\\"", "-2.0,false,\\"y\\""]}
2209 * Plain text: 2210 /// </pre>
2210 * <pre> 2211 /// Plain text:
2211 * {"instances": ["the quick brown fox", "la bruja le dio"]} 2212 /// <pre>
2212 * </pre> 2213 /// {"instances": ["the quick brown fox", "la bruja le dio"]}
2213 * Sentences encoded as lists of words (vectors of strings): 2214 /// </pre>
2214 * <pre> 2215 /// Sentences encoded as lists of words (vectors of strings):
2215 * { 2216 /// <pre>
2216 * "instances": [ 2217 /// {
2217 * ["the","quick","brown"], 2218 /// "instances": [
2218 * ["la","bruja","le"], 2219 /// ["the","quick","brown"],
2219 * ... 2220 /// ["la","bruja","le"],
2220 * ] 2221 /// ...
2221 * } 2222 /// ]
2222 * </pre> 2223 /// }
2223 * Floating point scalar values: 2224 /// </pre>
2224 * <pre> 2225 /// Floating point scalar values:
2225 * {"instances": [0.0, 1.1, 2.2]} 2226 /// <pre>
2226 * </pre> 2227 /// {"instances": [0.0, 1.1, 2.2]}
2227 * Vectors of integers: 2228 /// </pre>
2228 * <pre> 2229 /// Vectors of integers:
2229 * { 2230 /// <pre>
2230 * "instances": [ 2231 /// {
2231 * [0, 1, 2], 2232 /// "instances": [
2232 * [3, 4, 5], 2233 /// [0, 1, 2],
2233 * ... 2234 /// [3, 4, 5],
2234 * ] 2235 /// ...
2235 * } 2236 /// ]
2236 * </pre> 2237 /// }
2237 * Tensors (in this case, two-dimensional tensors): 2238 /// </pre>
2238 * <pre> 2239 /// Tensors (in this case, two-dimensional tensors):
2239 * { 2240 /// <pre>
2240 * "instances": [ 2241 /// {
2241 * [ 2242 /// "instances": [
2242 * [0, 1, 2], 2243 /// [
2243 * [3, 4, 5] 2244 /// [0, 1, 2],
2244 * ], 2245 /// [3, 4, 5]
2245 * ... 2246 /// ],
2246 * ] 2247 /// ...
2247 * } 2248 /// ]
2248 * </pre> 2249 /// }
2249 * Images can be represented different ways. In this encoding scheme the first 2250 /// </pre>
2250 * two dimensions represent the rows and columns of the image, and the third 2251 /// Images can be represented different ways. In this encoding scheme the first
2251 * contains lists (vectors) of the R, G, and B values for each pixel. 2252 /// two dimensions represent the rows and columns of the image, and the third
2252 * <pre> 2253 /// contains lists (vectors) of the R, G, and B values for each pixel.
2253 * { 2254 /// <pre>
2254 * "instances": [ 2255 /// {
2255 * [ 2256 /// "instances": [
2256 * [ 2257 /// [
2257 * [138, 30, 66], 2258 /// [
2258 * [130, 20, 56], 2259 /// [138, 30, 66],
2259 * ... 2260 /// [130, 20, 56],
2260 * ], 2261 /// ...
2261 * [ 2262 /// ],
2262 * [126, 38, 61], 2263 /// [
2263 * [122, 24, 57], 2264 /// [126, 38, 61],
2264 * ... 2265 /// [122, 24, 57],
2265 * ], 2266 /// ...
2266 * ... 2267 /// ],
2267 * ], 2268 /// ...
2268 * ... 2269 /// ],
2269 * ] 2270 /// ...
2270 * } 2271 /// ]
2271 * </pre> 2272 /// }
2272 * JSON strings must be encoded as UTF-8. To send binary data, you must 2273 /// </pre>
2273 * base64-encode the data and mark it as binary. To mark a JSON string 2274 /// JSON strings must be encoded as UTF-8. To send binary data, you must
2274 * as binary, replace it with a JSON object with a single attribute named `b64`: 2275 /// base64-encode the data and mark it as binary. To mark a JSON string
2275 * <pre>{"b64": "..."} </pre> 2276 /// as binary, replace it with a JSON object with a single attribute named
2276 * For example: 2277 /// `b64`:
2277 * 2278 /// <pre>{"b64": "..."} </pre>
2278 * Two Serialized tf.Examples (fake data, for illustrative purposes only): 2279 /// For example:
2279 * <pre> 2280 ///
2280 * {"instances": [{"b64": "X5ad6u"}, {"b64": "IA9j4nx"}]} 2281 /// Two Serialized tf.Examples (fake data, for illustrative purposes only):
2281 * </pre> 2282 /// <pre>
2282 * Two JPEG image byte strings (fake data, for illustrative purposes only): 2283 /// {"instances": [{"b64": "X5ad6u"}, {"b64": "IA9j4nx"}]}
2283 * <pre> 2284 /// </pre>
2284 * {"instances": [{"b64": "ASa8asdf"}, {"b64": "JLK7ljk3"}]} 2285 /// Two JPEG image byte strings (fake data, for illustrative purposes only):
2285 * </pre> 2286 /// <pre>
2286 * If your data includes named references, format each instance as a JSON object 2287 /// {"instances": [{"b64": "ASa8asdf"}, {"b64": "JLK7ljk3"}]}
2287 * with the named references as the keys: 2288 /// </pre>
2288 * 2289 /// If your data includes named references, format each instance as a JSON
2289 * JSON input data to be preprocessed: 2290 /// object
2290 * <pre> 2291 /// with the named references as the keys:
2291 * { 2292 ///
2292 * "instances": [ 2293 /// JSON input data to be preprocessed:
2293 * { 2294 /// <pre>
2294 * "a": 1.0, 2295 /// {
2295 * "b": true, 2296 /// "instances": [
2296 * "c": "x" 2297 /// {
2297 * }, 2298 /// "a": 1.0,
2298 * { 2299 /// "b": true,
2299 * "a": -2.0, 2300 /// "c": "x"
2300 * "b": false, 2301 /// },
2301 * "c": "y" 2302 /// {
2302 * } 2303 /// "a": -2.0,
2303 * ] 2304 /// "b": false,
2304 * } 2305 /// "c": "y"
2305 * </pre> 2306 /// }
2306 * Some models have an underlying TensorFlow graph that accepts multiple input 2307 /// ]
2307 * tensors. In this case, you should use the names of JSON name/value pairs to 2308 /// }
2308 * identify the input tensors, as shown in the following exmaples: 2309 /// </pre>
2309 * 2310 /// Some models have an underlying TensorFlow graph that accepts multiple input
2310 * For a graph with input tensor aliases "tag" (string) and "image" 2311 /// tensors. In this case, you should use the names of JSON name/value pairs to
2311 * (base64-encoded string): 2312 /// identify the input tensors, as shown in the following exmaples:
2312 * <pre> 2313 ///
2313 * { 2314 /// For a graph with input tensor aliases "tag" (string) and "image"
2314 * "instances": [ 2315 /// (base64-encoded string):
2315 * { 2316 /// <pre>
2316 * "tag": "beach", 2317 /// {
2317 * "image": {"b64": "ASa8asdf"} 2318 /// "instances": [
2318 * }, 2319 /// {
2319 * { 2320 /// "tag": "beach",
2320 * "tag": "car", 2321 /// "image": {"b64": "ASa8asdf"}
2321 * "image": {"b64": "JLK7ljk3"} 2322 /// },
2322 * } 2323 /// {
2323 * ] 2324 /// "tag": "car",
2324 * } 2325 /// "image": {"b64": "JLK7ljk3"}
2325 * </pre> 2326 /// }
2326 * For a graph with input tensor aliases "tag" (string) and "image" 2327 /// ]
2327 * (3-dimensional array of 8-bit ints): 2328 /// }
2328 * <pre> 2329 /// </pre>
2329 * { 2330 /// For a graph with input tensor aliases "tag" (string) and "image"
2330 * "instances": [ 2331 /// (3-dimensional array of 8-bit ints):
2331 * { 2332 /// <pre>
2332 * "tag": "beach", 2333 /// {
2333 * "image": [ 2334 /// "instances": [
2334 * [ 2335 /// {
2335 * [138, 30, 66], 2336 /// "tag": "beach",
2336 * [130, 20, 56], 2337 /// "image": [
2337 * ... 2338 /// [
2338 * ], 2339 /// [138, 30, 66],
2339 * [ 2340 /// [130, 20, 56],
2340 * [126, 38, 61], 2341 /// ...
2341 * [122, 24, 57], 2342 /// ],
2342 * ... 2343 /// [
2343 * ], 2344 /// [126, 38, 61],
2344 * ... 2345 /// [122, 24, 57],
2345 * ] 2346 /// ...
2346 * }, 2347 /// ],
2347 * { 2348 /// ...
2348 * "tag": "car", 2349 /// ]
2349 * "image": [ 2350 /// },
2350 * [ 2351 /// {
2351 * [255, 0, 102], 2352 /// "tag": "car",
2352 * [255, 0, 97], 2353 /// "image": [
2353 * ... 2354 /// [
2354 * ], 2355 /// [255, 0, 102],
2355 * [ 2356 /// [255, 0, 97],
2356 * [254, 1, 101], 2357 /// ...
2357 * [254, 2, 93], 2358 /// ],
2358 * ... 2359 /// [
2359 * ], 2360 /// [254, 1, 101],
2360 * ... 2361 /// [254, 2, 93],
2361 * ] 2362 /// ...
2362 * }, 2363 /// ],
2363 * ... 2364 /// ...
2364 * ] 2365 /// ]
2365 * } 2366 /// },
2366 * </pre> 2367 /// ...
2367 * If the call is successful, the response body will contain one prediction 2368 /// ]
2368 * entry per instance in the request body. If prediction fails for any 2369 /// }
2369 * instance, the response body will contain no predictions and will contian 2370 /// </pre>
2370 * a single error entry instead. 2371 /// If the call is successful, the response body will contain one prediction
2371 */ 2372 /// entry per instance in the request body. If prediction fails for any
2373 /// instance, the response body will contain no predictions and will contian
2374 /// a single error entry instead.
2372 class GoogleCloudMlV1PredictRequest { 2375 class GoogleCloudMlV1PredictRequest {
2373 /** 2376 ///
2374 * 2377 /// Required. The prediction request body.
2375 * Required. The prediction request body.
2376 */
2377 GoogleApiHttpBody httpBody; 2378 GoogleApiHttpBody httpBody;
2378 2379
2379 GoogleCloudMlV1PredictRequest(); 2380 GoogleCloudMlV1PredictRequest();
2380 2381
2381 GoogleCloudMlV1PredictRequest.fromJson(core.Map _json) { 2382 GoogleCloudMlV1PredictRequest.fromJson(core.Map _json) {
2382 if (_json.containsKey("httpBody")) { 2383 if (_json.containsKey("httpBody")) {
2383 httpBody = new GoogleApiHttpBody.fromJson(_json["httpBody"]); 2384 httpBody = new GoogleApiHttpBody.fromJson(_json["httpBody"]);
2384 } 2385 }
2385 } 2386 }
2386 2387
2387 core.Map<core.String, core.Object> toJson() { 2388 core.Map<core.String, core.Object> toJson() {
2388 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2389 final core.Map<core.String, core.Object> _json =
2390 new core.Map<core.String, core.Object>();
2389 if (httpBody != null) { 2391 if (httpBody != null) {
2390 _json["httpBody"] = (httpBody).toJson(); 2392 _json["httpBody"] = (httpBody).toJson();
2391 } 2393 }
2392 return _json; 2394 return _json;
2393 } 2395 }
2394 } 2396 }
2395 2397
2396 /** Represents input parameters for a prediction job. */ 2398 /// Represents input parameters for a prediction job.
2397 class GoogleCloudMlV1PredictionInput { 2399 class GoogleCloudMlV1PredictionInput {
2398 /** 2400 /// Optional. Number of records per batch, defaults to 64.
2399 * Optional. Number of records per batch, defaults to 64. 2401 /// The service will buffer batch_size number of records in memory before
2400 * The service will buffer batch_size number of records in memory before 2402 /// invoking one Tensorflow prediction call internally. So take the record
2401 * invoking one Tensorflow prediction call internally. So take the record 2403 /// size and memory available into consideration when setting this parameter.
2402 * size and memory available into consideration when setting this parameter.
2403 */
2404 core.String batchSize; 2404 core.String batchSize;
2405 /** 2405
2406 * Required. The format of the input data files. 2406 /// Required. The format of the input data files.
2407 * Possible string values are: 2407 /// Possible string values are:
2408 * - "DATA_FORMAT_UNSPECIFIED" : Unspecified format. 2408 /// - "DATA_FORMAT_UNSPECIFIED" : Unspecified format.
2409 * - "TEXT" : The source file is a text file with instances separated by the 2409 /// - "TEXT" : The source file is a text file with instances separated by the
2410 * new-line character. 2410 /// new-line character.
2411 * - "TF_RECORD" : The source file is a TFRecord file. 2411 /// - "TF_RECORD" : The source file is a TFRecord file.
2412 * - "TF_RECORD_GZIP" : The source file is a GZIP-compressed TFRecord file. 2412 /// - "TF_RECORD_GZIP" : The source file is a GZIP-compressed TFRecord file.
2413 */
2414 core.String dataFormat; 2413 core.String dataFormat;
2415 /** 2414
2416 * Required. The Google Cloud Storage location of the input data files. 2415 /// Required. The Google Cloud Storage location of the input data files.
2417 * May contain wildcards. 2416 /// May contain wildcards.
2418 */
2419 core.List<core.String> inputPaths; 2417 core.List<core.String> inputPaths;
2420 /** 2418
2421 * Optional. The maximum number of workers to be used for parallel processing. 2419 /// Optional. The maximum number of workers to be used for parallel
2422 * Defaults to 10 if not specified. 2420 /// processing.
2423 */ 2421 /// Defaults to 10 if not specified.
2424 core.String maxWorkerCount; 2422 core.String maxWorkerCount;
2425 /** 2423
2426 * Use this field if you want to use the default version for the specified 2424 /// Use this field if you want to use the default version for the specified
2427 * model. The string must use the following format: 2425 /// model. The string must use the following format:
2428 * 2426 ///
2429 * `"projects/<var>[YOUR_PROJECT]</var>/models/<var>[YOUR_MODEL]</var>"` 2427 /// `"projects/<var>[YOUR_PROJECT]</var>/models/<var>[YOUR_MODEL]</var>"`
2430 */
2431 core.String modelName; 2428 core.String modelName;
2432 /** Required. The output Google Cloud Storage location. */ 2429
2430 /// Required. The output Google Cloud Storage location.
2433 core.String outputPath; 2431 core.String outputPath;
2434 /** 2432
2435 * Required. The Google Compute Engine region to run the prediction job in. 2433 /// Required. The Google Compute Engine region to run the prediction job in.
2436 */
2437 core.String region; 2434 core.String region;
2438 /** 2435
2439 * Optional. The Google Cloud ML runtime version to use for this batch 2436 /// Optional. The Google Cloud ML runtime version to use for this batch
2440 * prediction. If not set, Google Cloud ML will pick the runtime version used 2437 /// prediction. If not set, Google Cloud ML will pick the runtime version
2441 * during the CreateVersion request for this model version, or choose the 2438 /// used
2442 * latest stable version when model version information is not available 2439 /// during the CreateVersion request for this model version, or choose the
2443 * such as when the model is specified by uri. 2440 /// latest stable version when model version information is not available
2444 */ 2441 /// such as when the model is specified by uri.
2445 core.String runtimeVersion; 2442 core.String runtimeVersion;
2446 /** 2443
2447 * Use this field if you want to specify a Google Cloud Storage path for 2444 /// Use this field if you want to specify a Google Cloud Storage path for
2448 * the model to use. 2445 /// the model to use.
2449 */
2450 core.String uri; 2446 core.String uri;
2451 /** 2447
2452 * Use this field if you want to specify a version of the model to use. The 2448 /// Use this field if you want to specify a version of the model to use. The
2453 * string is formatted the same way as `model_version`, with the addition 2449 /// string is formatted the same way as `model_version`, with the addition
2454 * of the version information: 2450 /// of the version information:
2455 * 2451 ///
2456 * `"projects/<var>[YOUR_PROJECT]</var>/models/<var>YOUR_MODEL/versions/<var>[ YOUR_VERSION]</var>"` 2452 /// `"projects/<var>[YOUR_PROJECT]</var>/models/<var>YOUR_MODEL/versions/<var> [YOUR_VERSION]</var>"`
2457 */
2458 core.String versionName; 2453 core.String versionName;
2459 2454
2460 GoogleCloudMlV1PredictionInput(); 2455 GoogleCloudMlV1PredictionInput();
2461 2456
2462 GoogleCloudMlV1PredictionInput.fromJson(core.Map _json) { 2457 GoogleCloudMlV1PredictionInput.fromJson(core.Map _json) {
2463 if (_json.containsKey("batchSize")) { 2458 if (_json.containsKey("batchSize")) {
2464 batchSize = _json["batchSize"]; 2459 batchSize = _json["batchSize"];
2465 } 2460 }
2466 if (_json.containsKey("dataFormat")) { 2461 if (_json.containsKey("dataFormat")) {
2467 dataFormat = _json["dataFormat"]; 2462 dataFormat = _json["dataFormat"];
(...skipping 18 matching lines...) Expand all
2486 } 2481 }
2487 if (_json.containsKey("uri")) { 2482 if (_json.containsKey("uri")) {
2488 uri = _json["uri"]; 2483 uri = _json["uri"];
2489 } 2484 }
2490 if (_json.containsKey("versionName")) { 2485 if (_json.containsKey("versionName")) {
2491 versionName = _json["versionName"]; 2486 versionName = _json["versionName"];
2492 } 2487 }
2493 } 2488 }
2494 2489
2495 core.Map<core.String, core.Object> toJson() { 2490 core.Map<core.String, core.Object> toJson() {
2496 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2491 final core.Map<core.String, core.Object> _json =
2492 new core.Map<core.String, core.Object>();
2497 if (batchSize != null) { 2493 if (batchSize != null) {
2498 _json["batchSize"] = batchSize; 2494 _json["batchSize"] = batchSize;
2499 } 2495 }
2500 if (dataFormat != null) { 2496 if (dataFormat != null) {
2501 _json["dataFormat"] = dataFormat; 2497 _json["dataFormat"] = dataFormat;
2502 } 2498 }
2503 if (inputPaths != null) { 2499 if (inputPaths != null) {
2504 _json["inputPaths"] = inputPaths; 2500 _json["inputPaths"] = inputPaths;
2505 } 2501 }
2506 if (maxWorkerCount != null) { 2502 if (maxWorkerCount != null) {
(...skipping 14 matching lines...) Expand all
2521 if (uri != null) { 2517 if (uri != null) {
2522 _json["uri"] = uri; 2518 _json["uri"] = uri;
2523 } 2519 }
2524 if (versionName != null) { 2520 if (versionName != null) {
2525 _json["versionName"] = versionName; 2521 _json["versionName"] = versionName;
2526 } 2522 }
2527 return _json; 2523 return _json;
2528 } 2524 }
2529 } 2525 }
2530 2526
2531 /** Represents results of a prediction job. */ 2527 /// Represents results of a prediction job.
2532 class GoogleCloudMlV1PredictionOutput { 2528 class GoogleCloudMlV1PredictionOutput {
2533 /** The number of data instances which resulted in errors. */ 2529 /// The number of data instances which resulted in errors.
2534 core.String errorCount; 2530 core.String errorCount;
2535 /** Node hours used by the batch prediction job. */ 2531
2532 /// Node hours used by the batch prediction job.
2536 core.double nodeHours; 2533 core.double nodeHours;
2537 /** 2534
2538 * The output Google Cloud Storage location provided at the job creation time. 2535 /// The output Google Cloud Storage location provided at the job creation
2539 */ 2536 /// time.
2540 core.String outputPath; 2537 core.String outputPath;
2541 /** The number of generated predictions. */ 2538
2539 /// The number of generated predictions.
2542 core.String predictionCount; 2540 core.String predictionCount;
2543 2541
2544 GoogleCloudMlV1PredictionOutput(); 2542 GoogleCloudMlV1PredictionOutput();
2545 2543
2546 GoogleCloudMlV1PredictionOutput.fromJson(core.Map _json) { 2544 GoogleCloudMlV1PredictionOutput.fromJson(core.Map _json) {
2547 if (_json.containsKey("errorCount")) { 2545 if (_json.containsKey("errorCount")) {
2548 errorCount = _json["errorCount"]; 2546 errorCount = _json["errorCount"];
2549 } 2547 }
2550 if (_json.containsKey("nodeHours")) { 2548 if (_json.containsKey("nodeHours")) {
2551 nodeHours = _json["nodeHours"]; 2549 nodeHours = _json["nodeHours"];
2552 } 2550 }
2553 if (_json.containsKey("outputPath")) { 2551 if (_json.containsKey("outputPath")) {
2554 outputPath = _json["outputPath"]; 2552 outputPath = _json["outputPath"];
2555 } 2553 }
2556 if (_json.containsKey("predictionCount")) { 2554 if (_json.containsKey("predictionCount")) {
2557 predictionCount = _json["predictionCount"]; 2555 predictionCount = _json["predictionCount"];
2558 } 2556 }
2559 } 2557 }
2560 2558
2561 core.Map<core.String, core.Object> toJson() { 2559 core.Map<core.String, core.Object> toJson() {
2562 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2560 final core.Map<core.String, core.Object> _json =
2561 new core.Map<core.String, core.Object>();
2563 if (errorCount != null) { 2562 if (errorCount != null) {
2564 _json["errorCount"] = errorCount; 2563 _json["errorCount"] = errorCount;
2565 } 2564 }
2566 if (nodeHours != null) { 2565 if (nodeHours != null) {
2567 _json["nodeHours"] = nodeHours; 2566 _json["nodeHours"] = nodeHours;
2568 } 2567 }
2569 if (outputPath != null) { 2568 if (outputPath != null) {
2570 _json["outputPath"] = outputPath; 2569 _json["outputPath"] = outputPath;
2571 } 2570 }
2572 if (predictionCount != null) { 2571 if (predictionCount != null) {
2573 _json["predictionCount"] = predictionCount; 2572 _json["predictionCount"] = predictionCount;
2574 } 2573 }
2575 return _json; 2574 return _json;
2576 } 2575 }
2577 } 2576 }
2578 2577
2579 /** Request message for the SetDefaultVersion request. */ 2578 /// Request message for the SetDefaultVersion request.
2580 class GoogleCloudMlV1SetDefaultVersionRequest { 2579 class GoogleCloudMlV1SetDefaultVersionRequest {
2581
2582 GoogleCloudMlV1SetDefaultVersionRequest(); 2580 GoogleCloudMlV1SetDefaultVersionRequest();
2583 2581
2584 GoogleCloudMlV1SetDefaultVersionRequest.fromJson(core.Map _json) { 2582 GoogleCloudMlV1SetDefaultVersionRequest.fromJson(core.Map _json) {}
2585 }
2586 2583
2587 core.Map<core.String, core.Object> toJson() { 2584 core.Map<core.String, core.Object> toJson() {
2588 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2585 final core.Map<core.String, core.Object> _json =
2586 new core.Map<core.String, core.Object>();
2589 return _json; 2587 return _json;
2590 } 2588 }
2591 } 2589 }
2592 2590
2593 /** Represents input parameters for a training job. */ 2591 /// Represents input parameters for a training job.
2594 class GoogleCloudMlV1TrainingInput { 2592 class GoogleCloudMlV1TrainingInput {
2595 /** Optional. Command line arguments to pass to the program. */ 2593 /// Optional. Command line arguments to pass to the program.
2596 core.List<core.String> args; 2594 core.List<core.String> args;
2597 /** Optional. The set of Hyperparameters to tune. */ 2595
2596 /// Optional. The set of Hyperparameters to tune.
2598 GoogleCloudMlV1HyperparameterSpec hyperparameters; 2597 GoogleCloudMlV1HyperparameterSpec hyperparameters;
2599 /** 2598
2600 * Optional. A Google Cloud Storage path in which to store training outputs 2599 /// Optional. A Google Cloud Storage path in which to store training outputs
2601 * and other data needed for training. This path is passed to your TensorFlow 2600 /// and other data needed for training. This path is passed to your
2602 * program as the 'job_dir' command-line argument. The benefit of specifying 2601 /// TensorFlow
2603 * this field is that Cloud ML validates the path for use in training. 2602 /// program as the 'job_dir' command-line argument. The benefit of specifying
2604 */ 2603 /// this field is that Cloud ML validates the path for use in training.
2605 core.String jobDir; 2604 core.String jobDir;
2606 /** 2605
2607 * Optional. Specifies the type of virtual machine to use for your training 2606 /// Optional. Specifies the type of virtual machine to use for your training
2608 * job's master worker. 2607 /// job's master worker.
2609 * 2608 ///
2610 * The following types are supported: 2609 /// The following types are supported:
2611 * 2610 ///
2612 * <dl> 2611 /// <dl>
2613 * <dt>standard</dt> 2612 /// <dt>standard</dt>
2614 * <dd> 2613 /// <dd>
2615 * A basic machine configuration suitable for training simple models with 2614 /// A basic machine configuration suitable for training simple models with
2616 * small to moderate datasets. 2615 /// small to moderate datasets.
2617 * </dd> 2616 /// </dd>
2618 * <dt>large_model</dt> 2617 /// <dt>large_model</dt>
2619 * <dd> 2618 /// <dd>
2620 * A machine with a lot of memory, specially suited for parameter servers 2619 /// A machine with a lot of memory, specially suited for parameter servers
2621 * when your model is large (having many hidden layers or layers with very 2620 /// when your model is large (having many hidden layers or layers with very
2622 * large numbers of nodes). 2621 /// large numbers of nodes).
2623 * </dd> 2622 /// </dd>
2624 * <dt>complex_model_s</dt> 2623 /// <dt>complex_model_s</dt>
2625 * <dd> 2624 /// <dd>
2626 * A machine suitable for the master and workers of the cluster when your 2625 /// A machine suitable for the master and workers of the cluster when your
2627 * model requires more computation than the standard machine can handle 2626 /// model requires more computation than the standard machine can handle
2628 * satisfactorily. 2627 /// satisfactorily.
2629 * </dd> 2628 /// </dd>
2630 * <dt>complex_model_m</dt> 2629 /// <dt>complex_model_m</dt>
2631 * <dd> 2630 /// <dd>
2632 * A machine with roughly twice the number of cores and roughly double the 2631 /// A machine with roughly twice the number of cores and roughly double the
2633 * memory of <code suppresswarning="true">complex_model_s</code>. 2632 /// memory of <code suppresswarning="true">complex_model_s</code>.
2634 * </dd> 2633 /// </dd>
2635 * <dt>complex_model_l</dt> 2634 /// <dt>complex_model_l</dt>
2636 * <dd> 2635 /// <dd>
2637 * A machine with roughly twice the number of cores and roughly double the 2636 /// A machine with roughly twice the number of cores and roughly double the
2638 * memory of <code suppresswarning="true">complex_model_m</code>. 2637 /// memory of <code suppresswarning="true">complex_model_m</code>.
2639 * </dd> 2638 /// </dd>
2640 * <dt>standard_gpu</dt> 2639 /// <dt>standard_gpu</dt>
2641 * <dd> 2640 /// <dd>
2642 * A machine equivalent to <code suppresswarning="true">standard</code> that 2641 /// A machine equivalent to <code suppresswarning="true">standard</code> that
2643 * also includes a 2642 /// also includes a
2644 * <a href="/ml-engine/docs/how-tos/using-gpus"> 2643 /// <a href="/ml-engine/docs/how-tos/using-gpus">
2645 * GPU that you can use in your trainer</a>. 2644 /// GPU that you can use in your trainer</a>.
2646 * </dd> 2645 /// </dd>
2647 * <dt>complex_model_m_gpu</dt> 2646 /// <dt>complex_model_m_gpu</dt>
2648 * <dd> 2647 /// <dd>
2649 * A machine equivalent to 2648 /// A machine equivalent to
2650 * <code suppresswarning="true">complex_model_m</code> that also includes 2649 /// <code suppresswarning="true">complex_model_m</code> that also includes
2651 * four GPUs. 2650 /// four GPUs.
2652 * </dd> 2651 /// </dd>
2653 * </dl> 2652 /// </dl>
2654 * 2653 ///
2655 * You must set this value when `scaleTier` is set to `CUSTOM`. 2654 /// You must set this value when `scaleTier` is set to `CUSTOM`.
2656 */
2657 core.String masterType; 2655 core.String masterType;
2658 /** 2656
2659 * Required. The Google Cloud Storage location of the packages with 2657 /// Required. The Google Cloud Storage location of the packages with
2660 * the training program and any additional dependencies. 2658 /// the training program and any additional dependencies.
2661 * The maximum number of package URIs is 100. 2659 /// The maximum number of package URIs is 100.
2662 */
2663 core.List<core.String> packageUris; 2660 core.List<core.String> packageUris;
2664 /** 2661
2665 * Optional. The number of parameter server replicas to use for the training 2662 /// Optional. The number of parameter server replicas to use for the training
2666 * job. Each replica in the cluster will be of the type specified in 2663 /// job. Each replica in the cluster will be of the type specified in
2667 * `parameter_server_type`. 2664 /// `parameter_server_type`.
2668 * 2665 ///
2669 * This value can only be used when `scale_tier` is set to `CUSTOM`.If you 2666 /// This value can only be used when `scale_tier` is set to `CUSTOM`.If you
2670 * set this value, you must also set `parameter_server_type`. 2667 /// set this value, you must also set `parameter_server_type`.
2671 */
2672 core.String parameterServerCount; 2668 core.String parameterServerCount;
2673 /** 2669
2674 * Optional. Specifies the type of virtual machine to use for your training 2670 /// Optional. Specifies the type of virtual machine to use for your training
2675 * job's parameter server. 2671 /// job's parameter server.
2676 * 2672 ///
2677 * The supported values are the same as those described in the entry for 2673 /// The supported values are the same as those described in the entry for
2678 * `master_type`. 2674 /// `master_type`.
2679 * 2675 ///
2680 * This value must be present when `scaleTier` is set to `CUSTOM` and 2676 /// This value must be present when `scaleTier` is set to `CUSTOM` and
2681 * `parameter_server_count` is greater than zero. 2677 /// `parameter_server_count` is greater than zero.
2682 */
2683 core.String parameterServerType; 2678 core.String parameterServerType;
2684 /** Required. The Python module name to run after installing the packages. */ 2679
2680 /// Required. The Python module name to run after installing the packages.
2685 core.String pythonModule; 2681 core.String pythonModule;
2686 /** Required. The Google Compute Engine region to run the training job in. */ 2682
2683 /// Required. The Google Compute Engine region to run the training job in.
2687 core.String region; 2684 core.String region;
2688 /** 2685
2689 * Optional. The Google Cloud ML runtime version to use for training. If not 2686 /// Optional. The Google Cloud ML runtime version to use for training. If
2690 * set, Google Cloud ML will choose the latest stable version. 2687 /// not
2691 */ 2688 /// set, Google Cloud ML will choose the latest stable version.
2692 core.String runtimeVersion; 2689 core.String runtimeVersion;
2693 /** 2690
2694 * Required. Specifies the machine types, the number of replicas for workers 2691 /// Required. Specifies the machine types, the number of replicas for workers
2695 * and parameter servers. 2692 /// and parameter servers.
2696 * Possible string values are: 2693 /// Possible string values are:
2697 * - "BASIC" : A single worker instance. This tier is suitable for learning 2694 /// - "BASIC" : A single worker instance. This tier is suitable for learning
2698 * how to use 2695 /// how to use
2699 * Cloud ML, and for experimenting with new models using small datasets. 2696 /// Cloud ML, and for experimenting with new models using small datasets.
2700 * - "STANDARD_1" : Many workers and a few parameter servers. 2697 /// - "STANDARD_1" : Many workers and a few parameter servers.
2701 * - "PREMIUM_1" : A large number of workers with many parameter servers. 2698 /// - "PREMIUM_1" : A large number of workers with many parameter servers.
2702 * - "BASIC_GPU" : A single worker instance [with a 2699 /// - "BASIC_GPU" : A single worker instance [with a
2703 * GPU](/ml-engine/docs/how-tos/using-gpus). 2700 /// GPU](/ml-engine/docs/how-tos/using-gpus).
2704 * - "CUSTOM" : The CUSTOM tier is not a set tier, but rather enables you to 2701 /// - "CUSTOM" : The CUSTOM tier is not a set tier, but rather enables you to
2705 * use your 2702 /// use your
2706 * own cluster specification. When you use this tier, set values to 2703 /// own cluster specification. When you use this tier, set values to
2707 * configure your processing cluster according to these guidelines: 2704 /// configure your processing cluster according to these guidelines:
2708 * 2705 ///
2709 * * You _must_ set `TrainingInput.masterType` to specify the type 2706 /// * You _must_ set `TrainingInput.masterType` to specify the type
2710 * of machine to use for your master node. This is the only required 2707 /// of machine to use for your master node. This is the only required
2711 * setting. 2708 /// setting.
2712 * 2709 ///
2713 * * You _may_ set `TrainingInput.workerCount` to specify the number of 2710 /// * You _may_ set `TrainingInput.workerCount` to specify the number of
2714 * workers to use. If you specify one or more workers, you _must_ also 2711 /// workers to use. If you specify one or more workers, you _must_ also
2715 * set `TrainingInput.workerType` to specify the type of machine to use 2712 /// set `TrainingInput.workerType` to specify the type of machine to use
2716 * for your worker nodes. 2713 /// for your worker nodes.
2717 * 2714 ///
2718 * * You _may_ set `TrainingInput.parameterServerCount` to specify the 2715 /// * You _may_ set `TrainingInput.parameterServerCount` to specify the
2719 * number of parameter servers to use. If you specify one or more 2716 /// number of parameter servers to use. If you specify one or more
2720 * parameter servers, you _must_ also set 2717 /// parameter servers, you _must_ also set
2721 * `TrainingInput.parameterServerType` to specify the type of machine to 2718 /// `TrainingInput.parameterServerType` to specify the type of machine to
2722 * use for your parameter servers. 2719 /// use for your parameter servers.
2723 * 2720 ///
2724 * Note that all of your workers must use the same machine type, which can 2721 /// Note that all of your workers must use the same machine type, which can
2725 * be different from your parameter server type and master type. Your 2722 /// be different from your parameter server type and master type. Your
2726 * parameter servers must likewise use the same machine type, which can be 2723 /// parameter servers must likewise use the same machine type, which can be
2727 * different from your worker type and master type. 2724 /// different from your worker type and master type.
2728 */
2729 core.String scaleTier; 2725 core.String scaleTier;
2730 /** 2726
2731 * Optional. The number of worker replicas to use for the training job. Each 2727 /// Optional. The number of worker replicas to use for the training job. Each
2732 * replica in the cluster will be of the type specified in `worker_type`. 2728 /// replica in the cluster will be of the type specified in `worker_type`.
2733 * 2729 ///
2734 * This value can only be used when `scale_tier` is set to `CUSTOM`. If you 2730 /// This value can only be used when `scale_tier` is set to `CUSTOM`. If you
2735 * set this value, you must also set `worker_type`. 2731 /// set this value, you must also set `worker_type`.
2736 */
2737 core.String workerCount; 2732 core.String workerCount;
2738 /** 2733
2739 * Optional. Specifies the type of virtual machine to use for your training 2734 /// Optional. Specifies the type of virtual machine to use for your training
2740 * job's worker nodes. 2735 /// job's worker nodes.
2741 * 2736 ///
2742 * The supported values are the same as those described in the entry for 2737 /// The supported values are the same as those described in the entry for
2743 * `masterType`. 2738 /// `masterType`.
2744 * 2739 ///
2745 * This value must be present when `scaleTier` is set to `CUSTOM` and 2740 /// This value must be present when `scaleTier` is set to `CUSTOM` and
2746 * `workerCount` is greater than zero. 2741 /// `workerCount` is greater than zero.
2747 */
2748 core.String workerType; 2742 core.String workerType;
2749 2743
2750 GoogleCloudMlV1TrainingInput(); 2744 GoogleCloudMlV1TrainingInput();
2751 2745
2752 GoogleCloudMlV1TrainingInput.fromJson(core.Map _json) { 2746 GoogleCloudMlV1TrainingInput.fromJson(core.Map _json) {
2753 if (_json.containsKey("args")) { 2747 if (_json.containsKey("args")) {
2754 args = _json["args"]; 2748 args = _json["args"];
2755 } 2749 }
2756 if (_json.containsKey("hyperparameters")) { 2750 if (_json.containsKey("hyperparameters")) {
2757 hyperparameters = new GoogleCloudMlV1HyperparameterSpec.fromJson(_json["hy perparameters"]); 2751 hyperparameters = new GoogleCloudMlV1HyperparameterSpec.fromJson(
2752 _json["hyperparameters"]);
2758 } 2753 }
2759 if (_json.containsKey("jobDir")) { 2754 if (_json.containsKey("jobDir")) {
2760 jobDir = _json["jobDir"]; 2755 jobDir = _json["jobDir"];
2761 } 2756 }
2762 if (_json.containsKey("masterType")) { 2757 if (_json.containsKey("masterType")) {
2763 masterType = _json["masterType"]; 2758 masterType = _json["masterType"];
2764 } 2759 }
2765 if (_json.containsKey("packageUris")) { 2760 if (_json.containsKey("packageUris")) {
2766 packageUris = _json["packageUris"]; 2761 packageUris = _json["packageUris"];
2767 } 2762 }
(...skipping 17 matching lines...) Expand all
2785 } 2780 }
2786 if (_json.containsKey("workerCount")) { 2781 if (_json.containsKey("workerCount")) {
2787 workerCount = _json["workerCount"]; 2782 workerCount = _json["workerCount"];
2788 } 2783 }
2789 if (_json.containsKey("workerType")) { 2784 if (_json.containsKey("workerType")) {
2790 workerType = _json["workerType"]; 2785 workerType = _json["workerType"];
2791 } 2786 }
2792 } 2787 }
2793 2788
2794 core.Map<core.String, core.Object> toJson() { 2789 core.Map<core.String, core.Object> toJson() {
2795 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2790 final core.Map<core.String, core.Object> _json =
2791 new core.Map<core.String, core.Object>();
2796 if (args != null) { 2792 if (args != null) {
2797 _json["args"] = args; 2793 _json["args"] = args;
2798 } 2794 }
2799 if (hyperparameters != null) { 2795 if (hyperparameters != null) {
2800 _json["hyperparameters"] = (hyperparameters).toJson(); 2796 _json["hyperparameters"] = (hyperparameters).toJson();
2801 } 2797 }
2802 if (jobDir != null) { 2798 if (jobDir != null) {
2803 _json["jobDir"] = jobDir; 2799 _json["jobDir"] = jobDir;
2804 } 2800 }
2805 if (masterType != null) { 2801 if (masterType != null) {
(...skipping 23 matching lines...) Expand all
2829 if (workerCount != null) { 2825 if (workerCount != null) {
2830 _json["workerCount"] = workerCount; 2826 _json["workerCount"] = workerCount;
2831 } 2827 }
2832 if (workerType != null) { 2828 if (workerType != null) {
2833 _json["workerType"] = workerType; 2829 _json["workerType"] = workerType;
2834 } 2830 }
2835 return _json; 2831 return _json;
2836 } 2832 }
2837 } 2833 }
2838 2834
2839 /** Represents results of a training job. Output only. */ 2835 /// Represents results of a training job. Output only.
2840 class GoogleCloudMlV1TrainingOutput { 2836 class GoogleCloudMlV1TrainingOutput {
2841 /** 2837 /// The number of hyperparameter tuning trials that completed successfully.
2842 * The number of hyperparameter tuning trials that completed successfully. 2838 /// Only set for hyperparameter tuning jobs.
2843 * Only set for hyperparameter tuning jobs.
2844 */
2845 core.String completedTrialCount; 2839 core.String completedTrialCount;
2846 /** The amount of ML units consumed by the job. */ 2840
2841 /// The amount of ML units consumed by the job.
2847 core.double consumedMLUnits; 2842 core.double consumedMLUnits;
2848 /** Whether this job is a hyperparameter tuning job. */ 2843
2844 /// Whether this job is a hyperparameter tuning job.
2849 core.bool isHyperparameterTuningJob; 2845 core.bool isHyperparameterTuningJob;
2850 /** 2846
2851 * Results for individual Hyperparameter trials. 2847 /// Results for individual Hyperparameter trials.
2852 * Only set for hyperparameter tuning jobs. 2848 /// Only set for hyperparameter tuning jobs.
2853 */
2854 core.List<GoogleCloudMlV1HyperparameterOutput> trials; 2849 core.List<GoogleCloudMlV1HyperparameterOutput> trials;
2855 2850
2856 GoogleCloudMlV1TrainingOutput(); 2851 GoogleCloudMlV1TrainingOutput();
2857 2852
2858 GoogleCloudMlV1TrainingOutput.fromJson(core.Map _json) { 2853 GoogleCloudMlV1TrainingOutput.fromJson(core.Map _json) {
2859 if (_json.containsKey("completedTrialCount")) { 2854 if (_json.containsKey("completedTrialCount")) {
2860 completedTrialCount = _json["completedTrialCount"]; 2855 completedTrialCount = _json["completedTrialCount"];
2861 } 2856 }
2862 if (_json.containsKey("consumedMLUnits")) { 2857 if (_json.containsKey("consumedMLUnits")) {
2863 consumedMLUnits = _json["consumedMLUnits"]; 2858 consumedMLUnits = _json["consumedMLUnits"];
2864 } 2859 }
2865 if (_json.containsKey("isHyperparameterTuningJob")) { 2860 if (_json.containsKey("isHyperparameterTuningJob")) {
2866 isHyperparameterTuningJob = _json["isHyperparameterTuningJob"]; 2861 isHyperparameterTuningJob = _json["isHyperparameterTuningJob"];
2867 } 2862 }
2868 if (_json.containsKey("trials")) { 2863 if (_json.containsKey("trials")) {
2869 trials = _json["trials"].map((value) => new GoogleCloudMlV1HyperparameterO utput.fromJson(value)).toList(); 2864 trials = _json["trials"]
2865 .map((value) =>
2866 new GoogleCloudMlV1HyperparameterOutput.fromJson(value))
2867 .toList();
2870 } 2868 }
2871 } 2869 }
2872 2870
2873 core.Map<core.String, core.Object> toJson() { 2871 core.Map<core.String, core.Object> toJson() {
2874 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2872 final core.Map<core.String, core.Object> _json =
2873 new core.Map<core.String, core.Object>();
2875 if (completedTrialCount != null) { 2874 if (completedTrialCount != null) {
2876 _json["completedTrialCount"] = completedTrialCount; 2875 _json["completedTrialCount"] = completedTrialCount;
2877 } 2876 }
2878 if (consumedMLUnits != null) { 2877 if (consumedMLUnits != null) {
2879 _json["consumedMLUnits"] = consumedMLUnits; 2878 _json["consumedMLUnits"] = consumedMLUnits;
2880 } 2879 }
2881 if (isHyperparameterTuningJob != null) { 2880 if (isHyperparameterTuningJob != null) {
2882 _json["isHyperparameterTuningJob"] = isHyperparameterTuningJob; 2881 _json["isHyperparameterTuningJob"] = isHyperparameterTuningJob;
2883 } 2882 }
2884 if (trials != null) { 2883 if (trials != null) {
2885 _json["trials"] = trials.map((value) => (value).toJson()).toList(); 2884 _json["trials"] = trials.map((value) => (value).toJson()).toList();
2886 } 2885 }
2887 return _json; 2886 return _json;
2888 } 2887 }
2889 } 2888 }
2890 2889
2891 /** 2890 /// Represents a version of the model.
2892 * Represents a version of the model. 2891 ///
2893 * 2892 /// Each version is a trained model deployed in the cloud, ready to handle
2894 * Each version is a trained model deployed in the cloud, ready to handle 2893 /// prediction requests. A model can have multiple versions. You can get
2895 * prediction requests. A model can have multiple versions. You can get 2894 /// information about all of the versions of a given model by calling
2896 * information about all of the versions of a given model by calling 2895 /// [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models .versions/list).
2897 * [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models. versions/list). 2896 ///
2898 * 2897 /// Next ID: 18
2899 * Next ID: 18
2900 */
2901 class GoogleCloudMlV1Version { 2898 class GoogleCloudMlV1Version {
2902 /** 2899 /// Automatically scale the number of nodes used to serve the model in
2903 * Automatically scale the number of nodes used to serve the model in 2900 /// response to increases and decreases in traffic. Care should be
2904 * response to increases and decreases in traffic. Care should be 2901 /// taken to ramp up traffic according to the model's ability to scale
2905 * taken to ramp up traffic according to the model's ability to scale 2902 /// or you will start seeing increases in latency and 429 response codes.
2906 * or you will start seeing increases in latency and 429 response codes.
2907 */
2908 GoogleCloudMlV1AutoScaling autoScaling; 2903 GoogleCloudMlV1AutoScaling autoScaling;
2909 /** Output only. The time the version was created. */ 2904
2905 /// Output only. The time the version was created.
2910 core.String createTime; 2906 core.String createTime;
2911 /** 2907
2912 * Required. The Google Cloud Storage location of the trained model used to 2908 /// Required. The Google Cloud Storage location of the trained model used to
2913 * create the version. See the 2909 /// create the version. See the
2914 * [overview of model 2910 /// [overview of model
2915 * deployment](/ml-engine/docs/concepts/deployment-overview) for more 2911 /// deployment](/ml-engine/docs/concepts/deployment-overview) for more
2916 * information. 2912 /// information.
2917 * 2913 ///
2918 * When passing Version to 2914 /// When passing Version to
2919 * [projects.models.versions.create](/ml-engine/reference/rest/v1/projects.mod els.versions/create) 2915 /// [projects.models.versions.create](/ml-engine/reference/rest/v1/projects.mo dels.versions/create)
2920 * the model service uses the specified location as the source of the model. 2916 /// the model service uses the specified location as the source of the model.
2921 * Once deployed, the model version is hosted by the prediction service, so 2917 /// Once deployed, the model version is hosted by the prediction service, so
2922 * this location is useful only as a historical record. 2918 /// this location is useful only as a historical record.
2923 * The total number of model files can't exceed 1000. 2919 /// The total number of model files can't exceed 1000.
2924 */
2925 core.String deploymentUri; 2920 core.String deploymentUri;
2926 /** 2921
2927 * Optional. The description specified for the version when it was created. 2922 /// Optional. The description specified for the version when it was created.
2928 */
2929 core.String description; 2923 core.String description;
2930 /** Output only. The details of a failure or a cancellation. */ 2924
2925 /// Output only. The details of a failure or a cancellation.
2931 core.String errorMessage; 2926 core.String errorMessage;
2932 /** 2927
2933 * Output only. If true, this version will be used to handle prediction 2928 /// Output only. If true, this version will be used to handle prediction
2934 * requests that do not specify a version. 2929 /// requests that do not specify a version.
2935 * 2930 ///
2936 * You can change the default version by calling 2931 /// You can change the default version by calling
2937 * [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1/project s.models.versions/setDefault). 2932 /// [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1/projec ts.models.versions/setDefault).
2938 */
2939 core.bool isDefault; 2933 core.bool isDefault;
2940 /** Output only. The time the version was last used for prediction. */ 2934
2935 /// Output only. The time the version was last used for prediction.
2941 core.String lastUseTime; 2936 core.String lastUseTime;
2942 /** 2937
2943 * Manually select the number of nodes to use for serving the 2938 /// Manually select the number of nodes to use for serving the
2944 * model. You should generally use `auto_scaling` with an appropriate 2939 /// model. You should generally use `auto_scaling` with an appropriate
2945 * `min_nodes` instead, but this option is available if you want more 2940 /// `min_nodes` instead, but this option is available if you want more
2946 * predictable billing. Beware that latency and error rates will increase 2941 /// predictable billing. Beware that latency and error rates will increase
2947 * if the traffic exceeds that capability of the system to serve it based 2942 /// if the traffic exceeds that capability of the system to serve it based
2948 * on the selected number of nodes. 2943 /// on the selected number of nodes.
2949 */
2950 GoogleCloudMlV1ManualScaling manualScaling; 2944 GoogleCloudMlV1ManualScaling manualScaling;
2951 /** 2945
2952 * Required.The name specified for the version when it was created. 2946 /// Required.The name specified for the version when it was created.
2953 * 2947 ///
2954 * The version name must be unique within the model it is created in. 2948 /// The version name must be unique within the model it is created in.
2955 */
2956 core.String name; 2949 core.String name;
2957 /** 2950
2958 * Optional. The Google Cloud ML runtime version to use for this deployment. 2951 /// Optional. The Google Cloud ML runtime version to use for this deployment.
2959 * If not set, Google Cloud ML will choose a version. 2952 /// If not set, Google Cloud ML will choose a version.
2960 */
2961 core.String runtimeVersion; 2953 core.String runtimeVersion;
2962 /** 2954
2963 * Output only. The state of a version. 2955 /// Output only. The state of a version.
2964 * Possible string values are: 2956 /// Possible string values are:
2965 * - "UNKNOWN" : The version state is unspecified. 2957 /// - "UNKNOWN" : The version state is unspecified.
2966 * - "READY" : The version is ready for prediction. 2958 /// - "READY" : The version is ready for prediction.
2967 * - "CREATING" : The version is in the process of creation. 2959 /// - "CREATING" : The version is in the process of creation.
2968 * - "FAILED" : The version failed to be created, possibly cancelled. 2960 /// - "FAILED" : The version failed to be created, possibly cancelled.
2969 * `error_message` should contain the details of the failure. 2961 /// `error_message` should contain the details of the failure.
2970 * - "DELETING" : The version is in the process of deletion. 2962 /// - "DELETING" : The version is in the process of deletion.
2971 */
2972 core.String state; 2963 core.String state;
2973 2964
2974 GoogleCloudMlV1Version(); 2965 GoogleCloudMlV1Version();
2975 2966
2976 GoogleCloudMlV1Version.fromJson(core.Map _json) { 2967 GoogleCloudMlV1Version.fromJson(core.Map _json) {
2977 if (_json.containsKey("autoScaling")) { 2968 if (_json.containsKey("autoScaling")) {
2978 autoScaling = new GoogleCloudMlV1AutoScaling.fromJson(_json["autoScaling"] ); 2969 autoScaling =
2970 new GoogleCloudMlV1AutoScaling.fromJson(_json["autoScaling"]);
2979 } 2971 }
2980 if (_json.containsKey("createTime")) { 2972 if (_json.containsKey("createTime")) {
2981 createTime = _json["createTime"]; 2973 createTime = _json["createTime"];
2982 } 2974 }
2983 if (_json.containsKey("deploymentUri")) { 2975 if (_json.containsKey("deploymentUri")) {
2984 deploymentUri = _json["deploymentUri"]; 2976 deploymentUri = _json["deploymentUri"];
2985 } 2977 }
2986 if (_json.containsKey("description")) { 2978 if (_json.containsKey("description")) {
2987 description = _json["description"]; 2979 description = _json["description"];
2988 } 2980 }
2989 if (_json.containsKey("errorMessage")) { 2981 if (_json.containsKey("errorMessage")) {
2990 errorMessage = _json["errorMessage"]; 2982 errorMessage = _json["errorMessage"];
2991 } 2983 }
2992 if (_json.containsKey("isDefault")) { 2984 if (_json.containsKey("isDefault")) {
2993 isDefault = _json["isDefault"]; 2985 isDefault = _json["isDefault"];
2994 } 2986 }
2995 if (_json.containsKey("lastUseTime")) { 2987 if (_json.containsKey("lastUseTime")) {
2996 lastUseTime = _json["lastUseTime"]; 2988 lastUseTime = _json["lastUseTime"];
2997 } 2989 }
2998 if (_json.containsKey("manualScaling")) { 2990 if (_json.containsKey("manualScaling")) {
2999 manualScaling = new GoogleCloudMlV1ManualScaling.fromJson(_json["manualSca ling"]); 2991 manualScaling =
2992 new GoogleCloudMlV1ManualScaling.fromJson(_json["manualScaling"]);
3000 } 2993 }
3001 if (_json.containsKey("name")) { 2994 if (_json.containsKey("name")) {
3002 name = _json["name"]; 2995 name = _json["name"];
3003 } 2996 }
3004 if (_json.containsKey("runtimeVersion")) { 2997 if (_json.containsKey("runtimeVersion")) {
3005 runtimeVersion = _json["runtimeVersion"]; 2998 runtimeVersion = _json["runtimeVersion"];
3006 } 2999 }
3007 if (_json.containsKey("state")) { 3000 if (_json.containsKey("state")) {
3008 state = _json["state"]; 3001 state = _json["state"];
3009 } 3002 }
3010 } 3003 }
3011 3004
3012 core.Map<core.String, core.Object> toJson() { 3005 core.Map<core.String, core.Object> toJson() {
3013 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3006 final core.Map<core.String, core.Object> _json =
3007 new core.Map<core.String, core.Object>();
3014 if (autoScaling != null) { 3008 if (autoScaling != null) {
3015 _json["autoScaling"] = (autoScaling).toJson(); 3009 _json["autoScaling"] = (autoScaling).toJson();
3016 } 3010 }
3017 if (createTime != null) { 3011 if (createTime != null) {
3018 _json["createTime"] = createTime; 3012 _json["createTime"] = createTime;
3019 } 3013 }
3020 if (deploymentUri != null) { 3014 if (deploymentUri != null) {
3021 _json["deploymentUri"] = deploymentUri; 3015 _json["deploymentUri"] = deploymentUri;
3022 } 3016 }
3023 if (description != null) { 3017 if (description != null) {
(...skipping 17 matching lines...) Expand all
3041 if (runtimeVersion != null) { 3035 if (runtimeVersion != null) {
3042 _json["runtimeVersion"] = runtimeVersion; 3036 _json["runtimeVersion"] = runtimeVersion;
3043 } 3037 }
3044 if (state != null) { 3038 if (state != null) {
3045 _json["state"] = state; 3039 _json["state"] = state;
3046 } 3040 }
3047 return _json; 3041 return _json;
3048 } 3042 }
3049 } 3043 }
3050 3044
3051 /** Options for automatically scaling a model. */ 3045 /// Specifies the audit configuration for a service.
3052 class GoogleCloudMlV1beta1AutoScaling { 3046 /// The configuration determines which permission types are logged, and what
3053 /** 3047 /// identities, if any, are exempted from logging.
3054 * Optional. The minimum number of nodes to allocate for this model. These 3048 /// An AuditConfig must have one or more AuditLogConfigs.
3055 * nodes are always up, starting from the time the model is deployed, so the 3049 ///
3056 * cost of operating this model will be at least 3050 /// If there are AuditConfigs for both `allServices` and a specific service,
3057 * `rate` * `min_nodes` * number of hours since last billing cycle, 3051 /// the union of the two AuditConfigs is used for that service: the log_types
3058 * where `rate` is the cost per node-hour as documented in 3052 /// specified in each AuditConfig are enabled, and the exempted_members in each
3059 * [pricing](https://cloud.google.com/ml-engine/pricing#prediction_pricing), 3053 /// AuditConfig are exempted.
3060 * even if no predictions are performed. There is additional cost for each 3054 ///
3061 * prediction performed. 3055 /// Example Policy with multiple AuditConfigs:
3062 * 3056 ///
3063 * Unlike manual scaling, if the load gets too heavy for the nodes 3057 /// {
3064 * that are up, the service will automatically add nodes to handle the 3058 /// "audit_configs": [
3065 * increased load as well as scale back as traffic drops, always maintaining 3059 /// {
3066 * at least `min_nodes`. You will be charged for the time in which additional 3060 /// "service": "allServices"
3067 * nodes are used. 3061 /// "audit_log_configs": [
3068 * 3062 /// {
3069 * If not specified, `min_nodes` defaults to 0, in which case, when traffic 3063 /// "log_type": "DATA_READ",
3070 * to a model stops (and after a cool-down period), nodes will be shut down 3064 /// "exempted_members": [
3071 * and no charges will be incurred until traffic to the model resumes. 3065 /// "user:foo@gmail.com"
3072 */ 3066 /// ]
3073 core.int minNodes; 3067 /// },
3074 3068 /// {
3075 GoogleCloudMlV1beta1AutoScaling(); 3069 /// "log_type": "DATA_WRITE",
3076 3070 /// },
3077 GoogleCloudMlV1beta1AutoScaling.fromJson(core.Map _json) { 3071 /// {
3078 if (_json.containsKey("minNodes")) { 3072 /// "log_type": "ADMIN_READ",
3079 minNodes = _json["minNodes"]; 3073 /// }
3080 } 3074 /// ]
3081 } 3075 /// },
3082 3076 /// {
3083 core.Map<core.String, core.Object> toJson() { 3077 /// "service": "fooservice.googleapis.com"
3084 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3078 /// "audit_log_configs": [
3085 if (minNodes != null) { 3079 /// {
3086 _json["minNodes"] = minNodes; 3080 /// "log_type": "DATA_READ",
3087 } 3081 /// },
3088 return _json; 3082 /// {
3089 } 3083 /// "log_type": "DATA_WRITE",
3090 } 3084 /// "exempted_members": [
3091 3085 /// "user:bar@gmail.com"
3092 /** Options for manually scaling a model. */ 3086 /// ]
3093 class GoogleCloudMlV1beta1ManualScaling { 3087 /// }
3094 /** 3088 /// ]
3095 * The number of nodes to allocate for this model. These nodes are always up, 3089 /// }
3096 * starting from the time the model is deployed, so the cost of operating 3090 /// ]
3097 * this model will be proportional to `nodes` * number of hours since 3091 /// }
3098 * last billing cycle plus the cost for each prediction performed. 3092 ///
3099 */ 3093 /// For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
3100 core.int nodes; 3094 /// logging. It also exempts foo@gmail.com from DATA_READ logging, and
3101 3095 /// bar@gmail.com from DATA_WRITE logging.
3102 GoogleCloudMlV1beta1ManualScaling();
3103
3104 GoogleCloudMlV1beta1ManualScaling.fromJson(core.Map _json) {
3105 if (_json.containsKey("nodes")) {
3106 nodes = _json["nodes"];
3107 }
3108 }
3109
3110 core.Map<core.String, core.Object> toJson() {
3111 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3112 if (nodes != null) {
3113 _json["nodes"] = nodes;
3114 }
3115 return _json;
3116 }
3117 }
3118
3119 /**
3120 * Represents the metadata of the long-running operation.
3121 *
3122 * Next ID: 9
3123 */
3124 class GoogleCloudMlV1beta1OperationMetadata {
3125 /** The time the operation was submitted. */
3126 core.String createTime;
3127 /** The time operation processing completed. */
3128 core.String endTime;
3129 /** Indicates whether a request to cancel this operation has been made. */
3130 core.bool isCancellationRequested;
3131 /** Contains the name of the model associated with the operation. */
3132 core.String modelName;
3133 /**
3134 * The operation type.
3135 * Possible string values are:
3136 * - "OPERATION_TYPE_UNSPECIFIED" : Unspecified operation type.
3137 * - "CREATE_VERSION" : An operation to create a new version.
3138 * - "DELETE_VERSION" : An operation to delete an existing version.
3139 * - "DELETE_MODEL" : An operation to delete an existing model.
3140 * - "UPDATE_MODEL" : An operation to update an existing model.
3141 * - "UPDATE_VERSION" : An operation to update an existing version.
3142 */
3143 core.String operationType;
3144 /** The time operation processing started. */
3145 core.String startTime;
3146 /** Contains the version associated with the operation. */
3147 GoogleCloudMlV1beta1Version version;
3148
3149 GoogleCloudMlV1beta1OperationMetadata();
3150
3151 GoogleCloudMlV1beta1OperationMetadata.fromJson(core.Map _json) {
3152 if (_json.containsKey("createTime")) {
3153 createTime = _json["createTime"];
3154 }
3155 if (_json.containsKey("endTime")) {
3156 endTime = _json["endTime"];
3157 }
3158 if (_json.containsKey("isCancellationRequested")) {
3159 isCancellationRequested = _json["isCancellationRequested"];
3160 }
3161 if (_json.containsKey("modelName")) {
3162 modelName = _json["modelName"];
3163 }
3164 if (_json.containsKey("operationType")) {
3165 operationType = _json["operationType"];
3166 }
3167 if (_json.containsKey("startTime")) {
3168 startTime = _json["startTime"];
3169 }
3170 if (_json.containsKey("version")) {
3171 version = new GoogleCloudMlV1beta1Version.fromJson(_json["version"]);
3172 }
3173 }
3174
3175 core.Map<core.String, core.Object> toJson() {
3176 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3177 if (createTime != null) {
3178 _json["createTime"] = createTime;
3179 }
3180 if (endTime != null) {
3181 _json["endTime"] = endTime;
3182 }
3183 if (isCancellationRequested != null) {
3184 _json["isCancellationRequested"] = isCancellationRequested;
3185 }
3186 if (modelName != null) {
3187 _json["modelName"] = modelName;
3188 }
3189 if (operationType != null) {
3190 _json["operationType"] = operationType;
3191 }
3192 if (startTime != null) {
3193 _json["startTime"] = startTime;
3194 }
3195 if (version != null) {
3196 _json["version"] = (version).toJson();
3197 }
3198 return _json;
3199 }
3200 }
3201
3202 /**
3203 * Represents a version of the model.
3204 *
3205 * Each version is a trained model deployed in the cloud, ready to handle
3206 * prediction requests. A model can have multiple versions. You can get
3207 * information about all of the versions of a given model by calling
3208 * [projects.models.versions.list](/ml-engine/reference/rest/v1beta1/projects.mo dels.versions/list).
3209 *
3210 * Next ID: 18
3211 */
3212 class GoogleCloudMlV1beta1Version {
3213 /**
3214 * Automatically scale the number of nodes used to serve the model in
3215 * response to increases and decreases in traffic. Care should be
3216 * taken to ramp up traffic according to the model's ability to scale
3217 * or you will start seeing increases in latency and 429 response codes.
3218 */
3219 GoogleCloudMlV1beta1AutoScaling autoScaling;
3220 /** Output only. The time the version was created. */
3221 core.String createTime;
3222 /**
3223 * Required. The Google Cloud Storage location of the trained model used to
3224 * create the version. See the
3225 * [overview of model
3226 * deployment](/ml-engine/docs/concepts/deployment-overview) for more
3227 * information.
3228 *
3229 * When passing Version to
3230 * [projects.models.versions.create](/ml-engine/reference/rest/v1beta1/project s.models.versions/create)
3231 * the model service uses the specified location as the source of the model.
3232 * Once deployed, the model version is hosted by the prediction service, so
3233 * this location is useful only as a historical record.
3234 * The total number of model files can't exceed 1000.
3235 */
3236 core.String deploymentUri;
3237 /**
3238 * Optional. The description specified for the version when it was created.
3239 */
3240 core.String description;
3241 /** Output only. The details of a failure or a cancellation. */
3242 core.String errorMessage;
3243 /**
3244 * Output only. If true, this version will be used to handle prediction
3245 * requests that do not specify a version.
3246 *
3247 * You can change the default version by calling
3248 * [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1beta1/pr ojects.models.versions/setDefault).
3249 */
3250 core.bool isDefault;
3251 /** Output only. The time the version was last used for prediction. */
3252 core.String lastUseTime;
3253 /**
3254 * Manually select the number of nodes to use for serving the
3255 * model. You should generally use `auto_scaling` with an appropriate
3256 * `min_nodes` instead, but this option is available if you want more
3257 * predictable billing. Beware that latency and error rates will increase
3258 * if the traffic exceeds that capability of the system to serve it based
3259 * on the selected number of nodes.
3260 */
3261 GoogleCloudMlV1beta1ManualScaling manualScaling;
3262 /**
3263 * Required.The name specified for the version when it was created.
3264 *
3265 * The version name must be unique within the model it is created in.
3266 */
3267 core.String name;
3268 /**
3269 * Optional. The Google Cloud ML runtime version to use for this deployment.
3270 * If not set, Google Cloud ML will choose a version.
3271 */
3272 core.String runtimeVersion;
3273 /**
3274 * Output only. The state of a version.
3275 * Possible string values are:
3276 * - "UNKNOWN" : The version state is unspecified.
3277 * - "READY" : The version is ready for prediction.
3278 * - "CREATING" : The version is in the process of creation.
3279 * - "FAILED" : The version failed to be created, possibly cancelled.
3280 * `error_message` should contain the details of the failure.
3281 * - "DELETING" : The version is in the process of deletion.
3282 */
3283 core.String state;
3284
3285 GoogleCloudMlV1beta1Version();
3286
3287 GoogleCloudMlV1beta1Version.fromJson(core.Map _json) {
3288 if (_json.containsKey("autoScaling")) {
3289 autoScaling = new GoogleCloudMlV1beta1AutoScaling.fromJson(_json["autoScal ing"]);
3290 }
3291 if (_json.containsKey("createTime")) {
3292 createTime = _json["createTime"];
3293 }
3294 if (_json.containsKey("deploymentUri")) {
3295 deploymentUri = _json["deploymentUri"];
3296 }
3297 if (_json.containsKey("description")) {
3298 description = _json["description"];
3299 }
3300 if (_json.containsKey("errorMessage")) {
3301 errorMessage = _json["errorMessage"];
3302 }
3303 if (_json.containsKey("isDefault")) {
3304 isDefault = _json["isDefault"];
3305 }
3306 if (_json.containsKey("lastUseTime")) {
3307 lastUseTime = _json["lastUseTime"];
3308 }
3309 if (_json.containsKey("manualScaling")) {
3310 manualScaling = new GoogleCloudMlV1beta1ManualScaling.fromJson(_json["manu alScaling"]);
3311 }
3312 if (_json.containsKey("name")) {
3313 name = _json["name"];
3314 }
3315 if (_json.containsKey("runtimeVersion")) {
3316 runtimeVersion = _json["runtimeVersion"];
3317 }
3318 if (_json.containsKey("state")) {
3319 state = _json["state"];
3320 }
3321 }
3322
3323 core.Map<core.String, core.Object> toJson() {
3324 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3325 if (autoScaling != null) {
3326 _json["autoScaling"] = (autoScaling).toJson();
3327 }
3328 if (createTime != null) {
3329 _json["createTime"] = createTime;
3330 }
3331 if (deploymentUri != null) {
3332 _json["deploymentUri"] = deploymentUri;
3333 }
3334 if (description != null) {
3335 _json["description"] = description;
3336 }
3337 if (errorMessage != null) {
3338 _json["errorMessage"] = errorMessage;
3339 }
3340 if (isDefault != null) {
3341 _json["isDefault"] = isDefault;
3342 }
3343 if (lastUseTime != null) {
3344 _json["lastUseTime"] = lastUseTime;
3345 }
3346 if (manualScaling != null) {
3347 _json["manualScaling"] = (manualScaling).toJson();
3348 }
3349 if (name != null) {
3350 _json["name"] = name;
3351 }
3352 if (runtimeVersion != null) {
3353 _json["runtimeVersion"] = runtimeVersion;
3354 }
3355 if (state != null) {
3356 _json["state"] = state;
3357 }
3358 return _json;
3359 }
3360 }
3361
3362 /** Write a Cloud Audit log */
3363 class GoogleIamV1LogConfigCloudAuditOptions {
3364 /**
3365 * The log_name to populate in the Cloud Audit Record.
3366 * Possible string values are:
3367 * - "UNSPECIFIED_LOG_NAME" : Default. Should not be used.
3368 * - "ADMIN_ACTIVITY" : Corresponds to "cloudaudit.googleapis.com/activity"
3369 * - "DATA_ACCESS" : Corresponds to "cloudaudit.googleapis.com/data_access"
3370 */
3371 core.String logName;
3372
3373 GoogleIamV1LogConfigCloudAuditOptions();
3374
3375 GoogleIamV1LogConfigCloudAuditOptions.fromJson(core.Map _json) {
3376 if (_json.containsKey("logName")) {
3377 logName = _json["logName"];
3378 }
3379 }
3380
3381 core.Map<core.String, core.Object> toJson() {
3382 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3383 if (logName != null) {
3384 _json["logName"] = logName;
3385 }
3386 return _json;
3387 }
3388 }
3389
3390 /**
3391 * Increment a streamz counter with the specified metric and field names.
3392 *
3393 * Metric names should start with a '/', generally be lowercase-only,
3394 * and end in "_count". Field names should not contain an initial slash.
3395 * The actual exported metric names will have "/iam/policy" prepended.
3396 *
3397 * Field names correspond to IAM request parameters and field values are
3398 * their respective values.
3399 *
3400 * At present the only supported field names are
3401 * - "iam_principal", corresponding to IAMContext.principal;
3402 * - "" (empty string), resulting in one aggretated counter with no field.
3403 *
3404 * Examples:
3405 * counter { metric: "/debug_access_count" field: "iam_principal" }
3406 * ==> increment counter /iam/policy/backend_debug_access_count
3407 * {iam_principal=[value of IAMContext.principal]}
3408 *
3409 * At this time we do not support:
3410 * * multiple field names (though this may be supported in the future)
3411 * * decrementing the counter
3412 * * incrementing it by anything other than 1
3413 */
3414 class GoogleIamV1LogConfigCounterOptions {
3415 /** The field value to attribute. */
3416 core.String field;
3417 /** The metric to update. */
3418 core.String metric;
3419
3420 GoogleIamV1LogConfigCounterOptions();
3421
3422 GoogleIamV1LogConfigCounterOptions.fromJson(core.Map _json) {
3423 if (_json.containsKey("field")) {
3424 field = _json["field"];
3425 }
3426 if (_json.containsKey("metric")) {
3427 metric = _json["metric"];
3428 }
3429 }
3430
3431 core.Map<core.String, core.Object> toJson() {
3432 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3433 if (field != null) {
3434 _json["field"] = field;
3435 }
3436 if (metric != null) {
3437 _json["metric"] = metric;
3438 }
3439 return _json;
3440 }
3441 }
3442
3443 /** Write a Data Access (Gin) log */
3444 class GoogleIamV1LogConfigDataAccessOptions {
3445 /**
3446 * Whether Gin logging should happen in a fail-closed manner at the caller.
3447 * This is relevant only in the LocalIAM implementation, for now.
3448 * Possible string values are:
3449 * - "LOG_MODE_UNSPECIFIED" : Client is not required to write a partial Gin
3450 * log immediately after
3451 * the authorization check. If client chooses to write one and it fails,
3452 * client may either fail open (allow the operation to continue) or
3453 * fail closed (handle as a DENY outcome).
3454 * - "LOG_FAIL_CLOSED" : The application's operation in the context of which
3455 * this authorization
3456 * check is being made may only be performed if it is successfully logged
3457 * to Gin. For instance, the authorization library may satisfy this
3458 * obligation by emitting a partial log entry at authorization check time
3459 * and only returning ALLOW to the application if it succeeds.
3460 *
3461 * If a matching Rule has this directive, but the client has not indicated
3462 * that it will honor such requirements, then the IAM check will result in
3463 * authorization failure by setting CheckPolicyResponse.success=false.
3464 */
3465 core.String logMode;
3466
3467 GoogleIamV1LogConfigDataAccessOptions();
3468
3469 GoogleIamV1LogConfigDataAccessOptions.fromJson(core.Map _json) {
3470 if (_json.containsKey("logMode")) {
3471 logMode = _json["logMode"];
3472 }
3473 }
3474
3475 core.Map<core.String, core.Object> toJson() {
3476 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3477 if (logMode != null) {
3478 _json["logMode"] = logMode;
3479 }
3480 return _json;
3481 }
3482 }
3483
3484 /**
3485 * Specifies the audit configuration for a service.
3486 * The configuration determines which permission types are logged, and what
3487 * identities, if any, are exempted from logging.
3488 * An AuditConfig must have one or more AuditLogConfigs.
3489 *
3490 * If there are AuditConfigs for both `allServices` and a specific service,
3491 * the union of the two AuditConfigs is used for that service: the log_types
3492 * specified in each AuditConfig are enabled, and the exempted_members in each
3493 * AuditConfig are exempted.
3494 *
3495 * Example Policy with multiple AuditConfigs:
3496 *
3497 * {
3498 * "audit_configs": [
3499 * {
3500 * "service": "allServices"
3501 * "audit_log_configs": [
3502 * {
3503 * "log_type": "DATA_READ",
3504 * "exempted_members": [
3505 * "user:foo@gmail.com"
3506 * ]
3507 * },
3508 * {
3509 * "log_type": "DATA_WRITE",
3510 * },
3511 * {
3512 * "log_type": "ADMIN_READ",
3513 * }
3514 * ]
3515 * },
3516 * {
3517 * "service": "fooservice.googleapis.com"
3518 * "audit_log_configs": [
3519 * {
3520 * "log_type": "DATA_READ",
3521 * },
3522 * {
3523 * "log_type": "DATA_WRITE",
3524 * "exempted_members": [
3525 * "user:bar@gmail.com"
3526 * ]
3527 * }
3528 * ]
3529 * }
3530 * ]
3531 * }
3532 *
3533 * For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
3534 * logging. It also exempts foo@gmail.com from DATA_READ logging, and
3535 * bar@gmail.com from DATA_WRITE logging.
3536 */
3537 class GoogleIamV1AuditConfig { 3096 class GoogleIamV1AuditConfig {
3538 /** 3097 /// The configuration for logging of each type of permission.
3539 * The configuration for logging of each type of permission. 3098 /// Next ID: 4
3540 * Next ID: 4
3541 */
3542 core.List<GoogleIamV1AuditLogConfig> auditLogConfigs; 3099 core.List<GoogleIamV1AuditLogConfig> auditLogConfigs;
3543 core.List<core.String> exemptedMembers; 3100 core.List<core.String> exemptedMembers;
3544 /** 3101
3545 * Specifies a service that will be enabled for audit logging. 3102 /// Specifies a service that will be enabled for audit logging.
3546 * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. 3103 /// For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
3547 * `allServices` is a special value that covers all services. 3104 /// `allServices` is a special value that covers all services.
3548 */
3549 core.String service; 3105 core.String service;
3550 3106
3551 GoogleIamV1AuditConfig(); 3107 GoogleIamV1AuditConfig();
3552 3108
3553 GoogleIamV1AuditConfig.fromJson(core.Map _json) { 3109 GoogleIamV1AuditConfig.fromJson(core.Map _json) {
3554 if (_json.containsKey("auditLogConfigs")) { 3110 if (_json.containsKey("auditLogConfigs")) {
3555 auditLogConfigs = _json["auditLogConfigs"].map((value) => new GoogleIamV1A uditLogConfig.fromJson(value)).toList(); 3111 auditLogConfigs = _json["auditLogConfigs"]
3112 .map((value) => new GoogleIamV1AuditLogConfig.fromJson(value))
3113 .toList();
3556 } 3114 }
3557 if (_json.containsKey("exemptedMembers")) { 3115 if (_json.containsKey("exemptedMembers")) {
3558 exemptedMembers = _json["exemptedMembers"]; 3116 exemptedMembers = _json["exemptedMembers"];
3559 } 3117 }
3560 if (_json.containsKey("service")) { 3118 if (_json.containsKey("service")) {
3561 service = _json["service"]; 3119 service = _json["service"];
3562 } 3120 }
3563 } 3121 }
3564 3122
3565 core.Map<core.String, core.Object> toJson() { 3123 core.Map<core.String, core.Object> toJson() {
3566 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3124 final core.Map<core.String, core.Object> _json =
3125 new core.Map<core.String, core.Object>();
3567 if (auditLogConfigs != null) { 3126 if (auditLogConfigs != null) {
3568 _json["auditLogConfigs"] = auditLogConfigs.map((value) => (value).toJson() ).toList(); 3127 _json["auditLogConfigs"] =
3128 auditLogConfigs.map((value) => (value).toJson()).toList();
3569 } 3129 }
3570 if (exemptedMembers != null) { 3130 if (exemptedMembers != null) {
3571 _json["exemptedMembers"] = exemptedMembers; 3131 _json["exemptedMembers"] = exemptedMembers;
3572 } 3132 }
3573 if (service != null) { 3133 if (service != null) {
3574 _json["service"] = service; 3134 _json["service"] = service;
3575 } 3135 }
3576 return _json; 3136 return _json;
3577 } 3137 }
3578 } 3138 }
3579 3139
3580 /** 3140 /// Provides the configuration for logging a type of permissions.
3581 * Provides the configuration for logging a type of permissions. 3141 /// Example:
3582 * Example: 3142 ///
3583 * 3143 /// {
3584 * { 3144 /// "audit_log_configs": [
3585 * "audit_log_configs": [ 3145 /// {
3586 * { 3146 /// "log_type": "DATA_READ",
3587 * "log_type": "DATA_READ", 3147 /// "exempted_members": [
3588 * "exempted_members": [ 3148 /// "user:foo@gmail.com"
3589 * "user:foo@gmail.com" 3149 /// ]
3590 * ] 3150 /// },
3591 * }, 3151 /// {
3592 * { 3152 /// "log_type": "DATA_WRITE",
3593 * "log_type": "DATA_WRITE", 3153 /// }
3594 * } 3154 /// ]
3595 * ] 3155 /// }
3596 * } 3156 ///
3597 * 3157 /// This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
3598 * This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting 3158 /// foo@gmail.com from DATA_READ logging.
3599 * foo@gmail.com from DATA_READ logging.
3600 */
3601 class GoogleIamV1AuditLogConfig { 3159 class GoogleIamV1AuditLogConfig {
3602 /** 3160 /// Specifies the identities that do not cause logging for this type of
3603 * Specifies the identities that do not cause logging for this type of 3161 /// permission.
3604 * permission. 3162 /// Follows the same format of Binding.members.
3605 * Follows the same format of Binding.members.
3606 */
3607 core.List<core.String> exemptedMembers; 3163 core.List<core.String> exemptedMembers;
3608 /** 3164
3609 * The log type that this config enables. 3165 /// The log type that this config enables.
3610 * Possible string values are: 3166 /// Possible string values are:
3611 * - "LOG_TYPE_UNSPECIFIED" : Default case. Should never be this. 3167 /// - "LOG_TYPE_UNSPECIFIED" : Default case. Should never be this.
3612 * - "ADMIN_READ" : Admin reads. Example: CloudIAM getIamPolicy 3168 /// - "ADMIN_READ" : Admin reads. Example: CloudIAM getIamPolicy
3613 * - "DATA_WRITE" : Data writes. Example: CloudSQL Users create 3169 /// - "DATA_WRITE" : Data writes. Example: CloudSQL Users create
3614 * - "DATA_READ" : Data reads. Example: CloudSQL Users list 3170 /// - "DATA_READ" : Data reads. Example: CloudSQL Users list
3615 */
3616 core.String logType; 3171 core.String logType;
3617 3172
3618 GoogleIamV1AuditLogConfig(); 3173 GoogleIamV1AuditLogConfig();
3619 3174
3620 GoogleIamV1AuditLogConfig.fromJson(core.Map _json) { 3175 GoogleIamV1AuditLogConfig.fromJson(core.Map _json) {
3621 if (_json.containsKey("exemptedMembers")) { 3176 if (_json.containsKey("exemptedMembers")) {
3622 exemptedMembers = _json["exemptedMembers"]; 3177 exemptedMembers = _json["exemptedMembers"];
3623 } 3178 }
3624 if (_json.containsKey("logType")) { 3179 if (_json.containsKey("logType")) {
3625 logType = _json["logType"]; 3180 logType = _json["logType"];
3626 } 3181 }
3627 } 3182 }
3628 3183
3629 core.Map<core.String, core.Object> toJson() { 3184 core.Map<core.String, core.Object> toJson() {
3630 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3185 final core.Map<core.String, core.Object> _json =
3186 new core.Map<core.String, core.Object>();
3631 if (exemptedMembers != null) { 3187 if (exemptedMembers != null) {
3632 _json["exemptedMembers"] = exemptedMembers; 3188 _json["exemptedMembers"] = exemptedMembers;
3633 } 3189 }
3634 if (logType != null) { 3190 if (logType != null) {
3635 _json["logType"] = logType; 3191 _json["logType"] = logType;
3636 } 3192 }
3637 return _json; 3193 return _json;
3638 } 3194 }
3639 } 3195 }
3640 3196
3641 /** Associates `members` with a `role`. */ 3197 /// Associates `members` with a `role`.
3642 class GoogleIamV1Binding { 3198 class GoogleIamV1Binding {
3643 /** 3199 /// The condition that is associated with this binding.
3644 * The condition that is associated with this binding. 3200 /// NOTE: an unsatisfied condition will not allow user access via current
3645 * NOTE: an unsatisfied condition will not allow user access via current 3201 /// binding. Different bindings, including their conditions, are examined
3646 * binding. Different bindings, including their conditions, are examined 3202 /// independently.
3647 * independently. 3203 /// This field is GOOGLE_INTERNAL.
3648 * This field is GOOGLE_INTERNAL.
3649 */
3650 GoogleTypeExpr condition; 3204 GoogleTypeExpr condition;
3651 /** 3205
3652 * Specifies the identities requesting access for a Cloud Platform resource. 3206 /// Specifies the identities requesting access for a Cloud Platform resource.
3653 * `members` can have the following values: 3207 /// `members` can have the following values:
3654 * 3208 ///
3655 * * `allUsers`: A special identifier that represents anyone who is 3209 /// * `allUsers`: A special identifier that represents anyone who is
3656 * on the internet; with or without a Google account. 3210 /// on the internet; with or without a Google account.
3657 * 3211 ///
3658 * * `allAuthenticatedUsers`: A special identifier that represents anyone 3212 /// * `allAuthenticatedUsers`: A special identifier that represents anyone
3659 * who is authenticated with a Google account or a service account. 3213 /// who is authenticated with a Google account or a service account.
3660 * 3214 ///
3661 * * `user:{emailid}`: An email address that represents a specific Google 3215 /// * `user:{emailid}`: An email address that represents a specific Google
3662 * account. For example, `alice@gmail.com` or `joe@example.com`. 3216 /// account. For example, `alice@gmail.com` or `joe@example.com`.
3663 * 3217 ///
3664 * 3218 ///
3665 * * `serviceAccount:{emailid}`: An email address that represents a service 3219 /// * `serviceAccount:{emailid}`: An email address that represents a service
3666 * account. For example, `my-other-app@appspot.gserviceaccount.com`. 3220 /// account. For example, `my-other-app@appspot.gserviceaccount.com`.
3667 * 3221 ///
3668 * * `group:{emailid}`: An email address that represents a Google group. 3222 /// * `group:{emailid}`: An email address that represents a Google group.
3669 * For example, `admins@example.com`. 3223 /// For example, `admins@example.com`.
3670 * 3224 ///
3671 * 3225 ///
3672 * * `domain:{domain}`: A Google Apps domain name that represents all the 3226 /// * `domain:{domain}`: A Google Apps domain name that represents all the
3673 * users of that domain. For example, `google.com` or `example.com`. 3227 /// users of that domain. For example, `google.com` or `example.com`.
3674 */
3675 core.List<core.String> members; 3228 core.List<core.String> members;
3676 /** 3229
3677 * Role that is assigned to `members`. 3230 /// Role that is assigned to `members`.
3678 * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. 3231 /// For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
3679 * Required 3232 /// Required
3680 */
3681 core.String role; 3233 core.String role;
3682 3234
3683 GoogleIamV1Binding(); 3235 GoogleIamV1Binding();
3684 3236
3685 GoogleIamV1Binding.fromJson(core.Map _json) { 3237 GoogleIamV1Binding.fromJson(core.Map _json) {
3686 if (_json.containsKey("condition")) { 3238 if (_json.containsKey("condition")) {
3687 condition = new GoogleTypeExpr.fromJson(_json["condition"]); 3239 condition = new GoogleTypeExpr.fromJson(_json["condition"]);
3688 } 3240 }
3689 if (_json.containsKey("members")) { 3241 if (_json.containsKey("members")) {
3690 members = _json["members"]; 3242 members = _json["members"];
3691 } 3243 }
3692 if (_json.containsKey("role")) { 3244 if (_json.containsKey("role")) {
3693 role = _json["role"]; 3245 role = _json["role"];
3694 } 3246 }
3695 } 3247 }
3696 3248
3697 core.Map<core.String, core.Object> toJson() { 3249 core.Map<core.String, core.Object> toJson() {
3698 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3250 final core.Map<core.String, core.Object> _json =
3251 new core.Map<core.String, core.Object>();
3699 if (condition != null) { 3252 if (condition != null) {
3700 _json["condition"] = (condition).toJson(); 3253 _json["condition"] = (condition).toJson();
3701 } 3254 }
3702 if (members != null) { 3255 if (members != null) {
3703 _json["members"] = members; 3256 _json["members"] = members;
3704 } 3257 }
3705 if (role != null) { 3258 if (role != null) {
3706 _json["role"] = role; 3259 _json["role"] = role;
3707 } 3260 }
3708 return _json; 3261 return _json;
3709 } 3262 }
3710 } 3263 }
3711 3264
3712 /** A condition to be met. */ 3265 /// Defines an Identity and Access Management (IAM) policy. It is used to
3713 class GoogleIamV1Condition { 3266 /// specify access control policies for Cloud Platform resources.
3714 /** 3267 ///
3715 * Trusted attributes supplied by the IAM system. 3268 ///
3716 * Possible string values are: 3269 /// A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
3717 * - "NO_ATTR" : Default non-attribute. 3270 /// `members` to a `role`, where the members can be user accounts, Google
3718 * - "AUTHORITY" : Either principal or (if present) authority selector. 3271 /// groups,
3719 * - "ATTRIBUTION" : The principal (even if an authority selector is present), 3272 /// Google domains, and service accounts. A `role` is a named list of
3720 * which 3273 /// permissions
3721 * must only be used for attribution, not authorization. 3274 /// defined by IAM.
3722 * - "APPROVER" : An approver (distinct from the requester) that has 3275 ///
3723 * authorized this 3276 /// **Example**
3724 * request. 3277 ///
3725 * When used with IN, the condition indicates that one of the approvers 3278 /// {
3726 * associated with the request matches the specified principal, or is a 3279 /// "bindings": [
3727 * member of the specified group. Approvers can only grant additional 3280 /// {
3728 * access, and are thus only used in a strictly positive context 3281 /// "role": "roles/owner",
3729 * (e.g. ALLOW/IN or DENY/NOT_IN). 3282 /// "members": [
3730 * - "JUSTIFICATION_TYPE" : What types of justifications have been supplied 3283 /// "user:mike@example.com",
3731 * with this request. 3284 /// "group:admins@example.com",
3732 * String values should match enum names from tech.iam.JustificationType, 3285 /// "domain:google.com",
3733 * e.g. "MANUAL_STRING". It is not permitted to grant access based on 3286 /// "serviceAccount:my-other-app@appspot.gserviceaccount.com",
3734 * the *absence* of a justification, so justification conditions can only 3287 /// ]
3735 * be used in a "positive" context (e.g., ALLOW/IN or DENY/NOT_IN). 3288 /// },
3736 * 3289 /// {
3737 * Multiple justifications, e.g., a Buganizer ID and a manually-entered 3290 /// "role": "roles/viewer",
3738 * reason, are normal and supported. 3291 /// "members": ["user:sean@example.com"]
3739 */ 3292 /// }
3740 core.String iam; 3293 /// ]
3741 /** 3294 /// }
3742 * An operator to apply the subject with. 3295 ///
3743 * Possible string values are: 3296 /// For a description of IAM and its features, see the
3744 * - "NO_OP" : Default no-op. 3297 /// [IAM developer's guide](https://cloud.google.com/iam).
3745 * - "EQUALS" : DEPRECATED. Use IN instead. 3298 class GoogleIamV1Policy {
3746 * - "NOT_EQUALS" : DEPRECATED. Use NOT_IN instead. 3299 /// Specifies cloud audit logging configuration for this policy.
3747 * - "IN" : The condition is true if the subject (or any element of it if it 3300 core.List<GoogleIamV1AuditConfig> auditConfigs;
3748 * is
3749 * a set) matches any of the supplied values.
3750 * - "NOT_IN" : The condition is true if the subject (or every element of it
3751 * if it is
3752 * a set) matches none of the supplied values.
3753 * - "DISCHARGED" : Subject is discharged
3754 */
3755 core.String op;
3756 /** Trusted attributes discharged by the service. */
3757 core.String svc;
3758 /**
3759 * Trusted attributes supplied by any service that owns resources and uses
3760 * the IAM system for access control.
3761 * Possible string values are:
3762 * - "NO_ATTR" : Default non-attribute type
3763 * - "REGION" : Region of the resource
3764 * - "SERVICE" : Service name
3765 * - "NAME" : Resource name
3766 * - "IP" : IP address of the caller
3767 */
3768 core.String sys;
3769 /** DEPRECATED. Use 'values' instead. */
3770 core.String value;
3771 /** The objects of the condition. This is mutually exclusive with 'value'. */
3772 core.List<core.String> values;
3773 3301
3774 GoogleIamV1Condition(); 3302 /// Associates a list of `members` to a `role`.
3303 /// `bindings` with no members will result in an error.
3304 core.List<GoogleIamV1Binding> bindings;
3775 3305
3776 GoogleIamV1Condition.fromJson(core.Map _json) { 3306 /// `etag` is used for optimistic concurrency control as a way to help
3777 if (_json.containsKey("iam")) { 3307 /// prevent simultaneous updates of a policy from overwriting each other.
3778 iam = _json["iam"]; 3308 /// It is strongly suggested that systems make use of the `etag` in the
3779 } 3309 /// read-modify-write cycle to perform policy updates in order to avoid race
3780 if (_json.containsKey("op")) { 3310 /// conditions: An `etag` is returned in the response to `getIamPolicy`, and
3781 op = _json["op"]; 3311 /// systems are expected to put that etag in the request to `setIamPolicy` to
3782 } 3312 /// ensure that their change will be applied to the same version of the
3783 if (_json.containsKey("svc")) { 3313 /// policy.
3784 svc = _json["svc"]; 3314 ///
3785 } 3315 /// If no `etag` is provided in the call to `setIamPolicy`, then the existing
3786 if (_json.containsKey("sys")) { 3316 /// policy is overwritten blindly.
3787 sys = _json["sys"];
3788 }
3789 if (_json.containsKey("value")) {
3790 value = _json["value"];
3791 }
3792 if (_json.containsKey("values")) {
3793 values = _json["values"];
3794 }
3795 }
3796
3797 core.Map<core.String, core.Object> toJson() {
3798 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3799 if (iam != null) {
3800 _json["iam"] = iam;
3801 }
3802 if (op != null) {
3803 _json["op"] = op;
3804 }
3805 if (svc != null) {
3806 _json["svc"] = svc;
3807 }
3808 if (sys != null) {
3809 _json["sys"] = sys;
3810 }
3811 if (value != null) {
3812 _json["value"] = value;
3813 }
3814 if (values != null) {
3815 _json["values"] = values;
3816 }
3817 return _json;
3818 }
3819 }
3820
3821 /** Specifies what kind of log the caller must write */
3822 class GoogleIamV1LogConfig {
3823 /** Cloud audit options. */
3824 GoogleIamV1LogConfigCloudAuditOptions cloudAudit;
3825 /** Counter options. */
3826 GoogleIamV1LogConfigCounterOptions counter;
3827 /** Data access options. */
3828 GoogleIamV1LogConfigDataAccessOptions dataAccess;
3829
3830 GoogleIamV1LogConfig();
3831
3832 GoogleIamV1LogConfig.fromJson(core.Map _json) {
3833 if (_json.containsKey("cloudAudit")) {
3834 cloudAudit = new GoogleIamV1LogConfigCloudAuditOptions.fromJson(_json["clo udAudit"]);
3835 }
3836 if (_json.containsKey("counter")) {
3837 counter = new GoogleIamV1LogConfigCounterOptions.fromJson(_json["counter"] );
3838 }
3839 if (_json.containsKey("dataAccess")) {
3840 dataAccess = new GoogleIamV1LogConfigDataAccessOptions.fromJson(_json["dat aAccess"]);
3841 }
3842 }
3843
3844 core.Map<core.String, core.Object> toJson() {
3845 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3846 if (cloudAudit != null) {
3847 _json["cloudAudit"] = (cloudAudit).toJson();
3848 }
3849 if (counter != null) {
3850 _json["counter"] = (counter).toJson();
3851 }
3852 if (dataAccess != null) {
3853 _json["dataAccess"] = (dataAccess).toJson();
3854 }
3855 return _json;
3856 }
3857 }
3858
3859 /**
3860 * Defines an Identity and Access Management (IAM) policy. It is used to
3861 * specify access control policies for Cloud Platform resources.
3862 *
3863 *
3864 * A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
3865 * `members` to a `role`, where the members can be user accounts, Google groups,
3866 * Google domains, and service accounts. A `role` is a named list of permissions
3867 * defined by IAM.
3868 *
3869 * **Example**
3870 *
3871 * {
3872 * "bindings": [
3873 * {
3874 * "role": "roles/owner",
3875 * "members": [
3876 * "user:mike@example.com",
3877 * "group:admins@example.com",
3878 * "domain:google.com",
3879 * "serviceAccount:my-other-app@appspot.gserviceaccount.com",
3880 * ]
3881 * },
3882 * {
3883 * "role": "roles/viewer",
3884 * "members": ["user:sean@example.com"]
3885 * }
3886 * ]
3887 * }
3888 *
3889 * For a description of IAM and its features, see the
3890 * [IAM developer's guide](https://cloud.google.com/iam).
3891 */
3892 class GoogleIamV1Policy {
3893 /** Specifies cloud audit logging configuration for this policy. */
3894 core.List<GoogleIamV1AuditConfig> auditConfigs;
3895 /**
3896 * Associates a list of `members` to a `role`.
3897 * `bindings` with no members will result in an error.
3898 */
3899 core.List<GoogleIamV1Binding> bindings;
3900 /**
3901 * `etag` is used for optimistic concurrency control as a way to help
3902 * prevent simultaneous updates of a policy from overwriting each other.
3903 * It is strongly suggested that systems make use of the `etag` in the
3904 * read-modify-write cycle to perform policy updates in order to avoid race
3905 * conditions: An `etag` is returned in the response to `getIamPolicy`, and
3906 * systems are expected to put that etag in the request to `setIamPolicy` to
3907 * ensure that their change will be applied to the same version of the policy.
3908 *
3909 * If no `etag` is provided in the call to `setIamPolicy`, then the existing
3910 * policy is overwritten blindly.
3911 */
3912 core.String etag; 3317 core.String etag;
3913 core.List<core.int> get etagAsBytes { 3318 core.List<core.int> get etagAsBytes {
3914 return convert.BASE64.decode(etag); 3319 return convert.BASE64.decode(etag);
3915 } 3320 }
3916 3321
3917 void set etagAsBytes(core.List<core.int> _bytes) { 3322 void set etagAsBytes(core.List<core.int> _bytes) {
3918 etag = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "- "); 3323 etag =
3324 convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
3919 } 3325 }
3326
3920 core.bool iamOwned; 3327 core.bool iamOwned;
3921 /** 3328
3922 * If more than one rule is specified, the rules are applied in the following 3329 /// Version of the `Policy`. The default version is 0.
3923 * manner:
3924 * - All matching LOG rules are always applied.
3925 * - If any DENY/DENY_WITH_LOG rule matches, permission is denied.
3926 * Logging will be applied if one or more matching rule requires logging.
3927 * - Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is
3928 * granted.
3929 * Logging will be applied if one or more matching rule requires logging.
3930 * - Otherwise, if no rule applies, permission is denied.
3931 */
3932 core.List<GoogleIamV1Rule> rules;
3933 /** Version of the `Policy`. The default version is 0. */
3934 core.int version; 3330 core.int version;
3935 3331
3936 GoogleIamV1Policy(); 3332 GoogleIamV1Policy();
3937 3333
3938 GoogleIamV1Policy.fromJson(core.Map _json) { 3334 GoogleIamV1Policy.fromJson(core.Map _json) {
3939 if (_json.containsKey("auditConfigs")) { 3335 if (_json.containsKey("auditConfigs")) {
3940 auditConfigs = _json["auditConfigs"].map((value) => new GoogleIamV1AuditCo nfig.fromJson(value)).toList(); 3336 auditConfigs = _json["auditConfigs"]
3337 .map((value) => new GoogleIamV1AuditConfig.fromJson(value))
3338 .toList();
3941 } 3339 }
3942 if (_json.containsKey("bindings")) { 3340 if (_json.containsKey("bindings")) {
3943 bindings = _json["bindings"].map((value) => new GoogleIamV1Binding.fromJso n(value)).toList(); 3341 bindings = _json["bindings"]
3342 .map((value) => new GoogleIamV1Binding.fromJson(value))
3343 .toList();
3944 } 3344 }
3945 if (_json.containsKey("etag")) { 3345 if (_json.containsKey("etag")) {
3946 etag = _json["etag"]; 3346 etag = _json["etag"];
3947 } 3347 }
3948 if (_json.containsKey("iamOwned")) { 3348 if (_json.containsKey("iamOwned")) {
3949 iamOwned = _json["iamOwned"]; 3349 iamOwned = _json["iamOwned"];
3950 } 3350 }
3951 if (_json.containsKey("rules")) {
3952 rules = _json["rules"].map((value) => new GoogleIamV1Rule.fromJson(value)) .toList();
3953 }
3954 if (_json.containsKey("version")) { 3351 if (_json.containsKey("version")) {
3955 version = _json["version"]; 3352 version = _json["version"];
3956 } 3353 }
3957 } 3354 }
3958 3355
3959 core.Map<core.String, core.Object> toJson() { 3356 core.Map<core.String, core.Object> toJson() {
3960 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3357 final core.Map<core.String, core.Object> _json =
3358 new core.Map<core.String, core.Object>();
3961 if (auditConfigs != null) { 3359 if (auditConfigs != null) {
3962 _json["auditConfigs"] = auditConfigs.map((value) => (value).toJson()).toLi st(); 3360 _json["auditConfigs"] =
3361 auditConfigs.map((value) => (value).toJson()).toList();
3963 } 3362 }
3964 if (bindings != null) { 3363 if (bindings != null) {
3965 _json["bindings"] = bindings.map((value) => (value).toJson()).toList(); 3364 _json["bindings"] = bindings.map((value) => (value).toJson()).toList();
3966 } 3365 }
3967 if (etag != null) { 3366 if (etag != null) {
3968 _json["etag"] = etag; 3367 _json["etag"] = etag;
3969 } 3368 }
3970 if (iamOwned != null) { 3369 if (iamOwned != null) {
3971 _json["iamOwned"] = iamOwned; 3370 _json["iamOwned"] = iamOwned;
3972 } 3371 }
3973 if (rules != null) {
3974 _json["rules"] = rules.map((value) => (value).toJson()).toList();
3975 }
3976 if (version != null) { 3372 if (version != null) {
3977 _json["version"] = version; 3373 _json["version"] = version;
3978 } 3374 }
3979 return _json; 3375 return _json;
3980 } 3376 }
3981 } 3377 }
3982 3378
3983 /** A rule to be applied in a Policy. */ 3379 /// Request message for `SetIamPolicy` method.
3984 class GoogleIamV1Rule { 3380 class GoogleIamV1SetIamPolicyRequest {
3985 /** 3381 /// REQUIRED: The complete policy to be applied to the `resource`. The size
3986 * Required 3382 /// of
3987 * Possible string values are: 3383 /// the policy is limited to a few 10s of KB. An empty policy is a
3988 * - "NO_ACTION" : Default no action. 3384 /// valid policy but certain Cloud Platform services (such as Projects)
3989 * - "ALLOW" : Matching 'Entries' grant access. 3385 /// might reject them.
3990 * - "ALLOW_WITH_LOG" : Matching 'Entries' grant access and the caller 3386 GoogleIamV1Policy policy;
3991 * promises to log
3992 * the request per the returned log_configs.
3993 * - "DENY" : Matching 'Entries' deny access.
3994 * - "DENY_WITH_LOG" : Matching 'Entries' deny access and the caller promises
3995 * to log
3996 * the request per the returned log_configs.
3997 * - "LOG" : Matching 'Entries' tell IAM.Check callers to generate logs.
3998 */
3999 core.String action;
4000 /** Additional restrictions that must be met */
4001 core.List<GoogleIamV1Condition> conditions;
4002 /** Human-readable description of the rule. */
4003 core.String description;
4004 /**
4005 * If one or more 'in' clauses are specified, the rule matches if
4006 * the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
4007 */
4008 core.List<core.String> in_;
4009 /**
4010 * The config returned to callers of tech.iam.IAM.CheckPolicy for any entries
4011 * that match the LOG action.
4012 */
4013 core.List<GoogleIamV1LogConfig> logConfig;
4014 /**
4015 * If one or more 'not_in' clauses are specified, the rule matches
4016 * if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
4017 * The format for in and not_in entries is the same as for members in a
4018 * Binding (see google/iam/v1/policy.proto).
4019 */
4020 core.List<core.String> notIn;
4021 /**
4022 * A permission is a string of form '<service>.<resource type>.<verb>'
4023 * (e.g., 'storage.buckets.list'). A value of '*' matches all permissions,
4024 * and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.
4025 */
4026 core.List<core.String> permissions;
4027 3387
4028 GoogleIamV1Rule(); 3388 /// OPTIONAL: A FieldMask specifying which fields of the policy to modify.
4029 3389 /// Only
4030 GoogleIamV1Rule.fromJson(core.Map _json) { 3390 /// the fields in the mask will be modified. If no mask is provided, the
4031 if (_json.containsKey("action")) { 3391 /// following default mask is used:
4032 action = _json["action"]; 3392 /// paths: "bindings, etag"
4033 } 3393 /// This field is only used by Cloud IAM.
4034 if (_json.containsKey("conditions")) {
4035 conditions = _json["conditions"].map((value) => new GoogleIamV1Condition.f romJson(value)).toList();
4036 }
4037 if (_json.containsKey("description")) {
4038 description = _json["description"];
4039 }
4040 if (_json.containsKey("in")) {
4041 in_ = _json["in"];
4042 }
4043 if (_json.containsKey("logConfig")) {
4044 logConfig = _json["logConfig"].map((value) => new GoogleIamV1LogConfig.fro mJson(value)).toList();
4045 }
4046 if (_json.containsKey("notIn")) {
4047 notIn = _json["notIn"];
4048 }
4049 if (_json.containsKey("permissions")) {
4050 permissions = _json["permissions"];
4051 }
4052 }
4053
4054 core.Map<core.String, core.Object> toJson() {
4055 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4056 if (action != null) {
4057 _json["action"] = action;
4058 }
4059 if (conditions != null) {
4060 _json["conditions"] = conditions.map((value) => (value).toJson()).toList() ;
4061 }
4062 if (description != null) {
4063 _json["description"] = description;
4064 }
4065 if (in_ != null) {
4066 _json["in"] = in_;
4067 }
4068 if (logConfig != null) {
4069 _json["logConfig"] = logConfig.map((value) => (value).toJson()).toList();
4070 }
4071 if (notIn != null) {
4072 _json["notIn"] = notIn;
4073 }
4074 if (permissions != null) {
4075 _json["permissions"] = permissions;
4076 }
4077 return _json;
4078 }
4079 }
4080
4081 /** Request message for `SetIamPolicy` method. */
4082 class GoogleIamV1SetIamPolicyRequest {
4083 /**
4084 * REQUIRED: The complete policy to be applied to the `resource`. The size of
4085 * the policy is limited to a few 10s of KB. An empty policy is a
4086 * valid policy but certain Cloud Platform services (such as Projects)
4087 * might reject them.
4088 */
4089 GoogleIamV1Policy policy;
4090 /**
4091 * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
4092 * the fields in the mask will be modified. If no mask is provided, the
4093 * following default mask is used:
4094 * paths: "bindings, etag"
4095 * This field is only used by Cloud IAM.
4096 */
4097 core.String updateMask; 3394 core.String updateMask;
4098 3395
4099 GoogleIamV1SetIamPolicyRequest(); 3396 GoogleIamV1SetIamPolicyRequest();
4100 3397
4101 GoogleIamV1SetIamPolicyRequest.fromJson(core.Map _json) { 3398 GoogleIamV1SetIamPolicyRequest.fromJson(core.Map _json) {
4102 if (_json.containsKey("policy")) { 3399 if (_json.containsKey("policy")) {
4103 policy = new GoogleIamV1Policy.fromJson(_json["policy"]); 3400 policy = new GoogleIamV1Policy.fromJson(_json["policy"]);
4104 } 3401 }
4105 if (_json.containsKey("updateMask")) { 3402 if (_json.containsKey("updateMask")) {
4106 updateMask = _json["updateMask"]; 3403 updateMask = _json["updateMask"];
4107 } 3404 }
4108 } 3405 }
4109 3406
4110 core.Map<core.String, core.Object> toJson() { 3407 core.Map<core.String, core.Object> toJson() {
4111 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3408 final core.Map<core.String, core.Object> _json =
3409 new core.Map<core.String, core.Object>();
4112 if (policy != null) { 3410 if (policy != null) {
4113 _json["policy"] = (policy).toJson(); 3411 _json["policy"] = (policy).toJson();
4114 } 3412 }
4115 if (updateMask != null) { 3413 if (updateMask != null) {
4116 _json["updateMask"] = updateMask; 3414 _json["updateMask"] = updateMask;
4117 } 3415 }
4118 return _json; 3416 return _json;
4119 } 3417 }
4120 } 3418 }
4121 3419
4122 /** Request message for `TestIamPermissions` method. */ 3420 /// Request message for `TestIamPermissions` method.
4123 class GoogleIamV1TestIamPermissionsRequest { 3421 class GoogleIamV1TestIamPermissionsRequest {
4124 /** 3422 /// The set of permissions to check for the `resource`. Permissions with
4125 * The set of permissions to check for the `resource`. Permissions with 3423 /// wildcards (such as '*' or 'storage.*') are not allowed. For more
4126 * wildcards (such as '*' or 'storage.*') are not allowed. For more 3424 /// information see
4127 * information see 3425 /// [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
4128 * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
4129 */
4130 core.List<core.String> permissions; 3426 core.List<core.String> permissions;
4131 3427
4132 GoogleIamV1TestIamPermissionsRequest(); 3428 GoogleIamV1TestIamPermissionsRequest();
4133 3429
4134 GoogleIamV1TestIamPermissionsRequest.fromJson(core.Map _json) { 3430 GoogleIamV1TestIamPermissionsRequest.fromJson(core.Map _json) {
4135 if (_json.containsKey("permissions")) { 3431 if (_json.containsKey("permissions")) {
4136 permissions = _json["permissions"]; 3432 permissions = _json["permissions"];
4137 } 3433 }
4138 } 3434 }
4139 3435
4140 core.Map<core.String, core.Object> toJson() { 3436 core.Map<core.String, core.Object> toJson() {
4141 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3437 final core.Map<core.String, core.Object> _json =
3438 new core.Map<core.String, core.Object>();
4142 if (permissions != null) { 3439 if (permissions != null) {
4143 _json["permissions"] = permissions; 3440 _json["permissions"] = permissions;
4144 } 3441 }
4145 return _json; 3442 return _json;
4146 } 3443 }
4147 } 3444 }
4148 3445
4149 /** Response message for `TestIamPermissions` method. */ 3446 /// Response message for `TestIamPermissions` method.
4150 class GoogleIamV1TestIamPermissionsResponse { 3447 class GoogleIamV1TestIamPermissionsResponse {
4151 /** 3448 /// A subset of `TestPermissionsRequest.permissions` that the caller is
4152 * A subset of `TestPermissionsRequest.permissions` that the caller is 3449 /// allowed.
4153 * allowed.
4154 */
4155 core.List<core.String> permissions; 3450 core.List<core.String> permissions;
4156 3451
4157 GoogleIamV1TestIamPermissionsResponse(); 3452 GoogleIamV1TestIamPermissionsResponse();
4158 3453
4159 GoogleIamV1TestIamPermissionsResponse.fromJson(core.Map _json) { 3454 GoogleIamV1TestIamPermissionsResponse.fromJson(core.Map _json) {
4160 if (_json.containsKey("permissions")) { 3455 if (_json.containsKey("permissions")) {
4161 permissions = _json["permissions"]; 3456 permissions = _json["permissions"];
4162 } 3457 }
4163 } 3458 }
4164 3459
4165 core.Map<core.String, core.Object> toJson() { 3460 core.Map<core.String, core.Object> toJson() {
4166 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3461 final core.Map<core.String, core.Object> _json =
3462 new core.Map<core.String, core.Object>();
4167 if (permissions != null) { 3463 if (permissions != null) {
4168 _json["permissions"] = permissions; 3464 _json["permissions"] = permissions;
4169 } 3465 }
4170 return _json; 3466 return _json;
4171 } 3467 }
4172 } 3468 }
4173 3469
4174 /** The response message for Operations.ListOperations. */ 3470 /// The response message for Operations.ListOperations.
4175 class GoogleLongrunningListOperationsResponse { 3471 class GoogleLongrunningListOperationsResponse {
4176 /** The standard List next-page token. */ 3472 /// The standard List next-page token.
4177 core.String nextPageToken; 3473 core.String nextPageToken;
4178 /** A list of operations that matches the specified filter in the request. */ 3474
3475 /// A list of operations that matches the specified filter in the request.
4179 core.List<GoogleLongrunningOperation> operations; 3476 core.List<GoogleLongrunningOperation> operations;
4180 3477
4181 GoogleLongrunningListOperationsResponse(); 3478 GoogleLongrunningListOperationsResponse();
4182 3479
4183 GoogleLongrunningListOperationsResponse.fromJson(core.Map _json) { 3480 GoogleLongrunningListOperationsResponse.fromJson(core.Map _json) {
4184 if (_json.containsKey("nextPageToken")) { 3481 if (_json.containsKey("nextPageToken")) {
4185 nextPageToken = _json["nextPageToken"]; 3482 nextPageToken = _json["nextPageToken"];
4186 } 3483 }
4187 if (_json.containsKey("operations")) { 3484 if (_json.containsKey("operations")) {
4188 operations = _json["operations"].map((value) => new GoogleLongrunningOpera tion.fromJson(value)).toList(); 3485 operations = _json["operations"]
3486 .map((value) => new GoogleLongrunningOperation.fromJson(value))
3487 .toList();
4189 } 3488 }
4190 } 3489 }
4191 3490
4192 core.Map<core.String, core.Object> toJson() { 3491 core.Map<core.String, core.Object> toJson() {
4193 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3492 final core.Map<core.String, core.Object> _json =
3493 new core.Map<core.String, core.Object>();
4194 if (nextPageToken != null) { 3494 if (nextPageToken != null) {
4195 _json["nextPageToken"] = nextPageToken; 3495 _json["nextPageToken"] = nextPageToken;
4196 } 3496 }
4197 if (operations != null) { 3497 if (operations != null) {
4198 _json["operations"] = operations.map((value) => (value).toJson()).toList() ; 3498 _json["operations"] =
3499 operations.map((value) => (value).toJson()).toList();
4199 } 3500 }
4200 return _json; 3501 return _json;
4201 } 3502 }
4202 } 3503 }
4203 3504
4204 /** 3505 /// This resource represents a long-running operation that is the result of a
4205 * This resource represents a long-running operation that is the result of a 3506 /// network API call.
4206 * network API call.
4207 */
4208 class GoogleLongrunningOperation { 3507 class GoogleLongrunningOperation {
4209 /** 3508 /// If the value is `false`, it means the operation is still in progress.
4210 * If the value is `false`, it means the operation is still in progress. 3509 /// If `true`, the operation is completed, and either `error` or `response`
4211 * If true, the operation is completed, and either `error` or `response` is 3510 /// is
4212 * available. 3511 /// available.
4213 */
4214 core.bool done; 3512 core.bool done;
4215 /** The error result of the operation in case of failure or cancellation. */ 3513
3514 /// The error result of the operation in case of failure or cancellation.
4216 GoogleRpcStatus error; 3515 GoogleRpcStatus error;
4217 /** 3516
4218 * Service-specific metadata associated with the operation. It typically 3517 /// Service-specific metadata associated with the operation. It typically
4219 * contains progress information and common metadata such as create time. 3518 /// contains progress information and common metadata such as create time.
4220 * Some services might not provide such metadata. Any method that returns a 3519 /// Some services might not provide such metadata. Any method that returns a
4221 * long-running operation should document the metadata type, if any. 3520 /// long-running operation should document the metadata type, if any.
4222 * 3521 ///
4223 * The values for Object must be JSON objects. It can consist of `num`, 3522 /// The values for Object must be JSON objects. It can consist of `num`,
4224 * `String`, `bool` and `null` as well as `Map` and `List` values. 3523 /// `String`, `bool` and `null` as well as `Map` and `List` values.
4225 */
4226 core.Map<core.String, core.Object> metadata; 3524 core.Map<core.String, core.Object> metadata;
4227 /** 3525
4228 * The server-assigned name, which is only unique within the same service that 3526 /// The server-assigned name, which is only unique within the same service
4229 * originally returns it. If you use the default HTTP mapping, the 3527 /// that
4230 * `name` should have the format of `operations/some/unique/name`. 3528 /// originally returns it. If you use the default HTTP mapping, the
4231 */ 3529 /// `name` should have the format of `operations/some/unique/name`.
4232 core.String name; 3530 core.String name;
4233 /** 3531
4234 * The normal response of the operation in case of success. If the original 3532 /// The normal response of the operation in case of success. If the original
4235 * method returns no data on success, such as `Delete`, the response is 3533 /// method returns no data on success, such as `Delete`, the response is
4236 * `google.protobuf.Empty`. If the original method is standard 3534 /// `google.protobuf.Empty`. If the original method is standard
4237 * `Get`/`Create`/`Update`, the response should be the resource. For other 3535 /// `Get`/`Create`/`Update`, the response should be the resource. For other
4238 * methods, the response should have the type `XxxResponse`, where `Xxx` 3536 /// methods, the response should have the type `XxxResponse`, where `Xxx`
4239 * is the original method name. For example, if the original method name 3537 /// is the original method name. For example, if the original method name
4240 * is `TakeSnapshot()`, the inferred response type is 3538 /// is `TakeSnapshot()`, the inferred response type is
4241 * `TakeSnapshotResponse`. 3539 /// `TakeSnapshotResponse`.
4242 * 3540 ///
4243 * The values for Object must be JSON objects. It can consist of `num`, 3541 /// The values for Object must be JSON objects. It can consist of `num`,
4244 * `String`, `bool` and `null` as well as `Map` and `List` values. 3542 /// `String`, `bool` and `null` as well as `Map` and `List` values.
4245 */
4246 core.Map<core.String, core.Object> response; 3543 core.Map<core.String, core.Object> response;
4247 3544
4248 GoogleLongrunningOperation(); 3545 GoogleLongrunningOperation();
4249 3546
4250 GoogleLongrunningOperation.fromJson(core.Map _json) { 3547 GoogleLongrunningOperation.fromJson(core.Map _json) {
4251 if (_json.containsKey("done")) { 3548 if (_json.containsKey("done")) {
4252 done = _json["done"]; 3549 done = _json["done"];
4253 } 3550 }
4254 if (_json.containsKey("error")) { 3551 if (_json.containsKey("error")) {
4255 error = new GoogleRpcStatus.fromJson(_json["error"]); 3552 error = new GoogleRpcStatus.fromJson(_json["error"]);
4256 } 3553 }
4257 if (_json.containsKey("metadata")) { 3554 if (_json.containsKey("metadata")) {
4258 metadata = _json["metadata"]; 3555 metadata = _json["metadata"];
4259 } 3556 }
4260 if (_json.containsKey("name")) { 3557 if (_json.containsKey("name")) {
4261 name = _json["name"]; 3558 name = _json["name"];
4262 } 3559 }
4263 if (_json.containsKey("response")) { 3560 if (_json.containsKey("response")) {
4264 response = _json["response"]; 3561 response = _json["response"];
4265 } 3562 }
4266 } 3563 }
4267 3564
4268 core.Map<core.String, core.Object> toJson() { 3565 core.Map<core.String, core.Object> toJson() {
4269 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3566 final core.Map<core.String, core.Object> _json =
3567 new core.Map<core.String, core.Object>();
4270 if (done != null) { 3568 if (done != null) {
4271 _json["done"] = done; 3569 _json["done"] = done;
4272 } 3570 }
4273 if (error != null) { 3571 if (error != null) {
4274 _json["error"] = (error).toJson(); 3572 _json["error"] = (error).toJson();
4275 } 3573 }
4276 if (metadata != null) { 3574 if (metadata != null) {
4277 _json["metadata"] = metadata; 3575 _json["metadata"] = metadata;
4278 } 3576 }
4279 if (name != null) { 3577 if (name != null) {
4280 _json["name"] = name; 3578 _json["name"] = name;
4281 } 3579 }
4282 if (response != null) { 3580 if (response != null) {
4283 _json["response"] = response; 3581 _json["response"] = response;
4284 } 3582 }
4285 return _json; 3583 return _json;
4286 } 3584 }
4287 } 3585 }
4288 3586
4289 /** 3587 /// A generic empty message that you can re-use to avoid defining duplicated
4290 * A generic empty message that you can re-use to avoid defining duplicated 3588 /// empty messages in your APIs. A typical example is to use it as the request
4291 * empty messages in your APIs. A typical example is to use it as the request 3589 /// or the response type of an API method. For instance:
4292 * or the response type of an API method. For instance: 3590 ///
4293 * 3591 /// service Foo {
4294 * service Foo { 3592 /// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
4295 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); 3593 /// }
4296 * } 3594 ///
4297 * 3595 /// The JSON representation for `Empty` is empty JSON object `{}`.
4298 * The JSON representation for `Empty` is empty JSON object `{}`.
4299 */
4300 class GoogleProtobufEmpty { 3596 class GoogleProtobufEmpty {
4301
4302 GoogleProtobufEmpty(); 3597 GoogleProtobufEmpty();
4303 3598
4304 GoogleProtobufEmpty.fromJson(core.Map _json) { 3599 GoogleProtobufEmpty.fromJson(core.Map _json) {}
4305 }
4306 3600
4307 core.Map<core.String, core.Object> toJson() { 3601 core.Map<core.String, core.Object> toJson() {
4308 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3602 final core.Map<core.String, core.Object> _json =
3603 new core.Map<core.String, core.Object>();
4309 return _json; 3604 return _json;
4310 } 3605 }
4311 } 3606 }
4312 3607
4313 /** 3608 /// The `Status` type defines a logical error model that is suitable for
4314 * The `Status` type defines a logical error model that is suitable for 3609 /// different
4315 * different 3610 /// programming environments, including REST APIs and RPC APIs. It is used by
4316 * programming environments, including REST APIs and RPC APIs. It is used by 3611 /// [gRPC](https://github.com/grpc). The error model is designed to be:
4317 * [gRPC](https://github.com/grpc). The error model is designed to be: 3612 ///
4318 * 3613 /// - Simple to use and understand for most users
4319 * - Simple to use and understand for most users 3614 /// - Flexible enough to meet unexpected needs
4320 * - Flexible enough to meet unexpected needs 3615 ///
4321 * 3616 /// # Overview
4322 * # Overview 3617 ///
4323 * 3618 /// The `Status` message contains three pieces of data: error code, error
4324 * The `Status` message contains three pieces of data: error code, error 3619 /// message,
4325 * message, 3620 /// and error details. The error code should be an enum value of
4326 * and error details. The error code should be an enum value of 3621 /// google.rpc.Code, but it may accept additional error codes if needed. The
4327 * google.rpc.Code, but it may accept additional error codes if needed. The 3622 /// error message should be a developer-facing English message that helps
4328 * error message should be a developer-facing English message that helps 3623 /// developers *understand* and *resolve* the error. If a localized user-facing
4329 * developers *understand* and *resolve* the error. If a localized user-facing 3624 /// error message is needed, put the localized message in the error details or
4330 * error message is needed, put the localized message in the error details or 3625 /// localize it in the client. The optional error details may contain arbitrary
4331 * localize it in the client. The optional error details may contain arbitrary 3626 /// information about the error. There is a predefined set of error detail
4332 * information about the error. There is a predefined set of error detail types 3627 /// types
4333 * in the package `google.rpc` that can be used for common error conditions. 3628 /// in the package `google.rpc` that can be used for common error conditions.
4334 * 3629 ///
4335 * # Language mapping 3630 /// # Language mapping
4336 * 3631 ///
4337 * The `Status` message is the logical representation of the error model, but it 3632 /// The `Status` message is the logical representation of the error model, but
4338 * is not necessarily the actual wire format. When the `Status` message is 3633 /// it
4339 * exposed in different client libraries and different wire protocols, it can be 3634 /// is not necessarily the actual wire format. When the `Status` message is
4340 * mapped differently. For example, it will likely be mapped to some exceptions 3635 /// exposed in different client libraries and different wire protocols, it can
4341 * in Java, but more likely mapped to some error codes in C. 3636 /// be
4342 * 3637 /// mapped differently. For example, it will likely be mapped to some
4343 * # Other uses 3638 /// exceptions
4344 * 3639 /// in Java, but more likely mapped to some error codes in C.
4345 * The error model and the `Status` message can be used in a variety of 3640 ///
4346 * environments, either with or without APIs, to provide a 3641 /// # Other uses
4347 * consistent developer experience across different environments. 3642 ///
4348 * 3643 /// The error model and the `Status` message can be used in a variety of
4349 * Example uses of this error model include: 3644 /// environments, either with or without APIs, to provide a
4350 * 3645 /// consistent developer experience across different environments.
4351 * - Partial errors. If a service needs to return partial errors to the client, 3646 ///
4352 * it may embed the `Status` in the normal response to indicate the partial 3647 /// Example uses of this error model include:
4353 * errors. 3648 ///
4354 * 3649 /// - Partial errors. If a service needs to return partial errors to the
4355 * - Workflow errors. A typical workflow has multiple steps. Each step may 3650 /// client,
4356 * have a `Status` message for error reporting. 3651 /// it may embed the `Status` in the normal response to indicate the partial
4357 * 3652 /// errors.
4358 * - Batch operations. If a client uses batch request and batch response, the 3653 ///
4359 * `Status` message should be used directly inside batch response, one for 3654 /// - Workflow errors. A typical workflow has multiple steps. Each step may
4360 * each error sub-response. 3655 /// have a `Status` message for error reporting.
4361 * 3656 ///
4362 * - Asynchronous operations. If an API call embeds asynchronous operation 3657 /// - Batch operations. If a client uses batch request and batch response, the
4363 * results in its response, the status of those operations should be 3658 /// `Status` message should be used directly inside batch response, one for
4364 * represented directly using the `Status` message. 3659 /// each error sub-response.
4365 * 3660 ///
4366 * - Logging. If some API errors are stored in logs, the message `Status` could 3661 /// - Asynchronous operations. If an API call embeds asynchronous operation
4367 * be used directly after any stripping needed for security/privacy reasons. 3662 /// results in its response, the status of those operations should be
4368 */ 3663 /// represented directly using the `Status` message.
3664 ///
3665 /// - Logging. If some API errors are stored in logs, the message `Status`
3666 /// could
3667 /// be used directly after any stripping needed for security/privacy reasons.
4369 class GoogleRpcStatus { 3668 class GoogleRpcStatus {
4370 /** The status code, which should be an enum value of google.rpc.Code. */ 3669 /// The status code, which should be an enum value of google.rpc.Code.
4371 core.int code; 3670 core.int code;
4372 /** 3671
4373 * A list of messages that carry the error details. There is a common set of 3672 /// A list of messages that carry the error details. There is a common set
4374 * message types for APIs to use. 3673 /// of
4375 * 3674 /// message types for APIs to use.
4376 * The values for Object must be JSON objects. It can consist of `num`, 3675 ///
4377 * `String`, `bool` and `null` as well as `Map` and `List` values. 3676 /// The values for Object must be JSON objects. It can consist of `num`,
4378 */ 3677 /// `String`, `bool` and `null` as well as `Map` and `List` values.
4379 core.List<core.Map<core.String, core.Object>> details; 3678 core.List<core.Map<core.String, core.Object>> details;
4380 /** 3679
4381 * A developer-facing error message, which should be in English. Any 3680 /// A developer-facing error message, which should be in English. Any
4382 * user-facing error message should be localized and sent in the 3681 /// user-facing error message should be localized and sent in the
4383 * google.rpc.Status.details field, or localized by the client. 3682 /// google.rpc.Status.details field, or localized by the client.
4384 */
4385 core.String message; 3683 core.String message;
4386 3684
4387 GoogleRpcStatus(); 3685 GoogleRpcStatus();
4388 3686
4389 GoogleRpcStatus.fromJson(core.Map _json) { 3687 GoogleRpcStatus.fromJson(core.Map _json) {
4390 if (_json.containsKey("code")) { 3688 if (_json.containsKey("code")) {
4391 code = _json["code"]; 3689 code = _json["code"];
4392 } 3690 }
4393 if (_json.containsKey("details")) { 3691 if (_json.containsKey("details")) {
4394 details = _json["details"]; 3692 details = _json["details"];
4395 } 3693 }
4396 if (_json.containsKey("message")) { 3694 if (_json.containsKey("message")) {
4397 message = _json["message"]; 3695 message = _json["message"];
4398 } 3696 }
4399 } 3697 }
4400 3698
4401 core.Map<core.String, core.Object> toJson() { 3699 core.Map<core.String, core.Object> toJson() {
4402 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3700 final core.Map<core.String, core.Object> _json =
3701 new core.Map<core.String, core.Object>();
4403 if (code != null) { 3702 if (code != null) {
4404 _json["code"] = code; 3703 _json["code"] = code;
4405 } 3704 }
4406 if (details != null) { 3705 if (details != null) {
4407 _json["details"] = details; 3706 _json["details"] = details;
4408 } 3707 }
4409 if (message != null) { 3708 if (message != null) {
4410 _json["message"] = message; 3709 _json["message"] = message;
4411 } 3710 }
4412 return _json; 3711 return _json;
4413 } 3712 }
4414 } 3713 }
4415 3714
4416 /** 3715 /// Represents an expression text. Example:
4417 * Represents an expression text. Example: 3716 ///
4418 * 3717 /// title: "User account presence"
4419 * title: "User account presence" 3718 /// description: "Determines whether the request has a user account"
4420 * description: "Determines whether the request has a user account" 3719 /// expression: "size(request.user) > 0"
4421 * expression: "size(request.user) > 0"
4422 */
4423 class GoogleTypeExpr { 3720 class GoogleTypeExpr {
4424 /** 3721 /// An optional description of the expression. This is a longer text which
4425 * An optional description of the expression. This is a longer text which 3722 /// describes the expression, e.g. when hovered over it in a UI.
4426 * describes the expression, e.g. when hovered over it in a UI.
4427 */
4428 core.String description; 3723 core.String description;
4429 /** 3724
4430 * Textual representation of an expression in 3725 /// Textual representation of an expression in
4431 * Common Expression Language syntax. 3726 /// Common Expression Language syntax.
4432 * 3727 ///
4433 * The application context of the containing message determines which 3728 /// The application context of the containing message determines which
4434 * well-known feature set of CEL is supported. 3729 /// well-known feature set of CEL is supported.
4435 */
4436 core.String expression; 3730 core.String expression;
4437 /** 3731
4438 * An optional string indicating the location of the expression for error 3732 /// An optional string indicating the location of the expression for error
4439 * reporting, e.g. a file name and a position in the file. 3733 /// reporting, e.g. a file name and a position in the file.
4440 */
4441 core.String location; 3734 core.String location;
4442 /** 3735
4443 * An optional title for the expression, i.e. a short string describing 3736 /// An optional title for the expression, i.e. a short string describing
4444 * its purpose. This can be used e.g. in UIs which allow to enter the 3737 /// its purpose. This can be used e.g. in UIs which allow to enter the
4445 * expression. 3738 /// expression.
4446 */
4447 core.String title; 3739 core.String title;
4448 3740
4449 GoogleTypeExpr(); 3741 GoogleTypeExpr();
4450 3742
4451 GoogleTypeExpr.fromJson(core.Map _json) { 3743 GoogleTypeExpr.fromJson(core.Map _json) {
4452 if (_json.containsKey("description")) { 3744 if (_json.containsKey("description")) {
4453 description = _json["description"]; 3745 description = _json["description"];
4454 } 3746 }
4455 if (_json.containsKey("expression")) { 3747 if (_json.containsKey("expression")) {
4456 expression = _json["expression"]; 3748 expression = _json["expression"];
4457 } 3749 }
4458 if (_json.containsKey("location")) { 3750 if (_json.containsKey("location")) {
4459 location = _json["location"]; 3751 location = _json["location"];
4460 } 3752 }
4461 if (_json.containsKey("title")) { 3753 if (_json.containsKey("title")) {
4462 title = _json["title"]; 3754 title = _json["title"];
4463 } 3755 }
4464 } 3756 }
4465 3757
4466 core.Map<core.String, core.Object> toJson() { 3758 core.Map<core.String, core.Object> toJson() {
4467 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3759 final core.Map<core.String, core.Object> _json =
3760 new core.Map<core.String, core.Object>();
4468 if (description != null) { 3761 if (description != null) {
4469 _json["description"] = description; 3762 _json["description"] = description;
4470 } 3763 }
4471 if (expression != null) { 3764 if (expression != null) {
4472 _json["expression"] = expression; 3765 _json["expression"] = expression;
4473 } 3766 }
4474 if (location != null) { 3767 if (location != null) {
4475 _json["location"] = location; 3768 _json["location"] = location;
4476 } 3769 }
4477 if (title != null) { 3770 if (title != null) {
4478 _json["title"] = title; 3771 _json["title"] = title;
4479 } 3772 }
4480 return _json; 3773 return _json;
4481 } 3774 }
4482 } 3775 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/mirror/v1.dart ('k') | generated/googleapis/lib/monitoring/v3.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698