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

Side by Side Diff: generated/googleapis_beta/lib/appengine/v1beta4.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
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_beta.appengine.v1beta4; 3 library googleapis_beta.appengine.v1beta4;
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 appengine/v1beta4'; 15 const core.String USER_AGENT = 'dart-api-client appengine/v1beta4';
16 16
17 /** 17 /// The App Engine Admin API enables developers to provision and manage their
18 * The App Engine Admin API enables developers to provision and manage their App 18 /// App Engine applications.
19 * Engine applications.
20 */
21 class AppengineApi { 19 class AppengineApi {
22 /** View and manage your applications deployed on Google App Engine */ 20 /// View and manage your applications deployed on Google App Engine
23 static const AppengineAdminScope = "https://www.googleapis.com/auth/appengine. admin"; 21 static const AppengineAdminScope =
22 "https://www.googleapis.com/auth/appengine.admin";
24 23
25 /** View and manage your data across Google Cloud Platform services */ 24 /// View and manage your data across Google Cloud Platform services
26 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf orm"; 25 static const CloudPlatformScope =
26 "https://www.googleapis.com/auth/cloud-platform";
27 27
28 /** View your data across Google Cloud Platform services */ 28 /// View your data across Google Cloud Platform services
29 static const CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/clo ud-platform.read-only"; 29 static const CloudPlatformReadOnlyScope =
30 30 "https://www.googleapis.com/auth/cloud-platform.read-only";
31 31
32 final commons.ApiRequester _requester; 32 final commons.ApiRequester _requester;
33 33
34 AppsResourceApi get apps => new AppsResourceApi(_requester); 34 AppsResourceApi get apps => new AppsResourceApi(_requester);
35 35
36 AppengineApi(http.Client client, {core.String rootUrl: "https://appengine.goog leapis.com/", core.String servicePath: ""}) : 36 AppengineApi(http.Client client,
37 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT); 37 {core.String rootUrl: "https://appengine.googleapis.com/",
38 core.String servicePath: ""})
39 : _requester =
40 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
38 } 41 }
39 42
40
41 class AppsResourceApi { 43 class AppsResourceApi {
42 final commons.ApiRequester _requester; 44 final commons.ApiRequester _requester;
43 45
44 AppsLocationsResourceApi get locations => new AppsLocationsResourceApi(_reques ter); 46 AppsLocationsResourceApi get locations =>
47 new AppsLocationsResourceApi(_requester);
45 AppsModulesResourceApi get modules => new AppsModulesResourceApi(_requester); 48 AppsModulesResourceApi get modules => new AppsModulesResourceApi(_requester);
46 AppsOperationsResourceApi get operations => new AppsOperationsResourceApi(_req uester); 49 AppsOperationsResourceApi get operations =>
50 new AppsOperationsResourceApi(_requester);
47 51
48 AppsResourceApi(commons.ApiRequester client) : 52 AppsResourceApi(commons.ApiRequester client) : _requester = client;
49 _requester = client;
50 53
51 /** 54 /// Creates an App Engine application for a Google Cloud Platform project.
52 * Creates an App Engine application for a Google Cloud Platform project. 55 /// Required fields:
53 * Required fields: 56 /// id - The ID of the target Cloud Platform project.
54 * id - The ID of the target Cloud Platform project. 57 /// location - The region (https://cloud.google.com/appengine/docs/locations)
55 * location - The region (https://cloud.google.com/appengine/docs/locations) 58 /// where you want the App Engine application located.For more information
56 * where you want the App Engine application located.For more information 59 /// about App Engine applications, see Managing Projects, Applications, and
57 * about App Engine applications, see Managing Projects, Applications, and 60 /// Billing (https://cloud.google.com/appengine/docs/python/console/).
58 * Billing (https://cloud.google.com/appengine/docs/python/console/). 61 ///
59 * 62 /// [request] - The metadata request object.
60 * [request] - The metadata request object. 63 ///
61 * 64 /// Request parameters:
62 * Request parameters: 65 ///
63 * 66 /// Completes with a [Operation].
64 * Completes with a [Operation]. 67 ///
65 * 68 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
66 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 69 /// an error.
67 * error. 70 ///
68 * 71 /// If the used [http.Client] completes with an error when making a REST
69 * If the used [http.Client] completes with an error when making a REST call, 72 /// call, this method will complete with the same error.
70 * this method will complete with the same error.
71 */
72 async.Future<Operation> create(Application request) { 73 async.Future<Operation> create(Application request) {
73 var _url = null; 74 var _url = null;
74 var _queryParams = new core.Map(); 75 var _queryParams = new core.Map();
75 var _uploadMedia = null; 76 var _uploadMedia = null;
76 var _uploadOptions = null; 77 var _uploadOptions = null;
77 var _downloadOptions = commons.DownloadOptions.Metadata; 78 var _downloadOptions = commons.DownloadOptions.Metadata;
78 var _body = null; 79 var _body = null;
79 80
80 if (request != null) { 81 if (request != null) {
81 _body = convert.JSON.encode((request).toJson()); 82 _body = convert.JSON.encode((request).toJson());
82 } 83 }
83 84
84 _url = 'v1beta4/apps'; 85 _url = 'v1beta4/apps';
85 86
86 var _response = _requester.request(_url, 87 var _response = _requester.request(_url, "POST",
87 "POST", 88 body: _body,
88 body: _body, 89 queryParams: _queryParams,
89 queryParams: _queryParams, 90 uploadOptions: _uploadOptions,
90 uploadOptions: _uploadOptions, 91 uploadMedia: _uploadMedia,
91 uploadMedia: _uploadMedia, 92 downloadOptions: _downloadOptions);
92 downloadOptions: _downloadOptions);
93 return _response.then((data) => new Operation.fromJson(data)); 93 return _response.then((data) => new Operation.fromJson(data));
94 } 94 }
95 95
96 /** 96 /// Gets information about an application.
97 * Gets information about an application. 97 ///
98 * 98 /// Request parameters:
99 * Request parameters: 99 ///
100 * 100 /// [appsId] - Part of `name`. Name of the application to get. Example:
101 * [appsId] - Part of `name`. Name of the application to get. Example: 101 /// apps/myapp.
102 * apps/myapp. 102 ///
103 * 103 /// [ensureResourcesExist] - Certain resources associated with an application
104 * [ensureResourcesExist] - Certain resources associated with an application 104 /// are created on-demand. Controls whether these resources should be created
105 * are created on-demand. Controls whether these resources should be created 105 /// when performing the GET operation. If specified and any resources could
106 * when performing the GET operation. If specified and any resources could not 106 /// not be created, the request will fail with an error code. Additionally,
107 * be created, the request will fail with an error code. Additionally, this 107 /// this parameter can cause the request to take longer to complete.
108 * parameter can cause the request to take longer to complete. 108 ///
109 * 109 /// Completes with a [Application].
110 * Completes with a [Application]. 110 ///
111 * 111 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
112 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 112 /// an error.
113 * error. 113 ///
114 * 114 /// If the used [http.Client] completes with an error when making a REST
115 * If the used [http.Client] completes with an error when making a REST call, 115 /// call, this method will complete with the same error.
116 * this method will complete with the same error. 116 async.Future<Application> get(core.String appsId,
117 */ 117 {core.bool ensureResourcesExist}) {
118 async.Future<Application> get(core.String appsId, {core.bool ensureResourcesEx ist}) {
119 var _url = null; 118 var _url = null;
120 var _queryParams = new core.Map(); 119 var _queryParams = new core.Map();
121 var _uploadMedia = null; 120 var _uploadMedia = null;
122 var _uploadOptions = null; 121 var _uploadOptions = null;
123 var _downloadOptions = commons.DownloadOptions.Metadata; 122 var _downloadOptions = commons.DownloadOptions.Metadata;
124 var _body = null; 123 var _body = null;
125 124
126 if (appsId == null) { 125 if (appsId == null) {
127 throw new core.ArgumentError("Parameter appsId is required."); 126 throw new core.ArgumentError("Parameter appsId is required.");
128 } 127 }
129 if (ensureResourcesExist != null) { 128 if (ensureResourcesExist != null) {
130 _queryParams["ensureResourcesExist"] = ["${ensureResourcesExist}"]; 129 _queryParams["ensureResourcesExist"] = ["${ensureResourcesExist}"];
131 } 130 }
132 131
133 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId'); 132 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId');
134 133
135 var _response = _requester.request(_url, 134 var _response = _requester.request(_url, "GET",
136 "GET", 135 body: _body,
137 body: _body, 136 queryParams: _queryParams,
138 queryParams: _queryParams, 137 uploadOptions: _uploadOptions,
139 uploadOptions: _uploadOptions, 138 uploadMedia: _uploadMedia,
140 uploadMedia: _uploadMedia, 139 downloadOptions: _downloadOptions);
141 downloadOptions: _downloadOptions);
142 return _response.then((data) => new Application.fromJson(data)); 140 return _response.then((data) => new Application.fromJson(data));
143 } 141 }
144 142
145 /** 143 /// Updates the specified Application resource. You can update the following
146 * Updates the specified Application resource. You can update the following 144 /// fields:
147 * fields: 145 /// auth_domain
148 * auth_domain 146 /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/ apps#Application.FIELDS.auth_domain)
149 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/a pps#Application.FIELDS.auth_domain) 147 /// default_cookie_expiration
150 * default_cookie_expiration 148 /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/ apps#Application.FIELDS.default_cookie_expiration)
151 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/a pps#Application.FIELDS.default_cookie_expiration) 149 ///
152 * 150 /// [request] - The metadata request object.
153 * [request] - The metadata request object. 151 ///
154 * 152 /// Request parameters:
155 * Request parameters: 153 ///
156 * 154 /// [appsId] - Part of `name`. Name of the Application resource to update.
157 * [appsId] - Part of `name`. Name of the Application resource to update. 155 /// Example: apps/myapp.
158 * Example: apps/myapp. 156 ///
159 * 157 /// [mask] - Standard field mask for the set of fields to be updated.
160 * [mask] - Standard field mask for the set of fields to be updated. 158 ///
161 * 159 /// Completes with a [Operation].
162 * Completes with a [Operation]. 160 ///
163 * 161 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
164 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 162 /// an error.
165 * error. 163 ///
166 * 164 /// If the used [http.Client] completes with an error when making a REST
167 * If the used [http.Client] completes with an error when making a REST call, 165 /// call, this method will complete with the same error.
168 * this method will complete with the same error. 166 async.Future<Operation> patch(Application request, core.String appsId,
169 */ 167 {core.String mask}) {
170 async.Future<Operation> patch(Application request, core.String appsId, {core.S tring mask}) {
171 var _url = null; 168 var _url = null;
172 var _queryParams = new core.Map(); 169 var _queryParams = new core.Map();
173 var _uploadMedia = null; 170 var _uploadMedia = null;
174 var _uploadOptions = null; 171 var _uploadOptions = null;
175 var _downloadOptions = commons.DownloadOptions.Metadata; 172 var _downloadOptions = commons.DownloadOptions.Metadata;
176 var _body = null; 173 var _body = null;
177 174
178 if (request != null) { 175 if (request != null) {
179 _body = convert.JSON.encode((request).toJson()); 176 _body = convert.JSON.encode((request).toJson());
180 } 177 }
181 if (appsId == null) { 178 if (appsId == null) {
182 throw new core.ArgumentError("Parameter appsId is required."); 179 throw new core.ArgumentError("Parameter appsId is required.");
183 } 180 }
184 if (mask != null) { 181 if (mask != null) {
185 _queryParams["mask"] = [mask]; 182 _queryParams["mask"] = [mask];
186 } 183 }
187 184
188 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId'); 185 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId');
189 186
190 var _response = _requester.request(_url, 187 var _response = _requester.request(_url, "PATCH",
191 "PATCH", 188 body: _body,
192 body: _body, 189 queryParams: _queryParams,
193 queryParams: _queryParams, 190 uploadOptions: _uploadOptions,
194 uploadOptions: _uploadOptions, 191 uploadMedia: _uploadMedia,
195 uploadMedia: _uploadMedia, 192 downloadOptions: _downloadOptions);
196 downloadOptions: _downloadOptions);
197 return _response.then((data) => new Operation.fromJson(data)); 193 return _response.then((data) => new Operation.fromJson(data));
198 } 194 }
199
200 } 195 }
201 196
202
203 class AppsLocationsResourceApi { 197 class AppsLocationsResourceApi {
204 final commons.ApiRequester _requester; 198 final commons.ApiRequester _requester;
205 199
206 AppsLocationsResourceApi(commons.ApiRequester client) : 200 AppsLocationsResourceApi(commons.ApiRequester client) : _requester = client;
207 _requester = client;
208 201
209 /** 202 /// Get information about a location.
210 * Get information about a location. 203 ///
211 * 204 /// Request parameters:
212 * Request parameters: 205 ///
213 * 206 /// [appsId] - Part of `name`. Resource name for the location.
214 * [appsId] - Part of `name`. Resource name for the location. 207 ///
215 * 208 /// [locationsId] - Part of `name`. See documentation of `appsId`.
216 * [locationsId] - Part of `name`. See documentation of `appsId`. 209 ///
217 * 210 /// Completes with a [Location].
218 * Completes with a [Location]. 211 ///
219 * 212 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
220 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 213 /// an error.
221 * error. 214 ///
222 * 215 /// If the used [http.Client] completes with an error when making a REST
223 * If the used [http.Client] completes with an error when making a REST call, 216 /// call, this method will complete with the same error.
224 * this method will complete with the same error.
225 */
226 async.Future<Location> get(core.String appsId, core.String locationsId) { 217 async.Future<Location> get(core.String appsId, core.String locationsId) {
227 var _url = null; 218 var _url = null;
228 var _queryParams = new core.Map(); 219 var _queryParams = new core.Map();
229 var _uploadMedia = null; 220 var _uploadMedia = null;
230 var _uploadOptions = null; 221 var _uploadOptions = null;
231 var _downloadOptions = commons.DownloadOptions.Metadata; 222 var _downloadOptions = commons.DownloadOptions.Metadata;
232 var _body = null; 223 var _body = null;
233 224
234 if (appsId == null) { 225 if (appsId == null) {
235 throw new core.ArgumentError("Parameter appsId is required."); 226 throw new core.ArgumentError("Parameter appsId is required.");
236 } 227 }
237 if (locationsId == null) { 228 if (locationsId == null) {
238 throw new core.ArgumentError("Parameter locationsId is required."); 229 throw new core.ArgumentError("Parameter locationsId is required.");
239 } 230 }
240 231
241 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/locati ons/' + commons.Escaper.ecapeVariable('$locationsId'); 232 _url = 'v1beta4/apps/' +
233 commons.Escaper.ecapeVariable('$appsId') +
234 '/locations/' +
235 commons.Escaper.ecapeVariable('$locationsId');
242 236
243 var _response = _requester.request(_url, 237 var _response = _requester.request(_url, "GET",
244 "GET", 238 body: _body,
245 body: _body, 239 queryParams: _queryParams,
246 queryParams: _queryParams, 240 uploadOptions: _uploadOptions,
247 uploadOptions: _uploadOptions, 241 uploadMedia: _uploadMedia,
248 uploadMedia: _uploadMedia, 242 downloadOptions: _downloadOptions);
249 downloadOptions: _downloadOptions);
250 return _response.then((data) => new Location.fromJson(data)); 243 return _response.then((data) => new Location.fromJson(data));
251 } 244 }
252 245
253 /** 246 /// Lists information about the supported locations for this service.
254 * Lists information about the supported locations for this service. 247 ///
255 * 248 /// Request parameters:
256 * Request parameters: 249 ///
257 * 250 /// [appsId] - Part of `name`. The resource that owns the locations
258 * [appsId] - Part of `name`. The resource that owns the locations collection, 251 /// collection, if applicable.
259 * if applicable. 252 ///
260 * 253 /// [pageToken] - The standard list page token.
261 * [filter] - The standard list filter. 254 ///
262 * 255 /// [pageSize] - The standard list page size.
263 * [pageToken] - The standard list page token. 256 ///
264 * 257 /// [filter] - The standard list filter.
265 * [pageSize] - The standard list page size. 258 ///
266 * 259 /// Completes with a [ListLocationsResponse].
267 * Completes with a [ListLocationsResponse]. 260 ///
268 * 261 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
269 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 262 /// an error.
270 * error. 263 ///
271 * 264 /// If the used [http.Client] completes with an error when making a REST
272 * If the used [http.Client] completes with an error when making a REST call, 265 /// call, this method will complete with the same error.
273 * this method will complete with the same error. 266 async.Future<ListLocationsResponse> list(core.String appsId,
274 */ 267 {core.String pageToken, core.int pageSize, core.String filter}) {
275 async.Future<ListLocationsResponse> list(core.String appsId, {core.String filt er, core.String pageToken, core.int pageSize}) {
276 var _url = null; 268 var _url = null;
277 var _queryParams = new core.Map(); 269 var _queryParams = new core.Map();
278 var _uploadMedia = null; 270 var _uploadMedia = null;
279 var _uploadOptions = null; 271 var _uploadOptions = null;
280 var _downloadOptions = commons.DownloadOptions.Metadata; 272 var _downloadOptions = commons.DownloadOptions.Metadata;
281 var _body = null; 273 var _body = null;
282 274
283 if (appsId == null) { 275 if (appsId == null) {
284 throw new core.ArgumentError("Parameter appsId is required."); 276 throw new core.ArgumentError("Parameter appsId is required.");
285 } 277 }
286 if (filter != null) {
287 _queryParams["filter"] = [filter];
288 }
289 if (pageToken != null) { 278 if (pageToken != null) {
290 _queryParams["pageToken"] = [pageToken]; 279 _queryParams["pageToken"] = [pageToken];
291 } 280 }
292 if (pageSize != null) { 281 if (pageSize != null) {
293 _queryParams["pageSize"] = ["${pageSize}"]; 282 _queryParams["pageSize"] = ["${pageSize}"];
294 } 283 }
284 if (filter != null) {
285 _queryParams["filter"] = [filter];
286 }
295 287
296 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/locati ons'; 288 _url = 'v1beta4/apps/' +
289 commons.Escaper.ecapeVariable('$appsId') +
290 '/locations';
297 291
298 var _response = _requester.request(_url, 292 var _response = _requester.request(_url, "GET",
299 "GET", 293 body: _body,
300 body: _body, 294 queryParams: _queryParams,
301 queryParams: _queryParams, 295 uploadOptions: _uploadOptions,
302 uploadOptions: _uploadOptions, 296 uploadMedia: _uploadMedia,
303 uploadMedia: _uploadMedia, 297 downloadOptions: _downloadOptions);
304 downloadOptions: _downloadOptions);
305 return _response.then((data) => new ListLocationsResponse.fromJson(data)); 298 return _response.then((data) => new ListLocationsResponse.fromJson(data));
306 } 299 }
307
308 } 300 }
309 301
310
311 class AppsModulesResourceApi { 302 class AppsModulesResourceApi {
312 final commons.ApiRequester _requester; 303 final commons.ApiRequester _requester;
313 304
314 AppsModulesVersionsResourceApi get versions => new AppsModulesVersionsResource Api(_requester); 305 AppsModulesVersionsResourceApi get versions =>
306 new AppsModulesVersionsResourceApi(_requester);
315 307
316 AppsModulesResourceApi(commons.ApiRequester client) : 308 AppsModulesResourceApi(commons.ApiRequester client) : _requester = client;
317 _requester = client;
318 309
319 /** 310 /// Deletes the specified module and all enclosed versions.
320 * Deletes the specified module and all enclosed versions. 311 ///
321 * 312 /// Request parameters:
322 * Request parameters: 313 ///
323 * 314 /// [appsId] - Part of `name`. Name of the resource requested. Example:
324 * [appsId] - Part of `name`. Name of the resource requested. Example: 315 /// apps/myapp/modules/default.
325 * apps/myapp/modules/default. 316 ///
326 * 317 /// [modulesId] - Part of `name`. See documentation of `appsId`.
327 * [modulesId] - Part of `name`. See documentation of `appsId`. 318 ///
328 * 319 /// Completes with a [Operation].
329 * Completes with a [Operation]. 320 ///
330 * 321 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
331 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 322 /// an error.
332 * error. 323 ///
333 * 324 /// If the used [http.Client] completes with an error when making a REST
334 * If the used [http.Client] completes with an error when making a REST call, 325 /// call, this method will complete with the same error.
335 * this method will complete with the same error.
336 */
337 async.Future<Operation> delete(core.String appsId, core.String modulesId) { 326 async.Future<Operation> delete(core.String appsId, core.String modulesId) {
338 var _url = null; 327 var _url = null;
339 var _queryParams = new core.Map(); 328 var _queryParams = new core.Map();
340 var _uploadMedia = null; 329 var _uploadMedia = null;
341 var _uploadOptions = null; 330 var _uploadOptions = null;
342 var _downloadOptions = commons.DownloadOptions.Metadata; 331 var _downloadOptions = commons.DownloadOptions.Metadata;
343 var _body = null; 332 var _body = null;
344 333
345 if (appsId == null) { 334 if (appsId == null) {
346 throw new core.ArgumentError("Parameter appsId is required."); 335 throw new core.ArgumentError("Parameter appsId is required.");
347 } 336 }
348 if (modulesId == null) { 337 if (modulesId == null) {
349 throw new core.ArgumentError("Parameter modulesId is required."); 338 throw new core.ArgumentError("Parameter modulesId is required.");
350 } 339 }
351 340
352 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/module s/' + commons.Escaper.ecapeVariable('$modulesId'); 341 _url = 'v1beta4/apps/' +
342 commons.Escaper.ecapeVariable('$appsId') +
343 '/modules/' +
344 commons.Escaper.ecapeVariable('$modulesId');
353 345
354 var _response = _requester.request(_url, 346 var _response = _requester.request(_url, "DELETE",
355 "DELETE", 347 body: _body,
356 body: _body, 348 queryParams: _queryParams,
357 queryParams: _queryParams, 349 uploadOptions: _uploadOptions,
358 uploadOptions: _uploadOptions, 350 uploadMedia: _uploadMedia,
359 uploadMedia: _uploadMedia, 351 downloadOptions: _downloadOptions);
360 downloadOptions: _downloadOptions);
361 return _response.then((data) => new Operation.fromJson(data)); 352 return _response.then((data) => new Operation.fromJson(data));
362 } 353 }
363 354
364 /** 355 /// Gets the current configuration of the specified module.
365 * Gets the current configuration of the specified module. 356 ///
366 * 357 /// Request parameters:
367 * Request parameters: 358 ///
368 * 359 /// [appsId] - Part of `name`. Name of the resource requested. Example:
369 * [appsId] - Part of `name`. Name of the resource requested. Example: 360 /// apps/myapp/modules/default.
370 * apps/myapp/modules/default. 361 ///
371 * 362 /// [modulesId] - Part of `name`. See documentation of `appsId`.
372 * [modulesId] - Part of `name`. See documentation of `appsId`. 363 ///
373 * 364 /// Completes with a [Module].
374 * Completes with a [Module]. 365 ///
375 * 366 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
376 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 367 /// an error.
377 * error. 368 ///
378 * 369 /// If the used [http.Client] completes with an error when making a REST
379 * If the used [http.Client] completes with an error when making a REST call, 370 /// call, this method will complete with the same error.
380 * this method will complete with the same error.
381 */
382 async.Future<Module> get(core.String appsId, core.String modulesId) { 371 async.Future<Module> get(core.String appsId, core.String modulesId) {
383 var _url = null; 372 var _url = null;
384 var _queryParams = new core.Map(); 373 var _queryParams = new core.Map();
385 var _uploadMedia = null; 374 var _uploadMedia = null;
386 var _uploadOptions = null; 375 var _uploadOptions = null;
387 var _downloadOptions = commons.DownloadOptions.Metadata; 376 var _downloadOptions = commons.DownloadOptions.Metadata;
388 var _body = null; 377 var _body = null;
389 378
390 if (appsId == null) { 379 if (appsId == null) {
391 throw new core.ArgumentError("Parameter appsId is required."); 380 throw new core.ArgumentError("Parameter appsId is required.");
392 } 381 }
393 if (modulesId == null) { 382 if (modulesId == null) {
394 throw new core.ArgumentError("Parameter modulesId is required."); 383 throw new core.ArgumentError("Parameter modulesId is required.");
395 } 384 }
396 385
397 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/module s/' + commons.Escaper.ecapeVariable('$modulesId'); 386 _url = 'v1beta4/apps/' +
387 commons.Escaper.ecapeVariable('$appsId') +
388 '/modules/' +
389 commons.Escaper.ecapeVariable('$modulesId');
398 390
399 var _response = _requester.request(_url, 391 var _response = _requester.request(_url, "GET",
400 "GET", 392 body: _body,
401 body: _body, 393 queryParams: _queryParams,
402 queryParams: _queryParams, 394 uploadOptions: _uploadOptions,
403 uploadOptions: _uploadOptions, 395 uploadMedia: _uploadMedia,
404 uploadMedia: _uploadMedia, 396 downloadOptions: _downloadOptions);
405 downloadOptions: _downloadOptions);
406 return _response.then((data) => new Module.fromJson(data)); 397 return _response.then((data) => new Module.fromJson(data));
407 } 398 }
408 399
409 /** 400 /// Lists all the modules in the application.
410 * Lists all the modules in the application. 401 ///
411 * 402 /// Request parameters:
412 * Request parameters: 403 ///
413 * 404 /// [appsId] - Part of `name`. Name of the resource requested. Example:
414 * [appsId] - Part of `name`. Name of the resource requested. Example: 405 /// apps/myapp.
415 * apps/myapp. 406 ///
416 * 407 /// [pageToken] - Continuation token for fetching the next page of results.
417 * [pageSize] - Maximum results to return per page. 408 ///
418 * 409 /// [pageSize] - Maximum results to return per page.
419 * [pageToken] - Continuation token for fetching the next page of results. 410 ///
420 * 411 /// Completes with a [ListModulesResponse].
421 * Completes with a [ListModulesResponse]. 412 ///
422 * 413 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
423 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 414 /// an error.
424 * error. 415 ///
425 * 416 /// If the used [http.Client] completes with an error when making a REST
426 * If the used [http.Client] completes with an error when making a REST call, 417 /// call, this method will complete with the same error.
427 * this method will complete with the same error. 418 async.Future<ListModulesResponse> list(core.String appsId,
428 */ 419 {core.String pageToken, core.int pageSize}) {
429 async.Future<ListModulesResponse> list(core.String appsId, {core.int pageSize, core.String pageToken}) {
430 var _url = null; 420 var _url = null;
431 var _queryParams = new core.Map(); 421 var _queryParams = new core.Map();
432 var _uploadMedia = null; 422 var _uploadMedia = null;
433 var _uploadOptions = null; 423 var _uploadOptions = null;
434 var _downloadOptions = commons.DownloadOptions.Metadata; 424 var _downloadOptions = commons.DownloadOptions.Metadata;
435 var _body = null; 425 var _body = null;
436 426
437 if (appsId == null) { 427 if (appsId == null) {
438 throw new core.ArgumentError("Parameter appsId is required."); 428 throw new core.ArgumentError("Parameter appsId is required.");
439 } 429 }
430 if (pageToken != null) {
431 _queryParams["pageToken"] = [pageToken];
432 }
440 if (pageSize != null) { 433 if (pageSize != null) {
441 _queryParams["pageSize"] = ["${pageSize}"]; 434 _queryParams["pageSize"] = ["${pageSize}"];
442 } 435 }
443 if (pageToken != null) {
444 _queryParams["pageToken"] = [pageToken];
445 }
446 436
447 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/module s'; 437 _url =
438 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/modules';
448 439
449 var _response = _requester.request(_url, 440 var _response = _requester.request(_url, "GET",
450 "GET", 441 body: _body,
451 body: _body, 442 queryParams: _queryParams,
452 queryParams: _queryParams, 443 uploadOptions: _uploadOptions,
453 uploadOptions: _uploadOptions, 444 uploadMedia: _uploadMedia,
454 uploadMedia: _uploadMedia, 445 downloadOptions: _downloadOptions);
455 downloadOptions: _downloadOptions);
456 return _response.then((data) => new ListModulesResponse.fromJson(data)); 446 return _response.then((data) => new ListModulesResponse.fromJson(data));
457 } 447 }
458 448
459 /** 449 /// Updates the configuration of the specified module.
460 * Updates the configuration of the specified module. 450 ///
461 * 451 /// [request] - The metadata request object.
462 * [request] - The metadata request object. 452 ///
463 * 453 /// Request parameters:
464 * Request parameters: 454 ///
465 * 455 /// [appsId] - Part of `name`. Name of the resource to update. Example:
466 * [appsId] - Part of `name`. Name of the resource to update. Example: 456 /// apps/myapp/modules/default.
467 * apps/myapp/modules/default. 457 ///
468 * 458 /// [modulesId] - Part of `name`. See documentation of `appsId`.
469 * [modulesId] - Part of `name`. See documentation of `appsId`. 459 ///
470 * 460 /// [migrateTraffic] - Set to true to gradually shift traffic to one or more
471 * [migrateTraffic] - Set to true to gradually shift traffic to one or more 461 /// versions that you specify. By default, traffic is shifted immediately.
472 * versions that you specify. By default, traffic is shifted immediately. For 462 /// For gradual traffic migration, the target versions must be located within
473 * gradual traffic migration, the target versions must be located within 463 /// instances that are configured for both warmup requests
474 * instances that are configured for both warmup requests 464 /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/ apps.modules.versions#inboundservicetype)
475 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/a pps.modules.versions#inboundservicetype) 465 /// and automatic scaling
476 * and automatic scaling 466 /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/ apps.modules.versions#automaticscaling).
477 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/a pps.modules.versions#automaticscaling). 467 /// You must specify the shardBy
478 * You must specify the shardBy 468 /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/ apps.modules#shardby)
479 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/a pps.modules#shardby) 469 /// field in the Module resource. Gradual traffic migration is not supported
480 * field in the Module resource. Gradual traffic migration is not supported in 470 /// in the App Engine flexible environment. For examples, see Migrating and
481 * the App Engine flexible environment. For examples, see Migrating and 471 /// Splitting Traffic
482 * Splitting Traffic 472 /// (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-tra ffic).
483 * (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traf fic). 473 ///
484 * 474 /// [mask] - Standard field mask for the set of fields to be updated.
485 * [mask] - Standard field mask for the set of fields to be updated. 475 ///
486 * 476 /// Completes with a [Operation].
487 * Completes with a [Operation]. 477 ///
488 * 478 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
489 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 479 /// an error.
490 * error. 480 ///
491 * 481 /// If the used [http.Client] completes with an error when making a REST
492 * If the used [http.Client] completes with an error when making a REST call, 482 /// call, this method will complete with the same error.
493 * this method will complete with the same error. 483 async.Future<Operation> patch(
494 */ 484 Module request, core.String appsId, core.String modulesId,
495 async.Future<Operation> patch(Module request, core.String appsId, core.String modulesId, {core.bool migrateTraffic, core.String mask}) { 485 {core.bool migrateTraffic, core.String mask}) {
496 var _url = null; 486 var _url = null;
497 var _queryParams = new core.Map(); 487 var _queryParams = new core.Map();
498 var _uploadMedia = null; 488 var _uploadMedia = null;
499 var _uploadOptions = null; 489 var _uploadOptions = null;
500 var _downloadOptions = commons.DownloadOptions.Metadata; 490 var _downloadOptions = commons.DownloadOptions.Metadata;
501 var _body = null; 491 var _body = null;
502 492
503 if (request != null) { 493 if (request != null) {
504 _body = convert.JSON.encode((request).toJson()); 494 _body = convert.JSON.encode((request).toJson());
505 } 495 }
506 if (appsId == null) { 496 if (appsId == null) {
507 throw new core.ArgumentError("Parameter appsId is required."); 497 throw new core.ArgumentError("Parameter appsId is required.");
508 } 498 }
509 if (modulesId == null) { 499 if (modulesId == null) {
510 throw new core.ArgumentError("Parameter modulesId is required."); 500 throw new core.ArgumentError("Parameter modulesId is required.");
511 } 501 }
512 if (migrateTraffic != null) { 502 if (migrateTraffic != null) {
513 _queryParams["migrateTraffic"] = ["${migrateTraffic}"]; 503 _queryParams["migrateTraffic"] = ["${migrateTraffic}"];
514 } 504 }
515 if (mask != null) { 505 if (mask != null) {
516 _queryParams["mask"] = [mask]; 506 _queryParams["mask"] = [mask];
517 } 507 }
518 508
519 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/module s/' + commons.Escaper.ecapeVariable('$modulesId'); 509 _url = 'v1beta4/apps/' +
510 commons.Escaper.ecapeVariable('$appsId') +
511 '/modules/' +
512 commons.Escaper.ecapeVariable('$modulesId');
520 513
521 var _response = _requester.request(_url, 514 var _response = _requester.request(_url, "PATCH",
522 "PATCH", 515 body: _body,
523 body: _body, 516 queryParams: _queryParams,
524 queryParams: _queryParams, 517 uploadOptions: _uploadOptions,
525 uploadOptions: _uploadOptions, 518 uploadMedia: _uploadMedia,
526 uploadMedia: _uploadMedia, 519 downloadOptions: _downloadOptions);
527 downloadOptions: _downloadOptions);
528 return _response.then((data) => new Operation.fromJson(data)); 520 return _response.then((data) => new Operation.fromJson(data));
529 } 521 }
530
531 } 522 }
532 523
533
534 class AppsModulesVersionsResourceApi { 524 class AppsModulesVersionsResourceApi {
535 final commons.ApiRequester _requester; 525 final commons.ApiRequester _requester;
536 526
537 AppsModulesVersionsInstancesResourceApi get instances => new AppsModulesVersio nsInstancesResourceApi(_requester); 527 AppsModulesVersionsInstancesResourceApi get instances =>
528 new AppsModulesVersionsInstancesResourceApi(_requester);
538 529
539 AppsModulesVersionsResourceApi(commons.ApiRequester client) : 530 AppsModulesVersionsResourceApi(commons.ApiRequester client)
540 _requester = client; 531 : _requester = client;
541 532
542 /** 533 /// Deploys code and resource files to a new version.
543 * Deploys code and resource files to a new version. 534 ///
544 * 535 /// [request] - The metadata request object.
545 * [request] - The metadata request object. 536 ///
546 * 537 /// Request parameters:
547 * Request parameters: 538 ///
548 * 539 /// [appsId] - Part of `name`. Name of the resource to update. Example:
549 * [appsId] - Part of `name`. Name of the resource to update. Example: 540 /// apps/myapp/modules/default.
550 * apps/myapp/modules/default. 541 ///
551 * 542 /// [modulesId] - Part of `name`. See documentation of `appsId`.
552 * [modulesId] - Part of `name`. See documentation of `appsId`. 543 ///
553 * 544 /// Completes with a [Operation].
554 * Completes with a [Operation]. 545 ///
555 * 546 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
556 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 547 /// an error.
557 * error. 548 ///
558 * 549 /// If the used [http.Client] completes with an error when making a REST
559 * If the used [http.Client] completes with an error when making a REST call, 550 /// call, this method will complete with the same error.
560 * this method will complete with the same error. 551 async.Future<Operation> create(
561 */ 552 Version request, core.String appsId, core.String modulesId) {
562 async.Future<Operation> create(Version request, core.String appsId, core.Strin g modulesId) {
563 var _url = null; 553 var _url = null;
564 var _queryParams = new core.Map(); 554 var _queryParams = new core.Map();
565 var _uploadMedia = null; 555 var _uploadMedia = null;
566 var _uploadOptions = null; 556 var _uploadOptions = null;
567 var _downloadOptions = commons.DownloadOptions.Metadata; 557 var _downloadOptions = commons.DownloadOptions.Metadata;
568 var _body = null; 558 var _body = null;
569 559
570 if (request != null) { 560 if (request != null) {
571 _body = convert.JSON.encode((request).toJson()); 561 _body = convert.JSON.encode((request).toJson());
572 } 562 }
573 if (appsId == null) { 563 if (appsId == null) {
574 throw new core.ArgumentError("Parameter appsId is required."); 564 throw new core.ArgumentError("Parameter appsId is required.");
575 } 565 }
576 if (modulesId == null) { 566 if (modulesId == null) {
577 throw new core.ArgumentError("Parameter modulesId is required."); 567 throw new core.ArgumentError("Parameter modulesId is required.");
578 } 568 }
579 569
580 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/module s/' + commons.Escaper.ecapeVariable('$modulesId') + '/versions'; 570 _url = 'v1beta4/apps/' +
571 commons.Escaper.ecapeVariable('$appsId') +
572 '/modules/' +
573 commons.Escaper.ecapeVariable('$modulesId') +
574 '/versions';
581 575
582 var _response = _requester.request(_url, 576 var _response = _requester.request(_url, "POST",
583 "POST", 577 body: _body,
584 body: _body, 578 queryParams: _queryParams,
585 queryParams: _queryParams, 579 uploadOptions: _uploadOptions,
586 uploadOptions: _uploadOptions, 580 uploadMedia: _uploadMedia,
587 uploadMedia: _uploadMedia, 581 downloadOptions: _downloadOptions);
588 downloadOptions: _downloadOptions);
589 return _response.then((data) => new Operation.fromJson(data)); 582 return _response.then((data) => new Operation.fromJson(data));
590 } 583 }
591 584
592 /** 585 /// Deletes an existing version.
593 * Deletes an existing version. 586 ///
594 * 587 /// Request parameters:
595 * Request parameters: 588 ///
596 * 589 /// [appsId] - Part of `name`. Name of the resource requested. Example:
597 * [appsId] - Part of `name`. Name of the resource requested. Example: 590 /// apps/myapp/modules/default/versions/v1.
598 * apps/myapp/modules/default/versions/v1. 591 ///
599 * 592 /// [modulesId] - Part of `name`. See documentation of `appsId`.
600 * [modulesId] - Part of `name`. See documentation of `appsId`. 593 ///
601 * 594 /// [versionsId] - Part of `name`. See documentation of `appsId`.
602 * [versionsId] - Part of `name`. See documentation of `appsId`. 595 ///
603 * 596 /// Completes with a [Operation].
604 * Completes with a [Operation]. 597 ///
605 * 598 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
606 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 599 /// an error.
607 * error. 600 ///
608 * 601 /// If the used [http.Client] completes with an error when making a REST
609 * If the used [http.Client] completes with an error when making a REST call, 602 /// call, this method will complete with the same error.
610 * this method will complete with the same error. 603 async.Future<Operation> delete(
611 */ 604 core.String appsId, core.String modulesId, core.String versionsId) {
612 async.Future<Operation> delete(core.String appsId, core.String modulesId, core .String versionsId) {
613 var _url = null; 605 var _url = null;
614 var _queryParams = new core.Map(); 606 var _queryParams = new core.Map();
615 var _uploadMedia = null; 607 var _uploadMedia = null;
616 var _uploadOptions = null; 608 var _uploadOptions = null;
617 var _downloadOptions = commons.DownloadOptions.Metadata; 609 var _downloadOptions = commons.DownloadOptions.Metadata;
618 var _body = null; 610 var _body = null;
619 611
620 if (appsId == null) { 612 if (appsId == null) {
621 throw new core.ArgumentError("Parameter appsId is required."); 613 throw new core.ArgumentError("Parameter appsId is required.");
622 } 614 }
623 if (modulesId == null) { 615 if (modulesId == null) {
624 throw new core.ArgumentError("Parameter modulesId is required."); 616 throw new core.ArgumentError("Parameter modulesId is required.");
625 } 617 }
626 if (versionsId == null) { 618 if (versionsId == null) {
627 throw new core.ArgumentError("Parameter versionsId is required."); 619 throw new core.ArgumentError("Parameter versionsId is required.");
628 } 620 }
629 621
630 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/module s/' + commons.Escaper.ecapeVariable('$modulesId') + '/versions/' + commons.Escap er.ecapeVariable('$versionsId'); 622 _url = 'v1beta4/apps/' +
623 commons.Escaper.ecapeVariable('$appsId') +
624 '/modules/' +
625 commons.Escaper.ecapeVariable('$modulesId') +
626 '/versions/' +
627 commons.Escaper.ecapeVariable('$versionsId');
631 628
632 var _response = _requester.request(_url, 629 var _response = _requester.request(_url, "DELETE",
633 "DELETE", 630 body: _body,
634 body: _body, 631 queryParams: _queryParams,
635 queryParams: _queryParams, 632 uploadOptions: _uploadOptions,
636 uploadOptions: _uploadOptions, 633 uploadMedia: _uploadMedia,
637 uploadMedia: _uploadMedia, 634 downloadOptions: _downloadOptions);
638 downloadOptions: _downloadOptions);
639 return _response.then((data) => new Operation.fromJson(data)); 635 return _response.then((data) => new Operation.fromJson(data));
640 } 636 }
641 637
642 /** 638 /// Gets the specified Version resource. By default, only a BASIC_VIEW will
643 * Gets the specified Version resource. By default, only a BASIC_VIEW will be 639 /// be returned. Specify the FULL_VIEW parameter to get the full resource.
644 * returned. Specify the FULL_VIEW parameter to get the full resource. 640 ///
645 * 641 /// Request parameters:
646 * Request parameters: 642 ///
647 * 643 /// [appsId] - Part of `name`. Name of the resource requested. Example:
648 * [appsId] - Part of `name`. Name of the resource requested. Example: 644 /// apps/myapp/modules/default/versions/v1.
649 * apps/myapp/modules/default/versions/v1. 645 ///
650 * 646 /// [modulesId] - Part of `name`. See documentation of `appsId`.
651 * [modulesId] - Part of `name`. See documentation of `appsId`. 647 ///
652 * 648 /// [versionsId] - Part of `name`. See documentation of `appsId`.
653 * [versionsId] - Part of `name`. See documentation of `appsId`. 649 ///
654 * 650 /// [view] - Controls the set of fields returned in the Get response.
655 * [view] - Controls the set of fields returned in the Get response. 651 /// Possible string values are:
656 * Possible string values are: 652 /// - "BASIC" : A BASIC.
657 * - "BASIC" : A BASIC. 653 /// - "FULL" : A FULL.
658 * - "FULL" : A FULL. 654 ///
659 * 655 /// Completes with a [Version].
660 * Completes with a [Version]. 656 ///
661 * 657 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
662 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 658 /// an error.
663 * error. 659 ///
664 * 660 /// If the used [http.Client] completes with an error when making a REST
665 * If the used [http.Client] completes with an error when making a REST call, 661 /// call, this method will complete with the same error.
666 * this method will complete with the same error. 662 async.Future<Version> get(
667 */ 663 core.String appsId, core.String modulesId, core.String versionsId,
668 async.Future<Version> get(core.String appsId, core.String modulesId, core.Stri ng versionsId, {core.String view}) { 664 {core.String view}) {
669 var _url = null; 665 var _url = null;
670 var _queryParams = new core.Map(); 666 var _queryParams = new core.Map();
671 var _uploadMedia = null; 667 var _uploadMedia = null;
672 var _uploadOptions = null; 668 var _uploadOptions = null;
673 var _downloadOptions = commons.DownloadOptions.Metadata; 669 var _downloadOptions = commons.DownloadOptions.Metadata;
674 var _body = null; 670 var _body = null;
675 671
676 if (appsId == null) { 672 if (appsId == null) {
677 throw new core.ArgumentError("Parameter appsId is required."); 673 throw new core.ArgumentError("Parameter appsId is required.");
678 } 674 }
679 if (modulesId == null) { 675 if (modulesId == null) {
680 throw new core.ArgumentError("Parameter modulesId is required."); 676 throw new core.ArgumentError("Parameter modulesId is required.");
681 } 677 }
682 if (versionsId == null) { 678 if (versionsId == null) {
683 throw new core.ArgumentError("Parameter versionsId is required."); 679 throw new core.ArgumentError("Parameter versionsId is required.");
684 } 680 }
685 if (view != null) { 681 if (view != null) {
686 _queryParams["view"] = [view]; 682 _queryParams["view"] = [view];
687 } 683 }
688 684
689 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/module s/' + commons.Escaper.ecapeVariable('$modulesId') + '/versions/' + commons.Escap er.ecapeVariable('$versionsId'); 685 _url = 'v1beta4/apps/' +
686 commons.Escaper.ecapeVariable('$appsId') +
687 '/modules/' +
688 commons.Escaper.ecapeVariable('$modulesId') +
689 '/versions/' +
690 commons.Escaper.ecapeVariable('$versionsId');
690 691
691 var _response = _requester.request(_url, 692 var _response = _requester.request(_url, "GET",
692 "GET", 693 body: _body,
693 body: _body, 694 queryParams: _queryParams,
694 queryParams: _queryParams, 695 uploadOptions: _uploadOptions,
695 uploadOptions: _uploadOptions, 696 uploadMedia: _uploadMedia,
696 uploadMedia: _uploadMedia, 697 downloadOptions: _downloadOptions);
697 downloadOptions: _downloadOptions);
698 return _response.then((data) => new Version.fromJson(data)); 698 return _response.then((data) => new Version.fromJson(data));
699 } 699 }
700 700
701 /** 701 /// Lists the versions of a module.
702 * Lists the versions of a module. 702 ///
703 * 703 /// Request parameters:
704 * Request parameters: 704 ///
705 * 705 /// [appsId] - Part of `name`. Name of the resource requested. Example:
706 * [appsId] - Part of `name`. Name of the resource requested. Example: 706 /// apps/myapp/modules/default.
707 * apps/myapp/modules/default. 707 ///
708 * 708 /// [modulesId] - Part of `name`. See documentation of `appsId`.
709 * [modulesId] - Part of `name`. See documentation of `appsId`. 709 ///
710 * 710 /// [pageSize] - Maximum results to return per page.
711 * [pageToken] - Continuation token for fetching the next page of results. 711 ///
712 * 712 /// [view] - Controls the set of fields returned in the List response.
713 * [pageSize] - Maximum results to return per page. 713 /// Possible string values are:
714 * 714 /// - "BASIC" : A BASIC.
715 * [view] - Controls the set of fields returned in the List response. 715 /// - "FULL" : A FULL.
716 * Possible string values are: 716 ///
717 * - "BASIC" : A BASIC. 717 /// [pageToken] - Continuation token for fetching the next page of results.
718 * - "FULL" : A FULL. 718 ///
719 * 719 /// Completes with a [ListVersionsResponse].
720 * Completes with a [ListVersionsResponse]. 720 ///
721 * 721 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
722 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 722 /// an error.
723 * error. 723 ///
724 * 724 /// If the used [http.Client] completes with an error when making a REST
725 * If the used [http.Client] completes with an error when making a REST call, 725 /// call, this method will complete with the same error.
726 * this method will complete with the same error. 726 async.Future<ListVersionsResponse> list(
727 */ 727 core.String appsId, core.String modulesId,
728 async.Future<ListVersionsResponse> list(core.String appsId, core.String module sId, {core.String pageToken, core.int pageSize, core.String view}) { 728 {core.int pageSize, core.String view, core.String pageToken}) {
729 var _url = null; 729 var _url = null;
730 var _queryParams = new core.Map(); 730 var _queryParams = new core.Map();
731 var _uploadMedia = null; 731 var _uploadMedia = null;
732 var _uploadOptions = null; 732 var _uploadOptions = null;
733 var _downloadOptions = commons.DownloadOptions.Metadata; 733 var _downloadOptions = commons.DownloadOptions.Metadata;
734 var _body = null; 734 var _body = null;
735 735
736 if (appsId == null) { 736 if (appsId == null) {
737 throw new core.ArgumentError("Parameter appsId is required."); 737 throw new core.ArgumentError("Parameter appsId is required.");
738 } 738 }
739 if (modulesId == null) { 739 if (modulesId == null) {
740 throw new core.ArgumentError("Parameter modulesId is required."); 740 throw new core.ArgumentError("Parameter modulesId is required.");
741 } 741 }
742 if (pageToken != null) {
743 _queryParams["pageToken"] = [pageToken];
744 }
745 if (pageSize != null) { 742 if (pageSize != null) {
746 _queryParams["pageSize"] = ["${pageSize}"]; 743 _queryParams["pageSize"] = ["${pageSize}"];
747 } 744 }
748 if (view != null) { 745 if (view != null) {
749 _queryParams["view"] = [view]; 746 _queryParams["view"] = [view];
750 } 747 }
748 if (pageToken != null) {
749 _queryParams["pageToken"] = [pageToken];
750 }
751 751
752 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/module s/' + commons.Escaper.ecapeVariable('$modulesId') + '/versions'; 752 _url = 'v1beta4/apps/' +
753 commons.Escaper.ecapeVariable('$appsId') +
754 '/modules/' +
755 commons.Escaper.ecapeVariable('$modulesId') +
756 '/versions';
753 757
754 var _response = _requester.request(_url, 758 var _response = _requester.request(_url, "GET",
755 "GET", 759 body: _body,
756 body: _body, 760 queryParams: _queryParams,
757 queryParams: _queryParams, 761 uploadOptions: _uploadOptions,
758 uploadOptions: _uploadOptions, 762 uploadMedia: _uploadMedia,
759 uploadMedia: _uploadMedia, 763 downloadOptions: _downloadOptions);
760 downloadOptions: _downloadOptions);
761 return _response.then((data) => new ListVersionsResponse.fromJson(data)); 764 return _response.then((data) => new ListVersionsResponse.fromJson(data));
762 } 765 }
763 766
764 /** 767 /// Updates the specified Version resource. You can specify the following
765 * Updates the specified Version resource. You can specify the following 768 /// fields depending on the App Engine environment and type of scaling that
766 * fields depending on the App Engine environment and type of scaling that the 769 /// the version resource uses:
767 * version resource uses: 770 /// serving_status
768 * serving_status 771 /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/ apps.modules.versions#Version.FIELDS.serving_status):
769 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/a pps.modules.versions#Version.FIELDS.serving_status): 772 /// For Version resources that use basic scaling, manual scaling, or run in
770 * For Version resources that use basic scaling, manual scaling, or run in 773 /// the App Engine flexible environment.
771 * the App Engine flexible environment. 774 /// instance_class
772 * instance_class 775 /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/ apps.modules.versions#Version.FIELDS.instance_class):
773 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/a pps.modules.versions#Version.FIELDS.instance_class): 776 /// For Version resources that run in the App Engine standard environment.
774 * For Version resources that run in the App Engine standard environment. 777 /// automatic_scaling.min_idle_instances
775 * automatic_scaling.min_idle_instances 778 /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/ apps.modules.versions#Version.FIELDS.automatic_scaling):
776 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/a pps.modules.versions#Version.FIELDS.automatic_scaling): 779 /// For Version resources that use automatic scaling and run in the App
777 * For Version resources that use automatic scaling and run in the App Engine 780 /// Engine standard environment.
778 * standard environment. 781 /// automatic_scaling.max_idle_instances
779 * automatic_scaling.max_idle_instances 782 /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/ apps.modules.versions#Version.FIELDS.automatic_scaling):
780 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/a pps.modules.versions#Version.FIELDS.automatic_scaling): 783 /// For Version resources that use automatic scaling and run in the App
781 * For Version resources that use automatic scaling and run in the App Engine 784 /// Engine standard environment.
782 * standard environment. 785 ///
783 * 786 /// [request] - The metadata request object.
784 * [request] - The metadata request object. 787 ///
785 * 788 /// Request parameters:
786 * Request parameters: 789 ///
787 * 790 /// [appsId] - Part of `name`. Name of the resource to update. Example:
788 * [appsId] - Part of `name`. Name of the resource to update. Example: 791 /// apps/myapp/modules/default/versions/1.
789 * apps/myapp/modules/default/versions/1. 792 ///
790 * 793 /// [modulesId] - Part of `name`. See documentation of `appsId`.
791 * [modulesId] - Part of `name`. See documentation of `appsId`. 794 ///
792 * 795 /// [versionsId] - Part of `name`. See documentation of `appsId`.
793 * [versionsId] - Part of `name`. See documentation of `appsId`. 796 ///
794 * 797 /// [mask] - Standard field mask for the set of fields to be updated.
795 * [mask] - Standard field mask for the set of fields to be updated. 798 ///
796 * 799 /// Completes with a [Operation].
797 * Completes with a [Operation]. 800 ///
798 * 801 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
799 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 802 /// an error.
800 * error. 803 ///
801 * 804 /// If the used [http.Client] completes with an error when making a REST
802 * If the used [http.Client] completes with an error when making a REST call, 805 /// call, this method will complete with the same error.
803 * this method will complete with the same error. 806 async.Future<Operation> patch(Version request, core.String appsId,
804 */ 807 core.String modulesId, core.String versionsId,
805 async.Future<Operation> patch(Version request, core.String appsId, core.String modulesId, core.String versionsId, {core.String mask}) { 808 {core.String mask}) {
806 var _url = null; 809 var _url = null;
807 var _queryParams = new core.Map(); 810 var _queryParams = new core.Map();
808 var _uploadMedia = null; 811 var _uploadMedia = null;
809 var _uploadOptions = null; 812 var _uploadOptions = null;
810 var _downloadOptions = commons.DownloadOptions.Metadata; 813 var _downloadOptions = commons.DownloadOptions.Metadata;
811 var _body = null; 814 var _body = null;
812 815
813 if (request != null) { 816 if (request != null) {
814 _body = convert.JSON.encode((request).toJson()); 817 _body = convert.JSON.encode((request).toJson());
815 } 818 }
816 if (appsId == null) { 819 if (appsId == null) {
817 throw new core.ArgumentError("Parameter appsId is required."); 820 throw new core.ArgumentError("Parameter appsId is required.");
818 } 821 }
819 if (modulesId == null) { 822 if (modulesId == null) {
820 throw new core.ArgumentError("Parameter modulesId is required."); 823 throw new core.ArgumentError("Parameter modulesId is required.");
821 } 824 }
822 if (versionsId == null) { 825 if (versionsId == null) {
823 throw new core.ArgumentError("Parameter versionsId is required."); 826 throw new core.ArgumentError("Parameter versionsId is required.");
824 } 827 }
825 if (mask != null) { 828 if (mask != null) {
826 _queryParams["mask"] = [mask]; 829 _queryParams["mask"] = [mask];
827 } 830 }
828 831
829 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/module s/' + commons.Escaper.ecapeVariable('$modulesId') + '/versions/' + commons.Escap er.ecapeVariable('$versionsId'); 832 _url = 'v1beta4/apps/' +
833 commons.Escaper.ecapeVariable('$appsId') +
834 '/modules/' +
835 commons.Escaper.ecapeVariable('$modulesId') +
836 '/versions/' +
837 commons.Escaper.ecapeVariable('$versionsId');
830 838
831 var _response = _requester.request(_url, 839 var _response = _requester.request(_url, "PATCH",
832 "PATCH", 840 body: _body,
833 body: _body, 841 queryParams: _queryParams,
834 queryParams: _queryParams, 842 uploadOptions: _uploadOptions,
835 uploadOptions: _uploadOptions, 843 uploadMedia: _uploadMedia,
836 uploadMedia: _uploadMedia, 844 downloadOptions: _downloadOptions);
837 downloadOptions: _downloadOptions);
838 return _response.then((data) => new Operation.fromJson(data)); 845 return _response.then((data) => new Operation.fromJson(data));
839 } 846 }
840
841 } 847 }
842 848
843
844 class AppsModulesVersionsInstancesResourceApi { 849 class AppsModulesVersionsInstancesResourceApi {
845 final commons.ApiRequester _requester; 850 final commons.ApiRequester _requester;
846 851
847 AppsModulesVersionsInstancesResourceApi(commons.ApiRequester client) : 852 AppsModulesVersionsInstancesResourceApi(commons.ApiRequester client)
848 _requester = client; 853 : _requester = client;
849 854
850 /** 855 /// Enables debugging on a VM instance. This allows you to use the SSH
851 * Enables debugging on a VM instance. This allows you to use the SSH command 856 /// command to connect to the virtual machine where the instance lives. While
852 * to connect to the virtual machine where the instance lives. While in "debug 857 /// in "debug mode", the instance continues to serve live traffic. You should
853 * mode", the instance continues to serve live traffic. You should delete the 858 /// delete the instance when you are done debugging and then allow the system
854 * instance when you are done debugging and then allow the system to take over 859 /// to take over and determine if another instance should be started.Only
855 * and determine if another instance should be started.Only applicable for 860 /// applicable for instances in App Engine flexible environment.
856 * instances in App Engine flexible environment. 861 ///
857 * 862 /// [request] - The metadata request object.
858 * [request] - The metadata request object. 863 ///
859 * 864 /// Request parameters:
860 * Request parameters: 865 ///
861 * 866 /// [appsId] - Part of `name`. Name of the resource requested. Example:
862 * [appsId] - Part of `name`. Name of the resource requested. Example: 867 /// apps/myapp/modules/default/versions/v1/instances/instance-1.
863 * apps/myapp/modules/default/versions/v1/instances/instance-1. 868 ///
864 * 869 /// [modulesId] - Part of `name`. See documentation of `appsId`.
865 * [modulesId] - Part of `name`. See documentation of `appsId`. 870 ///
866 * 871 /// [versionsId] - Part of `name`. See documentation of `appsId`.
867 * [versionsId] - Part of `name`. See documentation of `appsId`. 872 ///
868 * 873 /// [instancesId] - Part of `name`. See documentation of `appsId`.
869 * [instancesId] - Part of `name`. See documentation of `appsId`. 874 ///
870 * 875 /// Completes with a [Operation].
871 * Completes with a [Operation]. 876 ///
872 * 877 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
873 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 878 /// an error.
874 * error. 879 ///
875 * 880 /// If the used [http.Client] completes with an error when making a REST
876 * If the used [http.Client] completes with an error when making a REST call, 881 /// call, this method will complete with the same error.
877 * this method will complete with the same error. 882 async.Future<Operation> debug(
878 */ 883 DebugInstanceRequest request,
879 async.Future<Operation> debug(DebugInstanceRequest request, core.String appsId , core.String modulesId, core.String versionsId, core.String instancesId) { 884 core.String appsId,
885 core.String modulesId,
886 core.String versionsId,
887 core.String instancesId) {
880 var _url = null; 888 var _url = null;
881 var _queryParams = new core.Map(); 889 var _queryParams = new core.Map();
882 var _uploadMedia = null; 890 var _uploadMedia = null;
883 var _uploadOptions = null; 891 var _uploadOptions = null;
884 var _downloadOptions = commons.DownloadOptions.Metadata; 892 var _downloadOptions = commons.DownloadOptions.Metadata;
885 var _body = null; 893 var _body = null;
886 894
887 if (request != null) { 895 if (request != null) {
888 _body = convert.JSON.encode((request).toJson()); 896 _body = convert.JSON.encode((request).toJson());
889 } 897 }
890 if (appsId == null) { 898 if (appsId == null) {
891 throw new core.ArgumentError("Parameter appsId is required."); 899 throw new core.ArgumentError("Parameter appsId is required.");
892 } 900 }
893 if (modulesId == null) { 901 if (modulesId == null) {
894 throw new core.ArgumentError("Parameter modulesId is required."); 902 throw new core.ArgumentError("Parameter modulesId is required.");
895 } 903 }
896 if (versionsId == null) { 904 if (versionsId == null) {
897 throw new core.ArgumentError("Parameter versionsId is required."); 905 throw new core.ArgumentError("Parameter versionsId is required.");
898 } 906 }
899 if (instancesId == null) { 907 if (instancesId == null) {
900 throw new core.ArgumentError("Parameter instancesId is required."); 908 throw new core.ArgumentError("Parameter instancesId is required.");
901 } 909 }
902 910
903 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/module s/' + commons.Escaper.ecapeVariable('$modulesId') + '/versions/' + commons.Escap er.ecapeVariable('$versionsId') + '/instances/' + commons.Escaper.ecapeVariable( '$instancesId') + ':debug'; 911 _url = 'v1beta4/apps/' +
912 commons.Escaper.ecapeVariable('$appsId') +
913 '/modules/' +
914 commons.Escaper.ecapeVariable('$modulesId') +
915 '/versions/' +
916 commons.Escaper.ecapeVariable('$versionsId') +
917 '/instances/' +
918 commons.Escaper.ecapeVariable('$instancesId') +
919 ':debug';
904 920
905 var _response = _requester.request(_url, 921 var _response = _requester.request(_url, "POST",
906 "POST", 922 body: _body,
907 body: _body, 923 queryParams: _queryParams,
908 queryParams: _queryParams, 924 uploadOptions: _uploadOptions,
909 uploadOptions: _uploadOptions, 925 uploadMedia: _uploadMedia,
910 uploadMedia: _uploadMedia, 926 downloadOptions: _downloadOptions);
911 downloadOptions: _downloadOptions);
912 return _response.then((data) => new Operation.fromJson(data)); 927 return _response.then((data) => new Operation.fromJson(data));
913 } 928 }
914 929
915 /** 930 /// Stops a running instance.
916 * Stops a running instance. 931 ///
917 * 932 /// Request parameters:
918 * Request parameters: 933 ///
919 * 934 /// [appsId] - Part of `name`. Name of the resource requested. Example:
920 * [appsId] - Part of `name`. Name of the resource requested. Example: 935 /// apps/myapp/modules/default/versions/v1/instances/instance-1.
921 * apps/myapp/modules/default/versions/v1/instances/instance-1. 936 ///
922 * 937 /// [modulesId] - Part of `name`. See documentation of `appsId`.
923 * [modulesId] - Part of `name`. See documentation of `appsId`. 938 ///
924 * 939 /// [versionsId] - Part of `name`. See documentation of `appsId`.
925 * [versionsId] - Part of `name`. See documentation of `appsId`. 940 ///
926 * 941 /// [instancesId] - Part of `name`. See documentation of `appsId`.
927 * [instancesId] - Part of `name`. See documentation of `appsId`. 942 ///
928 * 943 /// Completes with a [Operation].
929 * Completes with a [Operation]. 944 ///
930 * 945 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
931 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 946 /// an error.
932 * error. 947 ///
933 * 948 /// If the used [http.Client] completes with an error when making a REST
934 * If the used [http.Client] completes with an error when making a REST call, 949 /// call, this method will complete with the same error.
935 * this method will complete with the same error. 950 async.Future<Operation> delete(core.String appsId, core.String modulesId,
936 */ 951 core.String versionsId, core.String instancesId) {
937 async.Future<Operation> delete(core.String appsId, core.String modulesId, core .String versionsId, core.String instancesId) {
938 var _url = null; 952 var _url = null;
939 var _queryParams = new core.Map(); 953 var _queryParams = new core.Map();
940 var _uploadMedia = null; 954 var _uploadMedia = null;
941 var _uploadOptions = null; 955 var _uploadOptions = null;
942 var _downloadOptions = commons.DownloadOptions.Metadata; 956 var _downloadOptions = commons.DownloadOptions.Metadata;
943 var _body = null; 957 var _body = null;
944 958
945 if (appsId == null) { 959 if (appsId == null) {
946 throw new core.ArgumentError("Parameter appsId is required."); 960 throw new core.ArgumentError("Parameter appsId is required.");
947 } 961 }
948 if (modulesId == null) { 962 if (modulesId == null) {
949 throw new core.ArgumentError("Parameter modulesId is required."); 963 throw new core.ArgumentError("Parameter modulesId is required.");
950 } 964 }
951 if (versionsId == null) { 965 if (versionsId == null) {
952 throw new core.ArgumentError("Parameter versionsId is required."); 966 throw new core.ArgumentError("Parameter versionsId is required.");
953 } 967 }
954 if (instancesId == null) { 968 if (instancesId == null) {
955 throw new core.ArgumentError("Parameter instancesId is required."); 969 throw new core.ArgumentError("Parameter instancesId is required.");
956 } 970 }
957 971
958 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/module s/' + commons.Escaper.ecapeVariable('$modulesId') + '/versions/' + commons.Escap er.ecapeVariable('$versionsId') + '/instances/' + commons.Escaper.ecapeVariable( '$instancesId'); 972 _url = 'v1beta4/apps/' +
973 commons.Escaper.ecapeVariable('$appsId') +
974 '/modules/' +
975 commons.Escaper.ecapeVariable('$modulesId') +
976 '/versions/' +
977 commons.Escaper.ecapeVariable('$versionsId') +
978 '/instances/' +
979 commons.Escaper.ecapeVariable('$instancesId');
959 980
960 var _response = _requester.request(_url, 981 var _response = _requester.request(_url, "DELETE",
961 "DELETE", 982 body: _body,
962 body: _body, 983 queryParams: _queryParams,
963 queryParams: _queryParams, 984 uploadOptions: _uploadOptions,
964 uploadOptions: _uploadOptions, 985 uploadMedia: _uploadMedia,
965 uploadMedia: _uploadMedia, 986 downloadOptions: _downloadOptions);
966 downloadOptions: _downloadOptions);
967 return _response.then((data) => new Operation.fromJson(data)); 987 return _response.then((data) => new Operation.fromJson(data));
968 } 988 }
969 989
970 /** 990 /// Gets instance information.
971 * Gets instance information. 991 ///
972 * 992 /// Request parameters:
973 * Request parameters: 993 ///
974 * 994 /// [appsId] - Part of `name`. Name of the resource requested. Example:
975 * [appsId] - Part of `name`. Name of the resource requested. Example: 995 /// apps/myapp/modules/default/versions/v1/instances/instance-1.
976 * apps/myapp/modules/default/versions/v1/instances/instance-1. 996 ///
977 * 997 /// [modulesId] - Part of `name`. See documentation of `appsId`.
978 * [modulesId] - Part of `name`. See documentation of `appsId`. 998 ///
979 * 999 /// [versionsId] - Part of `name`. See documentation of `appsId`.
980 * [versionsId] - Part of `name`. See documentation of `appsId`. 1000 ///
981 * 1001 /// [instancesId] - Part of `name`. See documentation of `appsId`.
982 * [instancesId] - Part of `name`. See documentation of `appsId`. 1002 ///
983 * 1003 /// Completes with a [Instance].
984 * Completes with a [Instance]. 1004 ///
985 * 1005 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
986 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1006 /// an error.
987 * error. 1007 ///
988 * 1008 /// If the used [http.Client] completes with an error when making a REST
989 * If the used [http.Client] completes with an error when making a REST call, 1009 /// call, this method will complete with the same error.
990 * this method will complete with the same error. 1010 async.Future<Instance> get(core.String appsId, core.String modulesId,
991 */ 1011 core.String versionsId, core.String instancesId) {
992 async.Future<Instance> get(core.String appsId, core.String modulesId, core.Str ing versionsId, core.String instancesId) {
993 var _url = null; 1012 var _url = null;
994 var _queryParams = new core.Map(); 1013 var _queryParams = new core.Map();
995 var _uploadMedia = null; 1014 var _uploadMedia = null;
996 var _uploadOptions = null; 1015 var _uploadOptions = null;
997 var _downloadOptions = commons.DownloadOptions.Metadata; 1016 var _downloadOptions = commons.DownloadOptions.Metadata;
998 var _body = null; 1017 var _body = null;
999 1018
1000 if (appsId == null) { 1019 if (appsId == null) {
1001 throw new core.ArgumentError("Parameter appsId is required."); 1020 throw new core.ArgumentError("Parameter appsId is required.");
1002 } 1021 }
1003 if (modulesId == null) { 1022 if (modulesId == null) {
1004 throw new core.ArgumentError("Parameter modulesId is required."); 1023 throw new core.ArgumentError("Parameter modulesId is required.");
1005 } 1024 }
1006 if (versionsId == null) { 1025 if (versionsId == null) {
1007 throw new core.ArgumentError("Parameter versionsId is required."); 1026 throw new core.ArgumentError("Parameter versionsId is required.");
1008 } 1027 }
1009 if (instancesId == null) { 1028 if (instancesId == null) {
1010 throw new core.ArgumentError("Parameter instancesId is required."); 1029 throw new core.ArgumentError("Parameter instancesId is required.");
1011 } 1030 }
1012 1031
1013 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/module s/' + commons.Escaper.ecapeVariable('$modulesId') + '/versions/' + commons.Escap er.ecapeVariable('$versionsId') + '/instances/' + commons.Escaper.ecapeVariable( '$instancesId'); 1032 _url = 'v1beta4/apps/' +
1033 commons.Escaper.ecapeVariable('$appsId') +
1034 '/modules/' +
1035 commons.Escaper.ecapeVariable('$modulesId') +
1036 '/versions/' +
1037 commons.Escaper.ecapeVariable('$versionsId') +
1038 '/instances/' +
1039 commons.Escaper.ecapeVariable('$instancesId');
1014 1040
1015 var _response = _requester.request(_url, 1041 var _response = _requester.request(_url, "GET",
1016 "GET", 1042 body: _body,
1017 body: _body, 1043 queryParams: _queryParams,
1018 queryParams: _queryParams, 1044 uploadOptions: _uploadOptions,
1019 uploadOptions: _uploadOptions, 1045 uploadMedia: _uploadMedia,
1020 uploadMedia: _uploadMedia, 1046 downloadOptions: _downloadOptions);
1021 downloadOptions: _downloadOptions);
1022 return _response.then((data) => new Instance.fromJson(data)); 1047 return _response.then((data) => new Instance.fromJson(data));
1023 } 1048 }
1024 1049
1025 /** 1050 /// Lists the instances of a version.Tip: To aggregate details about
1026 * Lists the instances of a version.Tip: To aggregate details about instances 1051 /// instances over time, see the Stackdriver Monitoring API
1027 * over time, see the Stackdriver Monitoring API 1052 /// (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSerie s/list).
1028 * (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries /list). 1053 ///
1029 * 1054 /// Request parameters:
1030 * Request parameters: 1055 ///
1031 * 1056 /// [appsId] - Part of `name`. Name of the resource requested. Example:
1032 * [appsId] - Part of `name`. Name of the resource requested. Example: 1057 /// apps/myapp/modules/default/versions/v1.
1033 * apps/myapp/modules/default/versions/v1. 1058 ///
1034 * 1059 /// [modulesId] - Part of `name`. See documentation of `appsId`.
1035 * [modulesId] - Part of `name`. See documentation of `appsId`. 1060 ///
1036 * 1061 /// [versionsId] - Part of `name`. See documentation of `appsId`.
1037 * [versionsId] - Part of `name`. See documentation of `appsId`. 1062 ///
1038 * 1063 /// [pageToken] - Continuation token for fetching the next page of results.
1039 * [pageToken] - Continuation token for fetching the next page of results. 1064 ///
1040 * 1065 /// [pageSize] - Maximum results to return per page.
1041 * [pageSize] - Maximum results to return per page. 1066 ///
1042 * 1067 /// Completes with a [ListInstancesResponse].
1043 * Completes with a [ListInstancesResponse]. 1068 ///
1044 * 1069 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1045 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1070 /// an error.
1046 * error. 1071 ///
1047 * 1072 /// If the used [http.Client] completes with an error when making a REST
1048 * If the used [http.Client] completes with an error when making a REST call, 1073 /// call, this method will complete with the same error.
1049 * this method will complete with the same error. 1074 async.Future<ListInstancesResponse> list(
1050 */ 1075 core.String appsId, core.String modulesId, core.String versionsId,
1051 async.Future<ListInstancesResponse> list(core.String appsId, core.String modul esId, core.String versionsId, {core.String pageToken, core.int pageSize}) { 1076 {core.String pageToken, core.int pageSize}) {
1052 var _url = null; 1077 var _url = null;
1053 var _queryParams = new core.Map(); 1078 var _queryParams = new core.Map();
1054 var _uploadMedia = null; 1079 var _uploadMedia = null;
1055 var _uploadOptions = null; 1080 var _uploadOptions = null;
1056 var _downloadOptions = commons.DownloadOptions.Metadata; 1081 var _downloadOptions = commons.DownloadOptions.Metadata;
1057 var _body = null; 1082 var _body = null;
1058 1083
1059 if (appsId == null) { 1084 if (appsId == null) {
1060 throw new core.ArgumentError("Parameter appsId is required."); 1085 throw new core.ArgumentError("Parameter appsId is required.");
1061 } 1086 }
1062 if (modulesId == null) { 1087 if (modulesId == null) {
1063 throw new core.ArgumentError("Parameter modulesId is required."); 1088 throw new core.ArgumentError("Parameter modulesId is required.");
1064 } 1089 }
1065 if (versionsId == null) { 1090 if (versionsId == null) {
1066 throw new core.ArgumentError("Parameter versionsId is required."); 1091 throw new core.ArgumentError("Parameter versionsId is required.");
1067 } 1092 }
1068 if (pageToken != null) { 1093 if (pageToken != null) {
1069 _queryParams["pageToken"] = [pageToken]; 1094 _queryParams["pageToken"] = [pageToken];
1070 } 1095 }
1071 if (pageSize != null) { 1096 if (pageSize != null) {
1072 _queryParams["pageSize"] = ["${pageSize}"]; 1097 _queryParams["pageSize"] = ["${pageSize}"];
1073 } 1098 }
1074 1099
1075 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/module s/' + commons.Escaper.ecapeVariable('$modulesId') + '/versions/' + commons.Escap er.ecapeVariable('$versionsId') + '/instances'; 1100 _url = 'v1beta4/apps/' +
1101 commons.Escaper.ecapeVariable('$appsId') +
1102 '/modules/' +
1103 commons.Escaper.ecapeVariable('$modulesId') +
1104 '/versions/' +
1105 commons.Escaper.ecapeVariable('$versionsId') +
1106 '/instances';
1076 1107
1077 var _response = _requester.request(_url, 1108 var _response = _requester.request(_url, "GET",
1078 "GET", 1109 body: _body,
1079 body: _body, 1110 queryParams: _queryParams,
1080 queryParams: _queryParams, 1111 uploadOptions: _uploadOptions,
1081 uploadOptions: _uploadOptions, 1112 uploadMedia: _uploadMedia,
1082 uploadMedia: _uploadMedia, 1113 downloadOptions: _downloadOptions);
1083 downloadOptions: _downloadOptions);
1084 return _response.then((data) => new ListInstancesResponse.fromJson(data)); 1114 return _response.then((data) => new ListInstancesResponse.fromJson(data));
1085 } 1115 }
1086
1087 } 1116 }
1088 1117
1089
1090 class AppsOperationsResourceApi { 1118 class AppsOperationsResourceApi {
1091 final commons.ApiRequester _requester; 1119 final commons.ApiRequester _requester;
1092 1120
1093 AppsOperationsResourceApi(commons.ApiRequester client) : 1121 AppsOperationsResourceApi(commons.ApiRequester client) : _requester = client;
1094 _requester = client;
1095 1122
1096 /** 1123 /// Gets the latest state of a long-running operation. Clients can use this
1097 * Gets the latest state of a long-running operation. Clients can use this 1124 /// method to poll the operation result at intervals as recommended by the
1098 * method to poll the operation result at intervals as recommended by the API 1125 /// API service.
1099 * service. 1126 ///
1100 * 1127 /// Request parameters:
1101 * Request parameters: 1128 ///
1102 * 1129 /// [appsId] - Part of `name`. The name of the operation resource.
1103 * [appsId] - Part of `name`. The name of the operation resource. 1130 ///
1104 * 1131 /// [operationsId] - Part of `name`. See documentation of `appsId`.
1105 * [operationsId] - Part of `name`. See documentation of `appsId`. 1132 ///
1106 * 1133 /// Completes with a [Operation].
1107 * Completes with a [Operation]. 1134 ///
1108 * 1135 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1109 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1136 /// an error.
1110 * error. 1137 ///
1111 * 1138 /// If the used [http.Client] completes with an error when making a REST
1112 * If the used [http.Client] completes with an error when making a REST call, 1139 /// call, this method will complete with the same error.
1113 * this method will complete with the same error.
1114 */
1115 async.Future<Operation> get(core.String appsId, core.String operationsId) { 1140 async.Future<Operation> get(core.String appsId, core.String operationsId) {
1116 var _url = null; 1141 var _url = null;
1117 var _queryParams = new core.Map(); 1142 var _queryParams = new core.Map();
1118 var _uploadMedia = null; 1143 var _uploadMedia = null;
1119 var _uploadOptions = null; 1144 var _uploadOptions = null;
1120 var _downloadOptions = commons.DownloadOptions.Metadata; 1145 var _downloadOptions = commons.DownloadOptions.Metadata;
1121 var _body = null; 1146 var _body = null;
1122 1147
1123 if (appsId == null) { 1148 if (appsId == null) {
1124 throw new core.ArgumentError("Parameter appsId is required."); 1149 throw new core.ArgumentError("Parameter appsId is required.");
1125 } 1150 }
1126 if (operationsId == null) { 1151 if (operationsId == null) {
1127 throw new core.ArgumentError("Parameter operationsId is required."); 1152 throw new core.ArgumentError("Parameter operationsId is required.");
1128 } 1153 }
1129 1154
1130 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/operat ions/' + commons.Escaper.ecapeVariable('$operationsId'); 1155 _url = 'v1beta4/apps/' +
1156 commons.Escaper.ecapeVariable('$appsId') +
1157 '/operations/' +
1158 commons.Escaper.ecapeVariable('$operationsId');
1131 1159
1132 var _response = _requester.request(_url, 1160 var _response = _requester.request(_url, "GET",
1133 "GET", 1161 body: _body,
1134 body: _body, 1162 queryParams: _queryParams,
1135 queryParams: _queryParams, 1163 uploadOptions: _uploadOptions,
1136 uploadOptions: _uploadOptions, 1164 uploadMedia: _uploadMedia,
1137 uploadMedia: _uploadMedia, 1165 downloadOptions: _downloadOptions);
1138 downloadOptions: _downloadOptions);
1139 return _response.then((data) => new Operation.fromJson(data)); 1166 return _response.then((data) => new Operation.fromJson(data));
1140 } 1167 }
1141 1168
1142 /** 1169 /// Lists operations that match the specified filter in the request. If the
1143 * Lists operations that match the specified filter in the request. If the 1170 /// server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the
1144 * server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name 1171 /// name binding allows API services to override the binding to use different
1145 * binding allows API services to override the binding to use different 1172 /// resource name schemes, such as users / * /operations. To override the
1146 * resource name schemes, such as users / * /operations. To override the 1173 /// binding, API services can add a binding such as "/v1/{name=users / *
1147 * binding, API services can add a binding such as "/v1/{name=users / * 1174 /// }/operations" to their service configuration. For backwards
1148 * }/operations" to their service configuration. For backwards compatibility, 1175 /// compatibility, the default name includes the operations collection id,
1149 * the default name includes the operations collection id, however overriding 1176 /// however overriding users must ensure the name binding is the parent
1150 * users must ensure the name binding is the parent resource, without the 1177 /// resource, without the operations collection id.
1151 * operations collection id. 1178 ///
1152 * 1179 /// Request parameters:
1153 * Request parameters: 1180 ///
1154 * 1181 /// [appsId] - Part of `name`. The name of the operation's parent resource.
1155 * [appsId] - Part of `name`. The name of the operation's parent resource. 1182 ///
1156 * 1183 /// [filter] - The standard list filter.
1157 * [filter] - The standard list filter. 1184 ///
1158 * 1185 /// [pageToken] - The standard list page token.
1159 * [pageToken] - The standard list page token. 1186 ///
1160 * 1187 /// [pageSize] - The standard list page size.
1161 * [pageSize] - The standard list page size. 1188 ///
1162 * 1189 /// Completes with a [ListOperationsResponse].
1163 * Completes with a [ListOperationsResponse]. 1190 ///
1164 * 1191 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1165 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1192 /// an error.
1166 * error. 1193 ///
1167 * 1194 /// If the used [http.Client] completes with an error when making a REST
1168 * If the used [http.Client] completes with an error when making a REST call, 1195 /// call, this method will complete with the same error.
1169 * this method will complete with the same error. 1196 async.Future<ListOperationsResponse> list(core.String appsId,
1170 */ 1197 {core.String filter, core.String pageToken, core.int pageSize}) {
1171 async.Future<ListOperationsResponse> list(core.String appsId, {core.String fil ter, core.String pageToken, core.int pageSize}) {
1172 var _url = null; 1198 var _url = null;
1173 var _queryParams = new core.Map(); 1199 var _queryParams = new core.Map();
1174 var _uploadMedia = null; 1200 var _uploadMedia = null;
1175 var _uploadOptions = null; 1201 var _uploadOptions = null;
1176 var _downloadOptions = commons.DownloadOptions.Metadata; 1202 var _downloadOptions = commons.DownloadOptions.Metadata;
1177 var _body = null; 1203 var _body = null;
1178 1204
1179 if (appsId == null) { 1205 if (appsId == null) {
1180 throw new core.ArgumentError("Parameter appsId is required."); 1206 throw new core.ArgumentError("Parameter appsId is required.");
1181 } 1207 }
1182 if (filter != null) { 1208 if (filter != null) {
1183 _queryParams["filter"] = [filter]; 1209 _queryParams["filter"] = [filter];
1184 } 1210 }
1185 if (pageToken != null) { 1211 if (pageToken != null) {
1186 _queryParams["pageToken"] = [pageToken]; 1212 _queryParams["pageToken"] = [pageToken];
1187 } 1213 }
1188 if (pageSize != null) { 1214 if (pageSize != null) {
1189 _queryParams["pageSize"] = ["${pageSize}"]; 1215 _queryParams["pageSize"] = ["${pageSize}"];
1190 } 1216 }
1191 1217
1192 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/operat ions'; 1218 _url = 'v1beta4/apps/' +
1219 commons.Escaper.ecapeVariable('$appsId') +
1220 '/operations';
1193 1221
1194 var _response = _requester.request(_url, 1222 var _response = _requester.request(_url, "GET",
1195 "GET", 1223 body: _body,
1196 body: _body, 1224 queryParams: _queryParams,
1197 queryParams: _queryParams, 1225 uploadOptions: _uploadOptions,
1198 uploadOptions: _uploadOptions, 1226 uploadMedia: _uploadMedia,
1199 uploadMedia: _uploadMedia, 1227 downloadOptions: _downloadOptions);
1200 downloadOptions: _downloadOptions);
1201 return _response.then((data) => new ListOperationsResponse.fromJson(data)); 1228 return _response.then((data) => new ListOperationsResponse.fromJson(data));
1202 } 1229 }
1203
1204 } 1230 }
1205 1231
1232 /// Google Cloud Endpoints
1233 /// (https://cloud.google.com/appengine/docs/python/endpoints/) configuration
1234 /// for API handlers.
1235 class ApiConfigHandler {
1236 /// Action to take when users access resources that require authentication.
1237 /// Defaults to redirect.
1238 /// Possible string values are:
1239 /// - "AUTH_FAIL_ACTION_UNSPECIFIED" : Not specified.
1240 /// AUTH_FAIL_ACTION_REDIRECT is assumed.
1241 /// - "AUTH_FAIL_ACTION_REDIRECT" : Redirects user to "accounts.google.com".
1242 /// The user is redirected back to the application URL after signing in or
1243 /// creating an account.
1244 /// - "AUTH_FAIL_ACTION_UNAUTHORIZED" : Rejects request with a 401 HTTP
1245 /// status code and an error message.
1246 core.String authFailAction;
1206 1247
1248 /// Level of login required to access this resource. Defaults to optional.
1249 /// Possible string values are:
1250 /// - "LOGIN_UNSPECIFIED" : Not specified. LOGIN_OPTIONAL is assumed.
1251 /// - "LOGIN_OPTIONAL" : Does not require that the user is signed in.
1252 /// - "LOGIN_ADMIN" : If the user is not signed in, the auth_fail_action is
1253 /// taken. In addition, if the user is not an administrator for the
1254 /// application, they are given an error message regardless of
1255 /// auth_fail_action. If the user is an administrator, the handler proceeds.
1256 /// - "LOGIN_REQUIRED" : If the user has signed in, the handler proceeds
1257 /// normally. Otherwise, the auth_fail_action is taken.
1258 core.String login;
1207 1259
1208 /** 1260 /// Path to the script from the application root directory.
1209 * Google Cloud Endpoints
1210 * (https://cloud.google.com/appengine/docs/python/endpoints/) configuration for
1211 * API handlers.
1212 */
1213 class ApiConfigHandler {
1214 /**
1215 * Action to take when users access resources that require authentication.
1216 * Defaults to redirect.
1217 * Possible string values are:
1218 * - "AUTH_FAIL_ACTION_UNSPECIFIED" : Not specified. AUTH_FAIL_ACTION_REDIRECT
1219 * is assumed.
1220 * - "AUTH_FAIL_ACTION_REDIRECT" : Redirects user to "accounts.google.com".
1221 * The user is redirected back to the application URL after signing in or
1222 * creating an account.
1223 * - "AUTH_FAIL_ACTION_UNAUTHORIZED" : Rejects request with a 401 HTTP status
1224 * code and an error message.
1225 */
1226 core.String authFailAction;
1227 /**
1228 * Level of login required to access this resource. Defaults to optional.
1229 * Possible string values are:
1230 * - "LOGIN_UNSPECIFIED" : Not specified. LOGIN_OPTIONAL is assumed.
1231 * - "LOGIN_OPTIONAL" : Does not require that the user is signed in.
1232 * - "LOGIN_ADMIN" : If the user is not signed in, the auth_fail_action is
1233 * taken. In addition, if the user is not an administrator for the
1234 * application, they are given an error message regardless of
1235 * auth_fail_action. If the user is an administrator, the handler proceeds.
1236 * - "LOGIN_REQUIRED" : If the user has signed in, the handler proceeds
1237 * normally. Otherwise, the auth_fail_action is taken.
1238 */
1239 core.String login;
1240 /** Path to the script from the application root directory. */
1241 core.String script; 1261 core.String script;
1242 /** 1262
1243 * Security (HTTPS) enforcement for this URL. 1263 /// Security (HTTPS) enforcement for this URL.
1244 * Possible string values are: 1264 /// Possible string values are:
1245 * - "SECURE_UNSPECIFIED" : Not specified. 1265 /// - "SECURE_UNSPECIFIED" : Not specified.
1246 * - "SECURE_DEFAULT" : Both HTTP and HTTPS requests with URLs that match the 1266 /// - "SECURE_DEFAULT" : Both HTTP and HTTPS requests with URLs that match
1247 * handler succeed without redirects. The application can examine the request 1267 /// the handler succeed without redirects. The application can examine the
1248 * to determine which protocol was used, and respond accordingly. 1268 /// request to determine which protocol was used, and respond accordingly.
1249 * - "SECURE_NEVER" : Requests for a URL that match this handler that use 1269 /// - "SECURE_NEVER" : Requests for a URL that match this handler that use
1250 * HTTPS are automatically redirected to the HTTP equivalent URL. 1270 /// HTTPS are automatically redirected to the HTTP equivalent URL.
1251 * - "SECURE_OPTIONAL" : Both HTTP and HTTPS requests with URLs that match the 1271 /// - "SECURE_OPTIONAL" : Both HTTP and HTTPS requests with URLs that match
1252 * handler succeed without redirects. The application can examine the request 1272 /// the handler succeed without redirects. The application can examine the
1253 * to determine which protocol was used and respond accordingly. 1273 /// request to determine which protocol was used and respond accordingly.
1254 * - "SECURE_ALWAYS" : Requests for a URL that match this handler that do not 1274 /// - "SECURE_ALWAYS" : Requests for a URL that match this handler that do
1255 * use HTTPS are automatically redirected to the HTTPS URL with the same path. 1275 /// not use HTTPS are automatically redirected to the HTTPS URL with the same
1256 * Query parameters are reserved for the redirect. 1276 /// path. Query parameters are reserved for the redirect.
1257 */
1258 core.String securityLevel; 1277 core.String securityLevel;
1259 /** URL to serve the endpoint at. */ 1278
1279 /// URL to serve the endpoint at.
1260 core.String url; 1280 core.String url;
1261 1281
1262 ApiConfigHandler(); 1282 ApiConfigHandler();
1263 1283
1264 ApiConfigHandler.fromJson(core.Map _json) { 1284 ApiConfigHandler.fromJson(core.Map _json) {
1265 if (_json.containsKey("authFailAction")) { 1285 if (_json.containsKey("authFailAction")) {
1266 authFailAction = _json["authFailAction"]; 1286 authFailAction = _json["authFailAction"];
1267 } 1287 }
1268 if (_json.containsKey("login")) { 1288 if (_json.containsKey("login")) {
1269 login = _json["login"]; 1289 login = _json["login"];
1270 } 1290 }
1271 if (_json.containsKey("script")) { 1291 if (_json.containsKey("script")) {
1272 script = _json["script"]; 1292 script = _json["script"];
1273 } 1293 }
1274 if (_json.containsKey("securityLevel")) { 1294 if (_json.containsKey("securityLevel")) {
1275 securityLevel = _json["securityLevel"]; 1295 securityLevel = _json["securityLevel"];
1276 } 1296 }
1277 if (_json.containsKey("url")) { 1297 if (_json.containsKey("url")) {
1278 url = _json["url"]; 1298 url = _json["url"];
1279 } 1299 }
1280 } 1300 }
1281 1301
1282 core.Map<core.String, core.Object> toJson() { 1302 core.Map<core.String, core.Object> toJson() {
1283 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1303 final core.Map<core.String, core.Object> _json =
1304 new core.Map<core.String, core.Object>();
1284 if (authFailAction != null) { 1305 if (authFailAction != null) {
1285 _json["authFailAction"] = authFailAction; 1306 _json["authFailAction"] = authFailAction;
1286 } 1307 }
1287 if (login != null) { 1308 if (login != null) {
1288 _json["login"] = login; 1309 _json["login"] = login;
1289 } 1310 }
1290 if (script != null) { 1311 if (script != null) {
1291 _json["script"] = script; 1312 _json["script"] = script;
1292 } 1313 }
1293 if (securityLevel != null) { 1314 if (securityLevel != null) {
1294 _json["securityLevel"] = securityLevel; 1315 _json["securityLevel"] = securityLevel;
1295 } 1316 }
1296 if (url != null) { 1317 if (url != null) {
1297 _json["url"] = url; 1318 _json["url"] = url;
1298 } 1319 }
1299 return _json; 1320 return _json;
1300 } 1321 }
1301 } 1322 }
1302 1323
1303 /** Uses Google Cloud Endpoints to handle requests. */ 1324 /// Uses Google Cloud Endpoints to handle requests.
1304 class ApiEndpointHandler { 1325 class ApiEndpointHandler {
1305 /** Path to the script from the application root directory. */ 1326 /// Path to the script from the application root directory.
1306 core.String scriptPath; 1327 core.String scriptPath;
1307 1328
1308 ApiEndpointHandler(); 1329 ApiEndpointHandler();
1309 1330
1310 ApiEndpointHandler.fromJson(core.Map _json) { 1331 ApiEndpointHandler.fromJson(core.Map _json) {
1311 if (_json.containsKey("scriptPath")) { 1332 if (_json.containsKey("scriptPath")) {
1312 scriptPath = _json["scriptPath"]; 1333 scriptPath = _json["scriptPath"];
1313 } 1334 }
1314 } 1335 }
1315 1336
1316 core.Map<core.String, core.Object> toJson() { 1337 core.Map<core.String, core.Object> toJson() {
1317 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1338 final core.Map<core.String, core.Object> _json =
1339 new core.Map<core.String, core.Object>();
1318 if (scriptPath != null) { 1340 if (scriptPath != null) {
1319 _json["scriptPath"] = scriptPath; 1341 _json["scriptPath"] = scriptPath;
1320 } 1342 }
1321 return _json; 1343 return _json;
1322 } 1344 }
1323 } 1345 }
1324 1346
1325 /** 1347 /// An Application resource contains the top-level configuration of an App
1326 * An Application resource contains the top-level configuration of an App Engine 1348 /// Engine application.
1327 * application.
1328 */
1329 class Application { 1349 class Application {
1330 /** 1350 /// Google Apps authentication domain that controls which users can access
1331 * Google Apps authentication domain that controls which users can access this 1351 /// this application.Defaults to open access for any Google Account.
1332 * application.Defaults to open access for any Google Account.
1333 */
1334 core.String authDomain; 1352 core.String authDomain;
1335 /** 1353
1336 * Google Cloud Storage bucket that can be used for storing files associated 1354 /// Google Cloud Storage bucket that can be used for storing files associated
1337 * with this application. This bucket is associated with the application and 1355 /// with this application. This bucket is associated with the application and
1338 * can be used by the gcloud deployment commands.@OutputOnly 1356 /// can be used by the gcloud deployment commands.@OutputOnly
1339 */
1340 core.String codeBucket; 1357 core.String codeBucket;
1341 /** 1358
1342 * Google Cloud Storage bucket that can be used by this application to store 1359 /// Google Cloud Storage bucket that can be used by this application to store
1343 * content.@OutputOnly 1360 /// content.@OutputOnly
1344 */
1345 core.String defaultBucket; 1361 core.String defaultBucket;
1346 /** Cookie expiration policy for this application. */ 1362
1363 /// Cookie expiration policy for this application.
1347 core.String defaultCookieExpiration; 1364 core.String defaultCookieExpiration;
1348 /** 1365
1349 * Hostname used to reach the application, as resolved by App 1366 /// Hostname used to reach the application, as resolved by App
1350 * Engine.@OutputOnly 1367 /// Engine.@OutputOnly
1351 */
1352 core.String defaultHostname; 1368 core.String defaultHostname;
1353 /** 1369
1354 * HTTP path dispatch rules for requests to the application that do not 1370 /// HTTP path dispatch rules for requests to the application that do not
1355 * explicitly target a module or version. Rules are 1371 /// explicitly target a module or version. Rules are
1356 * order-dependent.@OutputOnly 1372 /// order-dependent.@OutputOnly
1357 */
1358 core.List<UrlDispatchRule> dispatchRules; 1373 core.List<UrlDispatchRule> dispatchRules;
1359 IdentityAwareProxy iap; 1374 IdentityAwareProxy iap;
1360 /** 1375
1361 * Identifier of the Application resource. This identifier is equivalent to 1376 /// Identifier of the Application resource. This identifier is equivalent to
1362 * the project ID of the Google Cloud Platform project where you want to 1377 /// the project ID of the Google Cloud Platform project where you want to
1363 * deploy your application. Example: myapp. 1378 /// deploy your application. Example: myapp.
1364 */
1365 core.String id; 1379 core.String id;
1366 /** 1380
1367 * Location from which this application will be run. Application instances 1381 /// Location from which this application will be run. Application instances
1368 * will run out of data centers in the chosen location, which is also where 1382 /// will run out of data centers in the chosen location, which is also where
1369 * all of the application's end user content is stored.Defaults to 1383 /// all of the application's end user content is stored.Defaults to
1370 * us-central.Options are:us-central - Central USeurope-west - Western 1384 /// us-central.Options are:us-central - Central USeurope-west - Western
1371 * Europeus-east1 - Eastern US 1385 /// Europeus-east1 - Eastern US
1372 */
1373 core.String location; 1386 core.String location;
1374 /** 1387
1375 * Full path to the Application resource in the API. Example: 1388 /// Full path to the Application resource in the API. Example:
1376 * apps/myapp.@OutputOnly 1389 /// apps/myapp.@OutputOnly
1377 */
1378 core.String name; 1390 core.String name;
1379 1391
1380 Application(); 1392 Application();
1381 1393
1382 Application.fromJson(core.Map _json) { 1394 Application.fromJson(core.Map _json) {
1383 if (_json.containsKey("authDomain")) { 1395 if (_json.containsKey("authDomain")) {
1384 authDomain = _json["authDomain"]; 1396 authDomain = _json["authDomain"];
1385 } 1397 }
1386 if (_json.containsKey("codeBucket")) { 1398 if (_json.containsKey("codeBucket")) {
1387 codeBucket = _json["codeBucket"]; 1399 codeBucket = _json["codeBucket"];
1388 } 1400 }
1389 if (_json.containsKey("defaultBucket")) { 1401 if (_json.containsKey("defaultBucket")) {
1390 defaultBucket = _json["defaultBucket"]; 1402 defaultBucket = _json["defaultBucket"];
1391 } 1403 }
1392 if (_json.containsKey("defaultCookieExpiration")) { 1404 if (_json.containsKey("defaultCookieExpiration")) {
1393 defaultCookieExpiration = _json["defaultCookieExpiration"]; 1405 defaultCookieExpiration = _json["defaultCookieExpiration"];
1394 } 1406 }
1395 if (_json.containsKey("defaultHostname")) { 1407 if (_json.containsKey("defaultHostname")) {
1396 defaultHostname = _json["defaultHostname"]; 1408 defaultHostname = _json["defaultHostname"];
1397 } 1409 }
1398 if (_json.containsKey("dispatchRules")) { 1410 if (_json.containsKey("dispatchRules")) {
1399 dispatchRules = _json["dispatchRules"].map((value) => new UrlDispatchRule. fromJson(value)).toList(); 1411 dispatchRules = _json["dispatchRules"]
1412 .map((value) => new UrlDispatchRule.fromJson(value))
1413 .toList();
1400 } 1414 }
1401 if (_json.containsKey("iap")) { 1415 if (_json.containsKey("iap")) {
1402 iap = new IdentityAwareProxy.fromJson(_json["iap"]); 1416 iap = new IdentityAwareProxy.fromJson(_json["iap"]);
1403 } 1417 }
1404 if (_json.containsKey("id")) { 1418 if (_json.containsKey("id")) {
1405 id = _json["id"]; 1419 id = _json["id"];
1406 } 1420 }
1407 if (_json.containsKey("location")) { 1421 if (_json.containsKey("location")) {
1408 location = _json["location"]; 1422 location = _json["location"];
1409 } 1423 }
1410 if (_json.containsKey("name")) { 1424 if (_json.containsKey("name")) {
1411 name = _json["name"]; 1425 name = _json["name"];
1412 } 1426 }
1413 } 1427 }
1414 1428
1415 core.Map<core.String, core.Object> toJson() { 1429 core.Map<core.String, core.Object> toJson() {
1416 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1430 final core.Map<core.String, core.Object> _json =
1431 new core.Map<core.String, core.Object>();
1417 if (authDomain != null) { 1432 if (authDomain != null) {
1418 _json["authDomain"] = authDomain; 1433 _json["authDomain"] = authDomain;
1419 } 1434 }
1420 if (codeBucket != null) { 1435 if (codeBucket != null) {
1421 _json["codeBucket"] = codeBucket; 1436 _json["codeBucket"] = codeBucket;
1422 } 1437 }
1423 if (defaultBucket != null) { 1438 if (defaultBucket != null) {
1424 _json["defaultBucket"] = defaultBucket; 1439 _json["defaultBucket"] = defaultBucket;
1425 } 1440 }
1426 if (defaultCookieExpiration != null) { 1441 if (defaultCookieExpiration != null) {
1427 _json["defaultCookieExpiration"] = defaultCookieExpiration; 1442 _json["defaultCookieExpiration"] = defaultCookieExpiration;
1428 } 1443 }
1429 if (defaultHostname != null) { 1444 if (defaultHostname != null) {
1430 _json["defaultHostname"] = defaultHostname; 1445 _json["defaultHostname"] = defaultHostname;
1431 } 1446 }
1432 if (dispatchRules != null) { 1447 if (dispatchRules != null) {
1433 _json["dispatchRules"] = dispatchRules.map((value) => (value).toJson()).to List(); 1448 _json["dispatchRules"] =
1449 dispatchRules.map((value) => (value).toJson()).toList();
1434 } 1450 }
1435 if (iap != null) { 1451 if (iap != null) {
1436 _json["iap"] = (iap).toJson(); 1452 _json["iap"] = (iap).toJson();
1437 } 1453 }
1438 if (id != null) { 1454 if (id != null) {
1439 _json["id"] = id; 1455 _json["id"] = id;
1440 } 1456 }
1441 if (location != null) { 1457 if (location != null) {
1442 _json["location"] = location; 1458 _json["location"] = location;
1443 } 1459 }
1444 if (name != null) { 1460 if (name != null) {
1445 _json["name"] = name; 1461 _json["name"] = name;
1446 } 1462 }
1447 return _json; 1463 return _json;
1448 } 1464 }
1449 } 1465 }
1450 1466
1451 /** 1467 /// Automatic scaling is based on request rate, response latencies, and other
1452 * Automatic scaling is based on request rate, response latencies, and other 1468 /// application metrics.
1453 * application metrics.
1454 */
1455 class AutomaticScaling { 1469 class AutomaticScaling {
1456 /** 1470 /// Amount of time that the Autoscaler
1457 * Amount of time that the Autoscaler 1471 /// (https://cloud.google.com/compute/docs/autoscaler/) should wait between
1458 * (https://cloud.google.com/compute/docs/autoscaler/) should wait between 1472 /// changes to the number of virtual machines. Only applicable for VM
1459 * changes to the number of virtual machines. Only applicable for VM runtimes. 1473 /// runtimes.
1460 */
1461 core.String coolDownPeriod; 1474 core.String coolDownPeriod;
1462 /** Target scaling by CPU usage. */ 1475
1476 /// Target scaling by CPU usage.
1463 CpuUtilization cpuUtilization; 1477 CpuUtilization cpuUtilization;
1464 /** Target scaling by disk usage. */ 1478
1479 /// Target scaling by disk usage.
1465 DiskUtilization diskUtilization; 1480 DiskUtilization diskUtilization;
1466 /** 1481
1467 * Number of concurrent requests an automatic scaling instance can accept 1482 /// Number of concurrent requests an automatic scaling instance can accept
1468 * before the scheduler spawns a new instance.Defaults to a runtime-specific 1483 /// before the scheduler spawns a new instance.Defaults to a runtime-specific
1469 * value. 1484 /// value.
1470 */
1471 core.int maxConcurrentRequests; 1485 core.int maxConcurrentRequests;
1472 /** 1486
1473 * Maximum number of idle instances that should be maintained for this 1487 /// Maximum number of idle instances that should be maintained for this
1474 * version. 1488 /// version.
1475 */
1476 core.int maxIdleInstances; 1489 core.int maxIdleInstances;
1477 /** 1490
1478 * Maximum amount of time that a request should wait in the pending queue 1491 /// Maximum amount of time that a request should wait in the pending queue
1479 * before starting a new instance to handle it. 1492 /// before starting a new instance to handle it.
1480 */
1481 core.String maxPendingLatency; 1493 core.String maxPendingLatency;
1482 /** Maximum number of instances that should be started to handle requests. */ 1494
1495 /// Maximum number of instances that should be started to handle requests.
1483 core.int maxTotalInstances; 1496 core.int maxTotalInstances;
1484 /** 1497
1485 * Minimum number of idle instances that should be maintained for this 1498 /// Minimum number of idle instances that should be maintained for this
1486 * version. Only applicable for the default version of a module. 1499 /// version. Only applicable for the default version of a module.
1487 */
1488 core.int minIdleInstances; 1500 core.int minIdleInstances;
1489 /** 1501
1490 * Minimum amount of time a request should wait in the pending queue before 1502 /// Minimum amount of time a request should wait in the pending queue before
1491 * starting a new instance to handle it. 1503 /// starting a new instance to handle it.
1492 */
1493 core.String minPendingLatency; 1504 core.String minPendingLatency;
1494 /** 1505
1495 * Minimum number of instances that should be maintained for this version. 1506 /// Minimum number of instances that should be maintained for this version.
1496 */
1497 core.int minTotalInstances; 1507 core.int minTotalInstances;
1498 /** Target scaling by network usage. */ 1508
1509 /// Target scaling by network usage.
1499 NetworkUtilization networkUtilization; 1510 NetworkUtilization networkUtilization;
1500 /** Target scaling by request utilization. */ 1511
1512 /// Target scaling by request utilization.
1501 RequestUtilization requestUtilization; 1513 RequestUtilization requestUtilization;
1502 1514
1503 AutomaticScaling(); 1515 AutomaticScaling();
1504 1516
1505 AutomaticScaling.fromJson(core.Map _json) { 1517 AutomaticScaling.fromJson(core.Map _json) {
1506 if (_json.containsKey("coolDownPeriod")) { 1518 if (_json.containsKey("coolDownPeriod")) {
1507 coolDownPeriod = _json["coolDownPeriod"]; 1519 coolDownPeriod = _json["coolDownPeriod"];
1508 } 1520 }
1509 if (_json.containsKey("cpuUtilization")) { 1521 if (_json.containsKey("cpuUtilization")) {
1510 cpuUtilization = new CpuUtilization.fromJson(_json["cpuUtilization"]); 1522 cpuUtilization = new CpuUtilization.fromJson(_json["cpuUtilization"]);
(...skipping 16 matching lines...) Expand all
1527 if (_json.containsKey("minIdleInstances")) { 1539 if (_json.containsKey("minIdleInstances")) {
1528 minIdleInstances = _json["minIdleInstances"]; 1540 minIdleInstances = _json["minIdleInstances"];
1529 } 1541 }
1530 if (_json.containsKey("minPendingLatency")) { 1542 if (_json.containsKey("minPendingLatency")) {
1531 minPendingLatency = _json["minPendingLatency"]; 1543 minPendingLatency = _json["minPendingLatency"];
1532 } 1544 }
1533 if (_json.containsKey("minTotalInstances")) { 1545 if (_json.containsKey("minTotalInstances")) {
1534 minTotalInstances = _json["minTotalInstances"]; 1546 minTotalInstances = _json["minTotalInstances"];
1535 } 1547 }
1536 if (_json.containsKey("networkUtilization")) { 1548 if (_json.containsKey("networkUtilization")) {
1537 networkUtilization = new NetworkUtilization.fromJson(_json["networkUtiliza tion"]); 1549 networkUtilization =
1550 new NetworkUtilization.fromJson(_json["networkUtilization"]);
1538 } 1551 }
1539 if (_json.containsKey("requestUtilization")) { 1552 if (_json.containsKey("requestUtilization")) {
1540 requestUtilization = new RequestUtilization.fromJson(_json["requestUtiliza tion"]); 1553 requestUtilization =
1554 new RequestUtilization.fromJson(_json["requestUtilization"]);
1541 } 1555 }
1542 } 1556 }
1543 1557
1544 core.Map<core.String, core.Object> toJson() { 1558 core.Map<core.String, core.Object> toJson() {
1545 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1559 final core.Map<core.String, core.Object> _json =
1560 new core.Map<core.String, core.Object>();
1546 if (coolDownPeriod != null) { 1561 if (coolDownPeriod != null) {
1547 _json["coolDownPeriod"] = coolDownPeriod; 1562 _json["coolDownPeriod"] = coolDownPeriod;
1548 } 1563 }
1549 if (cpuUtilization != null) { 1564 if (cpuUtilization != null) {
1550 _json["cpuUtilization"] = (cpuUtilization).toJson(); 1565 _json["cpuUtilization"] = (cpuUtilization).toJson();
1551 } 1566 }
1552 if (diskUtilization != null) { 1567 if (diskUtilization != null) {
1553 _json["diskUtilization"] = (diskUtilization).toJson(); 1568 _json["diskUtilization"] = (diskUtilization).toJson();
1554 } 1569 }
1555 if (maxConcurrentRequests != null) { 1570 if (maxConcurrentRequests != null) {
(...skipping 20 matching lines...) Expand all
1576 if (networkUtilization != null) { 1591 if (networkUtilization != null) {
1577 _json["networkUtilization"] = (networkUtilization).toJson(); 1592 _json["networkUtilization"] = (networkUtilization).toJson();
1578 } 1593 }
1579 if (requestUtilization != null) { 1594 if (requestUtilization != null) {
1580 _json["requestUtilization"] = (requestUtilization).toJson(); 1595 _json["requestUtilization"] = (requestUtilization).toJson();
1581 } 1596 }
1582 return _json; 1597 return _json;
1583 } 1598 }
1584 } 1599 }
1585 1600
1586 /** 1601 /// A module with basic scaling will create an instance when the application
1587 * A module with basic scaling will create an instance when the application 1602 /// receives a request. The instance will be turned down when the app becomes
1588 * receives a request. The instance will be turned down when the app becomes 1603 /// idle. Basic scaling is ideal for work that is intermittent or driven by
1589 * idle. Basic scaling is ideal for work that is intermittent or driven by user 1604 /// user activity.
1590 * activity.
1591 */
1592 class BasicScaling { 1605 class BasicScaling {
1593 /** 1606 /// Duration of time after the last request that an instance must wait before
1594 * Duration of time after the last request that an instance must wait before 1607 /// the instance is shut down.
1595 * the instance is shut down.
1596 */
1597 core.String idleTimeout; 1608 core.String idleTimeout;
1598 /** Maximum number of instances to create for this version. */ 1609
1610 /// Maximum number of instances to create for this version.
1599 core.int maxInstances; 1611 core.int maxInstances;
1600 1612
1601 BasicScaling(); 1613 BasicScaling();
1602 1614
1603 BasicScaling.fromJson(core.Map _json) { 1615 BasicScaling.fromJson(core.Map _json) {
1604 if (_json.containsKey("idleTimeout")) { 1616 if (_json.containsKey("idleTimeout")) {
1605 idleTimeout = _json["idleTimeout"]; 1617 idleTimeout = _json["idleTimeout"];
1606 } 1618 }
1607 if (_json.containsKey("maxInstances")) { 1619 if (_json.containsKey("maxInstances")) {
1608 maxInstances = _json["maxInstances"]; 1620 maxInstances = _json["maxInstances"];
1609 } 1621 }
1610 } 1622 }
1611 1623
1612 core.Map<core.String, core.Object> toJson() { 1624 core.Map<core.String, core.Object> toJson() {
1613 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>();
1614 if (idleTimeout != null) { 1627 if (idleTimeout != null) {
1615 _json["idleTimeout"] = idleTimeout; 1628 _json["idleTimeout"] = idleTimeout;
1616 } 1629 }
1617 if (maxInstances != null) { 1630 if (maxInstances != null) {
1618 _json["maxInstances"] = maxInstances; 1631 _json["maxInstances"] = maxInstances;
1619 } 1632 }
1620 return _json; 1633 return _json;
1621 } 1634 }
1622 } 1635 }
1623 1636
1624 /** 1637 /// Docker image that is used to create a container and start a VM instance for
1625 * Docker image that is used to create a container and start a VM instance for 1638 /// the version that you deploy. Only applicable for instances running in the
1626 * the version that you deploy. Only applicable for instances running in the App 1639 /// App Engine flexible environment.
1627 * Engine flexible environment.
1628 */
1629 class ContainerInfo { 1640 class ContainerInfo {
1630 /** 1641 /// URI to the hosted container image in Google Container Registry. The URI
1631 * URI to the hosted container image in Google Container Registry. The URI 1642 /// must be fully qualified and include a tag or digest. Examples:
1632 * must be fully qualified and include a tag or digest. Examples: 1643 /// "gcr.io/my-project/image:tag" or "gcr.io/my-project/image@digest"
1633 * "gcr.io/my-project/image:tag" or "gcr.io/my-project/image@digest"
1634 */
1635 core.String image; 1644 core.String image;
1636 1645
1637 ContainerInfo(); 1646 ContainerInfo();
1638 1647
1639 ContainerInfo.fromJson(core.Map _json) { 1648 ContainerInfo.fromJson(core.Map _json) {
1640 if (_json.containsKey("image")) { 1649 if (_json.containsKey("image")) {
1641 image = _json["image"]; 1650 image = _json["image"];
1642 } 1651 }
1643 } 1652 }
1644 1653
1645 core.Map<core.String, core.Object> toJson() { 1654 core.Map<core.String, core.Object> toJson() {
1646 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1655 final core.Map<core.String, core.Object> _json =
1656 new core.Map<core.String, core.Object>();
1647 if (image != null) { 1657 if (image != null) {
1648 _json["image"] = image; 1658 _json["image"] = image;
1649 } 1659 }
1650 return _json; 1660 return _json;
1651 } 1661 }
1652 } 1662 }
1653 1663
1654 /** Target scaling by CPU usage. */ 1664 /// Target scaling by CPU usage.
1655 class CpuUtilization { 1665 class CpuUtilization {
1656 /** Period of time over which CPU utilization is calculated. */ 1666 /// Period of time over which CPU utilization is calculated.
1657 core.String aggregationWindowLength; 1667 core.String aggregationWindowLength;
1658 /** 1668
1659 * Target CPU utilization ratio to maintain when scaling. Must be between 0 1669 /// Target CPU utilization ratio to maintain when scaling. Must be between 0
1660 * and 1. 1670 /// and 1.
1661 */
1662 core.double targetUtilization; 1671 core.double targetUtilization;
1663 1672
1664 CpuUtilization(); 1673 CpuUtilization();
1665 1674
1666 CpuUtilization.fromJson(core.Map _json) { 1675 CpuUtilization.fromJson(core.Map _json) {
1667 if (_json.containsKey("aggregationWindowLength")) { 1676 if (_json.containsKey("aggregationWindowLength")) {
1668 aggregationWindowLength = _json["aggregationWindowLength"]; 1677 aggregationWindowLength = _json["aggregationWindowLength"];
1669 } 1678 }
1670 if (_json.containsKey("targetUtilization")) { 1679 if (_json.containsKey("targetUtilization")) {
1671 targetUtilization = _json["targetUtilization"]; 1680 targetUtilization = _json["targetUtilization"];
1672 } 1681 }
1673 } 1682 }
1674 1683
1675 core.Map<core.String, core.Object> toJson() { 1684 core.Map<core.String, core.Object> toJson() {
1676 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1685 final core.Map<core.String, core.Object> _json =
1686 new core.Map<core.String, core.Object>();
1677 if (aggregationWindowLength != null) { 1687 if (aggregationWindowLength != null) {
1678 _json["aggregationWindowLength"] = aggregationWindowLength; 1688 _json["aggregationWindowLength"] = aggregationWindowLength;
1679 } 1689 }
1680 if (targetUtilization != null) { 1690 if (targetUtilization != null) {
1681 _json["targetUtilization"] = targetUtilization; 1691 _json["targetUtilization"] = targetUtilization;
1682 } 1692 }
1683 return _json; 1693 return _json;
1684 } 1694 }
1685 } 1695 }
1686 1696
1687 /** Request message for Instances.DebugInstance. */ 1697 /// Request message for Instances.DebugInstance.
1688 class DebugInstanceRequest { 1698 class DebugInstanceRequest {
1689 /** 1699 /// Public SSH key to add to the instance. Examples:
1690 * Public SSH key to add to the instance. Examples: 1700 /// [USERNAME]:ssh-rsa [KEY_VALUE] [USERNAME]
1691 * [USERNAME]:ssh-rsa [KEY_VALUE] [USERNAME] 1701 /// [USERNAME]:ssh-rsa [KEY_VALUE] google-ssh
1692 * [USERNAME]:ssh-rsa [KEY_VALUE] google-ssh 1702 /// {"userName":"[USERNAME]","expireOn":"[EXPIRE_TIME]"}For more information,
1693 * {"userName":"[USERNAME]","expireOn":"[EXPIRE_TIME]"}For more information, 1703 /// see Adding and Removing SSH Keys
1694 * see Adding and Removing SSH Keys 1704 /// (https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys) .
1695 * (https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys).
1696 */
1697 core.String sshKey; 1705 core.String sshKey;
1698 1706
1699 DebugInstanceRequest(); 1707 DebugInstanceRequest();
1700 1708
1701 DebugInstanceRequest.fromJson(core.Map _json) { 1709 DebugInstanceRequest.fromJson(core.Map _json) {
1702 if (_json.containsKey("sshKey")) { 1710 if (_json.containsKey("sshKey")) {
1703 sshKey = _json["sshKey"]; 1711 sshKey = _json["sshKey"];
1704 } 1712 }
1705 } 1713 }
1706 1714
1707 core.Map<core.String, core.Object> toJson() { 1715 core.Map<core.String, core.Object> toJson() {
1708 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1716 final core.Map<core.String, core.Object> _json =
1717 new core.Map<core.String, core.Object>();
1709 if (sshKey != null) { 1718 if (sshKey != null) {
1710 _json["sshKey"] = sshKey; 1719 _json["sshKey"] = sshKey;
1711 } 1720 }
1712 return _json; 1721 return _json;
1713 } 1722 }
1714 } 1723 }
1715 1724
1716 /** Code and application artifacts used to deploy a version to App Engine. */ 1725 /// Code and application artifacts used to deploy a version to App Engine.
1717 class Deployment { 1726 class Deployment {
1718 /** 1727 /// The Docker image for the container that runs the version. Only applicable
1719 * The Docker image for the container that runs the version. Only applicable 1728 /// for instances running in the App Engine flexible environment.
1720 * for instances running in the App Engine flexible environment.
1721 */
1722 ContainerInfo container; 1729 ContainerInfo container;
1723 /** 1730
1724 * Manifest of the files stored in Google Cloud Storage that are included as 1731 /// Manifest of the files stored in Google Cloud Storage that are included as
1725 * part of this version. All files must be readable using the credentials 1732 /// part of this version. All files must be readable using the credentials
1726 * supplied with this call. 1733 /// supplied with this call.
1727 */
1728 core.Map<core.String, FileInfo> files; 1734 core.Map<core.String, FileInfo> files;
1729 /** 1735
1730 * Origin of the source code for this deployment. There can be more than one 1736 /// Origin of the source code for this deployment. There can be more than one
1731 * source reference per version if source code is distributed among multiple 1737 /// source reference per version if source code is distributed among multiple
1732 * repositories. 1738 /// repositories.
1733 */
1734 core.List<SourceReference> sourceReferences; 1739 core.List<SourceReference> sourceReferences;
1735 1740
1736 Deployment(); 1741 Deployment();
1737 1742
1738 Deployment.fromJson(core.Map _json) { 1743 Deployment.fromJson(core.Map _json) {
1739 if (_json.containsKey("container")) { 1744 if (_json.containsKey("container")) {
1740 container = new ContainerInfo.fromJson(_json["container"]); 1745 container = new ContainerInfo.fromJson(_json["container"]);
1741 } 1746 }
1742 if (_json.containsKey("files")) { 1747 if (_json.containsKey("files")) {
1743 files = commons.mapMap<core.Map<core.String, core.Object>, FileInfo>(_json ["files"], (core.Map<core.String, core.Object> item) => new FileInfo.fromJson(it em)); 1748 files = commons.mapMap<core.Map<core.String, core.Object>, FileInfo>(
1749 _json["files"],
1750 (core.Map<core.String, core.Object> item) =>
1751 new FileInfo.fromJson(item));
1744 } 1752 }
1745 if (_json.containsKey("sourceReferences")) { 1753 if (_json.containsKey("sourceReferences")) {
1746 sourceReferences = _json["sourceReferences"].map((value) => new SourceRefe rence.fromJson(value)).toList(); 1754 sourceReferences = _json["sourceReferences"]
1755 .map((value) => new SourceReference.fromJson(value))
1756 .toList();
1747 } 1757 }
1748 } 1758 }
1749 1759
1750 core.Map<core.String, core.Object> toJson() { 1760 core.Map<core.String, core.Object> toJson() {
1751 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1761 final core.Map<core.String, core.Object> _json =
1762 new core.Map<core.String, core.Object>();
1752 if (container != null) { 1763 if (container != null) {
1753 _json["container"] = (container).toJson(); 1764 _json["container"] = (container).toJson();
1754 } 1765 }
1755 if (files != null) { 1766 if (files != null) {
1756 _json["files"] = commons.mapMap<FileInfo, core.Map<core.String, core.Objec t>>(files, (FileInfo item) => (item).toJson()); 1767 _json["files"] =
1768 commons.mapMap<FileInfo, core.Map<core.String, core.Object>>(
1769 files, (FileInfo item) => (item).toJson());
1757 } 1770 }
1758 if (sourceReferences != null) { 1771 if (sourceReferences != null) {
1759 _json["sourceReferences"] = sourceReferences.map((value) => (value).toJson ()).toList(); 1772 _json["sourceReferences"] =
1773 sourceReferences.map((value) => (value).toJson()).toList();
1760 } 1774 }
1761 return _json; 1775 return _json;
1762 } 1776 }
1763 } 1777 }
1764 1778
1765 /** Target scaling by disk usage. Only applicable for VM runtimes. */ 1779 /// Target scaling by disk usage. Only applicable for VM runtimes.
1766 class DiskUtilization { 1780 class DiskUtilization {
1767 /** Target bytes read per second. */ 1781 /// Target bytes read per second.
1768 core.int targetReadBytesPerSec; 1782 core.int targetReadBytesPerSec;
1769 /** Target ops read per second. */ 1783
1784 /// Target ops read per second.
1770 core.int targetReadOpsPerSec; 1785 core.int targetReadOpsPerSec;
1771 /** Target bytes written per second. */ 1786
1787 /// Target bytes written per second.
1772 core.int targetWriteBytesPerSec; 1788 core.int targetWriteBytesPerSec;
1773 /** Target ops written per second. */ 1789
1790 /// Target ops written per second.
1774 core.int targetWriteOpsPerSec; 1791 core.int targetWriteOpsPerSec;
1775 1792
1776 DiskUtilization(); 1793 DiskUtilization();
1777 1794
1778 DiskUtilization.fromJson(core.Map _json) { 1795 DiskUtilization.fromJson(core.Map _json) {
1779 if (_json.containsKey("targetReadBytesPerSec")) { 1796 if (_json.containsKey("targetReadBytesPerSec")) {
1780 targetReadBytesPerSec = _json["targetReadBytesPerSec"]; 1797 targetReadBytesPerSec = _json["targetReadBytesPerSec"];
1781 } 1798 }
1782 if (_json.containsKey("targetReadOpsPerSec")) { 1799 if (_json.containsKey("targetReadOpsPerSec")) {
1783 targetReadOpsPerSec = _json["targetReadOpsPerSec"]; 1800 targetReadOpsPerSec = _json["targetReadOpsPerSec"];
1784 } 1801 }
1785 if (_json.containsKey("targetWriteBytesPerSec")) { 1802 if (_json.containsKey("targetWriteBytesPerSec")) {
1786 targetWriteBytesPerSec = _json["targetWriteBytesPerSec"]; 1803 targetWriteBytesPerSec = _json["targetWriteBytesPerSec"];
1787 } 1804 }
1788 if (_json.containsKey("targetWriteOpsPerSec")) { 1805 if (_json.containsKey("targetWriteOpsPerSec")) {
1789 targetWriteOpsPerSec = _json["targetWriteOpsPerSec"]; 1806 targetWriteOpsPerSec = _json["targetWriteOpsPerSec"];
1790 } 1807 }
1791 } 1808 }
1792 1809
1793 core.Map<core.String, core.Object> toJson() { 1810 core.Map<core.String, core.Object> toJson() {
1794 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1811 final core.Map<core.String, core.Object> _json =
1812 new core.Map<core.String, core.Object>();
1795 if (targetReadBytesPerSec != null) { 1813 if (targetReadBytesPerSec != null) {
1796 _json["targetReadBytesPerSec"] = targetReadBytesPerSec; 1814 _json["targetReadBytesPerSec"] = targetReadBytesPerSec;
1797 } 1815 }
1798 if (targetReadOpsPerSec != null) { 1816 if (targetReadOpsPerSec != null) {
1799 _json["targetReadOpsPerSec"] = targetReadOpsPerSec; 1817 _json["targetReadOpsPerSec"] = targetReadOpsPerSec;
1800 } 1818 }
1801 if (targetWriteBytesPerSec != null) { 1819 if (targetWriteBytesPerSec != null) {
1802 _json["targetWriteBytesPerSec"] = targetWriteBytesPerSec; 1820 _json["targetWriteBytesPerSec"] = targetWriteBytesPerSec;
1803 } 1821 }
1804 if (targetWriteOpsPerSec != null) { 1822 if (targetWriteOpsPerSec != null) {
1805 _json["targetWriteOpsPerSec"] = targetWriteOpsPerSec; 1823 _json["targetWriteOpsPerSec"] = targetWriteOpsPerSec;
1806 } 1824 }
1807 return _json; 1825 return _json;
1808 } 1826 }
1809 } 1827 }
1810 1828
1811 /** Custom static error page to be served when an error occurs. */ 1829 /// Custom static error page to be served when an error occurs.
1812 class ErrorHandler { 1830 class ErrorHandler {
1813 /** 1831 /// Error condition this handler applies to.
1814 * Error condition this handler applies to. 1832 /// Possible string values are:
1815 * Possible string values are: 1833 /// - "ERROR_CODE_UNSPECIFIED" : Not specified. ERROR_CODE_DEFAULT is
1816 * - "ERROR_CODE_UNSPECIFIED" : Not specified. ERROR_CODE_DEFAULT is assumed. 1834 /// assumed.
1817 * - "ERROR_CODE_DEFAULT" : All other error types. 1835 /// - "ERROR_CODE_DEFAULT" : All other error types.
1818 * - "ERROR_CODE_OVER_QUOTA" : Application has exceeded a resource quota. 1836 /// - "ERROR_CODE_OVER_QUOTA" : Application has exceeded a resource quota.
1819 * - "ERROR_CODE_DOS_API_DENIAL" : Client blocked by the application's Denial 1837 /// - "ERROR_CODE_DOS_API_DENIAL" : Client blocked by the application's
1820 * of Service protection configuration. 1838 /// Denial of Service protection configuration.
1821 * - "ERROR_CODE_TIMEOUT" : Deadline reached before the application responds. 1839 /// - "ERROR_CODE_TIMEOUT" : Deadline reached before the application
1822 */ 1840 /// responds.
1823 core.String errorCode; 1841 core.String errorCode;
1824 /** MIME type of file. Defaults to text/html. */ 1842
1843 /// MIME type of file. Defaults to text/html.
1825 core.String mimeType; 1844 core.String mimeType;
1826 /** Static file content to be served for this error. */ 1845
1846 /// Static file content to be served for this error.
1827 core.String staticFile; 1847 core.String staticFile;
1828 1848
1829 ErrorHandler(); 1849 ErrorHandler();
1830 1850
1831 ErrorHandler.fromJson(core.Map _json) { 1851 ErrorHandler.fromJson(core.Map _json) {
1832 if (_json.containsKey("errorCode")) { 1852 if (_json.containsKey("errorCode")) {
1833 errorCode = _json["errorCode"]; 1853 errorCode = _json["errorCode"];
1834 } 1854 }
1835 if (_json.containsKey("mimeType")) { 1855 if (_json.containsKey("mimeType")) {
1836 mimeType = _json["mimeType"]; 1856 mimeType = _json["mimeType"];
1837 } 1857 }
1838 if (_json.containsKey("staticFile")) { 1858 if (_json.containsKey("staticFile")) {
1839 staticFile = _json["staticFile"]; 1859 staticFile = _json["staticFile"];
1840 } 1860 }
1841 } 1861 }
1842 1862
1843 core.Map<core.String, core.Object> toJson() { 1863 core.Map<core.String, core.Object> toJson() {
1844 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1864 final core.Map<core.String, core.Object> _json =
1865 new core.Map<core.String, core.Object>();
1845 if (errorCode != null) { 1866 if (errorCode != null) {
1846 _json["errorCode"] = errorCode; 1867 _json["errorCode"] = errorCode;
1847 } 1868 }
1848 if (mimeType != null) { 1869 if (mimeType != null) {
1849 _json["mimeType"] = mimeType; 1870 _json["mimeType"] = mimeType;
1850 } 1871 }
1851 if (staticFile != null) { 1872 if (staticFile != null) {
1852 _json["staticFile"] = staticFile; 1873 _json["staticFile"] = staticFile;
1853 } 1874 }
1854 return _json; 1875 return _json;
1855 } 1876 }
1856 } 1877 }
1857 1878
1858 /** 1879 /// Single source file that is part of the version to be deployed. Each source
1859 * Single source file that is part of the version to be deployed. Each source 1880 /// file that is deployed must be specified separately.
1860 * file that is deployed must be specified separately.
1861 */
1862 class FileInfo { 1881 class FileInfo {
1863 /** 1882 /// The MIME type of the file.Defaults to the value from Google Cloud
1864 * The MIME type of the file.Defaults to the value from Google Cloud Storage. 1883 /// Storage.
1865 */
1866 core.String mimeType; 1884 core.String mimeType;
1867 /** The SHA1 hash of the file, in hex. */ 1885
1886 /// The SHA1 hash of the file, in hex.
1868 core.String sha1Sum; 1887 core.String sha1Sum;
1869 /** 1888
1870 * URL source to use to fetch this file. Must be a URL to a resource in Google 1889 /// URL source to use to fetch this file. Must be a URL to a resource in
1871 * Cloud Storage in the form 1890 /// Google Cloud Storage in the form
1872 * 'http(s)://storage.googleapis.com/<bucket>/<object>'. 1891 /// 'http(s)://storage.googleapis.com/<bucket>/<object>'.
1873 */
1874 core.String sourceUrl; 1892 core.String sourceUrl;
1875 1893
1876 FileInfo(); 1894 FileInfo();
1877 1895
1878 FileInfo.fromJson(core.Map _json) { 1896 FileInfo.fromJson(core.Map _json) {
1879 if (_json.containsKey("mimeType")) { 1897 if (_json.containsKey("mimeType")) {
1880 mimeType = _json["mimeType"]; 1898 mimeType = _json["mimeType"];
1881 } 1899 }
1882 if (_json.containsKey("sha1Sum")) { 1900 if (_json.containsKey("sha1Sum")) {
1883 sha1Sum = _json["sha1Sum"]; 1901 sha1Sum = _json["sha1Sum"];
1884 } 1902 }
1885 if (_json.containsKey("sourceUrl")) { 1903 if (_json.containsKey("sourceUrl")) {
1886 sourceUrl = _json["sourceUrl"]; 1904 sourceUrl = _json["sourceUrl"];
1887 } 1905 }
1888 } 1906 }
1889 1907
1890 core.Map<core.String, core.Object> toJson() { 1908 core.Map<core.String, core.Object> toJson() {
1891 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1909 final core.Map<core.String, core.Object> _json =
1910 new core.Map<core.String, core.Object>();
1892 if (mimeType != null) { 1911 if (mimeType != null) {
1893 _json["mimeType"] = mimeType; 1912 _json["mimeType"] = mimeType;
1894 } 1913 }
1895 if (sha1Sum != null) { 1914 if (sha1Sum != null) {
1896 _json["sha1Sum"] = sha1Sum; 1915 _json["sha1Sum"] = sha1Sum;
1897 } 1916 }
1898 if (sourceUrl != null) { 1917 if (sourceUrl != null) {
1899 _json["sourceUrl"] = sourceUrl; 1918 _json["sourceUrl"] = sourceUrl;
1900 } 1919 }
1901 return _json; 1920 return _json;
1902 } 1921 }
1903 } 1922 }
1904 1923
1905 /** 1924 /// Health checking configuration for VM instances. Unhealthy instances are
1906 * Health checking configuration for VM instances. Unhealthy instances are 1925 /// killed and replaced with new instances. Only applicable for instances in
1907 * killed and replaced with new instances. Only applicable for instances in App 1926 /// App Engine flexible environment.
1908 * Engine flexible environment.
1909 */
1910 class HealthCheck { 1927 class HealthCheck {
1911 /** Interval between health checks. */ 1928 /// Interval between health checks.
1912 core.String checkInterval; 1929 core.String checkInterval;
1913 /** Whether to explicitly disable health checks for this instance. */ 1930
1931 /// Whether to explicitly disable health checks for this instance.
1914 core.bool disableHealthCheck; 1932 core.bool disableHealthCheck;
1915 /** 1933
1916 * Number of consecutive successful health checks required before receiving 1934 /// Number of consecutive successful health checks required before receiving
1917 * traffic. 1935 /// traffic.
1918 */
1919 core.int healthyThreshold; 1936 core.int healthyThreshold;
1920 /** 1937
1921 * Host header to send when performing an HTTP health check. Example: 1938 /// Host header to send when performing an HTTP health check. Example:
1922 * "myapp.appspot.com" 1939 /// "myapp.appspot.com"
1923 */
1924 core.String host; 1940 core.String host;
1925 /** 1941
1926 * Number of consecutive failed health checks required before an instance is 1942 /// Number of consecutive failed health checks required before an instance is
1927 * restarted. 1943 /// restarted.
1928 */
1929 core.int restartThreshold; 1944 core.int restartThreshold;
1930 /** Time before the health check is considered failed. */ 1945
1946 /// Time before the health check is considered failed.
1931 core.String timeout; 1947 core.String timeout;
1932 /** 1948
1933 * Number of consecutive failed health checks required before removing 1949 /// Number of consecutive failed health checks required before removing
1934 * traffic. 1950 /// traffic.
1935 */
1936 core.int unhealthyThreshold; 1951 core.int unhealthyThreshold;
1937 1952
1938 HealthCheck(); 1953 HealthCheck();
1939 1954
1940 HealthCheck.fromJson(core.Map _json) { 1955 HealthCheck.fromJson(core.Map _json) {
1941 if (_json.containsKey("checkInterval")) { 1956 if (_json.containsKey("checkInterval")) {
1942 checkInterval = _json["checkInterval"]; 1957 checkInterval = _json["checkInterval"];
1943 } 1958 }
1944 if (_json.containsKey("disableHealthCheck")) { 1959 if (_json.containsKey("disableHealthCheck")) {
1945 disableHealthCheck = _json["disableHealthCheck"]; 1960 disableHealthCheck = _json["disableHealthCheck"];
1946 } 1961 }
1947 if (_json.containsKey("healthyThreshold")) { 1962 if (_json.containsKey("healthyThreshold")) {
1948 healthyThreshold = _json["healthyThreshold"]; 1963 healthyThreshold = _json["healthyThreshold"];
1949 } 1964 }
1950 if (_json.containsKey("host")) { 1965 if (_json.containsKey("host")) {
1951 host = _json["host"]; 1966 host = _json["host"];
1952 } 1967 }
1953 if (_json.containsKey("restartThreshold")) { 1968 if (_json.containsKey("restartThreshold")) {
1954 restartThreshold = _json["restartThreshold"]; 1969 restartThreshold = _json["restartThreshold"];
1955 } 1970 }
1956 if (_json.containsKey("timeout")) { 1971 if (_json.containsKey("timeout")) {
1957 timeout = _json["timeout"]; 1972 timeout = _json["timeout"];
1958 } 1973 }
1959 if (_json.containsKey("unhealthyThreshold")) { 1974 if (_json.containsKey("unhealthyThreshold")) {
1960 unhealthyThreshold = _json["unhealthyThreshold"]; 1975 unhealthyThreshold = _json["unhealthyThreshold"];
1961 } 1976 }
1962 } 1977 }
1963 1978
1964 core.Map<core.String, core.Object> toJson() { 1979 core.Map<core.String, core.Object> toJson() {
1965 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1980 final core.Map<core.String, core.Object> _json =
1981 new core.Map<core.String, core.Object>();
1966 if (checkInterval != null) { 1982 if (checkInterval != null) {
1967 _json["checkInterval"] = checkInterval; 1983 _json["checkInterval"] = checkInterval;
1968 } 1984 }
1969 if (disableHealthCheck != null) { 1985 if (disableHealthCheck != null) {
1970 _json["disableHealthCheck"] = disableHealthCheck; 1986 _json["disableHealthCheck"] = disableHealthCheck;
1971 } 1987 }
1972 if (healthyThreshold != null) { 1988 if (healthyThreshold != null) {
1973 _json["healthyThreshold"] = healthyThreshold; 1989 _json["healthyThreshold"] = healthyThreshold;
1974 } 1990 }
1975 if (host != null) { 1991 if (host != null) {
1976 _json["host"] = host; 1992 _json["host"] = host;
1977 } 1993 }
1978 if (restartThreshold != null) { 1994 if (restartThreshold != null) {
1979 _json["restartThreshold"] = restartThreshold; 1995 _json["restartThreshold"] = restartThreshold;
1980 } 1996 }
1981 if (timeout != null) { 1997 if (timeout != null) {
1982 _json["timeout"] = timeout; 1998 _json["timeout"] = timeout;
1983 } 1999 }
1984 if (unhealthyThreshold != null) { 2000 if (unhealthyThreshold != null) {
1985 _json["unhealthyThreshold"] = unhealthyThreshold; 2001 _json["unhealthyThreshold"] = unhealthyThreshold;
1986 } 2002 }
1987 return _json; 2003 return _json;
1988 } 2004 }
1989 } 2005 }
1990 2006
1991 /** Identity-Aware Proxy */ 2007 /// Identity-Aware Proxy
1992 class IdentityAwareProxy { 2008 class IdentityAwareProxy {
1993 /** 2009 /// Whether the serving infrastructure will authenticate and authorize all
1994 * Whether the serving infrastructure will authenticate and authorize all 2010 /// incoming requests.If true, the oauth2_client_id and oauth2_client_secret
1995 * incoming requests.If true, the oauth2_client_id and oauth2_client_secret 2011 /// fields must be non-empty.
1996 * fields must be non-empty.
1997 */
1998 core.bool enabled; 2012 core.bool enabled;
1999 /** OAuth2 client ID to use for the authentication flow. */ 2013
2014 /// OAuth2 client ID to use for the authentication flow.
2000 core.String oauth2ClientId; 2015 core.String oauth2ClientId;
2001 /** 2016
2002 * For security reasons, this value cannot be retrieved via the API. Instead, 2017 /// For security reasons, this value cannot be retrieved via the API.
2003 * the SHA-256 hash of the value is returned in the 2018 /// Instead, the SHA-256 hash of the value is returned in the
2004 * oauth2_client_secret_sha256 field.@InputOnly 2019 /// oauth2_client_secret_sha256 field.@InputOnly
2005 */
2006 core.String oauth2ClientSecret; 2020 core.String oauth2ClientSecret;
2007 /** Hex-encoded SHA-256 hash of the client secret.@OutputOnly */ 2021
2022 /// Hex-encoded SHA-256 hash of the client secret.@OutputOnly
2008 core.String oauth2ClientSecretSha256; 2023 core.String oauth2ClientSecretSha256;
2009 2024
2010 IdentityAwareProxy(); 2025 IdentityAwareProxy();
2011 2026
2012 IdentityAwareProxy.fromJson(core.Map _json) { 2027 IdentityAwareProxy.fromJson(core.Map _json) {
2013 if (_json.containsKey("enabled")) { 2028 if (_json.containsKey("enabled")) {
2014 enabled = _json["enabled"]; 2029 enabled = _json["enabled"];
2015 } 2030 }
2016 if (_json.containsKey("oauth2ClientId")) { 2031 if (_json.containsKey("oauth2ClientId")) {
2017 oauth2ClientId = _json["oauth2ClientId"]; 2032 oauth2ClientId = _json["oauth2ClientId"];
2018 } 2033 }
2019 if (_json.containsKey("oauth2ClientSecret")) { 2034 if (_json.containsKey("oauth2ClientSecret")) {
2020 oauth2ClientSecret = _json["oauth2ClientSecret"]; 2035 oauth2ClientSecret = _json["oauth2ClientSecret"];
2021 } 2036 }
2022 if (_json.containsKey("oauth2ClientSecretSha256")) { 2037 if (_json.containsKey("oauth2ClientSecretSha256")) {
2023 oauth2ClientSecretSha256 = _json["oauth2ClientSecretSha256"]; 2038 oauth2ClientSecretSha256 = _json["oauth2ClientSecretSha256"];
2024 } 2039 }
2025 } 2040 }
2026 2041
2027 core.Map<core.String, core.Object> toJson() { 2042 core.Map<core.String, core.Object> toJson() {
2028 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2043 final core.Map<core.String, core.Object> _json =
2044 new core.Map<core.String, core.Object>();
2029 if (enabled != null) { 2045 if (enabled != null) {
2030 _json["enabled"] = enabled; 2046 _json["enabled"] = enabled;
2031 } 2047 }
2032 if (oauth2ClientId != null) { 2048 if (oauth2ClientId != null) {
2033 _json["oauth2ClientId"] = oauth2ClientId; 2049 _json["oauth2ClientId"] = oauth2ClientId;
2034 } 2050 }
2035 if (oauth2ClientSecret != null) { 2051 if (oauth2ClientSecret != null) {
2036 _json["oauth2ClientSecret"] = oauth2ClientSecret; 2052 _json["oauth2ClientSecret"] = oauth2ClientSecret;
2037 } 2053 }
2038 if (oauth2ClientSecretSha256 != null) { 2054 if (oauth2ClientSecretSha256 != null) {
2039 _json["oauth2ClientSecretSha256"] = oauth2ClientSecretSha256; 2055 _json["oauth2ClientSecretSha256"] = oauth2ClientSecretSha256;
2040 } 2056 }
2041 return _json; 2057 return _json;
2042 } 2058 }
2043 } 2059 }
2044 2060
2045 /** 2061 /// An Instance resource is the computing unit that App Engine uses to
2046 * An Instance resource is the computing unit that App Engine uses to 2062 /// automatically scale an application.
2047 * automatically scale an application.
2048 */
2049 class Instance { 2063 class Instance {
2050 /** App Engine release this instance is running on.@OutputOnly */ 2064 /// App Engine release this instance is running on.@OutputOnly
2051 core.String appEngineRelease; 2065 core.String appEngineRelease;
2052 /** 2066
2053 * Availability of the instance.@OutputOnly 2067 /// Availability of the instance.@OutputOnly
2054 * Possible string values are: 2068 /// Possible string values are:
2055 * - "UNSPECIFIED" 2069 /// - "UNSPECIFIED"
2056 * - "RESIDENT" 2070 /// - "RESIDENT"
2057 * - "DYNAMIC" 2071 /// - "DYNAMIC"
2058 */
2059 core.String availability; 2072 core.String availability;
2060 /** Average latency (ms) over the last minute.@OutputOnly */ 2073
2074 /// Average latency (ms) over the last minute.@OutputOnly
2061 core.int averageLatency; 2075 core.int averageLatency;
2062 /** Number of errors since this instance was started.@OutputOnly */ 2076
2077 /// Number of errors since this instance was started.@OutputOnly
2063 core.int errors; 2078 core.int errors;
2064 /** 2079
2065 * Relative name of the instance within the version. Example: 2080 /// Relative name of the instance within the version. Example:
2066 * instance-1.@OutputOnly 2081 /// instance-1.@OutputOnly
2067 */
2068 core.String id; 2082 core.String id;
2069 /** Total memory in use (bytes).@OutputOnly */ 2083
2084 /// Total memory in use (bytes).@OutputOnly
2070 core.String memoryUsage; 2085 core.String memoryUsage;
2071 /** 2086
2072 * Full path to the Instance resource in the API. Example: 2087 /// Full path to the Instance resource in the API. Example:
2073 * apps/myapp/modules/default/versions/v1/instances/instance-1.@OutputOnly 2088 /// apps/myapp/modules/default/versions/v1/instances/instance-1.@OutputOnly
2074 */
2075 core.String name; 2089 core.String name;
2076 /** Average queries per second (QPS) over the last minute.@OutputOnly */ 2090
2091 /// Average queries per second (QPS) over the last minute.@OutputOnly
2077 core.double qps; 2092 core.double qps;
2078 /** Number of requests since this instance was started.@OutputOnly */ 2093
2094 /// Number of requests since this instance was started.@OutputOnly
2079 core.int requests; 2095 core.int requests;
2080 /** Time that this instance was started.@OutputOnly */ 2096
2097 /// Time that this instance was started.@OutputOnly
2081 core.String startTimestamp; 2098 core.String startTimestamp;
2082 /** 2099
2083 * Virtual machine ID of this instance. Only applicable for instances in App 2100 /// Virtual machine ID of this instance. Only applicable for instances in App
2084 * Engine flexible environment.@OutputOnly 2101 /// Engine flexible environment.@OutputOnly
2085 */
2086 core.String vmId; 2102 core.String vmId;
2087 /** 2103
2088 * The IP address of this instance. Only applicable for instances in App 2104 /// The IP address of this instance. Only applicable for instances in App
2089 * Engine flexible environment.@OutputOnly 2105 /// Engine flexible environment.@OutputOnly
2090 */
2091 core.String vmIp; 2106 core.String vmIp;
2092 /** 2107
2093 * Name of the virtual machine where this instance lives. Only applicable for 2108 /// Name of the virtual machine where this instance lives. Only applicable
2094 * instances in App Engine flexible environment.@OutputOnly 2109 /// for instances in App Engine flexible environment.@OutputOnly
2095 */
2096 core.String vmName; 2110 core.String vmName;
2097 /** 2111
2098 * Status of the virtual machine where this instance lives. Only applicable 2112 /// Status of the virtual machine where this instance lives. Only applicable
2099 * for instances in App Engine flexible environment.@OutputOnly 2113 /// for instances in App Engine flexible environment.@OutputOnly
2100 */
2101 core.String vmStatus; 2114 core.String vmStatus;
2102 /** 2115
2103 * Whether this instance is in debug mode. Only applicable for instances in 2116 /// Whether this instance is in debug mode. Only applicable for instances in
2104 * App Engine flexible environment.@OutputOnly 2117 /// App Engine flexible environment.@OutputOnly
2105 */
2106 core.bool vmUnlocked; 2118 core.bool vmUnlocked;
2107 /** 2119
2108 * Zone where the virtual machine is located. Only applicable for instances in 2120 /// Zone where the virtual machine is located. Only applicable for instances
2109 * App Engine flexible environment.@OutputOnly 2121 /// in App Engine flexible environment.@OutputOnly
2110 */
2111 core.String vmZoneName; 2122 core.String vmZoneName;
2112 2123
2113 Instance(); 2124 Instance();
2114 2125
2115 Instance.fromJson(core.Map _json) { 2126 Instance.fromJson(core.Map _json) {
2116 if (_json.containsKey("appEngineRelease")) { 2127 if (_json.containsKey("appEngineRelease")) {
2117 appEngineRelease = _json["appEngineRelease"]; 2128 appEngineRelease = _json["appEngineRelease"];
2118 } 2129 }
2119 if (_json.containsKey("availability")) { 2130 if (_json.containsKey("availability")) {
2120 availability = _json["availability"]; 2131 availability = _json["availability"];
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
2157 } 2168 }
2158 if (_json.containsKey("vmUnlocked")) { 2169 if (_json.containsKey("vmUnlocked")) {
2159 vmUnlocked = _json["vmUnlocked"]; 2170 vmUnlocked = _json["vmUnlocked"];
2160 } 2171 }
2161 if (_json.containsKey("vmZoneName")) { 2172 if (_json.containsKey("vmZoneName")) {
2162 vmZoneName = _json["vmZoneName"]; 2173 vmZoneName = _json["vmZoneName"];
2163 } 2174 }
2164 } 2175 }
2165 2176
2166 core.Map<core.String, core.Object> toJson() { 2177 core.Map<core.String, core.Object> toJson() {
2167 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2178 final core.Map<core.String, core.Object> _json =
2179 new core.Map<core.String, core.Object>();
2168 if (appEngineRelease != null) { 2180 if (appEngineRelease != null) {
2169 _json["appEngineRelease"] = appEngineRelease; 2181 _json["appEngineRelease"] = appEngineRelease;
2170 } 2182 }
2171 if (availability != null) { 2183 if (availability != null) {
2172 _json["availability"] = availability; 2184 _json["availability"] = availability;
2173 } 2185 }
2174 if (averageLatency != null) { 2186 if (averageLatency != null) {
2175 _json["averageLatency"] = averageLatency; 2187 _json["averageLatency"] = averageLatency;
2176 } 2188 }
2177 if (errors != null) { 2189 if (errors != null) {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
2210 if (vmUnlocked != null) { 2222 if (vmUnlocked != null) {
2211 _json["vmUnlocked"] = vmUnlocked; 2223 _json["vmUnlocked"] = vmUnlocked;
2212 } 2224 }
2213 if (vmZoneName != null) { 2225 if (vmZoneName != null) {
2214 _json["vmZoneName"] = vmZoneName; 2226 _json["vmZoneName"] = vmZoneName;
2215 } 2227 }
2216 return _json; 2228 return _json;
2217 } 2229 }
2218 } 2230 }
2219 2231
2220 /** Third-party Python runtime library that is required by the application. */ 2232 /// Third-party Python runtime library that is required by the application.
2221 class Library { 2233 class Library {
2222 /** Name of the library. Example: "django". */ 2234 /// Name of the library. Example: "django".
2223 core.String name; 2235 core.String name;
2224 /** Version of the library to select, or "latest". */ 2236
2237 /// Version of the library to select, or "latest".
2225 core.String version; 2238 core.String version;
2226 2239
2227 Library(); 2240 Library();
2228 2241
2229 Library.fromJson(core.Map _json) { 2242 Library.fromJson(core.Map _json) {
2230 if (_json.containsKey("name")) { 2243 if (_json.containsKey("name")) {
2231 name = _json["name"]; 2244 name = _json["name"];
2232 } 2245 }
2233 if (_json.containsKey("version")) { 2246 if (_json.containsKey("version")) {
2234 version = _json["version"]; 2247 version = _json["version"];
2235 } 2248 }
2236 } 2249 }
2237 2250
2238 core.Map<core.String, core.Object> toJson() { 2251 core.Map<core.String, core.Object> toJson() {
2239 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2252 final core.Map<core.String, core.Object> _json =
2253 new core.Map<core.String, core.Object>();
2240 if (name != null) { 2254 if (name != null) {
2241 _json["name"] = name; 2255 _json["name"] = name;
2242 } 2256 }
2243 if (version != null) { 2257 if (version != null) {
2244 _json["version"] = version; 2258 _json["version"] = version;
2245 } 2259 }
2246 return _json; 2260 return _json;
2247 } 2261 }
2248 } 2262 }
2249 2263
2250 /** Response message for Instances.ListInstances. */ 2264 /// Response message for Instances.ListInstances.
2251 class ListInstancesResponse { 2265 class ListInstancesResponse {
2252 /** The instances belonging to the requested version. */ 2266 /// The instances belonging to the requested version.
2253 core.List<Instance> instances; 2267 core.List<Instance> instances;
2254 /** Continuation token for fetching the next page of results. */ 2268
2269 /// Continuation token for fetching the next page of results.
2255 core.String nextPageToken; 2270 core.String nextPageToken;
2256 2271
2257 ListInstancesResponse(); 2272 ListInstancesResponse();
2258 2273
2259 ListInstancesResponse.fromJson(core.Map _json) { 2274 ListInstancesResponse.fromJson(core.Map _json) {
2260 if (_json.containsKey("instances")) { 2275 if (_json.containsKey("instances")) {
2261 instances = _json["instances"].map((value) => new Instance.fromJson(value) ).toList(); 2276 instances = _json["instances"]
2277 .map((value) => new Instance.fromJson(value))
2278 .toList();
2262 } 2279 }
2263 if (_json.containsKey("nextPageToken")) { 2280 if (_json.containsKey("nextPageToken")) {
2264 nextPageToken = _json["nextPageToken"]; 2281 nextPageToken = _json["nextPageToken"];
2265 } 2282 }
2266 } 2283 }
2267 2284
2268 core.Map<core.String, core.Object> toJson() { 2285 core.Map<core.String, core.Object> toJson() {
2269 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2286 final core.Map<core.String, core.Object> _json =
2287 new core.Map<core.String, core.Object>();
2270 if (instances != null) { 2288 if (instances != null) {
2271 _json["instances"] = instances.map((value) => (value).toJson()).toList(); 2289 _json["instances"] = instances.map((value) => (value).toJson()).toList();
2272 } 2290 }
2273 if (nextPageToken != null) { 2291 if (nextPageToken != null) {
2274 _json["nextPageToken"] = nextPageToken; 2292 _json["nextPageToken"] = nextPageToken;
2275 } 2293 }
2276 return _json; 2294 return _json;
2277 } 2295 }
2278 } 2296 }
2279 2297
2280 /** The response message for Locations.ListLocations. */ 2298 /// The response message for Locations.ListLocations.
2281 class ListLocationsResponse { 2299 class ListLocationsResponse {
2282 /** A list of locations that matches the specified filter in the request. */ 2300 /// A list of locations that matches the specified filter in the request.
2283 core.List<Location> locations; 2301 core.List<Location> locations;
2284 /** The standard List next-page token. */ 2302
2303 /// The standard List next-page token.
2285 core.String nextPageToken; 2304 core.String nextPageToken;
2286 2305
2287 ListLocationsResponse(); 2306 ListLocationsResponse();
2288 2307
2289 ListLocationsResponse.fromJson(core.Map _json) { 2308 ListLocationsResponse.fromJson(core.Map _json) {
2290 if (_json.containsKey("locations")) { 2309 if (_json.containsKey("locations")) {
2291 locations = _json["locations"].map((value) => new Location.fromJson(value) ).toList(); 2310 locations = _json["locations"]
2311 .map((value) => new Location.fromJson(value))
2312 .toList();
2292 } 2313 }
2293 if (_json.containsKey("nextPageToken")) { 2314 if (_json.containsKey("nextPageToken")) {
2294 nextPageToken = _json["nextPageToken"]; 2315 nextPageToken = _json["nextPageToken"];
2295 } 2316 }
2296 } 2317 }
2297 2318
2298 core.Map<core.String, core.Object> toJson() { 2319 core.Map<core.String, core.Object> toJson() {
2299 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2320 final core.Map<core.String, core.Object> _json =
2321 new core.Map<core.String, core.Object>();
2300 if (locations != null) { 2322 if (locations != null) {
2301 _json["locations"] = locations.map((value) => (value).toJson()).toList(); 2323 _json["locations"] = locations.map((value) => (value).toJson()).toList();
2302 } 2324 }
2303 if (nextPageToken != null) { 2325 if (nextPageToken != null) {
2304 _json["nextPageToken"] = nextPageToken; 2326 _json["nextPageToken"] = nextPageToken;
2305 } 2327 }
2306 return _json; 2328 return _json;
2307 } 2329 }
2308 } 2330 }
2309 2331
2310 /** Response message for Modules.ListModules. */ 2332 /// Response message for Modules.ListModules.
2311 class ListModulesResponse { 2333 class ListModulesResponse {
2312 /** The modules belonging to the requested application. */ 2334 /// The modules belonging to the requested application.
2313 core.List<Module> modules; 2335 core.List<Module> modules;
2314 /** Continuation token for fetching the next page of results. */ 2336
2337 /// Continuation token for fetching the next page of results.
2315 core.String nextPageToken; 2338 core.String nextPageToken;
2316 2339
2317 ListModulesResponse(); 2340 ListModulesResponse();
2318 2341
2319 ListModulesResponse.fromJson(core.Map _json) { 2342 ListModulesResponse.fromJson(core.Map _json) {
2320 if (_json.containsKey("modules")) { 2343 if (_json.containsKey("modules")) {
2321 modules = _json["modules"].map((value) => new Module.fromJson(value)).toLi st(); 2344 modules =
2345 _json["modules"].map((value) => new Module.fromJson(value)).toList();
2322 } 2346 }
2323 if (_json.containsKey("nextPageToken")) { 2347 if (_json.containsKey("nextPageToken")) {
2324 nextPageToken = _json["nextPageToken"]; 2348 nextPageToken = _json["nextPageToken"];
2325 } 2349 }
2326 } 2350 }
2327 2351
2328 core.Map<core.String, core.Object> toJson() { 2352 core.Map<core.String, core.Object> toJson() {
2329 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2353 final core.Map<core.String, core.Object> _json =
2354 new core.Map<core.String, core.Object>();
2330 if (modules != null) { 2355 if (modules != null) {
2331 _json["modules"] = modules.map((value) => (value).toJson()).toList(); 2356 _json["modules"] = modules.map((value) => (value).toJson()).toList();
2332 } 2357 }
2333 if (nextPageToken != null) { 2358 if (nextPageToken != null) {
2334 _json["nextPageToken"] = nextPageToken; 2359 _json["nextPageToken"] = nextPageToken;
2335 } 2360 }
2336 return _json; 2361 return _json;
2337 } 2362 }
2338 } 2363 }
2339 2364
2340 /** The response message for Operations.ListOperations. */ 2365 /// The response message for Operations.ListOperations.
2341 class ListOperationsResponse { 2366 class ListOperationsResponse {
2342 /** The standard List next-page token. */ 2367 /// The standard List next-page token.
2343 core.String nextPageToken; 2368 core.String nextPageToken;
2344 /** A list of operations that matches the specified filter in the request. */ 2369
2370 /// A list of operations that matches the specified filter in the request.
2345 core.List<Operation> operations; 2371 core.List<Operation> operations;
2346 2372
2347 ListOperationsResponse(); 2373 ListOperationsResponse();
2348 2374
2349 ListOperationsResponse.fromJson(core.Map _json) { 2375 ListOperationsResponse.fromJson(core.Map _json) {
2350 if (_json.containsKey("nextPageToken")) { 2376 if (_json.containsKey("nextPageToken")) {
2351 nextPageToken = _json["nextPageToken"]; 2377 nextPageToken = _json["nextPageToken"];
2352 } 2378 }
2353 if (_json.containsKey("operations")) { 2379 if (_json.containsKey("operations")) {
2354 operations = _json["operations"].map((value) => new Operation.fromJson(val ue)).toList(); 2380 operations = _json["operations"]
2381 .map((value) => new Operation.fromJson(value))
2382 .toList();
2355 } 2383 }
2356 } 2384 }
2357 2385
2358 core.Map<core.String, core.Object> toJson() { 2386 core.Map<core.String, core.Object> toJson() {
2359 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2387 final core.Map<core.String, core.Object> _json =
2388 new core.Map<core.String, core.Object>();
2360 if (nextPageToken != null) { 2389 if (nextPageToken != null) {
2361 _json["nextPageToken"] = nextPageToken; 2390 _json["nextPageToken"] = nextPageToken;
2362 } 2391 }
2363 if (operations != null) { 2392 if (operations != null) {
2364 _json["operations"] = operations.map((value) => (value).toJson()).toList() ; 2393 _json["operations"] =
2394 operations.map((value) => (value).toJson()).toList();
2365 } 2395 }
2366 return _json; 2396 return _json;
2367 } 2397 }
2368 } 2398 }
2369 2399
2370 /** Response message for Versions.ListVersions. */ 2400 /// Response message for Versions.ListVersions.
2371 class ListVersionsResponse { 2401 class ListVersionsResponse {
2372 /** Continuation token for fetching the next page of results. */ 2402 /// Continuation token for fetching the next page of results.
2373 core.String nextPageToken; 2403 core.String nextPageToken;
2374 /** The versions belonging to the requested module. */ 2404
2405 /// The versions belonging to the requested module.
2375 core.List<Version> versions; 2406 core.List<Version> versions;
2376 2407
2377 ListVersionsResponse(); 2408 ListVersionsResponse();
2378 2409
2379 ListVersionsResponse.fromJson(core.Map _json) { 2410 ListVersionsResponse.fromJson(core.Map _json) {
2380 if (_json.containsKey("nextPageToken")) { 2411 if (_json.containsKey("nextPageToken")) {
2381 nextPageToken = _json["nextPageToken"]; 2412 nextPageToken = _json["nextPageToken"];
2382 } 2413 }
2383 if (_json.containsKey("versions")) { 2414 if (_json.containsKey("versions")) {
2384 versions = _json["versions"].map((value) => new Version.fromJson(value)).t oList(); 2415 versions = _json["versions"]
2416 .map((value) => new Version.fromJson(value))
2417 .toList();
2385 } 2418 }
2386 } 2419 }
2387 2420
2388 core.Map<core.String, core.Object> toJson() { 2421 core.Map<core.String, core.Object> toJson() {
2389 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2422 final core.Map<core.String, core.Object> _json =
2423 new core.Map<core.String, core.Object>();
2390 if (nextPageToken != null) { 2424 if (nextPageToken != null) {
2391 _json["nextPageToken"] = nextPageToken; 2425 _json["nextPageToken"] = nextPageToken;
2392 } 2426 }
2393 if (versions != null) { 2427 if (versions != null) {
2394 _json["versions"] = versions.map((value) => (value).toJson()).toList(); 2428 _json["versions"] = versions.map((value) => (value).toJson()).toList();
2395 } 2429 }
2396 return _json; 2430 return _json;
2397 } 2431 }
2398 } 2432 }
2399 2433
2400 /** A resource that represents Google Cloud Platform location. */ 2434 /// A resource that represents Google Cloud Platform location.
2401 class Location { 2435 class Location {
2402 /** 2436 /// Cross-service attributes for the location. For example
2403 * Cross-service attributes for the location. For example 2437 /// {"cloud.googleapis.com/region": "us-east1"}
2404 * {"cloud.googleapis.com/region": "us-east1"}
2405 */
2406 core.Map<core.String, core.String> labels; 2438 core.Map<core.String, core.String> labels;
2407 /** The canonical id for this location. For example: "us-east1". */ 2439
2440 /// The canonical id for this location. For example: "us-east1".
2408 core.String locationId; 2441 core.String locationId;
2409 /** 2442
2410 * Service-specific metadata. For example the available capacity at the given 2443 /// Service-specific metadata. For example the available capacity at the
2411 * location. 2444 /// given location.
2412 * 2445 ///
2413 * The values for Object must be JSON objects. It can consist of `num`, 2446 /// The values for Object must be JSON objects. It can consist of `num`,
2414 * `String`, `bool` and `null` as well as `Map` and `List` values. 2447 /// `String`, `bool` and `null` as well as `Map` and `List` values.
2415 */
2416 core.Map<core.String, core.Object> metadata; 2448 core.Map<core.String, core.Object> metadata;
2417 /** 2449
2418 * Resource name for the location, which may vary between implementations. For 2450 /// Resource name for the location, which may vary between implementations.
2419 * example: "projects/example-project/locations/us-east1" 2451 /// For example: "projects/example-project/locations/us-east1"
2420 */
2421 core.String name; 2452 core.String name;
2422 2453
2423 Location(); 2454 Location();
2424 2455
2425 Location.fromJson(core.Map _json) { 2456 Location.fromJson(core.Map _json) {
2426 if (_json.containsKey("labels")) { 2457 if (_json.containsKey("labels")) {
2427 labels = _json["labels"]; 2458 labels = _json["labels"];
2428 } 2459 }
2429 if (_json.containsKey("locationId")) { 2460 if (_json.containsKey("locationId")) {
2430 locationId = _json["locationId"]; 2461 locationId = _json["locationId"];
2431 } 2462 }
2432 if (_json.containsKey("metadata")) { 2463 if (_json.containsKey("metadata")) {
2433 metadata = _json["metadata"]; 2464 metadata = _json["metadata"];
2434 } 2465 }
2435 if (_json.containsKey("name")) { 2466 if (_json.containsKey("name")) {
2436 name = _json["name"]; 2467 name = _json["name"];
2437 } 2468 }
2438 } 2469 }
2439 2470
2440 core.Map<core.String, core.Object> toJson() { 2471 core.Map<core.String, core.Object> toJson() {
2441 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2472 final core.Map<core.String, core.Object> _json =
2473 new core.Map<core.String, core.Object>();
2442 if (labels != null) { 2474 if (labels != null) {
2443 _json["labels"] = labels; 2475 _json["labels"] = labels;
2444 } 2476 }
2445 if (locationId != null) { 2477 if (locationId != null) {
2446 _json["locationId"] = locationId; 2478 _json["locationId"] = locationId;
2447 } 2479 }
2448 if (metadata != null) { 2480 if (metadata != null) {
2449 _json["metadata"] = metadata; 2481 _json["metadata"] = metadata;
2450 } 2482 }
2451 if (name != null) { 2483 if (name != null) {
2452 _json["name"] = name; 2484 _json["name"] = name;
2453 } 2485 }
2454 return _json; 2486 return _json;
2455 } 2487 }
2456 } 2488 }
2457 2489
2458 /** Metadata for the given google.cloud.location.Location. */ 2490 /// Metadata for the given google.cloud.location.Location.
2459 class LocationMetadata { 2491 class LocationMetadata {
2460 /** 2492 /// App Engine Flexible Environment is available in the given
2461 * App Engine Flexible Environment is available in the given 2493 /// location.@OutputOnly
2462 * location.@OutputOnly
2463 */
2464 core.bool flexibleEnvironmentAvailable; 2494 core.bool flexibleEnvironmentAvailable;
2465 /** 2495
2466 * App Engine Standard Environment is available in the given 2496 /// App Engine Standard Environment is available in the given
2467 * location.@OutputOnly 2497 /// location.@OutputOnly
2468 */
2469 core.bool standardEnvironmentAvailable; 2498 core.bool standardEnvironmentAvailable;
2470 2499
2471 LocationMetadata(); 2500 LocationMetadata();
2472 2501
2473 LocationMetadata.fromJson(core.Map _json) { 2502 LocationMetadata.fromJson(core.Map _json) {
2474 if (_json.containsKey("flexibleEnvironmentAvailable")) { 2503 if (_json.containsKey("flexibleEnvironmentAvailable")) {
2475 flexibleEnvironmentAvailable = _json["flexibleEnvironmentAvailable"]; 2504 flexibleEnvironmentAvailable = _json["flexibleEnvironmentAvailable"];
2476 } 2505 }
2477 if (_json.containsKey("standardEnvironmentAvailable")) { 2506 if (_json.containsKey("standardEnvironmentAvailable")) {
2478 standardEnvironmentAvailable = _json["standardEnvironmentAvailable"]; 2507 standardEnvironmentAvailable = _json["standardEnvironmentAvailable"];
2479 } 2508 }
2480 } 2509 }
2481 2510
2482 core.Map<core.String, core.Object> toJson() { 2511 core.Map<core.String, core.Object> toJson() {
2483 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2512 final core.Map<core.String, core.Object> _json =
2513 new core.Map<core.String, core.Object>();
2484 if (flexibleEnvironmentAvailable != null) { 2514 if (flexibleEnvironmentAvailable != null) {
2485 _json["flexibleEnvironmentAvailable"] = flexibleEnvironmentAvailable; 2515 _json["flexibleEnvironmentAvailable"] = flexibleEnvironmentAvailable;
2486 } 2516 }
2487 if (standardEnvironmentAvailable != null) { 2517 if (standardEnvironmentAvailable != null) {
2488 _json["standardEnvironmentAvailable"] = standardEnvironmentAvailable; 2518 _json["standardEnvironmentAvailable"] = standardEnvironmentAvailable;
2489 } 2519 }
2490 return _json; 2520 return _json;
2491 } 2521 }
2492 } 2522 }
2493 2523
2494 /** 2524 /// A module with manual scaling runs continuously, allowing you to perform
2495 * A module with manual scaling runs continuously, allowing you to perform 2525 /// complex initialization and rely on the state of its memory over time.
2496 * complex initialization and rely on the state of its memory over time.
2497 */
2498 class ManualScaling { 2526 class ManualScaling {
2499 /** 2527 /// Number of instances to assign to the module at the start. This number can
2500 * Number of instances to assign to the module at the start. This number can 2528 /// later be altered by using the Modules API
2501 * later be altered by using the Modules API 2529 /// (https://cloud.google.com/appengine/docs/python/modules/functions)
2502 * (https://cloud.google.com/appengine/docs/python/modules/functions) 2530 /// set_num_instances() function.
2503 * set_num_instances() function.
2504 */
2505 core.int instances; 2531 core.int instances;
2506 2532
2507 ManualScaling(); 2533 ManualScaling();
2508 2534
2509 ManualScaling.fromJson(core.Map _json) { 2535 ManualScaling.fromJson(core.Map _json) {
2510 if (_json.containsKey("instances")) { 2536 if (_json.containsKey("instances")) {
2511 instances = _json["instances"]; 2537 instances = _json["instances"];
2512 } 2538 }
2513 } 2539 }
2514 2540
2515 core.Map<core.String, core.Object> toJson() { 2541 core.Map<core.String, core.Object> toJson() {
2516 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2542 final core.Map<core.String, core.Object> _json =
2543 new core.Map<core.String, core.Object>();
2517 if (instances != null) { 2544 if (instances != null) {
2518 _json["instances"] = instances; 2545 _json["instances"] = instances;
2519 } 2546 }
2520 return _json; 2547 return _json;
2521 } 2548 }
2522 } 2549 }
2523 2550
2524 /** 2551 /// A Module resource is a logical component of an application that can share
2525 * A Module resource is a logical component of an application that can share 2552 /// state and communicate in a secure fashion with other modules. For example,
2526 * state and communicate in a secure fashion with other modules. For example, an 2553 /// an application that handles customer requests might include separate
2527 * application that handles customer requests might include separate modules to 2554 /// modules to handle tasks such as backend data analysis or API requests from
2528 * handle tasks such as backend data analysis or API requests from mobile 2555 /// mobile devices. Each module has a collection of versions that define a
2529 * devices. Each module has a collection of versions that define a specific set 2556 /// specific set of code used to implement the functionality of that module.
2530 * of code used to implement the functionality of that module.
2531 */
2532 class Module { 2557 class Module {
2533 /** 2558 /// Relative name of the module within the application. Example:
2534 * Relative name of the module within the application. Example: 2559 /// default.@OutputOnly
2535 * default.@OutputOnly
2536 */
2537 core.String id; 2560 core.String id;
2538 /** 2561
2539 * Full path to the Module resource in the API. Example: 2562 /// Full path to the Module resource in the API. Example:
2540 * apps/myapp/modules/default.@OutputOnly 2563 /// apps/myapp/modules/default.@OutputOnly
2541 */
2542 core.String name; 2564 core.String name;
2543 /** 2565
2544 * Mapping that defines fractional HTTP traffic diversion to different 2566 /// Mapping that defines fractional HTTP traffic diversion to different
2545 * versions within the module. 2567 /// versions within the module.
2546 */
2547 TrafficSplit split; 2568 TrafficSplit split;
2548 2569
2549 Module(); 2570 Module();
2550 2571
2551 Module.fromJson(core.Map _json) { 2572 Module.fromJson(core.Map _json) {
2552 if (_json.containsKey("id")) { 2573 if (_json.containsKey("id")) {
2553 id = _json["id"]; 2574 id = _json["id"];
2554 } 2575 }
2555 if (_json.containsKey("name")) { 2576 if (_json.containsKey("name")) {
2556 name = _json["name"]; 2577 name = _json["name"];
2557 } 2578 }
2558 if (_json.containsKey("split")) { 2579 if (_json.containsKey("split")) {
2559 split = new TrafficSplit.fromJson(_json["split"]); 2580 split = new TrafficSplit.fromJson(_json["split"]);
2560 } 2581 }
2561 } 2582 }
2562 2583
2563 core.Map<core.String, core.Object> toJson() { 2584 core.Map<core.String, core.Object> toJson() {
2564 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>();
2565 if (id != null) { 2587 if (id != null) {
2566 _json["id"] = id; 2588 _json["id"] = id;
2567 } 2589 }
2568 if (name != null) { 2590 if (name != null) {
2569 _json["name"] = name; 2591 _json["name"] = name;
2570 } 2592 }
2571 if (split != null) { 2593 if (split != null) {
2572 _json["split"] = (split).toJson(); 2594 _json["split"] = (split).toJson();
2573 } 2595 }
2574 return _json; 2596 return _json;
2575 } 2597 }
2576 } 2598 }
2577 2599
2578 /** Extra network settings. Only applicable for VM runtimes. */ 2600 /// Extra network settings. Only applicable for VM runtimes.
2579 class Network { 2601 class Network {
2580 /** 2602 /// List of ports, or port pairs, to forward from the virtual machine to the
2581 * List of ports, or port pairs, to forward from the virtual machine to the 2603 /// application container.
2582 * application container.
2583 */
2584 core.List<core.String> forwardedPorts; 2604 core.List<core.String> forwardedPorts;
2585 /** Tag to apply to the VM instance during creation. */ 2605
2606 /// Tag to apply to the VM instance during creation.
2586 core.String instanceTag; 2607 core.String instanceTag;
2587 /** 2608
2588 * Google Cloud Platform network where the virtual machines are created. 2609 /// Google Cloud Platform network where the virtual machines are created.
2589 * Specify the short name, not the resource path.Defaults to default. 2610 /// Specify the short name, not the resource path.Defaults to default.
2590 */
2591 core.String name; 2611 core.String name;
2592 2612
2593 Network(); 2613 Network();
2594 2614
2595 Network.fromJson(core.Map _json) { 2615 Network.fromJson(core.Map _json) {
2596 if (_json.containsKey("forwardedPorts")) { 2616 if (_json.containsKey("forwardedPorts")) {
2597 forwardedPorts = _json["forwardedPorts"]; 2617 forwardedPorts = _json["forwardedPorts"];
2598 } 2618 }
2599 if (_json.containsKey("instanceTag")) { 2619 if (_json.containsKey("instanceTag")) {
2600 instanceTag = _json["instanceTag"]; 2620 instanceTag = _json["instanceTag"];
2601 } 2621 }
2602 if (_json.containsKey("name")) { 2622 if (_json.containsKey("name")) {
2603 name = _json["name"]; 2623 name = _json["name"];
2604 } 2624 }
2605 } 2625 }
2606 2626
2607 core.Map<core.String, core.Object> toJson() { 2627 core.Map<core.String, core.Object> toJson() {
2608 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2628 final core.Map<core.String, core.Object> _json =
2629 new core.Map<core.String, core.Object>();
2609 if (forwardedPorts != null) { 2630 if (forwardedPorts != null) {
2610 _json["forwardedPorts"] = forwardedPorts; 2631 _json["forwardedPorts"] = forwardedPorts;
2611 } 2632 }
2612 if (instanceTag != null) { 2633 if (instanceTag != null) {
2613 _json["instanceTag"] = instanceTag; 2634 _json["instanceTag"] = instanceTag;
2614 } 2635 }
2615 if (name != null) { 2636 if (name != null) {
2616 _json["name"] = name; 2637 _json["name"] = name;
2617 } 2638 }
2618 return _json; 2639 return _json;
2619 } 2640 }
2620 } 2641 }
2621 2642
2622 /** Target scaling by network usage. Only applicable for VM runtimes. */ 2643 /// Target scaling by network usage. Only applicable for VM runtimes.
2623 class NetworkUtilization { 2644 class NetworkUtilization {
2624 /** Target bytes received per second. */ 2645 /// Target bytes received per second.
2625 core.int targetReceivedBytesPerSec; 2646 core.int targetReceivedBytesPerSec;
2626 /** Target packets received per second. */ 2647
2648 /// Target packets received per second.
2627 core.int targetReceivedPacketsPerSec; 2649 core.int targetReceivedPacketsPerSec;
2628 /** Target bytes sent per second. */ 2650
2651 /// Target bytes sent per second.
2629 core.int targetSentBytesPerSec; 2652 core.int targetSentBytesPerSec;
2630 /** Target packets sent per second. */ 2653
2654 /// Target packets sent per second.
2631 core.int targetSentPacketsPerSec; 2655 core.int targetSentPacketsPerSec;
2632 2656
2633 NetworkUtilization(); 2657 NetworkUtilization();
2634 2658
2635 NetworkUtilization.fromJson(core.Map _json) { 2659 NetworkUtilization.fromJson(core.Map _json) {
2636 if (_json.containsKey("targetReceivedBytesPerSec")) { 2660 if (_json.containsKey("targetReceivedBytesPerSec")) {
2637 targetReceivedBytesPerSec = _json["targetReceivedBytesPerSec"]; 2661 targetReceivedBytesPerSec = _json["targetReceivedBytesPerSec"];
2638 } 2662 }
2639 if (_json.containsKey("targetReceivedPacketsPerSec")) { 2663 if (_json.containsKey("targetReceivedPacketsPerSec")) {
2640 targetReceivedPacketsPerSec = _json["targetReceivedPacketsPerSec"]; 2664 targetReceivedPacketsPerSec = _json["targetReceivedPacketsPerSec"];
2641 } 2665 }
2642 if (_json.containsKey("targetSentBytesPerSec")) { 2666 if (_json.containsKey("targetSentBytesPerSec")) {
2643 targetSentBytesPerSec = _json["targetSentBytesPerSec"]; 2667 targetSentBytesPerSec = _json["targetSentBytesPerSec"];
2644 } 2668 }
2645 if (_json.containsKey("targetSentPacketsPerSec")) { 2669 if (_json.containsKey("targetSentPacketsPerSec")) {
2646 targetSentPacketsPerSec = _json["targetSentPacketsPerSec"]; 2670 targetSentPacketsPerSec = _json["targetSentPacketsPerSec"];
2647 } 2671 }
2648 } 2672 }
2649 2673
2650 core.Map<core.String, core.Object> toJson() { 2674 core.Map<core.String, core.Object> toJson() {
2651 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2675 final core.Map<core.String, core.Object> _json =
2676 new core.Map<core.String, core.Object>();
2652 if (targetReceivedBytesPerSec != null) { 2677 if (targetReceivedBytesPerSec != null) {
2653 _json["targetReceivedBytesPerSec"] = targetReceivedBytesPerSec; 2678 _json["targetReceivedBytesPerSec"] = targetReceivedBytesPerSec;
2654 } 2679 }
2655 if (targetReceivedPacketsPerSec != null) { 2680 if (targetReceivedPacketsPerSec != null) {
2656 _json["targetReceivedPacketsPerSec"] = targetReceivedPacketsPerSec; 2681 _json["targetReceivedPacketsPerSec"] = targetReceivedPacketsPerSec;
2657 } 2682 }
2658 if (targetSentBytesPerSec != null) { 2683 if (targetSentBytesPerSec != null) {
2659 _json["targetSentBytesPerSec"] = targetSentBytesPerSec; 2684 _json["targetSentBytesPerSec"] = targetSentBytesPerSec;
2660 } 2685 }
2661 if (targetSentPacketsPerSec != null) { 2686 if (targetSentPacketsPerSec != null) {
2662 _json["targetSentPacketsPerSec"] = targetSentPacketsPerSec; 2687 _json["targetSentPacketsPerSec"] = targetSentPacketsPerSec;
2663 } 2688 }
2664 return _json; 2689 return _json;
2665 } 2690 }
2666 } 2691 }
2667 2692
2668 /** 2693 /// This resource represents a long-running operation that is the result of a
2669 * This resource represents a long-running operation that is the result of a 2694 /// network API call.
2670 * network API call.
2671 */
2672 class Operation { 2695 class Operation {
2673 /** 2696 /// If the value is false, it means the operation is still in progress. If
2674 * If the value is false, it means the operation is still in progress. If 2697 /// true, the operation is completed, and either error or response is
2675 * true, the operation is completed, and either error or response is 2698 /// available.
2676 * available.
2677 */
2678 core.bool done; 2699 core.bool done;
2679 /** The error result of the operation in case of failure or cancellation. */ 2700
2701 /// The error result of the operation in case of failure or cancellation.
2680 Status error; 2702 Status error;
2681 /** 2703
2682 * Service-specific metadata associated with the operation. It typically 2704 /// Service-specific metadata associated with the operation. It typically
2683 * contains progress information and common metadata such as create time. Some 2705 /// contains progress information and common metadata such as create time.
2684 * services might not provide such metadata. Any method that returns a 2706 /// Some services might not provide such metadata. Any method that returns a
2685 * long-running operation should document the metadata type, if any. 2707 /// long-running operation should document the metadata type, if any.
2686 * 2708 ///
2687 * The values for Object must be JSON objects. It can consist of `num`, 2709 /// The values for Object must be JSON objects. It can consist of `num`,
2688 * `String`, `bool` and `null` as well as `Map` and `List` values. 2710 /// `String`, `bool` and `null` as well as `Map` and `List` values.
2689 */
2690 core.Map<core.String, core.Object> metadata; 2711 core.Map<core.String, core.Object> metadata;
2691 /** 2712
2692 * The server-assigned name, which is only unique within the same service that 2713 /// The server-assigned name, which is only unique within the same service
2693 * originally returns it. If you use the default HTTP mapping, the name should 2714 /// that originally returns it. If you use the default HTTP mapping, the name
2694 * have the format of operations/some/unique/name. 2715 /// should have the format of operations/some/unique/name.
2695 */
2696 core.String name; 2716 core.String name;
2697 /** 2717
2698 * The normal response of the operation in case of success. If the original 2718 /// The normal response of the operation in case of success. If the original
2699 * method returns no data on success, such as Delete, the response is 2719 /// method returns no data on success, such as Delete, the response is
2700 * google.protobuf.Empty. If the original method is standard 2720 /// google.protobuf.Empty. If the original method is standard
2701 * Get/Create/Update, the response should be the resource. For other methods, 2721 /// Get/Create/Update, the response should be the resource. For other
2702 * the response should have the type XxxResponse, where Xxx is the original 2722 /// methods, the response should have the type XxxResponse, where Xxx is the
2703 * method name. For example, if the original method name is TakeSnapshot(), 2723 /// original method name. For example, if the original method name is
2704 * the inferred response type is TakeSnapshotResponse. 2724 /// TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
2705 * 2725 ///
2706 * The values for Object must be JSON objects. It can consist of `num`, 2726 /// The values for Object must be JSON objects. It can consist of `num`,
2707 * `String`, `bool` and `null` as well as `Map` and `List` values. 2727 /// `String`, `bool` and `null` as well as `Map` and `List` values.
2708 */
2709 core.Map<core.String, core.Object> response; 2728 core.Map<core.String, core.Object> response;
2710 2729
2711 Operation(); 2730 Operation();
2712 2731
2713 Operation.fromJson(core.Map _json) { 2732 Operation.fromJson(core.Map _json) {
2714 if (_json.containsKey("done")) { 2733 if (_json.containsKey("done")) {
2715 done = _json["done"]; 2734 done = _json["done"];
2716 } 2735 }
2717 if (_json.containsKey("error")) { 2736 if (_json.containsKey("error")) {
2718 error = new Status.fromJson(_json["error"]); 2737 error = new Status.fromJson(_json["error"]);
2719 } 2738 }
2720 if (_json.containsKey("metadata")) { 2739 if (_json.containsKey("metadata")) {
2721 metadata = _json["metadata"]; 2740 metadata = _json["metadata"];
2722 } 2741 }
2723 if (_json.containsKey("name")) { 2742 if (_json.containsKey("name")) {
2724 name = _json["name"]; 2743 name = _json["name"];
2725 } 2744 }
2726 if (_json.containsKey("response")) { 2745 if (_json.containsKey("response")) {
2727 response = _json["response"]; 2746 response = _json["response"];
2728 } 2747 }
2729 } 2748 }
2730 2749
2731 core.Map<core.String, core.Object> toJson() { 2750 core.Map<core.String, core.Object> toJson() {
2732 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2751 final core.Map<core.String, core.Object> _json =
2752 new core.Map<core.String, core.Object>();
2733 if (done != null) { 2753 if (done != null) {
2734 _json["done"] = done; 2754 _json["done"] = done;
2735 } 2755 }
2736 if (error != null) { 2756 if (error != null) {
2737 _json["error"] = (error).toJson(); 2757 _json["error"] = (error).toJson();
2738 } 2758 }
2739 if (metadata != null) { 2759 if (metadata != null) {
2740 _json["metadata"] = metadata; 2760 _json["metadata"] = metadata;
2741 } 2761 }
2742 if (name != null) { 2762 if (name != null) {
2743 _json["name"] = name; 2763 _json["name"] = name;
2744 } 2764 }
2745 if (response != null) { 2765 if (response != null) {
2746 _json["response"] = response; 2766 _json["response"] = response;
2747 } 2767 }
2748 return _json; 2768 return _json;
2749 } 2769 }
2750 } 2770 }
2751 2771
2752 /** Metadata for the given google.longrunning.Operation. */ 2772 /// Metadata for the given google.longrunning.Operation.
2753 class OperationMetadata { 2773 class OperationMetadata {
2754 /** Timestamp that this operation completed.@OutputOnly */ 2774 /// Timestamp that this operation completed.@OutputOnly
2755 core.String endTime; 2775 core.String endTime;
2756 /** Timestamp that this operation was created.@OutputOnly */ 2776
2777 /// Timestamp that this operation was created.@OutputOnly
2757 core.String insertTime; 2778 core.String insertTime;
2758 /** 2779
2759 * API method that initiated this operation. Example: 2780 /// API method that initiated this operation. Example:
2760 * google.appengine.v1beta4.Version.CreateVersion.@OutputOnly 2781 /// google.appengine.v1beta4.Version.CreateVersion.@OutputOnly
2761 */
2762 core.String method; 2782 core.String method;
2763 /** 2783
2764 * Type of this operation. Deprecated, use method field instead. Example: 2784 /// Type of this operation. Deprecated, use method field instead. Example:
2765 * "create_version".@OutputOnly 2785 /// "create_version".@OutputOnly
2766 */
2767 core.String operationType; 2786 core.String operationType;
2768 /** 2787
2769 * Name of the resource that this operation is acting on. Example: 2788 /// Name of the resource that this operation is acting on. Example:
2770 * apps/myapp/modules/default.@OutputOnly 2789 /// apps/myapp/modules/default.@OutputOnly
2771 */
2772 core.String target; 2790 core.String target;
2773 /** User who requested this operation.@OutputOnly */ 2791
2792 /// User who requested this operation.@OutputOnly
2774 core.String user; 2793 core.String user;
2775 2794
2776 OperationMetadata(); 2795 OperationMetadata();
2777 2796
2778 OperationMetadata.fromJson(core.Map _json) { 2797 OperationMetadata.fromJson(core.Map _json) {
2779 if (_json.containsKey("endTime")) { 2798 if (_json.containsKey("endTime")) {
2780 endTime = _json["endTime"]; 2799 endTime = _json["endTime"];
2781 } 2800 }
2782 if (_json.containsKey("insertTime")) { 2801 if (_json.containsKey("insertTime")) {
2783 insertTime = _json["insertTime"]; 2802 insertTime = _json["insertTime"];
2784 } 2803 }
2785 if (_json.containsKey("method")) { 2804 if (_json.containsKey("method")) {
2786 method = _json["method"]; 2805 method = _json["method"];
2787 } 2806 }
2788 if (_json.containsKey("operationType")) { 2807 if (_json.containsKey("operationType")) {
2789 operationType = _json["operationType"]; 2808 operationType = _json["operationType"];
2790 } 2809 }
2791 if (_json.containsKey("target")) { 2810 if (_json.containsKey("target")) {
2792 target = _json["target"]; 2811 target = _json["target"];
2793 } 2812 }
2794 if (_json.containsKey("user")) { 2813 if (_json.containsKey("user")) {
2795 user = _json["user"]; 2814 user = _json["user"];
2796 } 2815 }
2797 } 2816 }
2798 2817
2799 core.Map<core.String, core.Object> toJson() { 2818 core.Map<core.String, core.Object> toJson() {
2800 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2819 final core.Map<core.String, core.Object> _json =
2820 new core.Map<core.String, core.Object>();
2801 if (endTime != null) { 2821 if (endTime != null) {
2802 _json["endTime"] = endTime; 2822 _json["endTime"] = endTime;
2803 } 2823 }
2804 if (insertTime != null) { 2824 if (insertTime != null) {
2805 _json["insertTime"] = insertTime; 2825 _json["insertTime"] = insertTime;
2806 } 2826 }
2807 if (method != null) { 2827 if (method != null) {
2808 _json["method"] = method; 2828 _json["method"] = method;
2809 } 2829 }
2810 if (operationType != null) { 2830 if (operationType != null) {
2811 _json["operationType"] = operationType; 2831 _json["operationType"] = operationType;
2812 } 2832 }
2813 if (target != null) { 2833 if (target != null) {
2814 _json["target"] = target; 2834 _json["target"] = target;
2815 } 2835 }
2816 if (user != null) { 2836 if (user != null) {
2817 _json["user"] = user; 2837 _json["user"] = user;
2818 } 2838 }
2819 return _json; 2839 return _json;
2820 } 2840 }
2821 } 2841 }
2822 2842
2823 /** Metadata for the given google.longrunning.Operation. */ 2843 /// Metadata for the given google.longrunning.Operation.
2824 class OperationMetadataExperimental { 2844 class OperationMetadataExperimental {
2825 /** Time that this operation completed.@OutputOnly */ 2845 /// Time that this operation completed.@OutputOnly
2826 core.String endTime; 2846 core.String endTime;
2827 /** Time that this operation was created.@OutputOnly */ 2847
2848 /// Time that this operation was created.@OutputOnly
2828 core.String insertTime; 2849 core.String insertTime;
2829 /** 2850
2830 * API method that initiated this operation. Example: 2851 /// API method that initiated this operation. Example:
2831 * google.appengine.experimental.CustomDomains.CreateCustomDomain.@OutputOnly 2852 /// google.appengine.experimental.CustomDomains.CreateCustomDomain.@OutputOnly
2832 */
2833 core.String method; 2853 core.String method;
2834 /** 2854
2835 * Name of the resource that this operation is acting on. Example: 2855 /// Name of the resource that this operation is acting on. Example:
2836 * apps/myapp/customDomains/example.com.@OutputOnly 2856 /// apps/myapp/customDomains/example.com.@OutputOnly
2837 */
2838 core.String target; 2857 core.String target;
2839 /** User who requested this operation.@OutputOnly */ 2858
2859 /// User who requested this operation.@OutputOnly
2840 core.String user; 2860 core.String user;
2841 2861
2842 OperationMetadataExperimental(); 2862 OperationMetadataExperimental();
2843 2863
2844 OperationMetadataExperimental.fromJson(core.Map _json) { 2864 OperationMetadataExperimental.fromJson(core.Map _json) {
2845 if (_json.containsKey("endTime")) { 2865 if (_json.containsKey("endTime")) {
2846 endTime = _json["endTime"]; 2866 endTime = _json["endTime"];
2847 } 2867 }
2848 if (_json.containsKey("insertTime")) { 2868 if (_json.containsKey("insertTime")) {
2849 insertTime = _json["insertTime"]; 2869 insertTime = _json["insertTime"];
2850 } 2870 }
2851 if (_json.containsKey("method")) { 2871 if (_json.containsKey("method")) {
2852 method = _json["method"]; 2872 method = _json["method"];
2853 } 2873 }
2854 if (_json.containsKey("target")) { 2874 if (_json.containsKey("target")) {
2855 target = _json["target"]; 2875 target = _json["target"];
2856 } 2876 }
2857 if (_json.containsKey("user")) { 2877 if (_json.containsKey("user")) {
2858 user = _json["user"]; 2878 user = _json["user"];
2859 } 2879 }
2860 } 2880 }
2861 2881
2862 core.Map<core.String, core.Object> toJson() { 2882 core.Map<core.String, core.Object> toJson() {
2863 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2883 final core.Map<core.String, core.Object> _json =
2884 new core.Map<core.String, core.Object>();
2864 if (endTime != null) { 2885 if (endTime != null) {
2865 _json["endTime"] = endTime; 2886 _json["endTime"] = endTime;
2866 } 2887 }
2867 if (insertTime != null) { 2888 if (insertTime != null) {
2868 _json["insertTime"] = insertTime; 2889 _json["insertTime"] = insertTime;
2869 } 2890 }
2870 if (method != null) { 2891 if (method != null) {
2871 _json["method"] = method; 2892 _json["method"] = method;
2872 } 2893 }
2873 if (target != null) { 2894 if (target != null) {
2874 _json["target"] = target; 2895 _json["target"] = target;
2875 } 2896 }
2876 if (user != null) { 2897 if (user != null) {
2877 _json["user"] = user; 2898 _json["user"] = user;
2878 } 2899 }
2879 return _json; 2900 return _json;
2880 } 2901 }
2881 } 2902 }
2882 2903
2883 /** Metadata for the given google.longrunning.Operation. */ 2904 /// Metadata for the given google.longrunning.Operation.
2884 class OperationMetadataV1 { 2905 class OperationMetadataV1 {
2885 /** Time that this operation completed.@OutputOnly */ 2906 /// Time that this operation completed.@OutputOnly
2886 core.String endTime; 2907 core.String endTime;
2887 /** 2908
2888 * Ephemeral message that may change every time the operation is polled. 2909 /// Ephemeral message that may change every time the operation is polled.
2889 * @OutputOnly 2910 /// @OutputOnly
2890 */
2891 core.String ephemeralMessage; 2911 core.String ephemeralMessage;
2892 /** Time that this operation was created.@OutputOnly */ 2912
2913 /// Time that this operation was created.@OutputOnly
2893 core.String insertTime; 2914 core.String insertTime;
2894 /** 2915
2895 * API method that initiated this operation. Example: 2916 /// API method that initiated this operation. Example:
2896 * google.appengine.v1.Versions.CreateVersion.@OutputOnly 2917 /// google.appengine.v1.Versions.CreateVersion.@OutputOnly
2897 */
2898 core.String method; 2918 core.String method;
2899 /** 2919
2900 * Name of the resource that this operation is acting on. Example: 2920 /// Name of the resource that this operation is acting on. Example:
2901 * apps/myapp/services/default.@OutputOnly 2921 /// apps/myapp/services/default.@OutputOnly
2902 */
2903 core.String target; 2922 core.String target;
2904 /** User who requested this operation.@OutputOnly */ 2923
2924 /// User who requested this operation.@OutputOnly
2905 core.String user; 2925 core.String user;
2906 /** Durable messages that persist on every operation poll. @OutputOnly */ 2926
2927 /// Durable messages that persist on every operation poll. @OutputOnly
2907 core.List<core.String> warning; 2928 core.List<core.String> warning;
2908 2929
2909 OperationMetadataV1(); 2930 OperationMetadataV1();
2910 2931
2911 OperationMetadataV1.fromJson(core.Map _json) { 2932 OperationMetadataV1.fromJson(core.Map _json) {
2912 if (_json.containsKey("endTime")) { 2933 if (_json.containsKey("endTime")) {
2913 endTime = _json["endTime"]; 2934 endTime = _json["endTime"];
2914 } 2935 }
2915 if (_json.containsKey("ephemeralMessage")) { 2936 if (_json.containsKey("ephemeralMessage")) {
2916 ephemeralMessage = _json["ephemeralMessage"]; 2937 ephemeralMessage = _json["ephemeralMessage"];
2917 } 2938 }
2918 if (_json.containsKey("insertTime")) { 2939 if (_json.containsKey("insertTime")) {
2919 insertTime = _json["insertTime"]; 2940 insertTime = _json["insertTime"];
2920 } 2941 }
2921 if (_json.containsKey("method")) { 2942 if (_json.containsKey("method")) {
2922 method = _json["method"]; 2943 method = _json["method"];
2923 } 2944 }
2924 if (_json.containsKey("target")) { 2945 if (_json.containsKey("target")) {
2925 target = _json["target"]; 2946 target = _json["target"];
2926 } 2947 }
2927 if (_json.containsKey("user")) { 2948 if (_json.containsKey("user")) {
2928 user = _json["user"]; 2949 user = _json["user"];
2929 } 2950 }
2930 if (_json.containsKey("warning")) { 2951 if (_json.containsKey("warning")) {
2931 warning = _json["warning"]; 2952 warning = _json["warning"];
2932 } 2953 }
2933 } 2954 }
2934 2955
2935 core.Map<core.String, core.Object> toJson() { 2956 core.Map<core.String, core.Object> toJson() {
2936 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2957 final core.Map<core.String, core.Object> _json =
2958 new core.Map<core.String, core.Object>();
2937 if (endTime != null) { 2959 if (endTime != null) {
2938 _json["endTime"] = endTime; 2960 _json["endTime"] = endTime;
2939 } 2961 }
2940 if (ephemeralMessage != null) { 2962 if (ephemeralMessage != null) {
2941 _json["ephemeralMessage"] = ephemeralMessage; 2963 _json["ephemeralMessage"] = ephemeralMessage;
2942 } 2964 }
2943 if (insertTime != null) { 2965 if (insertTime != null) {
2944 _json["insertTime"] = insertTime; 2966 _json["insertTime"] = insertTime;
2945 } 2967 }
2946 if (method != null) { 2968 if (method != null) {
2947 _json["method"] = method; 2969 _json["method"] = method;
2948 } 2970 }
2949 if (target != null) { 2971 if (target != null) {
2950 _json["target"] = target; 2972 _json["target"] = target;
2951 } 2973 }
2952 if (user != null) { 2974 if (user != null) {
2953 _json["user"] = user; 2975 _json["user"] = user;
2954 } 2976 }
2955 if (warning != null) { 2977 if (warning != null) {
2956 _json["warning"] = warning; 2978 _json["warning"] = warning;
2957 } 2979 }
2958 return _json; 2980 return _json;
2959 } 2981 }
2960 } 2982 }
2961 2983
2962 /** Metadata for the given google.longrunning.Operation. */ 2984 /// Metadata for the given google.longrunning.Operation.
2963 class OperationMetadataV1Alpha { 2985 class OperationMetadataV1Alpha {
2964 /** Time that this operation completed.@OutputOnly */ 2986 /// Time that this operation completed.@OutputOnly
2965 core.String endTime; 2987 core.String endTime;
2966 /** 2988
2967 * Ephemeral message that may change every time the operation is polled. 2989 /// Ephemeral message that may change every time the operation is polled.
2968 * @OutputOnly 2990 /// @OutputOnly
2969 */
2970 core.String ephemeralMessage; 2991 core.String ephemeralMessage;
2971 /** Time that this operation was created.@OutputOnly */ 2992
2993 /// Time that this operation was created.@OutputOnly
2972 core.String insertTime; 2994 core.String insertTime;
2973 /** 2995
2974 * API method that initiated this operation. Example: 2996 /// API method that initiated this operation. Example:
2975 * google.appengine.v1alpha.Versions.CreateVersion.@OutputOnly 2997 /// google.appengine.v1alpha.Versions.CreateVersion.@OutputOnly
2976 */
2977 core.String method; 2998 core.String method;
2978 /** 2999
2979 * Name of the resource that this operation is acting on. Example: 3000 /// Name of the resource that this operation is acting on. Example:
2980 * apps/myapp/services/default.@OutputOnly 3001 /// apps/myapp/services/default.@OutputOnly
2981 */
2982 core.String target; 3002 core.String target;
2983 /** User who requested this operation.@OutputOnly */ 3003
3004 /// User who requested this operation.@OutputOnly
2984 core.String user; 3005 core.String user;
2985 /** Durable messages that persist on every operation poll. @OutputOnly */ 3006
3007 /// Durable messages that persist on every operation poll. @OutputOnly
2986 core.List<core.String> warning; 3008 core.List<core.String> warning;
2987 3009
2988 OperationMetadataV1Alpha(); 3010 OperationMetadataV1Alpha();
2989 3011
2990 OperationMetadataV1Alpha.fromJson(core.Map _json) { 3012 OperationMetadataV1Alpha.fromJson(core.Map _json) {
2991 if (_json.containsKey("endTime")) { 3013 if (_json.containsKey("endTime")) {
2992 endTime = _json["endTime"]; 3014 endTime = _json["endTime"];
2993 } 3015 }
2994 if (_json.containsKey("ephemeralMessage")) { 3016 if (_json.containsKey("ephemeralMessage")) {
2995 ephemeralMessage = _json["ephemeralMessage"]; 3017 ephemeralMessage = _json["ephemeralMessage"];
2996 } 3018 }
2997 if (_json.containsKey("insertTime")) { 3019 if (_json.containsKey("insertTime")) {
2998 insertTime = _json["insertTime"]; 3020 insertTime = _json["insertTime"];
2999 } 3021 }
3000 if (_json.containsKey("method")) { 3022 if (_json.containsKey("method")) {
3001 method = _json["method"]; 3023 method = _json["method"];
3002 } 3024 }
3003 if (_json.containsKey("target")) { 3025 if (_json.containsKey("target")) {
3004 target = _json["target"]; 3026 target = _json["target"];
3005 } 3027 }
3006 if (_json.containsKey("user")) { 3028 if (_json.containsKey("user")) {
3007 user = _json["user"]; 3029 user = _json["user"];
3008 } 3030 }
3009 if (_json.containsKey("warning")) { 3031 if (_json.containsKey("warning")) {
3010 warning = _json["warning"]; 3032 warning = _json["warning"];
3011 } 3033 }
3012 } 3034 }
3013 3035
3014 core.Map<core.String, core.Object> toJson() { 3036 core.Map<core.String, core.Object> toJson() {
3015 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3037 final core.Map<core.String, core.Object> _json =
3038 new core.Map<core.String, core.Object>();
3016 if (endTime != null) { 3039 if (endTime != null) {
3017 _json["endTime"] = endTime; 3040 _json["endTime"] = endTime;
3018 } 3041 }
3019 if (ephemeralMessage != null) { 3042 if (ephemeralMessage != null) {
3020 _json["ephemeralMessage"] = ephemeralMessage; 3043 _json["ephemeralMessage"] = ephemeralMessage;
3021 } 3044 }
3022 if (insertTime != null) { 3045 if (insertTime != null) {
3023 _json["insertTime"] = insertTime; 3046 _json["insertTime"] = insertTime;
3024 } 3047 }
3025 if (method != null) { 3048 if (method != null) {
3026 _json["method"] = method; 3049 _json["method"] = method;
3027 } 3050 }
3028 if (target != null) { 3051 if (target != null) {
3029 _json["target"] = target; 3052 _json["target"] = target;
3030 } 3053 }
3031 if (user != null) { 3054 if (user != null) {
3032 _json["user"] = user; 3055 _json["user"] = user;
3033 } 3056 }
3034 if (warning != null) { 3057 if (warning != null) {
3035 _json["warning"] = warning; 3058 _json["warning"] = warning;
3036 } 3059 }
3037 return _json; 3060 return _json;
3038 } 3061 }
3039 } 3062 }
3040 3063
3041 /** Metadata for the given google.longrunning.Operation. */ 3064 /// Metadata for the given google.longrunning.Operation.
3042 class OperationMetadataV1Beta { 3065 class OperationMetadataV1Beta {
3043 /** Time that this operation completed.@OutputOnly */ 3066 /// Time that this operation completed.@OutputOnly
3044 core.String endTime; 3067 core.String endTime;
3045 /** 3068
3046 * Ephemeral message that may change every time the operation is polled. 3069 /// Ephemeral message that may change every time the operation is polled.
3047 * @OutputOnly 3070 /// @OutputOnly
3048 */
3049 core.String ephemeralMessage; 3071 core.String ephemeralMessage;
3050 /** Time that this operation was created.@OutputOnly */ 3072
3073 /// Time that this operation was created.@OutputOnly
3051 core.String insertTime; 3074 core.String insertTime;
3052 /** 3075
3053 * API method that initiated this operation. Example: 3076 /// API method that initiated this operation. Example:
3054 * google.appengine.v1beta.Versions.CreateVersion.@OutputOnly 3077 /// google.appengine.v1beta.Versions.CreateVersion.@OutputOnly
3055 */
3056 core.String method; 3078 core.String method;
3057 /** 3079
3058 * Name of the resource that this operation is acting on. Example: 3080 /// Name of the resource that this operation is acting on. Example:
3059 * apps/myapp/services/default.@OutputOnly 3081 /// apps/myapp/services/default.@OutputOnly
3060 */
3061 core.String target; 3082 core.String target;
3062 /** User who requested this operation.@OutputOnly */ 3083
3084 /// User who requested this operation.@OutputOnly
3063 core.String user; 3085 core.String user;
3064 /** Durable messages that persist on every operation poll. @OutputOnly */ 3086
3087 /// Durable messages that persist on every operation poll. @OutputOnly
3065 core.List<core.String> warning; 3088 core.List<core.String> warning;
3066 3089
3067 OperationMetadataV1Beta(); 3090 OperationMetadataV1Beta();
3068 3091
3069 OperationMetadataV1Beta.fromJson(core.Map _json) { 3092 OperationMetadataV1Beta.fromJson(core.Map _json) {
3070 if (_json.containsKey("endTime")) { 3093 if (_json.containsKey("endTime")) {
3071 endTime = _json["endTime"]; 3094 endTime = _json["endTime"];
3072 } 3095 }
3073 if (_json.containsKey("ephemeralMessage")) { 3096 if (_json.containsKey("ephemeralMessage")) {
3074 ephemeralMessage = _json["ephemeralMessage"]; 3097 ephemeralMessage = _json["ephemeralMessage"];
3075 } 3098 }
3076 if (_json.containsKey("insertTime")) { 3099 if (_json.containsKey("insertTime")) {
3077 insertTime = _json["insertTime"]; 3100 insertTime = _json["insertTime"];
3078 } 3101 }
3079 if (_json.containsKey("method")) { 3102 if (_json.containsKey("method")) {
3080 method = _json["method"]; 3103 method = _json["method"];
3081 } 3104 }
3082 if (_json.containsKey("target")) { 3105 if (_json.containsKey("target")) {
3083 target = _json["target"]; 3106 target = _json["target"];
3084 } 3107 }
3085 if (_json.containsKey("user")) { 3108 if (_json.containsKey("user")) {
3086 user = _json["user"]; 3109 user = _json["user"];
3087 } 3110 }
3088 if (_json.containsKey("warning")) { 3111 if (_json.containsKey("warning")) {
3089 warning = _json["warning"]; 3112 warning = _json["warning"];
3090 } 3113 }
3091 } 3114 }
3092 3115
3093 core.Map<core.String, core.Object> toJson() { 3116 core.Map<core.String, core.Object> toJson() {
3094 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3117 final core.Map<core.String, core.Object> _json =
3118 new core.Map<core.String, core.Object>();
3095 if (endTime != null) { 3119 if (endTime != null) {
3096 _json["endTime"] = endTime; 3120 _json["endTime"] = endTime;
3097 } 3121 }
3098 if (ephemeralMessage != null) { 3122 if (ephemeralMessage != null) {
3099 _json["ephemeralMessage"] = ephemeralMessage; 3123 _json["ephemeralMessage"] = ephemeralMessage;
3100 } 3124 }
3101 if (insertTime != null) { 3125 if (insertTime != null) {
3102 _json["insertTime"] = insertTime; 3126 _json["insertTime"] = insertTime;
3103 } 3127 }
3104 if (method != null) { 3128 if (method != null) {
3105 _json["method"] = method; 3129 _json["method"] = method;
3106 } 3130 }
3107 if (target != null) { 3131 if (target != null) {
3108 _json["target"] = target; 3132 _json["target"] = target;
3109 } 3133 }
3110 if (user != null) { 3134 if (user != null) {
3111 _json["user"] = user; 3135 _json["user"] = user;
3112 } 3136 }
3113 if (warning != null) { 3137 if (warning != null) {
3114 _json["warning"] = warning; 3138 _json["warning"] = warning;
3115 } 3139 }
3116 return _json; 3140 return _json;
3117 } 3141 }
3118 } 3142 }
3119 3143
3120 /** Metadata for the given google.longrunning.Operation. */ 3144 /// Metadata for the given google.longrunning.Operation.
3121 class OperationMetadataV1Beta5 { 3145 class OperationMetadataV1Beta5 {
3122 /** Timestamp that this operation completed.@OutputOnly */ 3146 /// Timestamp that this operation completed.@OutputOnly
3123 core.String endTime; 3147 core.String endTime;
3124 /** Timestamp that this operation was created.@OutputOnly */ 3148
3149 /// Timestamp that this operation was created.@OutputOnly
3125 core.String insertTime; 3150 core.String insertTime;
3126 /** 3151
3127 * API method name that initiated this operation. Example: 3152 /// API method name that initiated this operation. Example:
3128 * google.appengine.v1beta5.Version.CreateVersion.@OutputOnly 3153 /// google.appengine.v1beta5.Version.CreateVersion.@OutputOnly
3129 */
3130 core.String method; 3154 core.String method;
3131 /** 3155
3132 * Name of the resource that this operation is acting on. Example: 3156 /// Name of the resource that this operation is acting on. Example:
3133 * apps/myapp/services/default.@OutputOnly 3157 /// apps/myapp/services/default.@OutputOnly
3134 */
3135 core.String target; 3158 core.String target;
3136 /** User who requested this operation.@OutputOnly */ 3159
3160 /// User who requested this operation.@OutputOnly
3137 core.String user; 3161 core.String user;
3138 3162
3139 OperationMetadataV1Beta5(); 3163 OperationMetadataV1Beta5();
3140 3164
3141 OperationMetadataV1Beta5.fromJson(core.Map _json) { 3165 OperationMetadataV1Beta5.fromJson(core.Map _json) {
3142 if (_json.containsKey("endTime")) { 3166 if (_json.containsKey("endTime")) {
3143 endTime = _json["endTime"]; 3167 endTime = _json["endTime"];
3144 } 3168 }
3145 if (_json.containsKey("insertTime")) { 3169 if (_json.containsKey("insertTime")) {
3146 insertTime = _json["insertTime"]; 3170 insertTime = _json["insertTime"];
3147 } 3171 }
3148 if (_json.containsKey("method")) { 3172 if (_json.containsKey("method")) {
3149 method = _json["method"]; 3173 method = _json["method"];
3150 } 3174 }
3151 if (_json.containsKey("target")) { 3175 if (_json.containsKey("target")) {
3152 target = _json["target"]; 3176 target = _json["target"];
3153 } 3177 }
3154 if (_json.containsKey("user")) { 3178 if (_json.containsKey("user")) {
3155 user = _json["user"]; 3179 user = _json["user"];
3156 } 3180 }
3157 } 3181 }
3158 3182
3159 core.Map<core.String, core.Object> toJson() { 3183 core.Map<core.String, core.Object> toJson() {
3160 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3184 final core.Map<core.String, core.Object> _json =
3185 new core.Map<core.String, core.Object>();
3161 if (endTime != null) { 3186 if (endTime != null) {
3162 _json["endTime"] = endTime; 3187 _json["endTime"] = endTime;
3163 } 3188 }
3164 if (insertTime != null) { 3189 if (insertTime != null) {
3165 _json["insertTime"] = insertTime; 3190 _json["insertTime"] = insertTime;
3166 } 3191 }
3167 if (method != null) { 3192 if (method != null) {
3168 _json["method"] = method; 3193 _json["method"] = method;
3169 } 3194 }
3170 if (target != null) { 3195 if (target != null) {
3171 _json["target"] = target; 3196 _json["target"] = target;
3172 } 3197 }
3173 if (user != null) { 3198 if (user != null) {
3174 _json["user"] = user; 3199 _json["user"] = user;
3175 } 3200 }
3176 return _json; 3201 return _json;
3177 } 3202 }
3178 } 3203 }
3179 3204
3180 /** Target scaling by request utilization. Only applicable for VM runtimes. */ 3205 /// Target scaling by request utilization. Only applicable for VM runtimes.
3181 class RequestUtilization { 3206 class RequestUtilization {
3182 /** Target number of concurrent requests. */ 3207 /// Target number of concurrent requests.
3183 core.int targetConcurrentRequests; 3208 core.int targetConcurrentRequests;
3184 /** Target requests per second. */ 3209
3210 /// Target requests per second.
3185 core.int targetRequestCountPerSec; 3211 core.int targetRequestCountPerSec;
3186 3212
3187 RequestUtilization(); 3213 RequestUtilization();
3188 3214
3189 RequestUtilization.fromJson(core.Map _json) { 3215 RequestUtilization.fromJson(core.Map _json) {
3190 if (_json.containsKey("targetConcurrentRequests")) { 3216 if (_json.containsKey("targetConcurrentRequests")) {
3191 targetConcurrentRequests = _json["targetConcurrentRequests"]; 3217 targetConcurrentRequests = _json["targetConcurrentRequests"];
3192 } 3218 }
3193 if (_json.containsKey("targetRequestCountPerSec")) { 3219 if (_json.containsKey("targetRequestCountPerSec")) {
3194 targetRequestCountPerSec = _json["targetRequestCountPerSec"]; 3220 targetRequestCountPerSec = _json["targetRequestCountPerSec"];
3195 } 3221 }
3196 } 3222 }
3197 3223
3198 core.Map<core.String, core.Object> toJson() { 3224 core.Map<core.String, core.Object> toJson() {
3199 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3225 final core.Map<core.String, core.Object> _json =
3226 new core.Map<core.String, core.Object>();
3200 if (targetConcurrentRequests != null) { 3227 if (targetConcurrentRequests != null) {
3201 _json["targetConcurrentRequests"] = targetConcurrentRequests; 3228 _json["targetConcurrentRequests"] = targetConcurrentRequests;
3202 } 3229 }
3203 if (targetRequestCountPerSec != null) { 3230 if (targetRequestCountPerSec != null) {
3204 _json["targetRequestCountPerSec"] = targetRequestCountPerSec; 3231 _json["targetRequestCountPerSec"] = targetRequestCountPerSec;
3205 } 3232 }
3206 return _json; 3233 return _json;
3207 } 3234 }
3208 } 3235 }
3209 3236
3210 /** Machine resources for a version. */ 3237 /// Machine resources for a version.
3211 class Resources { 3238 class Resources {
3212 /** Number of CPU cores needed. */ 3239 /// Number of CPU cores needed.
3213 core.double cpu; 3240 core.double cpu;
3214 /** Disk size (GB) needed. */ 3241
3242 /// Disk size (GB) needed.
3215 core.double diskGb; 3243 core.double diskGb;
3216 /** Memory (GB) needed. */ 3244
3245 /// Memory (GB) needed.
3217 core.double memoryGb; 3246 core.double memoryGb;
3218 /** User specified volumes. */ 3247
3248 /// User specified volumes.
3219 core.List<Volume> volumes; 3249 core.List<Volume> volumes;
3220 3250
3221 Resources(); 3251 Resources();
3222 3252
3223 Resources.fromJson(core.Map _json) { 3253 Resources.fromJson(core.Map _json) {
3224 if (_json.containsKey("cpu")) { 3254 if (_json.containsKey("cpu")) {
3225 cpu = _json["cpu"]; 3255 cpu = _json["cpu"];
3226 } 3256 }
3227 if (_json.containsKey("diskGb")) { 3257 if (_json.containsKey("diskGb")) {
3228 diskGb = _json["diskGb"]; 3258 diskGb = _json["diskGb"];
3229 } 3259 }
3230 if (_json.containsKey("memoryGb")) { 3260 if (_json.containsKey("memoryGb")) {
3231 memoryGb = _json["memoryGb"]; 3261 memoryGb = _json["memoryGb"];
3232 } 3262 }
3233 if (_json.containsKey("volumes")) { 3263 if (_json.containsKey("volumes")) {
3234 volumes = _json["volumes"].map((value) => new Volume.fromJson(value)).toLi st(); 3264 volumes =
3265 _json["volumes"].map((value) => new Volume.fromJson(value)).toList();
3235 } 3266 }
3236 } 3267 }
3237 3268
3238 core.Map<core.String, core.Object> toJson() { 3269 core.Map<core.String, core.Object> toJson() {
3239 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3270 final core.Map<core.String, core.Object> _json =
3271 new core.Map<core.String, core.Object>();
3240 if (cpu != null) { 3272 if (cpu != null) {
3241 _json["cpu"] = cpu; 3273 _json["cpu"] = cpu;
3242 } 3274 }
3243 if (diskGb != null) { 3275 if (diskGb != null) {
3244 _json["diskGb"] = diskGb; 3276 _json["diskGb"] = diskGb;
3245 } 3277 }
3246 if (memoryGb != null) { 3278 if (memoryGb != null) {
3247 _json["memoryGb"] = memoryGb; 3279 _json["memoryGb"] = memoryGb;
3248 } 3280 }
3249 if (volumes != null) { 3281 if (volumes != null) {
3250 _json["volumes"] = volumes.map((value) => (value).toJson()).toList(); 3282 _json["volumes"] = volumes.map((value) => (value).toJson()).toList();
3251 } 3283 }
3252 return _json; 3284 return _json;
3253 } 3285 }
3254 } 3286 }
3255 3287
3256 /** Executes a script to handle the request that matches the URL pattern. */ 3288 /// Executes a script to handle the request that matches the URL pattern.
3257 class ScriptHandler { 3289 class ScriptHandler {
3258 /** Path to the script from the application root directory. */ 3290 /// Path to the script from the application root directory.
3259 core.String scriptPath; 3291 core.String scriptPath;
3260 3292
3261 ScriptHandler(); 3293 ScriptHandler();
3262 3294
3263 ScriptHandler.fromJson(core.Map _json) { 3295 ScriptHandler.fromJson(core.Map _json) {
3264 if (_json.containsKey("scriptPath")) { 3296 if (_json.containsKey("scriptPath")) {
3265 scriptPath = _json["scriptPath"]; 3297 scriptPath = _json["scriptPath"];
3266 } 3298 }
3267 } 3299 }
3268 3300
3269 core.Map<core.String, core.Object> toJson() { 3301 core.Map<core.String, core.Object> toJson() {
3270 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3302 final core.Map<core.String, core.Object> _json =
3303 new core.Map<core.String, core.Object>();
3271 if (scriptPath != null) { 3304 if (scriptPath != null) {
3272 _json["scriptPath"] = scriptPath; 3305 _json["scriptPath"] = scriptPath;
3273 } 3306 }
3274 return _json; 3307 return _json;
3275 } 3308 }
3276 } 3309 }
3277 3310
3278 /** 3311 /// Reference to a particular snapshot of the source tree used to build and
3279 * Reference to a particular snapshot of the source tree used to build and 3312 /// deploy the application.
3280 * deploy the application.
3281 */
3282 class SourceReference { 3313 class SourceReference {
3283 /** 3314 /// URI string identifying the repository. Example:
3284 * URI string identifying the repository. Example: 3315 /// "https://source.developers.google.com/p/app-123/r/default"
3285 * "https://source.developers.google.com/p/app-123/r/default"
3286 */
3287 core.String repository; 3316 core.String repository;
3288 /** 3317
3289 * The canonical, persistent identifier of the deployed revision. Aliases that 3318 /// The canonical, persistent identifier of the deployed revision. Aliases
3290 * include tags or branch names are not allowed. Example (git): 3319 /// that include tags or branch names are not allowed. Example (git):
3291 * "2198322f89e0bb2e25021667c2ed489d1fd34e6b" 3320 /// "2198322f89e0bb2e25021667c2ed489d1fd34e6b"
3292 */
3293 core.String revisionId; 3321 core.String revisionId;
3294 3322
3295 SourceReference(); 3323 SourceReference();
3296 3324
3297 SourceReference.fromJson(core.Map _json) { 3325 SourceReference.fromJson(core.Map _json) {
3298 if (_json.containsKey("repository")) { 3326 if (_json.containsKey("repository")) {
3299 repository = _json["repository"]; 3327 repository = _json["repository"];
3300 } 3328 }
3301 if (_json.containsKey("revisionId")) { 3329 if (_json.containsKey("revisionId")) {
3302 revisionId = _json["revisionId"]; 3330 revisionId = _json["revisionId"];
3303 } 3331 }
3304 } 3332 }
3305 3333
3306 core.Map<core.String, core.Object> toJson() { 3334 core.Map<core.String, core.Object> toJson() {
3307 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3335 final core.Map<core.String, core.Object> _json =
3336 new core.Map<core.String, core.Object>();
3308 if (repository != null) { 3337 if (repository != null) {
3309 _json["repository"] = repository; 3338 _json["repository"] = repository;
3310 } 3339 }
3311 if (revisionId != null) { 3340 if (revisionId != null) {
3312 _json["revisionId"] = revisionId; 3341 _json["revisionId"] = revisionId;
3313 } 3342 }
3314 return _json; 3343 return _json;
3315 } 3344 }
3316 } 3345 }
3317 3346
3318 /** 3347 /// Files served directly to the user for a given URL, such as images, CSS
3319 * Files served directly to the user for a given URL, such as images, CSS 3348 /// stylesheets, or JavaScript source files. Static directory handlers make it
3320 * stylesheets, or JavaScript source files. Static directory handlers make it 3349 /// easy to serve the entire contents of a directory as static files.
3321 * easy to serve the entire contents of a directory as static files.
3322 */
3323 class StaticDirectoryHandler { 3350 class StaticDirectoryHandler {
3324 /** 3351 /// Whether files should also be uploaded as code data. By default, files
3325 * Whether files should also be uploaded as code data. By default, files 3352 /// declared in static directory handlers are uploaded as static data and are
3326 * declared in static directory handlers are uploaded as static data and are 3353 /// only served to end users; they cannot be read by the application. If
3327 * only served to end users; they cannot be read by the application. If 3354 /// enabled, uploads are charged against both your code and static data
3328 * enabled, uploads are charged against both your code and static data storage 3355 /// storage resource quotas.
3329 * resource quotas.
3330 */
3331 core.bool applicationReadable; 3356 core.bool applicationReadable;
3332 /** 3357
3333 * Path to the directory containing the static files from the application root 3358 /// Path to the directory containing the static files from the application
3334 * directory. Everything after the end of the matched URL pattern is appended 3359 /// root directory. Everything after the end of the matched URL pattern is
3335 * to static_dir to form the full path to the requested file. 3360 /// appended to static_dir to form the full path to the requested file.
3336 */
3337 core.String directory; 3361 core.String directory;
3338 /** Time a static file served by this handler should be cached. */ 3362
3363 /// Time a static file served by this handler should be cached.
3339 core.String expiration; 3364 core.String expiration;
3340 /** HTTP headers to use for all responses from these URLs. */ 3365
3366 /// HTTP headers to use for all responses from these URLs.
3341 core.Map<core.String, core.String> httpHeaders; 3367 core.Map<core.String, core.String> httpHeaders;
3342 /** 3368
3343 * MIME type used to serve all files served by this handler. Defaults to 3369 /// MIME type used to serve all files served by this handler. Defaults to
3344 * file-specific MIME types, which are direved from each file's filename 3370 /// file-specific MIME types, which are direved from each file's filename
3345 * extension. 3371 /// extension.
3346 */
3347 core.String mimeType; 3372 core.String mimeType;
3348 /** 3373
3349 * Whether this handler should match the request if the file referenced by the 3374 /// Whether this handler should match the request if the file referenced by
3350 * handler does not exist. 3375 /// the handler does not exist.
3351 */
3352 core.bool requireMatchingFile; 3376 core.bool requireMatchingFile;
3353 3377
3354 StaticDirectoryHandler(); 3378 StaticDirectoryHandler();
3355 3379
3356 StaticDirectoryHandler.fromJson(core.Map _json) { 3380 StaticDirectoryHandler.fromJson(core.Map _json) {
3357 if (_json.containsKey("applicationReadable")) { 3381 if (_json.containsKey("applicationReadable")) {
3358 applicationReadable = _json["applicationReadable"]; 3382 applicationReadable = _json["applicationReadable"];
3359 } 3383 }
3360 if (_json.containsKey("directory")) { 3384 if (_json.containsKey("directory")) {
3361 directory = _json["directory"]; 3385 directory = _json["directory"];
3362 } 3386 }
3363 if (_json.containsKey("expiration")) { 3387 if (_json.containsKey("expiration")) {
3364 expiration = _json["expiration"]; 3388 expiration = _json["expiration"];
3365 } 3389 }
3366 if (_json.containsKey("httpHeaders")) { 3390 if (_json.containsKey("httpHeaders")) {
3367 httpHeaders = _json["httpHeaders"]; 3391 httpHeaders = _json["httpHeaders"];
3368 } 3392 }
3369 if (_json.containsKey("mimeType")) { 3393 if (_json.containsKey("mimeType")) {
3370 mimeType = _json["mimeType"]; 3394 mimeType = _json["mimeType"];
3371 } 3395 }
3372 if (_json.containsKey("requireMatchingFile")) { 3396 if (_json.containsKey("requireMatchingFile")) {
3373 requireMatchingFile = _json["requireMatchingFile"]; 3397 requireMatchingFile = _json["requireMatchingFile"];
3374 } 3398 }
3375 } 3399 }
3376 3400
3377 core.Map<core.String, core.Object> toJson() { 3401 core.Map<core.String, core.Object> toJson() {
3378 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3402 final core.Map<core.String, core.Object> _json =
3403 new core.Map<core.String, core.Object>();
3379 if (applicationReadable != null) { 3404 if (applicationReadable != null) {
3380 _json["applicationReadable"] = applicationReadable; 3405 _json["applicationReadable"] = applicationReadable;
3381 } 3406 }
3382 if (directory != null) { 3407 if (directory != null) {
3383 _json["directory"] = directory; 3408 _json["directory"] = directory;
3384 } 3409 }
3385 if (expiration != null) { 3410 if (expiration != null) {
3386 _json["expiration"] = expiration; 3411 _json["expiration"] = expiration;
3387 } 3412 }
3388 if (httpHeaders != null) { 3413 if (httpHeaders != null) {
3389 _json["httpHeaders"] = httpHeaders; 3414 _json["httpHeaders"] = httpHeaders;
3390 } 3415 }
3391 if (mimeType != null) { 3416 if (mimeType != null) {
3392 _json["mimeType"] = mimeType; 3417 _json["mimeType"] = mimeType;
3393 } 3418 }
3394 if (requireMatchingFile != null) { 3419 if (requireMatchingFile != null) {
3395 _json["requireMatchingFile"] = requireMatchingFile; 3420 _json["requireMatchingFile"] = requireMatchingFile;
3396 } 3421 }
3397 return _json; 3422 return _json;
3398 } 3423 }
3399 } 3424 }
3400 3425
3401 /** 3426 /// Files served directly to the user for a given URL, such as images, CSS
3402 * Files served directly to the user for a given URL, such as images, CSS 3427 /// stylesheets, or JavaScript source files. Static file handlers describe
3403 * stylesheets, or JavaScript source files. Static file handlers describe which 3428 /// which files in the application directory are static files, and which URLs
3404 * files in the application directory are static files, and which URLs serve 3429 /// serve them.
3405 * them.
3406 */
3407 class StaticFilesHandler { 3430 class StaticFilesHandler {
3408 /** 3431 /// Whether files should also be uploaded as code data. By default, files
3409 * Whether files should also be uploaded as code data. By default, files 3432 /// declared in static file handlers are uploaded as static data and are only
3410 * declared in static file handlers are uploaded as static data and are only 3433 /// served to end users; they cannot be read by the application. If enabled,
3411 * served to end users; they cannot be read by the application. If enabled, 3434 /// uploads are charged against both your code and static data storage
3412 * uploads are charged against both your code and static data storage resource 3435 /// resource quotas.
3413 * quotas.
3414 */
3415 core.bool applicationReadable; 3436 core.bool applicationReadable;
3416 /** Time a static file served by this handler should be cached. */ 3437
3438 /// Time a static file served by this handler should be cached.
3417 core.String expiration; 3439 core.String expiration;
3418 /** HTTP headers to use for all responses from these URLs. */ 3440
3441 /// HTTP headers to use for all responses from these URLs.
3419 core.Map<core.String, core.String> httpHeaders; 3442 core.Map<core.String, core.String> httpHeaders;
3420 /** 3443
3421 * MIME type used to serve all files served by this handler. Defaults to 3444 /// MIME type used to serve all files served by this handler. Defaults to
3422 * file-specific MIME types, which are derived from each file's filename 3445 /// file-specific MIME types, which are derived from each file's filename
3423 * extension. 3446 /// extension.
3424 */
3425 core.String mimeType; 3447 core.String mimeType;
3426 /** 3448
3427 * Path to the static files matched by the URL pattern, from the application 3449 /// Path to the static files matched by the URL pattern, from the application
3428 * root directory. The path can refer to text matched in groupings in the URL 3450 /// root directory. The path can refer to text matched in groupings in the
3429 * pattern. 3451 /// URL pattern.
3430 */
3431 core.String path; 3452 core.String path;
3432 /** 3453
3433 * Whether this handler should match the request if the file referenced by the 3454 /// Whether this handler should match the request if the file referenced by
3434 * handler does not exist. 3455 /// the handler does not exist.
3435 */
3436 core.bool requireMatchingFile; 3456 core.bool requireMatchingFile;
3437 /** 3457
3438 * Regular expression that matches the file paths for all files that should be 3458 /// Regular expression that matches the file paths for all files that should
3439 * referenced by this handler. 3459 /// be referenced by this handler.
3440 */
3441 core.String uploadPathRegex; 3460 core.String uploadPathRegex;
3442 3461
3443 StaticFilesHandler(); 3462 StaticFilesHandler();
3444 3463
3445 StaticFilesHandler.fromJson(core.Map _json) { 3464 StaticFilesHandler.fromJson(core.Map _json) {
3446 if (_json.containsKey("applicationReadable")) { 3465 if (_json.containsKey("applicationReadable")) {
3447 applicationReadable = _json["applicationReadable"]; 3466 applicationReadable = _json["applicationReadable"];
3448 } 3467 }
3449 if (_json.containsKey("expiration")) { 3468 if (_json.containsKey("expiration")) {
3450 expiration = _json["expiration"]; 3469 expiration = _json["expiration"];
3451 } 3470 }
3452 if (_json.containsKey("httpHeaders")) { 3471 if (_json.containsKey("httpHeaders")) {
3453 httpHeaders = _json["httpHeaders"]; 3472 httpHeaders = _json["httpHeaders"];
3454 } 3473 }
3455 if (_json.containsKey("mimeType")) { 3474 if (_json.containsKey("mimeType")) {
3456 mimeType = _json["mimeType"]; 3475 mimeType = _json["mimeType"];
3457 } 3476 }
3458 if (_json.containsKey("path")) { 3477 if (_json.containsKey("path")) {
3459 path = _json["path"]; 3478 path = _json["path"];
3460 } 3479 }
3461 if (_json.containsKey("requireMatchingFile")) { 3480 if (_json.containsKey("requireMatchingFile")) {
3462 requireMatchingFile = _json["requireMatchingFile"]; 3481 requireMatchingFile = _json["requireMatchingFile"];
3463 } 3482 }
3464 if (_json.containsKey("uploadPathRegex")) { 3483 if (_json.containsKey("uploadPathRegex")) {
3465 uploadPathRegex = _json["uploadPathRegex"]; 3484 uploadPathRegex = _json["uploadPathRegex"];
3466 } 3485 }
3467 } 3486 }
3468 3487
3469 core.Map<core.String, core.Object> toJson() { 3488 core.Map<core.String, core.Object> toJson() {
3470 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3489 final core.Map<core.String, core.Object> _json =
3490 new core.Map<core.String, core.Object>();
3471 if (applicationReadable != null) { 3491 if (applicationReadable != null) {
3472 _json["applicationReadable"] = applicationReadable; 3492 _json["applicationReadable"] = applicationReadable;
3473 } 3493 }
3474 if (expiration != null) { 3494 if (expiration != null) {
3475 _json["expiration"] = expiration; 3495 _json["expiration"] = expiration;
3476 } 3496 }
3477 if (httpHeaders != null) { 3497 if (httpHeaders != null) {
3478 _json["httpHeaders"] = httpHeaders; 3498 _json["httpHeaders"] = httpHeaders;
3479 } 3499 }
3480 if (mimeType != null) { 3500 if (mimeType != null) {
3481 _json["mimeType"] = mimeType; 3501 _json["mimeType"] = mimeType;
3482 } 3502 }
3483 if (path != null) { 3503 if (path != null) {
3484 _json["path"] = path; 3504 _json["path"] = path;
3485 } 3505 }
3486 if (requireMatchingFile != null) { 3506 if (requireMatchingFile != null) {
3487 _json["requireMatchingFile"] = requireMatchingFile; 3507 _json["requireMatchingFile"] = requireMatchingFile;
3488 } 3508 }
3489 if (uploadPathRegex != null) { 3509 if (uploadPathRegex != null) {
3490 _json["uploadPathRegex"] = uploadPathRegex; 3510 _json["uploadPathRegex"] = uploadPathRegex;
3491 } 3511 }
3492 return _json; 3512 return _json;
3493 } 3513 }
3494 } 3514 }
3495 3515
3496 /** 3516 /// The Status type defines a logical error model that is suitable for
3497 * The Status type defines a logical error model that is suitable for different 3517 /// different programming environments, including REST APIs and RPC APIs. It is
3498 * programming environments, including REST APIs and RPC APIs. It is used by 3518 /// used by gRPC (https://github.com/grpc). The error model is designed to be:
3499 * gRPC (https://github.com/grpc). The error model is designed to be: 3519 /// Simple to use and understand for most users
3500 * Simple to use and understand for most users 3520 /// Flexible enough to meet unexpected needsOverviewThe Status message contains
3501 * Flexible enough to meet unexpected needsOverviewThe Status message contains 3521 /// three pieces of data: error code, error message, and error details. The
3502 * three pieces of data: error code, error message, and error details. The error 3522 /// error code should be an enum value of google.rpc.Code, but it may accept
3503 * code should be an enum value of google.rpc.Code, but it may accept additional 3523 /// additional error codes if needed. The error message should be a
3504 * error codes if needed. The error message should be a developer-facing English 3524 /// developer-facing English message that helps developers understand and
3505 * message that helps developers understand and resolve the error. If a 3525 /// resolve the error. If a localized user-facing error message is needed, put
3506 * localized user-facing error message is needed, put the localized message in 3526 /// the localized message in the error details or localize it in the client.
3507 * the error details or localize it in the client. The optional error details 3527 /// The optional error details may contain arbitrary information about the
3508 * may contain arbitrary information about the error. There is a predefined set 3528 /// error. There is a predefined set of error detail types in the package
3509 * of error detail types in the package google.rpc that can be used for common 3529 /// google.rpc that can be used for common error conditions.Language mappingThe
3510 * error conditions.Language mappingThe Status message is the logical 3530 /// Status message is the logical representation of the error model, but it is
3511 * representation of the error model, but it is not necessarily the actual wire 3531 /// not necessarily the actual wire format. When the Status message is exposed
3512 * format. When the Status message is exposed in different client libraries and 3532 /// in different client libraries and different wire protocols, it can be
3513 * different wire protocols, it can be mapped differently. For example, it will 3533 /// mapped differently. For example, it will likely be mapped to some
3514 * likely be mapped to some exceptions in Java, but more likely mapped to some 3534 /// exceptions in Java, but more likely mapped to some error codes in C.Other
3515 * error codes in C.Other usesThe error model and the Status message can be used 3535 /// usesThe error model and the Status message can be used in a variety of
3516 * in a variety of environments, either with or without APIs, to provide a 3536 /// environments, either with or without APIs, to provide a consistent
3517 * consistent developer experience across different environments.Example uses of 3537 /// developer experience across different environments.Example uses of this
3518 * this error model include: 3538 /// error model include:
3519 * Partial errors. If a service needs to return partial errors to the client, it 3539 /// Partial errors. If a service needs to return partial errors to the client,
3520 * may embed the Status in the normal response to indicate the partial errors. 3540 /// it may embed the Status in the normal response to indicate the partial
3521 * Workflow errors. A typical workflow has multiple steps. Each step may have a 3541 /// errors.
3522 * Status message for error reporting. 3542 /// Workflow errors. A typical workflow has multiple steps. Each step may have
3523 * Batch operations. If a client uses batch request and batch response, the 3543 /// a Status message for error reporting.
3524 * Status message should be used directly inside batch response, one for each 3544 /// Batch operations. If a client uses batch request and batch response, the
3525 * error sub-response. 3545 /// Status message should be used directly inside batch response, one for each
3526 * Asynchronous operations. If an API call embeds asynchronous operation results 3546 /// error sub-response.
3527 * in its response, the status of those operations should be represented 3547 /// Asynchronous operations. If an API call embeds asynchronous operation
3528 * directly using the Status message. 3548 /// results in its response, the status of those operations should be
3529 * Logging. If some API errors are stored in logs, the message Status could be 3549 /// represented directly using the Status message.
3530 * used directly after any stripping needed for security/privacy reasons. 3550 /// Logging. If some API errors are stored in logs, the message Status could be
3531 */ 3551 /// used directly after any stripping needed for security/privacy reasons.
3532 class Status { 3552 class Status {
3533 /** The status code, which should be an enum value of google.rpc.Code. */ 3553 /// The status code, which should be an enum value of google.rpc.Code.
3534 core.int code; 3554 core.int code;
3535 /** 3555
3536 * A list of messages that carry the error details. There is a common set of 3556 /// A list of messages that carry the error details. There is a common set of
3537 * message types for APIs to use. 3557 /// message types for APIs to use.
3538 * 3558 ///
3539 * The values for Object must be JSON objects. It can consist of `num`, 3559 /// The values for Object must be JSON objects. It can consist of `num`,
3540 * `String`, `bool` and `null` as well as `Map` and `List` values. 3560 /// `String`, `bool` and `null` as well as `Map` and `List` values.
3541 */
3542 core.List<core.Map<core.String, core.Object>> details; 3561 core.List<core.Map<core.String, core.Object>> details;
3543 /** 3562
3544 * A developer-facing error message, which should be in English. Any 3563 /// A developer-facing error message, which should be in English. Any
3545 * user-facing error message should be localized and sent in the 3564 /// user-facing error message should be localized and sent in the
3546 * google.rpc.Status.details field, or localized by the client. 3565 /// google.rpc.Status.details field, or localized by the client.
3547 */
3548 core.String message; 3566 core.String message;
3549 3567
3550 Status(); 3568 Status();
3551 3569
3552 Status.fromJson(core.Map _json) { 3570 Status.fromJson(core.Map _json) {
3553 if (_json.containsKey("code")) { 3571 if (_json.containsKey("code")) {
3554 code = _json["code"]; 3572 code = _json["code"];
3555 } 3573 }
3556 if (_json.containsKey("details")) { 3574 if (_json.containsKey("details")) {
3557 details = _json["details"]; 3575 details = _json["details"];
3558 } 3576 }
3559 if (_json.containsKey("message")) { 3577 if (_json.containsKey("message")) {
3560 message = _json["message"]; 3578 message = _json["message"];
3561 } 3579 }
3562 } 3580 }
3563 3581
3564 core.Map<core.String, core.Object> toJson() { 3582 core.Map<core.String, core.Object> toJson() {
3565 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3583 final core.Map<core.String, core.Object> _json =
3584 new core.Map<core.String, core.Object>();
3566 if (code != null) { 3585 if (code != null) {
3567 _json["code"] = code; 3586 _json["code"] = code;
3568 } 3587 }
3569 if (details != null) { 3588 if (details != null) {
3570 _json["details"] = details; 3589 _json["details"] = details;
3571 } 3590 }
3572 if (message != null) { 3591 if (message != null) {
3573 _json["message"] = message; 3592 _json["message"] = message;
3574 } 3593 }
3575 return _json; 3594 return _json;
3576 } 3595 }
3577 } 3596 }
3578 3597
3579 /** 3598 /// Traffic routing configuration for versions within a single module. Traffic
3580 * Traffic routing configuration for versions within a single module. Traffic 3599 /// splits define how traffic directed to the module is assigned to versions.
3581 * splits define how traffic directed to the module is assigned to versions.
3582 */
3583 class TrafficSplit { 3600 class TrafficSplit {
3584 /** 3601 /// Mapping from version IDs within the module to fractional (0.000, 1]
3585 * Mapping from version IDs within the module to fractional (0.000, 1] 3602 /// allocations of traffic for that version. Each version can be specified
3586 * allocations of traffic for that version. Each version can be specified only 3603 /// only once, but some versions in the module may not have any traffic
3587 * once, but some versions in the module may not have any traffic allocation. 3604 /// allocation. Modules that have traffic allocated cannot be deleted until
3588 * Modules that have traffic allocated cannot be deleted until either the 3605 /// either the module is deleted or their traffic allocation is removed.
3589 * module is deleted or their traffic allocation is removed. Allocations must 3606 /// Allocations must sum to 1. Up to two decimal place precision is supported
3590 * sum to 1. Up to two decimal place precision is supported for IP-based 3607 /// for IP-based splits and up to three decimal places is supported for
3591 * splits and up to three decimal places is supported for cookie-based splits. 3608 /// cookie-based splits.
3592 */
3593 core.Map<core.String, core.double> allocations; 3609 core.Map<core.String, core.double> allocations;
3594 /** 3610
3595 * Mechanism used to determine which version a request is sent to. The traffic 3611 /// Mechanism used to determine which version a request is sent to. The
3596 * selection algorithm will be stable for either type until allocations are 3612 /// traffic selection algorithm will be stable for either type until
3597 * changed. 3613 /// allocations are changed.
3598 * Possible string values are: 3614 /// Possible string values are:
3599 * - "UNSPECIFIED" : Diversion method unspecified. 3615 /// - "UNSPECIFIED" : Diversion method unspecified.
3600 * - "COOKIE" : Diversion based on a specially named cookie, "GOOGAPPUID." The 3616 /// - "COOKIE" : Diversion based on a specially named cookie, "GOOGAPPUID."
3601 * cookie must be set by the application itself or else no diversion will 3617 /// The cookie must be set by the application itself or else no diversion
3602 * occur. 3618 /// will occur.
3603 * - "IP" : Diversion based on applying the modulus operation to a fingerprint 3619 /// - "IP" : Diversion based on applying the modulus operation to a
3604 * of the IP address. 3620 /// fingerprint of the IP address.
3605 */
3606 core.String shardBy; 3621 core.String shardBy;
3607 3622
3608 TrafficSplit(); 3623 TrafficSplit();
3609 3624
3610 TrafficSplit.fromJson(core.Map _json) { 3625 TrafficSplit.fromJson(core.Map _json) {
3611 if (_json.containsKey("allocations")) { 3626 if (_json.containsKey("allocations")) {
3612 allocations = _json["allocations"]; 3627 allocations = _json["allocations"];
3613 } 3628 }
3614 if (_json.containsKey("shardBy")) { 3629 if (_json.containsKey("shardBy")) {
3615 shardBy = _json["shardBy"]; 3630 shardBy = _json["shardBy"];
3616 } 3631 }
3617 } 3632 }
3618 3633
3619 core.Map<core.String, core.Object> toJson() { 3634 core.Map<core.String, core.Object> toJson() {
3620 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3635 final core.Map<core.String, core.Object> _json =
3636 new core.Map<core.String, core.Object>();
3621 if (allocations != null) { 3637 if (allocations != null) {
3622 _json["allocations"] = allocations; 3638 _json["allocations"] = allocations;
3623 } 3639 }
3624 if (shardBy != null) { 3640 if (shardBy != null) {
3625 _json["shardBy"] = shardBy; 3641 _json["shardBy"] = shardBy;
3626 } 3642 }
3627 return _json; 3643 return _json;
3628 } 3644 }
3629 } 3645 }
3630 3646
3631 /** Rules to match an HTTP request and dispatch that request to a module. */ 3647 /// Rules to match an HTTP request and dispatch that request to a module.
3632 class UrlDispatchRule { 3648 class UrlDispatchRule {
3633 /** 3649 /// Domain name to match against. The wildcard "*" is supported if specified
3634 * Domain name to match against. The wildcard "*" is supported if specified 3650 /// before a period: "*.".Defaults to matching all domains: "*".
3635 * before a period: "*.".Defaults to matching all domains: "*".
3636 */
3637 core.String domain; 3651 core.String domain;
3638 /** 3652
3639 * Resource ID of a module in this application that should serve the matched 3653 /// Resource ID of a module in this application that should serve the matched
3640 * request. The module must already exist. Example: default. 3654 /// request. The module must already exist. Example: default.
3641 */
3642 core.String module; 3655 core.String module;
3643 /** 3656
3644 * Pathname within the host. Must start with a "/". A single "*" can be 3657 /// Pathname within the host. Must start with a "/". A single "*" can be
3645 * included at the end of the path. The sum of the lengths of the domain and 3658 /// included at the end of the path. The sum of the lengths of the domain and
3646 * path may not exceed 100 characters. 3659 /// path may not exceed 100 characters.
3647 */
3648 core.String path; 3660 core.String path;
3649 3661
3650 UrlDispatchRule(); 3662 UrlDispatchRule();
3651 3663
3652 UrlDispatchRule.fromJson(core.Map _json) { 3664 UrlDispatchRule.fromJson(core.Map _json) {
3653 if (_json.containsKey("domain")) { 3665 if (_json.containsKey("domain")) {
3654 domain = _json["domain"]; 3666 domain = _json["domain"];
3655 } 3667 }
3656 if (_json.containsKey("module")) { 3668 if (_json.containsKey("module")) {
3657 module = _json["module"]; 3669 module = _json["module"];
3658 } 3670 }
3659 if (_json.containsKey("path")) { 3671 if (_json.containsKey("path")) {
3660 path = _json["path"]; 3672 path = _json["path"];
3661 } 3673 }
3662 } 3674 }
3663 3675
3664 core.Map<core.String, core.Object> toJson() { 3676 core.Map<core.String, core.Object> toJson() {
3665 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3677 final core.Map<core.String, core.Object> _json =
3678 new core.Map<core.String, core.Object>();
3666 if (domain != null) { 3679 if (domain != null) {
3667 _json["domain"] = domain; 3680 _json["domain"] = domain;
3668 } 3681 }
3669 if (module != null) { 3682 if (module != null) {
3670 _json["module"] = module; 3683 _json["module"] = module;
3671 } 3684 }
3672 if (path != null) { 3685 if (path != null) {
3673 _json["path"] = path; 3686 _json["path"] = path;
3674 } 3687 }
3675 return _json; 3688 return _json;
3676 } 3689 }
3677 } 3690 }
3678 3691
3679 /** 3692 /// URL pattern and description of how the URL should be handled. App Engine
3680 * URL pattern and description of how the URL should be handled. App Engine can 3693 /// can handle URLs by executing application code, or by serving static files
3681 * handle URLs by executing application code, or by serving static files 3694 /// uploaded with the version, such as images, CSS, or JavaScript.
3682 * uploaded with the version, such as images, CSS, or JavaScript.
3683 */
3684 class UrlMap { 3695 class UrlMap {
3685 /** Uses API Endpoints to handle requests. */ 3696 /// Uses API Endpoints to handle requests.
3686 ApiEndpointHandler apiEndpoint; 3697 ApiEndpointHandler apiEndpoint;
3687 /** 3698
3688 * Action to take when users access resources that require authentication. 3699 /// Action to take when users access resources that require authentication.
3689 * Defaults to redirect. 3700 /// Defaults to redirect.
3690 * Possible string values are: 3701 /// Possible string values are:
3691 * - "AUTH_FAIL_ACTION_UNSPECIFIED" : Not specified. AUTH_FAIL_ACTION_REDIRECT 3702 /// - "AUTH_FAIL_ACTION_UNSPECIFIED" : Not specified.
3692 * is assumed. 3703 /// AUTH_FAIL_ACTION_REDIRECT is assumed.
3693 * - "AUTH_FAIL_ACTION_REDIRECT" : Redirects user to "accounts.google.com". 3704 /// - "AUTH_FAIL_ACTION_REDIRECT" : Redirects user to "accounts.google.com".
3694 * The user is redirected back to the application URL after signing in or 3705 /// The user is redirected back to the application URL after signing in or
3695 * creating an account. 3706 /// creating an account.
3696 * - "AUTH_FAIL_ACTION_UNAUTHORIZED" : Rejects request with a 401 HTTP status 3707 /// - "AUTH_FAIL_ACTION_UNAUTHORIZED" : Rejects request with a 401 HTTP
3697 * code and an error message. 3708 /// status code and an error message.
3698 */
3699 core.String authFailAction; 3709 core.String authFailAction;
3700 /** 3710
3701 * Level of login required to access this resource. 3711 /// Level of login required to access this resource.
3702 * Possible string values are: 3712 /// Possible string values are:
3703 * - "LOGIN_UNSPECIFIED" : Not specified. LOGIN_OPTIONAL is assumed. 3713 /// - "LOGIN_UNSPECIFIED" : Not specified. LOGIN_OPTIONAL is assumed.
3704 * - "LOGIN_OPTIONAL" : Does not require that the user is signed in. 3714 /// - "LOGIN_OPTIONAL" : Does not require that the user is signed in.
3705 * - "LOGIN_ADMIN" : If the user is not signed in, the auth_fail_action is 3715 /// - "LOGIN_ADMIN" : If the user is not signed in, the auth_fail_action is
3706 * taken. In addition, if the user is not an administrator for the 3716 /// taken. In addition, if the user is not an administrator for the
3707 * application, they are given an error message regardless of 3717 /// application, they are given an error message regardless of
3708 * auth_fail_action. If the user is an administrator, the handler proceeds. 3718 /// auth_fail_action. If the user is an administrator, the handler proceeds.
3709 * - "LOGIN_REQUIRED" : If the user has signed in, the handler proceeds 3719 /// - "LOGIN_REQUIRED" : If the user has signed in, the handler proceeds
3710 * normally. Otherwise, the auth_fail_action is taken. 3720 /// normally. Otherwise, the auth_fail_action is taken.
3711 */
3712 core.String login; 3721 core.String login;
3713 /** 3722
3714 * 30x code to use when performing redirects for the secure field. Defaults to 3723 /// 30x code to use when performing redirects for the secure field. Defaults
3715 * 302. 3724 /// to 302.
3716 * Possible string values are: 3725 /// Possible string values are:
3717 * - "REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED" : Not specified. 302 is 3726 /// - "REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED" : Not specified. 302 is
3718 * assumed. 3727 /// assumed.
3719 * - "REDIRECT_HTTP_RESPONSE_CODE_301" : 301 Moved Permanently code. 3728 /// - "REDIRECT_HTTP_RESPONSE_CODE_301" : 301 Moved Permanently code.
3720 * - "REDIRECT_HTTP_RESPONSE_CODE_302" : 302 Moved Temporarily code. 3729 /// - "REDIRECT_HTTP_RESPONSE_CODE_302" : 302 Moved Temporarily code.
3721 * - "REDIRECT_HTTP_RESPONSE_CODE_303" : 303 See Other code. 3730 /// - "REDIRECT_HTTP_RESPONSE_CODE_303" : 303 See Other code.
3722 * - "REDIRECT_HTTP_RESPONSE_CODE_307" : 307 Temporary Redirect code. 3731 /// - "REDIRECT_HTTP_RESPONSE_CODE_307" : 307 Temporary Redirect code.
3723 */
3724 core.String redirectHttpResponseCode; 3732 core.String redirectHttpResponseCode;
3725 /** Executes a script to handle the request that matches this URL pattern. */ 3733
3734 /// Executes a script to handle the request that matches this URL pattern.
3726 ScriptHandler script; 3735 ScriptHandler script;
3727 /** 3736
3728 * Security (HTTPS) enforcement for this URL. 3737 /// Security (HTTPS) enforcement for this URL.
3729 * Possible string values are: 3738 /// Possible string values are:
3730 * - "SECURE_UNSPECIFIED" : Not specified. 3739 /// - "SECURE_UNSPECIFIED" : Not specified.
3731 * - "SECURE_DEFAULT" : Both HTTP and HTTPS requests with URLs that match the 3740 /// - "SECURE_DEFAULT" : Both HTTP and HTTPS requests with URLs that match
3732 * handler succeed without redirects. The application can examine the request 3741 /// the handler succeed without redirects. The application can examine the
3733 * to determine which protocol was used, and respond accordingly. 3742 /// request to determine which protocol was used, and respond accordingly.
3734 * - "SECURE_NEVER" : Requests for a URL that match this handler that use 3743 /// - "SECURE_NEVER" : Requests for a URL that match this handler that use
3735 * HTTPS are automatically redirected to the HTTP equivalent URL. 3744 /// HTTPS are automatically redirected to the HTTP equivalent URL.
3736 * - "SECURE_OPTIONAL" : Both HTTP and HTTPS requests with URLs that match the 3745 /// - "SECURE_OPTIONAL" : Both HTTP and HTTPS requests with URLs that match
3737 * handler succeed without redirects. The application can examine the request 3746 /// the handler succeed without redirects. The application can examine the
3738 * to determine which protocol was used and respond accordingly. 3747 /// request to determine which protocol was used and respond accordingly.
3739 * - "SECURE_ALWAYS" : Requests for a URL that match this handler that do not 3748 /// - "SECURE_ALWAYS" : Requests for a URL that match this handler that do
3740 * use HTTPS are automatically redirected to the HTTPS URL with the same path. 3749 /// not use HTTPS are automatically redirected to the HTTPS URL with the same
3741 * Query parameters are reserved for the redirect. 3750 /// path. Query parameters are reserved for the redirect.
3742 */
3743 core.String securityLevel; 3751 core.String securityLevel;
3744 /** 3752
3745 * Serves the entire contents of a directory as static files.This attribute is 3753 /// Serves the entire contents of a directory as static files.This attribute
3746 * deprecated. You can mimic the behavior of static directories using static 3754 /// is deprecated. You can mimic the behavior of static directories using
3747 * files. 3755 /// static files.
3748 */
3749 StaticDirectoryHandler staticDirectory; 3756 StaticDirectoryHandler staticDirectory;
3750 /** Returns the contents of a file, such as an image, as the response. */ 3757
3758 /// Returns the contents of a file, such as an image, as the response.
3751 StaticFilesHandler staticFiles; 3759 StaticFilesHandler staticFiles;
3752 /** 3760
3753 * A URL prefix. Uses regular expression syntax, which means regexp special 3761 /// A URL prefix. Uses regular expression syntax, which means regexp special
3754 * characters must be escaped, but should not contain groupings. All URLs that 3762 /// characters must be escaped, but should not contain groupings. All URLs
3755 * begin with this prefix are handled by this handler, using the portion of 3763 /// that begin with this prefix are handled by this handler, using the
3756 * the URL after the prefix as part of the file path. 3764 /// portion of the URL after the prefix as part of the file path.
3757 */
3758 core.String urlRegex; 3765 core.String urlRegex;
3759 3766
3760 UrlMap(); 3767 UrlMap();
3761 3768
3762 UrlMap.fromJson(core.Map _json) { 3769 UrlMap.fromJson(core.Map _json) {
3763 if (_json.containsKey("apiEndpoint")) { 3770 if (_json.containsKey("apiEndpoint")) {
3764 apiEndpoint = new ApiEndpointHandler.fromJson(_json["apiEndpoint"]); 3771 apiEndpoint = new ApiEndpointHandler.fromJson(_json["apiEndpoint"]);
3765 } 3772 }
3766 if (_json.containsKey("authFailAction")) { 3773 if (_json.containsKey("authFailAction")) {
3767 authFailAction = _json["authFailAction"]; 3774 authFailAction = _json["authFailAction"];
3768 } 3775 }
3769 if (_json.containsKey("login")) { 3776 if (_json.containsKey("login")) {
3770 login = _json["login"]; 3777 login = _json["login"];
3771 } 3778 }
3772 if (_json.containsKey("redirectHttpResponseCode")) { 3779 if (_json.containsKey("redirectHttpResponseCode")) {
3773 redirectHttpResponseCode = _json["redirectHttpResponseCode"]; 3780 redirectHttpResponseCode = _json["redirectHttpResponseCode"];
3774 } 3781 }
3775 if (_json.containsKey("script")) { 3782 if (_json.containsKey("script")) {
3776 script = new ScriptHandler.fromJson(_json["script"]); 3783 script = new ScriptHandler.fromJson(_json["script"]);
3777 } 3784 }
3778 if (_json.containsKey("securityLevel")) { 3785 if (_json.containsKey("securityLevel")) {
3779 securityLevel = _json["securityLevel"]; 3786 securityLevel = _json["securityLevel"];
3780 } 3787 }
3781 if (_json.containsKey("staticDirectory")) { 3788 if (_json.containsKey("staticDirectory")) {
3782 staticDirectory = new StaticDirectoryHandler.fromJson(_json["staticDirecto ry"]); 3789 staticDirectory =
3790 new StaticDirectoryHandler.fromJson(_json["staticDirectory"]);
3783 } 3791 }
3784 if (_json.containsKey("staticFiles")) { 3792 if (_json.containsKey("staticFiles")) {
3785 staticFiles = new StaticFilesHandler.fromJson(_json["staticFiles"]); 3793 staticFiles = new StaticFilesHandler.fromJson(_json["staticFiles"]);
3786 } 3794 }
3787 if (_json.containsKey("urlRegex")) { 3795 if (_json.containsKey("urlRegex")) {
3788 urlRegex = _json["urlRegex"]; 3796 urlRegex = _json["urlRegex"];
3789 } 3797 }
3790 } 3798 }
3791 3799
3792 core.Map<core.String, core.Object> toJson() { 3800 core.Map<core.String, core.Object> toJson() {
3793 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3801 final core.Map<core.String, core.Object> _json =
3802 new core.Map<core.String, core.Object>();
3794 if (apiEndpoint != null) { 3803 if (apiEndpoint != null) {
3795 _json["apiEndpoint"] = (apiEndpoint).toJson(); 3804 _json["apiEndpoint"] = (apiEndpoint).toJson();
3796 } 3805 }
3797 if (authFailAction != null) { 3806 if (authFailAction != null) {
3798 _json["authFailAction"] = authFailAction; 3807 _json["authFailAction"] = authFailAction;
3799 } 3808 }
3800 if (login != null) { 3809 if (login != null) {
3801 _json["login"] = login; 3810 _json["login"] = login;
3802 } 3811 }
3803 if (redirectHttpResponseCode != null) { 3812 if (redirectHttpResponseCode != null) {
(...skipping 11 matching lines...) Expand all
3815 if (staticFiles != null) { 3824 if (staticFiles != null) {
3816 _json["staticFiles"] = (staticFiles).toJson(); 3825 _json["staticFiles"] = (staticFiles).toJson();
3817 } 3826 }
3818 if (urlRegex != null) { 3827 if (urlRegex != null) {
3819 _json["urlRegex"] = urlRegex; 3828 _json["urlRegex"] = urlRegex;
3820 } 3829 }
3821 return _json; 3830 return _json;
3822 } 3831 }
3823 } 3832 }
3824 3833
3825 /** 3834 /// A Version resource is a specific set of source code and configuration files
3826 * A Version resource is a specific set of source code and configuration files 3835 /// that are deployed into a module.
3827 * that are deployed into a module.
3828 */
3829 class Version { 3836 class Version {
3830 /** 3837 /// Serving configuration for Google Cloud Endpoints
3831 * Serving configuration for Google Cloud Endpoints 3838 /// (https://cloud.google.com/appengine/docs/python/endpoints/).Only returned
3832 * (https://cloud.google.com/appengine/docs/python/endpoints/).Only returned 3839 /// in GET requests if view=FULL is set.
3833 * in GET requests if view=FULL is set.
3834 */
3835 ApiConfigHandler apiConfig; 3840 ApiConfigHandler apiConfig;
3836 /** 3841
3837 * Automatic scaling is based on request rate, response latencies, and other 3842 /// Automatic scaling is based on request rate, response latencies, and other
3838 * application metrics. 3843 /// application metrics.
3839 */
3840 AutomaticScaling automaticScaling; 3844 AutomaticScaling automaticScaling;
3841 /** 3845
3842 * A module with basic scaling will create an instance when the application 3846 /// A module with basic scaling will create an instance when the application
3843 * receives a request. The instance will be turned down when the app becomes 3847 /// receives a request. The instance will be turned down when the app becomes
3844 * idle. Basic scaling is ideal for work that is intermittent or driven by 3848 /// idle. Basic scaling is ideal for work that is intermittent or driven by
3845 * user activity. 3849 /// user activity.
3846 */
3847 BasicScaling basicScaling; 3850 BasicScaling basicScaling;
3848 /** 3851
3849 * Metadata settings that are supplied to this version to enable beta runtime 3852 /// Metadata settings that are supplied to this version to enable beta
3850 * features. 3853 /// runtime features.
3851 */
3852 core.Map<core.String, core.String> betaSettings; 3854 core.Map<core.String, core.String> betaSettings;
3853 /** Time that this version was created.@OutputOnly */ 3855
3856 /// Time that this version was created.@OutputOnly
3854 core.String creationTime; 3857 core.String creationTime;
3855 /** 3858
3856 * Duration that static files should be cached by web proxies and browsers. 3859 /// Duration that static files should be cached by web proxies and browsers.
3857 * Only applicable if the corresponding StaticFilesHandler 3860 /// Only applicable if the corresponding StaticFilesHandler
3858 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s ervices.versions#staticfileshandler) 3861 /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps. services.versions#staticfileshandler)
3859 * does not specify its own expiration time.Only returned in GET requests if 3862 /// does not specify its own expiration time.Only returned in GET requests if
3860 * view=FULL is set. 3863 /// view=FULL is set.
3861 */
3862 core.String defaultExpiration; 3864 core.String defaultExpiration;
3863 /** Email address of the user who created this version.@OutputOnly */ 3865
3866 /// Email address of the user who created this version.@OutputOnly
3864 core.String deployer; 3867 core.String deployer;
3865 /** 3868
3866 * Code and application artifacts that make up this version.Only returned in 3869 /// Code and application artifacts that make up this version.Only returned in
3867 * GET requests if view=FULL is set. 3870 /// GET requests if view=FULL is set.
3868 */
3869 Deployment deployment; 3871 Deployment deployment;
3870 /** 3872
3871 * App Engine execution environment to use for this version.Defaults to 1. 3873 /// App Engine execution environment to use for this version.Defaults to 1.
3872 */
3873 core.String env; 3874 core.String env;
3874 /** 3875
3875 * Environment variables made available to the application.Only returned in 3876 /// Environment variables made available to the application.Only returned in
3876 * GET requests if view=FULL is set. 3877 /// GET requests if view=FULL is set.
3877 */
3878 core.Map<core.String, core.String> envVariables; 3878 core.Map<core.String, core.String> envVariables;
3879 /** 3879
3880 * Custom static error pages. Limited to 10KB per page.Only returned in GET 3880 /// Custom static error pages. Limited to 10KB per page.Only returned in GET
3881 * requests if view=FULL is set. 3881 /// requests if view=FULL is set.
3882 */
3883 core.List<ErrorHandler> errorHandlers; 3882 core.List<ErrorHandler> errorHandlers;
3884 /** 3883
3885 * An ordered list of URL-matching patterns that should be applied to incoming 3884 /// An ordered list of URL-matching patterns that should be applied to
3886 * requests. The first matching URL handles the request and other request 3885 /// incoming requests. The first matching URL handles the request and other
3887 * handlers are not attempted.Only returned in GET requests if view=FULL is 3886 /// request handlers are not attempted.Only returned in GET requests if
3888 * set. 3887 /// view=FULL is set.
3889 */
3890 core.List<UrlMap> handlers; 3888 core.List<UrlMap> handlers;
3891 /** 3889
3892 * Configures health checking for VM instances. Unhealthy instances are 3890 /// Configures health checking for VM instances. Unhealthy instances are
3893 * stopped and replaced with new instances. Only applicable for VM 3891 /// stopped and replaced with new instances. Only applicable for VM
3894 * runtimes.Only returned in GET requests if view=FULL is set. 3892 /// runtimes.Only returned in GET requests if view=FULL is set.
3895 */
3896 HealthCheck healthCheck; 3893 HealthCheck healthCheck;
3897 /** 3894
3898 * Relative name of the version within the module. Example: v1. Version names 3895 /// Relative name of the version within the module. Example: v1. Version
3899 * can contain only lowercase letters, numbers, or hyphens. Reserved names: 3896 /// names can contain only lowercase letters, numbers, or hyphens. Reserved
3900 * "default", "latest", and any name with the prefix "ah-". 3897 /// names: "default", "latest", and any name with the prefix "ah-".
3901 */
3902 core.String id; 3898 core.String id;
3903 /** 3899
3904 * Before an application can receive email or XMPP messages, the application 3900 /// Before an application can receive email or XMPP messages, the application
3905 * must be configured to enable the service. 3901 /// must be configured to enable the service.
3906 */
3907 core.List<core.String> inboundServices; 3902 core.List<core.String> inboundServices;
3908 /** 3903
3909 * Instance class that is used to run this version. Valid values are: 3904 /// Instance class that is used to run this version. Valid values are:
3910 * AutomaticScaling: F1, F2, F4, F4_1G 3905 /// AutomaticScaling: F1, F2, F4, F4_1G
3911 * ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 for 3906 /// ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 for
3912 * AutomaticScaling and B1 for ManualScaling or BasicScaling. 3907 /// AutomaticScaling and B1 for ManualScaling or BasicScaling.
3913 */
3914 core.String instanceClass; 3908 core.String instanceClass;
3915 /** 3909
3916 * Configuration for third-party Python runtime libraries required by the 3910 /// Configuration for third-party Python runtime libraries required by the
3917 * application.Only returned in GET requests if view=FULL is set. 3911 /// application.Only returned in GET requests if view=FULL is set.
3918 */
3919 core.List<Library> libraries; 3912 core.List<Library> libraries;
3920 /** 3913
3921 * A module with manual scaling runs continuously, allowing you to perform 3914 /// A module with manual scaling runs continuously, allowing you to perform
3922 * complex initialization and rely on the state of its memory over time. 3915 /// complex initialization and rely on the state of its memory over time.
3923 */
3924 ManualScaling manualScaling; 3916 ManualScaling manualScaling;
3925 /** 3917
3926 * Full path to the Version resource in the API. Example: 3918 /// Full path to the Version resource in the API. Example:
3927 * apps/myapp/modules/default/versions/v1.@OutputOnly 3919 /// apps/myapp/modules/default/versions/v1.@OutputOnly
3928 */
3929 core.String name; 3920 core.String name;
3930 /** Extra network settings. Only applicable for VM runtimes. */ 3921
3922 /// Extra network settings. Only applicable for VM runtimes.
3931 Network network; 3923 Network network;
3932 /** 3924
3933 * Files that match this pattern will not be built into this version. Only 3925 /// Files that match this pattern will not be built into this version. Only
3934 * applicable for Go runtimes.Only returned in GET requests if view=FULL is 3926 /// applicable for Go runtimes.Only returned in GET requests if view=FULL is
3935 * set. 3927 /// set.
3936 */
3937 core.String nobuildFilesRegex; 3928 core.String nobuildFilesRegex;
3938 /** Machine resources for this version. Only applicable for VM runtimes. */ 3929
3930 /// Machine resources for this version. Only applicable for VM runtimes.
3939 Resources resources; 3931 Resources resources;
3940 /** Desired runtime. Example: python27. */ 3932
3933 /// Desired runtime. Example: python27.
3941 core.String runtime; 3934 core.String runtime;
3942 /** 3935
3943 * The version of the API in the given runtime environment. Please see the 3936 /// The version of the API in the given runtime environment. Please see the
3944 * app.yaml reference for valid values at 3937 /// app.yaml reference for valid values at
3945 * https://cloud.google.com/appengine/docs/standard/<language>/config/appref 3938 /// https://cloud.google.com/appengine/docs/standard/<language>/config/appref
3946 */
3947 core.String runtimeApiVersion; 3939 core.String runtimeApiVersion;
3948 /** 3940
3949 * Current serving status of this version. Only the versions with a SERVING 3941 /// Current serving status of this version. Only the versions with a SERVING
3950 * status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an 3942 /// status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is
3951 * invalid value. Defaults to SERVING. 3943 /// an invalid value. Defaults to SERVING.
3952 * Possible string values are: 3944 /// Possible string values are:
3953 * - "SERVING_STATUS_UNSPECIFIED" : Not specified. 3945 /// - "SERVING_STATUS_UNSPECIFIED" : Not specified.
3954 * - "SERVING" : Currently serving. Instances are created according to the 3946 /// - "SERVING" : Currently serving. Instances are created according to the
3955 * scaling settings of the version. 3947 /// scaling settings of the version.
3956 * - "STOPPED" : Disabled. No instances will be created and the scaling 3948 /// - "STOPPED" : Disabled. No instances will be created and the scaling
3957 * settings are ignored until the state of the version changes to SERVING. 3949 /// settings are ignored until the state of the version changes to SERVING.
3958 */
3959 core.String servingStatus; 3950 core.String servingStatus;
3960 /** Whether multiple requests can be dispatched to this version at once. */ 3951
3952 /// Whether multiple requests can be dispatched to this version at once.
3961 core.bool threadsafe; 3953 core.bool threadsafe;
3962 /** Whether to deploy this version in a container on a virtual machine. */ 3954
3955 /// Whether to deploy this version in a container on a virtual machine.
3963 core.bool vm; 3956 core.bool vm;
3964 3957
3965 Version(); 3958 Version();
3966 3959
3967 Version.fromJson(core.Map _json) { 3960 Version.fromJson(core.Map _json) {
3968 if (_json.containsKey("apiConfig")) { 3961 if (_json.containsKey("apiConfig")) {
3969 apiConfig = new ApiConfigHandler.fromJson(_json["apiConfig"]); 3962 apiConfig = new ApiConfigHandler.fromJson(_json["apiConfig"]);
3970 } 3963 }
3971 if (_json.containsKey("automaticScaling")) { 3964 if (_json.containsKey("automaticScaling")) {
3972 automaticScaling = new AutomaticScaling.fromJson(_json["automaticScaling"] ); 3965 automaticScaling =
3966 new AutomaticScaling.fromJson(_json["automaticScaling"]);
3973 } 3967 }
3974 if (_json.containsKey("basicScaling")) { 3968 if (_json.containsKey("basicScaling")) {
3975 basicScaling = new BasicScaling.fromJson(_json["basicScaling"]); 3969 basicScaling = new BasicScaling.fromJson(_json["basicScaling"]);
3976 } 3970 }
3977 if (_json.containsKey("betaSettings")) { 3971 if (_json.containsKey("betaSettings")) {
3978 betaSettings = _json["betaSettings"]; 3972 betaSettings = _json["betaSettings"];
3979 } 3973 }
3980 if (_json.containsKey("creationTime")) { 3974 if (_json.containsKey("creationTime")) {
3981 creationTime = _json["creationTime"]; 3975 creationTime = _json["creationTime"];
3982 } 3976 }
3983 if (_json.containsKey("defaultExpiration")) { 3977 if (_json.containsKey("defaultExpiration")) {
3984 defaultExpiration = _json["defaultExpiration"]; 3978 defaultExpiration = _json["defaultExpiration"];
3985 } 3979 }
3986 if (_json.containsKey("deployer")) { 3980 if (_json.containsKey("deployer")) {
3987 deployer = _json["deployer"]; 3981 deployer = _json["deployer"];
3988 } 3982 }
3989 if (_json.containsKey("deployment")) { 3983 if (_json.containsKey("deployment")) {
3990 deployment = new Deployment.fromJson(_json["deployment"]); 3984 deployment = new Deployment.fromJson(_json["deployment"]);
3991 } 3985 }
3992 if (_json.containsKey("env")) { 3986 if (_json.containsKey("env")) {
3993 env = _json["env"]; 3987 env = _json["env"];
3994 } 3988 }
3995 if (_json.containsKey("envVariables")) { 3989 if (_json.containsKey("envVariables")) {
3996 envVariables = _json["envVariables"]; 3990 envVariables = _json["envVariables"];
3997 } 3991 }
3998 if (_json.containsKey("errorHandlers")) { 3992 if (_json.containsKey("errorHandlers")) {
3999 errorHandlers = _json["errorHandlers"].map((value) => new ErrorHandler.fro mJson(value)).toList(); 3993 errorHandlers = _json["errorHandlers"]
3994 .map((value) => new ErrorHandler.fromJson(value))
3995 .toList();
4000 } 3996 }
4001 if (_json.containsKey("handlers")) { 3997 if (_json.containsKey("handlers")) {
4002 handlers = _json["handlers"].map((value) => new UrlMap.fromJson(value)).to List(); 3998 handlers =
3999 _json["handlers"].map((value) => new UrlMap.fromJson(value)).toList();
4003 } 4000 }
4004 if (_json.containsKey("healthCheck")) { 4001 if (_json.containsKey("healthCheck")) {
4005 healthCheck = new HealthCheck.fromJson(_json["healthCheck"]); 4002 healthCheck = new HealthCheck.fromJson(_json["healthCheck"]);
4006 } 4003 }
4007 if (_json.containsKey("id")) { 4004 if (_json.containsKey("id")) {
4008 id = _json["id"]; 4005 id = _json["id"];
4009 } 4006 }
4010 if (_json.containsKey("inboundServices")) { 4007 if (_json.containsKey("inboundServices")) {
4011 inboundServices = _json["inboundServices"]; 4008 inboundServices = _json["inboundServices"];
4012 } 4009 }
4013 if (_json.containsKey("instanceClass")) { 4010 if (_json.containsKey("instanceClass")) {
4014 instanceClass = _json["instanceClass"]; 4011 instanceClass = _json["instanceClass"];
4015 } 4012 }
4016 if (_json.containsKey("libraries")) { 4013 if (_json.containsKey("libraries")) {
4017 libraries = _json["libraries"].map((value) => new Library.fromJson(value)) .toList(); 4014 libraries = _json["libraries"]
4015 .map((value) => new Library.fromJson(value))
4016 .toList();
4018 } 4017 }
4019 if (_json.containsKey("manualScaling")) { 4018 if (_json.containsKey("manualScaling")) {
4020 manualScaling = new ManualScaling.fromJson(_json["manualScaling"]); 4019 manualScaling = new ManualScaling.fromJson(_json["manualScaling"]);
4021 } 4020 }
4022 if (_json.containsKey("name")) { 4021 if (_json.containsKey("name")) {
4023 name = _json["name"]; 4022 name = _json["name"];
4024 } 4023 }
4025 if (_json.containsKey("network")) { 4024 if (_json.containsKey("network")) {
4026 network = new Network.fromJson(_json["network"]); 4025 network = new Network.fromJson(_json["network"]);
4027 } 4026 }
(...skipping 14 matching lines...) Expand all
4042 } 4041 }
4043 if (_json.containsKey("threadsafe")) { 4042 if (_json.containsKey("threadsafe")) {
4044 threadsafe = _json["threadsafe"]; 4043 threadsafe = _json["threadsafe"];
4045 } 4044 }
4046 if (_json.containsKey("vm")) { 4045 if (_json.containsKey("vm")) {
4047 vm = _json["vm"]; 4046 vm = _json["vm"];
4048 } 4047 }
4049 } 4048 }
4050 4049
4051 core.Map<core.String, core.Object> toJson() { 4050 core.Map<core.String, core.Object> toJson() {
4052 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4051 final core.Map<core.String, core.Object> _json =
4052 new core.Map<core.String, core.Object>();
4053 if (apiConfig != null) { 4053 if (apiConfig != null) {
4054 _json["apiConfig"] = (apiConfig).toJson(); 4054 _json["apiConfig"] = (apiConfig).toJson();
4055 } 4055 }
4056 if (automaticScaling != null) { 4056 if (automaticScaling != null) {
4057 _json["automaticScaling"] = (automaticScaling).toJson(); 4057 _json["automaticScaling"] = (automaticScaling).toJson();
4058 } 4058 }
4059 if (basicScaling != null) { 4059 if (basicScaling != null) {
4060 _json["basicScaling"] = (basicScaling).toJson(); 4060 _json["basicScaling"] = (basicScaling).toJson();
4061 } 4061 }
4062 if (betaSettings != null) { 4062 if (betaSettings != null) {
(...skipping 11 matching lines...) Expand all
4074 if (deployment != null) { 4074 if (deployment != null) {
4075 _json["deployment"] = (deployment).toJson(); 4075 _json["deployment"] = (deployment).toJson();
4076 } 4076 }
4077 if (env != null) { 4077 if (env != null) {
4078 _json["env"] = env; 4078 _json["env"] = env;
4079 } 4079 }
4080 if (envVariables != null) { 4080 if (envVariables != null) {
4081 _json["envVariables"] = envVariables; 4081 _json["envVariables"] = envVariables;
4082 } 4082 }
4083 if (errorHandlers != null) { 4083 if (errorHandlers != null) {
4084 _json["errorHandlers"] = errorHandlers.map((value) => (value).toJson()).to List(); 4084 _json["errorHandlers"] =
4085 errorHandlers.map((value) => (value).toJson()).toList();
4085 } 4086 }
4086 if (handlers != null) { 4087 if (handlers != null) {
4087 _json["handlers"] = handlers.map((value) => (value).toJson()).toList(); 4088 _json["handlers"] = handlers.map((value) => (value).toJson()).toList();
4088 } 4089 }
4089 if (healthCheck != null) { 4090 if (healthCheck != null) {
4090 _json["healthCheck"] = (healthCheck).toJson(); 4091 _json["healthCheck"] = (healthCheck).toJson();
4091 } 4092 }
4092 if (id != null) { 4093 if (id != null) {
4093 _json["id"] = id; 4094 _json["id"] = id;
4094 } 4095 }
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
4128 if (threadsafe != null) { 4129 if (threadsafe != null) {
4129 _json["threadsafe"] = threadsafe; 4130 _json["threadsafe"] = threadsafe;
4130 } 4131 }
4131 if (vm != null) { 4132 if (vm != null) {
4132 _json["vm"] = vm; 4133 _json["vm"] = vm;
4133 } 4134 }
4134 return _json; 4135 return _json;
4135 } 4136 }
4136 } 4137 }
4137 4138
4138 /** 4139 /// Volumes mounted within the app container. Only applicable for VM runtimes.
4139 * Volumes mounted within the app container. Only applicable for VM runtimes.
4140 */
4141 class Volume { 4140 class Volume {
4142 /** Unique name for the volume. */ 4141 /// Unique name for the volume.
4143 core.String name; 4142 core.String name;
4144 /** Volume size in gigabytes. */ 4143
4144 /// Volume size in gigabytes.
4145 core.double sizeGb; 4145 core.double sizeGb;
4146 /** Underlying volume type, e.g. 'tmpfs'. */ 4146
4147 /// Underlying volume type, e.g. 'tmpfs'.
4147 core.String volumeType; 4148 core.String volumeType;
4148 4149
4149 Volume(); 4150 Volume();
4150 4151
4151 Volume.fromJson(core.Map _json) { 4152 Volume.fromJson(core.Map _json) {
4152 if (_json.containsKey("name")) { 4153 if (_json.containsKey("name")) {
4153 name = _json["name"]; 4154 name = _json["name"];
4154 } 4155 }
4155 if (_json.containsKey("sizeGb")) { 4156 if (_json.containsKey("sizeGb")) {
4156 sizeGb = _json["sizeGb"]; 4157 sizeGb = _json["sizeGb"];
4157 } 4158 }
4158 if (_json.containsKey("volumeType")) { 4159 if (_json.containsKey("volumeType")) {
4159 volumeType = _json["volumeType"]; 4160 volumeType = _json["volumeType"];
4160 } 4161 }
4161 } 4162 }
4162 4163
4163 core.Map<core.String, core.Object> toJson() { 4164 core.Map<core.String, core.Object> toJson() {
4164 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4165 final core.Map<core.String, core.Object> _json =
4166 new core.Map<core.String, core.Object>();
4165 if (name != null) { 4167 if (name != null) {
4166 _json["name"] = name; 4168 _json["name"] = name;
4167 } 4169 }
4168 if (sizeGb != null) { 4170 if (sizeGb != null) {
4169 _json["sizeGb"] = sizeGb; 4171 _json["sizeGb"] = sizeGb;
4170 } 4172 }
4171 if (volumeType != null) { 4173 if (volumeType != null) {
4172 _json["volumeType"] = volumeType; 4174 _json["volumeType"] = volumeType;
4173 } 4175 }
4174 return _json; 4176 return _json;
4175 } 4177 }
4176 } 4178 }
OLDNEW
« no previous file with comments | « generated/googleapis_beta/lib/appengine/v1beta.dart ('k') | generated/googleapis_beta/lib/appengine/v1beta5.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698