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

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

Powered by Google App Engine
This is Rietveld 408576698