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

Side by Side Diff: generated/googleapis_beta/lib/manager/v1beta2.dart

Issue 1078053002: Roll of googleapis as of 4/7/2015. (Closed) Base URL: https://github.com/dart-lang/googleapis.git@master
Patch Set: Created 5 years, 8 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).
2
1 library googleapis_beta.manager.v1beta2; 3 library googleapis_beta.manager.v1beta2;
2 4
3 import "dart:core" as core; 5 import 'dart:core' as core;
4 import "dart:collection" as collection; 6 import 'dart:collection' as collection;
5 import "dart:async" as async; 7 import 'dart:async' as async;
6 import "dart:convert" as convert; 8 import 'dart:convert' as convert;
7 9
8 import "package:crypto/crypto.dart" as crypto; 10 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
11 import 'package:crypto/crypto.dart' as crypto;
9 import 'package:http/http.dart' as http; 12 import 'package:http/http.dart' as http;
10 import '../src/common_internal.dart' as common_internal;
11 import '../common/common.dart' as common;
12 13
13 export '../common/common.dart' show ApiRequestError; 14 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
14 export '../common/common.dart' show DetailedApiRequestError; 15 ApiRequestError, DetailedApiRequestError;
16
17 const core.String USER_AGENT = 'dart-api-client manager/v1beta2';
15 18
16 /** 19 /**
17 * The Deployment Manager API allows users to declaratively configure, deploy 20 * The Deployment Manager API allows users to declaratively configure, deploy
18 * and run complex solutions on the Google Cloud Platform. 21 * and run complex solutions on the Google Cloud Platform.
19 */ 22 */
20 class ManagerApi { 23 class ManagerApi {
21 /** View and manage your applications deployed on Google App Engine */ 24 /** View and manage your applications deployed on Google App Engine */
22 static const AppengineAdminScope = "https://www.googleapis.com/auth/appengine. admin"; 25 static const AppengineAdminScope = "https://www.googleapis.com/auth/appengine. admin";
23 26
24 /** View and manage your data across Google Cloud Platform services */ 27 /** View and manage your data across Google Cloud Platform services */
(...skipping 11 matching lines...) Expand all
36 */ 39 */
37 static const NdevCloudmanScope = "https://www.googleapis.com/auth/ndev.cloudma n"; 40 static const NdevCloudmanScope = "https://www.googleapis.com/auth/ndev.cloudma n";
38 41
39 /** 42 /**
40 * View your Google Cloud Platform management resources and deployment status 43 * View your Google Cloud Platform management resources and deployment status
41 * information 44 * information
42 */ 45 */
43 static const NdevCloudmanReadonlyScope = "https://www.googleapis.com/auth/ndev .cloudman.readonly"; 46 static const NdevCloudmanReadonlyScope = "https://www.googleapis.com/auth/ndev .cloudman.readonly";
44 47
45 48
46 final common_internal.ApiRequester _requester; 49 final commons.ApiRequester _requester;
47 50
48 DeploymentsResourceApi get deployments => new DeploymentsResourceApi(_requeste r); 51 DeploymentsResourceApi get deployments => new DeploymentsResourceApi(_requeste r);
49 TemplatesResourceApi get templates => new TemplatesResourceApi(_requester); 52 TemplatesResourceApi get templates => new TemplatesResourceApi(_requester);
50 53
51 ManagerApi(http.Client client, {core.String rootUrl: "https://www.googleapis.c om/", core.String servicePath: "manager/v1beta2/projects/"}) : 54 ManagerApi(http.Client client, {core.String rootUrl: "https://www.googleapis.c om/", core.String servicePath: "manager/v1beta2/projects/"}) :
52 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath ); 55 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT);
53 } 56 }
54 57
55 58
56 /** Not documented yet. */
57 class DeploymentsResourceApi { 59 class DeploymentsResourceApi {
58 final common_internal.ApiRequester _requester; 60 final commons.ApiRequester _requester;
59 61
60 DeploymentsResourceApi(common_internal.ApiRequester client) : 62 DeploymentsResourceApi(commons.ApiRequester client) :
61 _requester = client; 63 _requester = client;
62 64
63 /** 65 /**
64 * Not documented yet.
65 *
66 * Request parameters: 66 * Request parameters:
67 * 67 *
68 * [projectId] - null 68 * [projectId] - null
69 * 69 *
70 * [region] - null 70 * [region] - null
71 * 71 *
72 * [deploymentName] - null 72 * [deploymentName] - null
73 * 73 *
74 * Completes with a [common.ApiRequestError] if the API endpoint returned an 74 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
75 * error. 75 * error.
76 * 76 *
77 * If the used [http.Client] completes with an error when making a REST call, 77 * If the used [http.Client] completes with an error when making a REST call,
78 * this method will complete with the same error. 78 * this method will complete with the same error.
79 */ 79 */
80 async.Future delete(core.String projectId, core.String region, core.String dep loymentName) { 80 async.Future delete(core.String projectId, core.String region, core.String dep loymentName) {
81 var _url = null; 81 var _url = null;
82 var _queryParams = new core.Map(); 82 var _queryParams = new core.Map();
83 var _uploadMedia = null; 83 var _uploadMedia = null;
84 var _uploadOptions = null; 84 var _uploadOptions = null;
85 var _downloadOptions = common.DownloadOptions.Metadata; 85 var _downloadOptions = commons.DownloadOptions.Metadata;
86 var _body = null; 86 var _body = null;
87 87
88 if (projectId == null) { 88 if (projectId == null) {
89 throw new core.ArgumentError("Parameter projectId is required."); 89 throw new core.ArgumentError("Parameter projectId is required.");
90 } 90 }
91 if (region == null) { 91 if (region == null) {
92 throw new core.ArgumentError("Parameter region is required."); 92 throw new core.ArgumentError("Parameter region is required.");
93 } 93 }
94 if (deploymentName == null) { 94 if (deploymentName == null) {
95 throw new core.ArgumentError("Parameter deploymentName is required."); 95 throw new core.ArgumentError("Parameter deploymentName is required.");
96 } 96 }
97 97
98 _downloadOptions = null; 98 _downloadOptions = null;
99 99
100 _url = common_internal.Escaper.ecapeVariable('$projectId') + '/regions/' + c ommon_internal.Escaper.ecapeVariable('$region') + '/deployments/' + common_inter nal.Escaper.ecapeVariable('$deploymentName'); 100 _url = commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.E scaper.ecapeVariable('$region') + '/deployments/' + commons.Escaper.ecapeVariabl e('$deploymentName');
101 101
102 var _response = _requester.request(_url, 102 var _response = _requester.request(_url,
103 "DELETE", 103 "DELETE",
104 body: _body, 104 body: _body,
105 queryParams: _queryParams, 105 queryParams: _queryParams,
106 uploadOptions: _uploadOptions, 106 uploadOptions: _uploadOptions,
107 uploadMedia: _uploadMedia, 107 uploadMedia: _uploadMedia,
108 downloadOptions: _downloadOptions); 108 downloadOptions: _downloadOptions);
109 return _response.then((data) => null); 109 return _response.then((data) => null);
110 } 110 }
111 111
112 /** 112 /**
113 * Not documented yet.
114 *
115 * Request parameters: 113 * Request parameters:
116 * 114 *
117 * [projectId] - null 115 * [projectId] - null
118 * 116 *
119 * [region] - null 117 * [region] - null
120 * 118 *
121 * [deploymentName] - null 119 * [deploymentName] - null
122 * 120 *
123 * Completes with a [Deployment]. 121 * Completes with a [Deployment].
124 * 122 *
125 * Completes with a [common.ApiRequestError] if the API endpoint returned an 123 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
126 * error. 124 * error.
127 * 125 *
128 * If the used [http.Client] completes with an error when making a REST call, 126 * If the used [http.Client] completes with an error when making a REST call,
129 * this method will complete with the same error. 127 * this method will complete with the same error.
130 */ 128 */
131 async.Future<Deployment> get(core.String projectId, core.String region, core.S tring deploymentName) { 129 async.Future<Deployment> get(core.String projectId, core.String region, core.S tring deploymentName) {
132 var _url = null; 130 var _url = null;
133 var _queryParams = new core.Map(); 131 var _queryParams = new core.Map();
134 var _uploadMedia = null; 132 var _uploadMedia = null;
135 var _uploadOptions = null; 133 var _uploadOptions = null;
136 var _downloadOptions = common.DownloadOptions.Metadata; 134 var _downloadOptions = commons.DownloadOptions.Metadata;
137 var _body = null; 135 var _body = null;
138 136
139 if (projectId == null) { 137 if (projectId == null) {
140 throw new core.ArgumentError("Parameter projectId is required."); 138 throw new core.ArgumentError("Parameter projectId is required.");
141 } 139 }
142 if (region == null) { 140 if (region == null) {
143 throw new core.ArgumentError("Parameter region is required."); 141 throw new core.ArgumentError("Parameter region is required.");
144 } 142 }
145 if (deploymentName == null) { 143 if (deploymentName == null) {
146 throw new core.ArgumentError("Parameter deploymentName is required."); 144 throw new core.ArgumentError("Parameter deploymentName is required.");
147 } 145 }
148 146
149 147
150 _url = common_internal.Escaper.ecapeVariable('$projectId') + '/regions/' + c ommon_internal.Escaper.ecapeVariable('$region') + '/deployments/' + common_inter nal.Escaper.ecapeVariable('$deploymentName'); 148 _url = commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.E scaper.ecapeVariable('$region') + '/deployments/' + commons.Escaper.ecapeVariabl e('$deploymentName');
151 149
152 var _response = _requester.request(_url, 150 var _response = _requester.request(_url,
153 "GET", 151 "GET",
154 body: _body, 152 body: _body,
155 queryParams: _queryParams, 153 queryParams: _queryParams,
156 uploadOptions: _uploadOptions, 154 uploadOptions: _uploadOptions,
157 uploadMedia: _uploadMedia, 155 uploadMedia: _uploadMedia,
158 downloadOptions: _downloadOptions); 156 downloadOptions: _downloadOptions);
159 return _response.then((data) => new Deployment.fromJson(data)); 157 return _response.then((data) => new Deployment.fromJson(data));
160 } 158 }
161 159
162 /** 160 /**
163 * Not documented yet.
164 *
165 * [request] - The metadata request object. 161 * [request] - The metadata request object.
166 * 162 *
167 * Request parameters: 163 * Request parameters:
168 * 164 *
169 * [projectId] - null 165 * [projectId] - null
170 * 166 *
171 * [region] - null 167 * [region] - null
172 * 168 *
173 * Completes with a [Deployment]. 169 * Completes with a [Deployment].
174 * 170 *
175 * Completes with a [common.ApiRequestError] if the API endpoint returned an 171 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
176 * error. 172 * error.
177 * 173 *
178 * If the used [http.Client] completes with an error when making a REST call, 174 * If the used [http.Client] completes with an error when making a REST call,
179 * this method will complete with the same error. 175 * this method will complete with the same error.
180 */ 176 */
181 async.Future<Deployment> insert(Deployment request, core.String projectId, cor e.String region) { 177 async.Future<Deployment> insert(Deployment request, core.String projectId, cor e.String region) {
182 var _url = null; 178 var _url = null;
183 var _queryParams = new core.Map(); 179 var _queryParams = new core.Map();
184 var _uploadMedia = null; 180 var _uploadMedia = null;
185 var _uploadOptions = null; 181 var _uploadOptions = null;
186 var _downloadOptions = common.DownloadOptions.Metadata; 182 var _downloadOptions = commons.DownloadOptions.Metadata;
187 var _body = null; 183 var _body = null;
188 184
189 if (request != null) { 185 if (request != null) {
190 _body = convert.JSON.encode((request).toJson()); 186 _body = convert.JSON.encode((request).toJson());
191 } 187 }
192 if (projectId == null) { 188 if (projectId == null) {
193 throw new core.ArgumentError("Parameter projectId is required."); 189 throw new core.ArgumentError("Parameter projectId is required.");
194 } 190 }
195 if (region == null) { 191 if (region == null) {
196 throw new core.ArgumentError("Parameter region is required."); 192 throw new core.ArgumentError("Parameter region is required.");
197 } 193 }
198 194
199 195
200 _url = common_internal.Escaper.ecapeVariable('$projectId') + '/regions/' + c ommon_internal.Escaper.ecapeVariable('$region') + '/deployments'; 196 _url = commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.E scaper.ecapeVariable('$region') + '/deployments';
201 197
202 var _response = _requester.request(_url, 198 var _response = _requester.request(_url,
203 "POST", 199 "POST",
204 body: _body, 200 body: _body,
205 queryParams: _queryParams, 201 queryParams: _queryParams,
206 uploadOptions: _uploadOptions, 202 uploadOptions: _uploadOptions,
207 uploadMedia: _uploadMedia, 203 uploadMedia: _uploadMedia,
208 downloadOptions: _downloadOptions); 204 downloadOptions: _downloadOptions);
209 return _response.then((data) => new Deployment.fromJson(data)); 205 return _response.then((data) => new Deployment.fromJson(data));
210 } 206 }
211 207
212 /** 208 /**
213 * Not documented yet.
214 *
215 * Request parameters: 209 * Request parameters:
216 * 210 *
217 * [projectId] - null 211 * [projectId] - null
218 * 212 *
219 * [region] - null 213 * [region] - null
220 * 214 *
221 * [maxResults] - Maximum count of results to be returned. Acceptable values 215 * [maxResults] - Maximum count of results to be returned. Acceptable values
222 * are 0 to 100, inclusive. (Default: 50) 216 * are 0 to 100, inclusive. (Default: 50)
223 * Value must be between "0" and "100". 217 * Value must be between "0" and "100".
224 * 218 *
225 * [pageToken] - Specifies a nextPageToken returned by a previous list 219 * [pageToken] - Specifies a nextPageToken returned by a previous list
226 * request. This token can be used to request the next page of results from a 220 * request. This token can be used to request the next page of results from a
227 * previous list request. 221 * previous list request.
228 * 222 *
229 * Completes with a [DeploymentsListResponse]. 223 * Completes with a [DeploymentsListResponse].
230 * 224 *
231 * Completes with a [common.ApiRequestError] if the API endpoint returned an 225 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
232 * error. 226 * error.
233 * 227 *
234 * If the used [http.Client] completes with an error when making a REST call, 228 * If the used [http.Client] completes with an error when making a REST call,
235 * this method will complete with the same error. 229 * this method will complete with the same error.
236 */ 230 */
237 async.Future<DeploymentsListResponse> list(core.String projectId, core.String region, {core.int maxResults, core.String pageToken}) { 231 async.Future<DeploymentsListResponse> list(core.String projectId, core.String region, {core.int maxResults, core.String pageToken}) {
238 var _url = null; 232 var _url = null;
239 var _queryParams = new core.Map(); 233 var _queryParams = new core.Map();
240 var _uploadMedia = null; 234 var _uploadMedia = null;
241 var _uploadOptions = null; 235 var _uploadOptions = null;
242 var _downloadOptions = common.DownloadOptions.Metadata; 236 var _downloadOptions = commons.DownloadOptions.Metadata;
243 var _body = null; 237 var _body = null;
244 238
245 if (projectId == null) { 239 if (projectId == null) {
246 throw new core.ArgumentError("Parameter projectId is required."); 240 throw new core.ArgumentError("Parameter projectId is required.");
247 } 241 }
248 if (region == null) { 242 if (region == null) {
249 throw new core.ArgumentError("Parameter region is required."); 243 throw new core.ArgumentError("Parameter region is required.");
250 } 244 }
251 if (maxResults != null) { 245 if (maxResults != null) {
252 _queryParams["maxResults"] = ["${maxResults}"]; 246 _queryParams["maxResults"] = ["${maxResults}"];
253 } 247 }
254 if (pageToken != null) { 248 if (pageToken != null) {
255 _queryParams["pageToken"] = [pageToken]; 249 _queryParams["pageToken"] = [pageToken];
256 } 250 }
257 251
258 252
259 _url = common_internal.Escaper.ecapeVariable('$projectId') + '/regions/' + c ommon_internal.Escaper.ecapeVariable('$region') + '/deployments'; 253 _url = commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.E scaper.ecapeVariable('$region') + '/deployments';
260 254
261 var _response = _requester.request(_url, 255 var _response = _requester.request(_url,
262 "GET", 256 "GET",
263 body: _body, 257 body: _body,
264 queryParams: _queryParams, 258 queryParams: _queryParams,
265 uploadOptions: _uploadOptions, 259 uploadOptions: _uploadOptions,
266 uploadMedia: _uploadMedia, 260 uploadMedia: _uploadMedia,
267 downloadOptions: _downloadOptions); 261 downloadOptions: _downloadOptions);
268 return _response.then((data) => new DeploymentsListResponse.fromJson(data)); 262 return _response.then((data) => new DeploymentsListResponse.fromJson(data));
269 } 263 }
270 264
271 } 265 }
272 266
273 267
274 /** Not documented yet. */
275 class TemplatesResourceApi { 268 class TemplatesResourceApi {
276 final common_internal.ApiRequester _requester; 269 final commons.ApiRequester _requester;
277 270
278 TemplatesResourceApi(common_internal.ApiRequester client) : 271 TemplatesResourceApi(commons.ApiRequester client) :
279 _requester = client; 272 _requester = client;
280 273
281 /** 274 /**
282 * Not documented yet.
283 *
284 * Request parameters: 275 * Request parameters:
285 * 276 *
286 * [projectId] - null 277 * [projectId] - null
287 * 278 *
288 * [templateName] - null 279 * [templateName] - null
289 * 280 *
290 * Completes with a [common.ApiRequestError] if the API endpoint returned an 281 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
291 * error. 282 * error.
292 * 283 *
293 * If the used [http.Client] completes with an error when making a REST call, 284 * If the used [http.Client] completes with an error when making a REST call,
294 * this method will complete with the same error. 285 * this method will complete with the same error.
295 */ 286 */
296 async.Future delete(core.String projectId, core.String templateName) { 287 async.Future delete(core.String projectId, core.String templateName) {
297 var _url = null; 288 var _url = null;
298 var _queryParams = new core.Map(); 289 var _queryParams = new core.Map();
299 var _uploadMedia = null; 290 var _uploadMedia = null;
300 var _uploadOptions = null; 291 var _uploadOptions = null;
301 var _downloadOptions = common.DownloadOptions.Metadata; 292 var _downloadOptions = commons.DownloadOptions.Metadata;
302 var _body = null; 293 var _body = null;
303 294
304 if (projectId == null) { 295 if (projectId == null) {
305 throw new core.ArgumentError("Parameter projectId is required."); 296 throw new core.ArgumentError("Parameter projectId is required.");
306 } 297 }
307 if (templateName == null) { 298 if (templateName == null) {
308 throw new core.ArgumentError("Parameter templateName is required."); 299 throw new core.ArgumentError("Parameter templateName is required.");
309 } 300 }
310 301
311 _downloadOptions = null; 302 _downloadOptions = null;
312 303
313 _url = common_internal.Escaper.ecapeVariable('$projectId') + '/templates/' + common_internal.Escaper.ecapeVariable('$templateName'); 304 _url = commons.Escaper.ecapeVariable('$projectId') + '/templates/' + commons .Escaper.ecapeVariable('$templateName');
314 305
315 var _response = _requester.request(_url, 306 var _response = _requester.request(_url,
316 "DELETE", 307 "DELETE",
317 body: _body, 308 body: _body,
318 queryParams: _queryParams, 309 queryParams: _queryParams,
319 uploadOptions: _uploadOptions, 310 uploadOptions: _uploadOptions,
320 uploadMedia: _uploadMedia, 311 uploadMedia: _uploadMedia,
321 downloadOptions: _downloadOptions); 312 downloadOptions: _downloadOptions);
322 return _response.then((data) => null); 313 return _response.then((data) => null);
323 } 314 }
324 315
325 /** 316 /**
326 * Not documented yet.
327 *
328 * Request parameters: 317 * Request parameters:
329 * 318 *
330 * [projectId] - null 319 * [projectId] - null
331 * 320 *
332 * [templateName] - null 321 * [templateName] - null
333 * 322 *
334 * Completes with a [Template]. 323 * Completes with a [Template].
335 * 324 *
336 * Completes with a [common.ApiRequestError] if the API endpoint returned an 325 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
337 * error. 326 * error.
338 * 327 *
339 * If the used [http.Client] completes with an error when making a REST call, 328 * If the used [http.Client] completes with an error when making a REST call,
340 * this method will complete with the same error. 329 * this method will complete with the same error.
341 */ 330 */
342 async.Future<Template> get(core.String projectId, core.String templateName) { 331 async.Future<Template> get(core.String projectId, core.String templateName) {
343 var _url = null; 332 var _url = null;
344 var _queryParams = new core.Map(); 333 var _queryParams = new core.Map();
345 var _uploadMedia = null; 334 var _uploadMedia = null;
346 var _uploadOptions = null; 335 var _uploadOptions = null;
347 var _downloadOptions = common.DownloadOptions.Metadata; 336 var _downloadOptions = commons.DownloadOptions.Metadata;
348 var _body = null; 337 var _body = null;
349 338
350 if (projectId == null) { 339 if (projectId == null) {
351 throw new core.ArgumentError("Parameter projectId is required."); 340 throw new core.ArgumentError("Parameter projectId is required.");
352 } 341 }
353 if (templateName == null) { 342 if (templateName == null) {
354 throw new core.ArgumentError("Parameter templateName is required."); 343 throw new core.ArgumentError("Parameter templateName is required.");
355 } 344 }
356 345
357 346
358 _url = common_internal.Escaper.ecapeVariable('$projectId') + '/templates/' + common_internal.Escaper.ecapeVariable('$templateName'); 347 _url = commons.Escaper.ecapeVariable('$projectId') + '/templates/' + commons .Escaper.ecapeVariable('$templateName');
359 348
360 var _response = _requester.request(_url, 349 var _response = _requester.request(_url,
361 "GET", 350 "GET",
362 body: _body, 351 body: _body,
363 queryParams: _queryParams, 352 queryParams: _queryParams,
364 uploadOptions: _uploadOptions, 353 uploadOptions: _uploadOptions,
365 uploadMedia: _uploadMedia, 354 uploadMedia: _uploadMedia,
366 downloadOptions: _downloadOptions); 355 downloadOptions: _downloadOptions);
367 return _response.then((data) => new Template.fromJson(data)); 356 return _response.then((data) => new Template.fromJson(data));
368 } 357 }
369 358
370 /** 359 /**
371 * Not documented yet.
372 *
373 * [request] - The metadata request object. 360 * [request] - The metadata request object.
374 * 361 *
375 * Request parameters: 362 * Request parameters:
376 * 363 *
377 * [projectId] - null 364 * [projectId] - null
378 * 365 *
379 * Completes with a [Template]. 366 * Completes with a [Template].
380 * 367 *
381 * Completes with a [common.ApiRequestError] if the API endpoint returned an 368 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
382 * error. 369 * error.
383 * 370 *
384 * If the used [http.Client] completes with an error when making a REST call, 371 * If the used [http.Client] completes with an error when making a REST call,
385 * this method will complete with the same error. 372 * this method will complete with the same error.
386 */ 373 */
387 async.Future<Template> insert(Template request, core.String projectId) { 374 async.Future<Template> insert(Template request, core.String projectId) {
388 var _url = null; 375 var _url = null;
389 var _queryParams = new core.Map(); 376 var _queryParams = new core.Map();
390 var _uploadMedia = null; 377 var _uploadMedia = null;
391 var _uploadOptions = null; 378 var _uploadOptions = null;
392 var _downloadOptions = common.DownloadOptions.Metadata; 379 var _downloadOptions = commons.DownloadOptions.Metadata;
393 var _body = null; 380 var _body = null;
394 381
395 if (request != null) { 382 if (request != null) {
396 _body = convert.JSON.encode((request).toJson()); 383 _body = convert.JSON.encode((request).toJson());
397 } 384 }
398 if (projectId == null) { 385 if (projectId == null) {
399 throw new core.ArgumentError("Parameter projectId is required."); 386 throw new core.ArgumentError("Parameter projectId is required.");
400 } 387 }
401 388
402 389
403 _url = common_internal.Escaper.ecapeVariable('$projectId') + '/templates'; 390 _url = commons.Escaper.ecapeVariable('$projectId') + '/templates';
404 391
405 var _response = _requester.request(_url, 392 var _response = _requester.request(_url,
406 "POST", 393 "POST",
407 body: _body, 394 body: _body,
408 queryParams: _queryParams, 395 queryParams: _queryParams,
409 uploadOptions: _uploadOptions, 396 uploadOptions: _uploadOptions,
410 uploadMedia: _uploadMedia, 397 uploadMedia: _uploadMedia,
411 downloadOptions: _downloadOptions); 398 downloadOptions: _downloadOptions);
412 return _response.then((data) => new Template.fromJson(data)); 399 return _response.then((data) => new Template.fromJson(data));
413 } 400 }
414 401
415 /** 402 /**
416 * Not documented yet.
417 *
418 * Request parameters: 403 * Request parameters:
419 * 404 *
420 * [projectId] - null 405 * [projectId] - null
421 * 406 *
422 * [maxResults] - Maximum count of results to be returned. Acceptable values 407 * [maxResults] - Maximum count of results to be returned. Acceptable values
423 * are 0 to 100, inclusive. (Default: 50) 408 * are 0 to 100, inclusive. (Default: 50)
424 * Value must be between "0" and "100". 409 * Value must be between "0" and "100".
425 * 410 *
426 * [pageToken] - Specifies a nextPageToken returned by a previous list 411 * [pageToken] - Specifies a nextPageToken returned by a previous list
427 * request. This token can be used to request the next page of results from a 412 * request. This token can be used to request the next page of results from a
428 * previous list request. 413 * previous list request.
429 * 414 *
430 * Completes with a [TemplatesListResponse]. 415 * Completes with a [TemplatesListResponse].
431 * 416 *
432 * Completes with a [common.ApiRequestError] if the API endpoint returned an 417 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
433 * error. 418 * error.
434 * 419 *
435 * If the used [http.Client] completes with an error when making a REST call, 420 * If the used [http.Client] completes with an error when making a REST call,
436 * this method will complete with the same error. 421 * this method will complete with the same error.
437 */ 422 */
438 async.Future<TemplatesListResponse> list(core.String projectId, {core.int maxR esults, core.String pageToken}) { 423 async.Future<TemplatesListResponse> list(core.String projectId, {core.int maxR esults, core.String pageToken}) {
439 var _url = null; 424 var _url = null;
440 var _queryParams = new core.Map(); 425 var _queryParams = new core.Map();
441 var _uploadMedia = null; 426 var _uploadMedia = null;
442 var _uploadOptions = null; 427 var _uploadOptions = null;
443 var _downloadOptions = common.DownloadOptions.Metadata; 428 var _downloadOptions = commons.DownloadOptions.Metadata;
444 var _body = null; 429 var _body = null;
445 430
446 if (projectId == null) { 431 if (projectId == null) {
447 throw new core.ArgumentError("Parameter projectId is required."); 432 throw new core.ArgumentError("Parameter projectId is required.");
448 } 433 }
449 if (maxResults != null) { 434 if (maxResults != null) {
450 _queryParams["maxResults"] = ["${maxResults}"]; 435 _queryParams["maxResults"] = ["${maxResults}"];
451 } 436 }
452 if (pageToken != null) { 437 if (pageToken != null) {
453 _queryParams["pageToken"] = [pageToken]; 438 _queryParams["pageToken"] = [pageToken];
454 } 439 }
455 440
456 441
457 _url = common_internal.Escaper.ecapeVariable('$projectId') + '/templates'; 442 _url = commons.Escaper.ecapeVariable('$projectId') + '/templates';
458 443
459 var _response = _requester.request(_url, 444 var _response = _requester.request(_url,
460 "GET", 445 "GET",
461 body: _body, 446 body: _body,
462 queryParams: _queryParams, 447 queryParams: _queryParams,
463 uploadOptions: _uploadOptions, 448 uploadOptions: _uploadOptions,
464 uploadMedia: _uploadMedia, 449 uploadMedia: _uploadMedia,
465 downloadOptions: _downloadOptions); 450 downloadOptions: _downloadOptions);
466 return _response.then((data) => new TemplatesListResponse.fromJson(data)); 451 return _response.then((data) => new TemplatesListResponse.fromJson(data));
467 } 452 }
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 _json["IPProtocol"] = IPProtocol; 568 _json["IPProtocol"] = IPProtocol;
584 } 569 }
585 if (ports != null) { 570 if (ports != null) {
586 _json["ports"] = ports; 571 _json["ports"] = ports;
587 } 572 }
588 return _json; 573 return _json;
589 } 574 }
590 } 575 }
591 576
592 577
593 /** Not documented yet. */
594 class AutoscalingModule { 578 class AutoscalingModule {
595 /** Not documented yet. */
596 core.int coolDownPeriodSec; 579 core.int coolDownPeriodSec;
597 580
598 /** Not documented yet. */
599 core.String description; 581 core.String description;
600 582
601 /** Not documented yet. */
602 core.int maxNumReplicas; 583 core.int maxNumReplicas;
603 584
604 /** Not documented yet. */
605 core.int minNumReplicas; 585 core.int minNumReplicas;
606 586
607 /** Not documented yet. */
608 core.String signalType; 587 core.String signalType;
609 588
610 /** Not documented yet. */
611 core.String targetModule; 589 core.String targetModule;
612 590
613 /** target_utilization should be in range [0,1]. */ 591 /** target_utilization should be in range [0,1]. */
614 core.double targetUtilization; 592 core.double targetUtilization;
615 593
616 594
617 AutoscalingModule(); 595 AutoscalingModule();
618 596
619 AutoscalingModule.fromJson(core.Map _json) { 597 AutoscalingModule.fromJson(core.Map _json) {
620 if (_json.containsKey("coolDownPeriodSec")) { 598 if (_json.containsKey("coolDownPeriodSec")) {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 _json["targetModule"] = targetModule; 639 _json["targetModule"] = targetModule;
662 } 640 }
663 if (targetUtilization != null) { 641 if (targetUtilization != null) {
664 _json["targetUtilization"] = targetUtilization; 642 _json["targetUtilization"] = targetUtilization;
665 } 643 }
666 return _json; 644 return _json;
667 } 645 }
668 } 646 }
669 647
670 648
671 /** Not documented yet. */
672 class AutoscalingModuleStatus { 649 class AutoscalingModuleStatus {
673 /** [Output Only] The URL of the corresponding Autoscaling configuration. */ 650 /** [Output Only] The URL of the corresponding Autoscaling configuration. */
674 core.String autoscalingConfigUrl; 651 core.String autoscalingConfigUrl;
675 652
676 653
677 AutoscalingModuleStatus(); 654 AutoscalingModuleStatus();
678 655
679 AutoscalingModuleStatus.fromJson(core.Map _json) { 656 AutoscalingModuleStatus.fromJson(core.Map _json) {
680 if (_json.containsKey("autoscalingConfigUrl")) { 657 if (_json.containsKey("autoscalingConfigUrl")) {
681 autoscalingConfigUrl = _json["autoscalingConfigUrl"]; 658 autoscalingConfigUrl = _json["autoscalingConfigUrl"];
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
767 Deployment(); 744 Deployment();
768 745
769 Deployment.fromJson(core.Map _json) { 746 Deployment.fromJson(core.Map _json) {
770 if (_json.containsKey("creationDate")) { 747 if (_json.containsKey("creationDate")) {
771 creationDate = _json["creationDate"]; 748 creationDate = _json["creationDate"];
772 } 749 }
773 if (_json.containsKey("description")) { 750 if (_json.containsKey("description")) {
774 description = _json["description"]; 751 description = _json["description"];
775 } 752 }
776 if (_json.containsKey("modules")) { 753 if (_json.containsKey("modules")) {
777 modules = common_internal.mapMap(_json["modules"], (item) => new ModuleSta tus.fromJson(item)); 754 modules = commons.mapMap(_json["modules"], (item) => new ModuleStatus.from Json(item));
778 } 755 }
779 if (_json.containsKey("name")) { 756 if (_json.containsKey("name")) {
780 name = _json["name"]; 757 name = _json["name"];
781 } 758 }
782 if (_json.containsKey("overrides")) { 759 if (_json.containsKey("overrides")) {
783 overrides = _json["overrides"].map((value) => new ParamOverride.fromJson(v alue)).toList(); 760 overrides = _json["overrides"].map((value) => new ParamOverride.fromJson(v alue)).toList();
784 } 761 }
785 if (_json.containsKey("state")) { 762 if (_json.containsKey("state")) {
786 state = new DeployState.fromJson(_json["state"]); 763 state = new DeployState.fromJson(_json["state"]);
787 } 764 }
788 if (_json.containsKey("templateName")) { 765 if (_json.containsKey("templateName")) {
789 templateName = _json["templateName"]; 766 templateName = _json["templateName"];
790 } 767 }
791 } 768 }
792 769
793 core.Map toJson() { 770 core.Map toJson() {
794 var _json = new core.Map(); 771 var _json = new core.Map();
795 if (creationDate != null) { 772 if (creationDate != null) {
796 _json["creationDate"] = creationDate; 773 _json["creationDate"] = creationDate;
797 } 774 }
798 if (description != null) { 775 if (description != null) {
799 _json["description"] = description; 776 _json["description"] = description;
800 } 777 }
801 if (modules != null) { 778 if (modules != null) {
802 _json["modules"] = common_internal.mapMap(modules, (item) => (item).toJson ()); 779 _json["modules"] = commons.mapMap(modules, (item) => (item).toJson());
803 } 780 }
804 if (name != null) { 781 if (name != null) {
805 _json["name"] = name; 782 _json["name"] = name;
806 } 783 }
807 if (overrides != null) { 784 if (overrides != null) {
808 _json["overrides"] = overrides.map((value) => (value).toJson()).toList(); 785 _json["overrides"] = overrides.map((value) => (value).toJson()).toList();
809 } 786 }
810 if (state != null) { 787 if (state != null) {
811 _json["state"] = (state).toJson(); 788 _json["state"] = (state).toJson();
812 } 789 }
813 if (templateName != null) { 790 if (templateName != null) {
814 _json["templateName"] = templateName; 791 _json["templateName"] = templateName;
815 } 792 }
816 return _json; 793 return _json;
817 } 794 }
818 } 795 }
819 796
820 797
821 /** Not documented yet. */
822 class DeploymentsListResponse { 798 class DeploymentsListResponse {
823 /** Not documented yet. */
824 core.String nextPageToken; 799 core.String nextPageToken;
825 800
826 /** Not documented yet. */
827 core.List<Deployment> resources; 801 core.List<Deployment> resources;
828 802
829 803
830 DeploymentsListResponse(); 804 DeploymentsListResponse();
831 805
832 DeploymentsListResponse.fromJson(core.Map _json) { 806 DeploymentsListResponse.fromJson(core.Map _json) {
833 if (_json.containsKey("nextPageToken")) { 807 if (_json.containsKey("nextPageToken")) {
834 nextPageToken = _json["nextPageToken"]; 808 nextPageToken = _json["nextPageToken"];
835 } 809 }
836 if (_json.containsKey("resources")) { 810 if (_json.containsKey("resources")) {
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
1034 _json["sourceTags"] = sourceTags; 1008 _json["sourceTags"] = sourceTags;
1035 } 1009 }
1036 if (targetTags != null) { 1010 if (targetTags != null) {
1037 _json["targetTags"] = targetTags; 1011 _json["targetTags"] = targetTags;
1038 } 1012 }
1039 return _json; 1013 return _json;
1040 } 1014 }
1041 } 1015 }
1042 1016
1043 1017
1044 /** Not documented yet. */
1045 class FirewallModuleStatus { 1018 class FirewallModuleStatus {
1046 /** [Output Only] The URL of the corresponding Firewall resource. */ 1019 /** [Output Only] The URL of the corresponding Firewall resource. */
1047 core.String firewallUrl; 1020 core.String firewallUrl;
1048 1021
1049 1022
1050 FirewallModuleStatus(); 1023 FirewallModuleStatus();
1051 1024
1052 FirewallModuleStatus.fromJson(core.Map _json) { 1025 FirewallModuleStatus.fromJson(core.Map _json) {
1053 if (_json.containsKey("firewallUrl")) { 1026 if (_json.containsKey("firewallUrl")) {
1054 firewallUrl = _json["firewallUrl"]; 1027 firewallUrl = _json["firewallUrl"];
1055 } 1028 }
1056 } 1029 }
1057 1030
1058 core.Map toJson() { 1031 core.Map toJson() {
1059 var _json = new core.Map(); 1032 var _json = new core.Map();
1060 if (firewallUrl != null) { 1033 if (firewallUrl != null) {
1061 _json["firewallUrl"] = firewallUrl; 1034 _json["firewallUrl"] = firewallUrl;
1062 } 1035 }
1063 return _json; 1036 return _json;
1064 } 1037 }
1065 } 1038 }
1066 1039
1067 1040
1068 /** Not documented yet. */
1069 class HealthCheckModule { 1041 class HealthCheckModule {
1070 /** Not documented yet. */
1071 core.int checkIntervalSec; 1042 core.int checkIntervalSec;
1072 1043
1073 /** Not documented yet. */
1074 core.String description; 1044 core.String description;
1075 1045
1076 /** Not documented yet. */
1077 core.int healthyThreshold; 1046 core.int healthyThreshold;
1078 1047
1079 /** Not documented yet. */
1080 core.String host; 1048 core.String host;
1081 1049
1082 /** Not documented yet. */
1083 core.String path; 1050 core.String path;
1084 1051
1085 /** Not documented yet. */
1086 core.int port; 1052 core.int port;
1087 1053
1088 /** Not documented yet. */
1089 core.int timeoutSec; 1054 core.int timeoutSec;
1090 1055
1091 /** Not documented yet. */
1092 core.int unhealthyThreshold; 1056 core.int unhealthyThreshold;
1093 1057
1094 1058
1095 HealthCheckModule(); 1059 HealthCheckModule();
1096 1060
1097 HealthCheckModule.fromJson(core.Map _json) { 1061 HealthCheckModule.fromJson(core.Map _json) {
1098 if (_json.containsKey("checkIntervalSec")) { 1062 if (_json.containsKey("checkIntervalSec")) {
1099 checkIntervalSec = _json["checkIntervalSec"]; 1063 checkIntervalSec = _json["checkIntervalSec"];
1100 } 1064 }
1101 if (_json.containsKey("description")) { 1065 if (_json.containsKey("description")) {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
1145 _json["timeoutSec"] = timeoutSec; 1109 _json["timeoutSec"] = timeoutSec;
1146 } 1110 }
1147 if (unhealthyThreshold != null) { 1111 if (unhealthyThreshold != null) {
1148 _json["unhealthyThreshold"] = unhealthyThreshold; 1112 _json["unhealthyThreshold"] = unhealthyThreshold;
1149 } 1113 }
1150 return _json; 1114 return _json;
1151 } 1115 }
1152 } 1116 }
1153 1117
1154 1118
1155 /** Not documented yet. */
1156 class HealthCheckModuleStatus { 1119 class HealthCheckModuleStatus {
1157 /** [Output Only] The HealthCheck URL. */ 1120 /** [Output Only] The HealthCheck URL. */
1158 core.String healthCheckUrl; 1121 core.String healthCheckUrl;
1159 1122
1160 1123
1161 HealthCheckModuleStatus(); 1124 HealthCheckModuleStatus();
1162 1125
1163 HealthCheckModuleStatus.fromJson(core.Map _json) { 1126 HealthCheckModuleStatus.fromJson(core.Map _json) {
1164 if (_json.containsKey("healthCheckUrl")) { 1127 if (_json.containsKey("healthCheckUrl")) {
1165 healthCheckUrl = _json["healthCheckUrl"]; 1128 healthCheckUrl = _json["healthCheckUrl"];
1166 } 1129 }
1167 } 1130 }
1168 1131
1169 core.Map toJson() { 1132 core.Map toJson() {
1170 var _json = new core.Map(); 1133 var _json = new core.Map();
1171 if (healthCheckUrl != null) { 1134 if (healthCheckUrl != null) {
1172 _json["healthCheckUrl"] = healthCheckUrl; 1135 _json["healthCheckUrl"] = healthCheckUrl;
1173 } 1136 }
1174 return _json; 1137 return _json;
1175 } 1138 }
1176 } 1139 }
1177 1140
1178 1141
1179 /** Not documented yet. */
1180 class LbModule { 1142 class LbModule {
1181 /** Not documented yet. */
1182 core.String description; 1143 core.String description;
1183 1144
1184 /** Not documented yet. */
1185 core.List<core.String> healthChecks; 1145 core.List<core.String> healthChecks;
1186 1146
1187 /** Not documented yet. */
1188 core.String ipAddress; 1147 core.String ipAddress;
1189 1148
1190 /** Not documented yet. */
1191 core.String ipProtocol; 1149 core.String ipProtocol;
1192 1150
1193 /** Not documented yet. */
1194 core.String portRange; 1151 core.String portRange;
1195 1152
1196 /** Not documented yet. */
1197 core.String sessionAffinity; 1153 core.String sessionAffinity;
1198 1154
1199 /** Not documented yet. */
1200 core.List<core.String> targetModules; 1155 core.List<core.String> targetModules;
1201 1156
1202 1157
1203 LbModule(); 1158 LbModule();
1204 1159
1205 LbModule.fromJson(core.Map _json) { 1160 LbModule.fromJson(core.Map _json) {
1206 if (_json.containsKey("description")) { 1161 if (_json.containsKey("description")) {
1207 description = _json["description"]; 1162 description = _json["description"];
1208 } 1163 }
1209 if (_json.containsKey("healthChecks")) { 1164 if (_json.containsKey("healthChecks")) {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
1247 _json["sessionAffinity"] = sessionAffinity; 1202 _json["sessionAffinity"] = sessionAffinity;
1248 } 1203 }
1249 if (targetModules != null) { 1204 if (targetModules != null) {
1250 _json["targetModules"] = targetModules; 1205 _json["targetModules"] = targetModules;
1251 } 1206 }
1252 return _json; 1207 return _json;
1253 } 1208 }
1254 } 1209 }
1255 1210
1256 1211
1257 /** Not documented yet. */
1258 class LbModuleStatus { 1212 class LbModuleStatus {
1259 /** [Output Only] The URL of the corresponding ForwardingRule in GCE. */ 1213 /** [Output Only] The URL of the corresponding ForwardingRule in GCE. */
1260 core.String forwardingRuleUrl; 1214 core.String forwardingRuleUrl;
1261 1215
1262 /** [Output Only] The URL of the corresponding TargetPool resource in GCE. */ 1216 /** [Output Only] The URL of the corresponding TargetPool resource in GCE. */
1263 core.String targetPoolUrl; 1217 core.String targetPoolUrl;
1264 1218
1265 1219
1266 LbModuleStatus(); 1220 LbModuleStatus();
1267 1221
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
1357 return _json; 1311 return _json;
1358 } 1312 }
1359 } 1313 }
1360 1314
1361 1315
1362 /** 1316 /**
1363 * A module in a configuration. A module represents a single homogeneous, 1317 * A module in a configuration. A module represents a single homogeneous,
1364 * possibly replicated task. 1318 * possibly replicated task.
1365 */ 1319 */
1366 class Module { 1320 class Module {
1367 /** Not documented yet. */
1368 AutoscalingModule autoscalingModule; 1321 AutoscalingModule autoscalingModule;
1369 1322
1370 /** Not documented yet. */
1371 FirewallModule firewallModule; 1323 FirewallModule firewallModule;
1372 1324
1373 /** Not documented yet. */
1374 HealthCheckModule healthCheckModule; 1325 HealthCheckModule healthCheckModule;
1375 1326
1376 /** Not documented yet. */
1377 LbModule lbModule; 1327 LbModule lbModule;
1378 1328
1379 /** Not documented yet. */
1380 NetworkModule networkModule; 1329 NetworkModule networkModule;
1381 1330
1382 /** Not documented yet. */
1383 ReplicaPoolModule replicaPoolModule; 1331 ReplicaPoolModule replicaPoolModule;
1384 1332
1385 /** 1333 /**
1386 * The type of this module. Valid values ("AUTOSCALING", "FIREWALL", 1334 * The type of this module. Valid values ("AUTOSCALING", "FIREWALL",
1387 * "HEALTH_CHECK", "LOAD_BALANCING", "NETWORK", "REPLICA_POOL") 1335 * "HEALTH_CHECK", "LOAD_BALANCING", "NETWORK", "REPLICA_POOL")
1388 */ 1336 */
1389 core.String type; 1337 core.String type;
1390 1338
1391 1339
1392 Module(); 1340 Module();
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
1592 _json["network"] = network; 1540 _json["network"] = network;
1593 } 1541 }
1594 if (networkIp != null) { 1542 if (networkIp != null) {
1595 _json["networkIp"] = networkIp; 1543 _json["networkIp"] = networkIp;
1596 } 1544 }
1597 return _json; 1545 return _json;
1598 } 1546 }
1599 } 1547 }
1600 1548
1601 1549
1602 /** Not documented yet. */
1603 class NetworkModule { 1550 class NetworkModule {
1604 /** 1551 /**
1605 * Required; The range of internal addresses that are legal on this network. 1552 * Required; The range of internal addresses that are legal on this network.
1606 * This range is a CIDR specification, for example: 192.168.0.0/16. 1553 * This range is a CIDR specification, for example: 192.168.0.0/16.
1607 */ 1554 */
1608 core.String IPv4Range; 1555 core.String IPv4Range;
1609 1556
1610 /** The description of the network. */ 1557 /** The description of the network. */
1611 core.String description; 1558 core.String description;
1612 1559
(...skipping 29 matching lines...) Expand all
1642 _json["description"] = description; 1589 _json["description"] = description;
1643 } 1590 }
1644 if (gatewayIPv4 != null) { 1591 if (gatewayIPv4 != null) {
1645 _json["gatewayIPv4"] = gatewayIPv4; 1592 _json["gatewayIPv4"] = gatewayIPv4;
1646 } 1593 }
1647 return _json; 1594 return _json;
1648 } 1595 }
1649 } 1596 }
1650 1597
1651 1598
1652 /** Not documented yet. */
1653 class NetworkModuleStatus { 1599 class NetworkModuleStatus {
1654 /** [Output Only] The URL of the corresponding Network resource. */ 1600 /** [Output Only] The URL of the corresponding Network resource. */
1655 core.String networkUrl; 1601 core.String networkUrl;
1656 1602
1657 1603
1658 NetworkModuleStatus(); 1604 NetworkModuleStatus();
1659 1605
1660 NetworkModuleStatus.fromJson(core.Map _json) { 1606 NetworkModuleStatus.fromJson(core.Map _json) {
1661 if (_json.containsKey("networkUrl")) { 1607 if (_json.containsKey("networkUrl")) {
1662 networkUrl = _json["networkUrl"]; 1608 networkUrl = _json["networkUrl"];
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
1807 _json["path"] = path; 1753 _json["path"] = path;
1808 } 1754 }
1809 if (value != null) { 1755 if (value != null) {
1810 _json["value"] = value; 1756 _json["value"] = value;
1811 } 1757 }
1812 return _json; 1758 return _json;
1813 } 1759 }
1814 } 1760 }
1815 1761
1816 1762
1817 /** Not documented yet. */
1818 class ReplicaPoolModule { 1763 class ReplicaPoolModule {
1819 /** A list of environment variables. */ 1764 /** A list of environment variables. */
1820 core.Map<core.String, EnvVariable> envVariables; 1765 core.Map<core.String, EnvVariable> envVariables;
1821 1766
1822 /** The Health Checks to configure for the ReplicaPoolModule */ 1767 /** The Health Checks to configure for the ReplicaPoolModule */
1823 core.List<core.String> healthChecks; 1768 core.List<core.String> healthChecks;
1824 1769
1825 /** Number of replicas in this module. */ 1770 /** Number of replicas in this module. */
1826 core.int numReplicas; 1771 core.int numReplicas;
1827 1772
1828 /** Information for a ReplicaPoolModule. */ 1773 /** Information for a ReplicaPoolModule. */
1829 ReplicaPoolParams replicaPoolParams; 1774 ReplicaPoolParams replicaPoolParams;
1830 1775
1831 /** 1776 /**
1832 * [Output Only] The name of the Resource View associated with a 1777 * [Output Only] The name of the Resource View associated with a
1833 * ReplicaPoolModule. This field will be generated by the service. 1778 * ReplicaPoolModule. This field will be generated by the service.
1834 */ 1779 */
1835 core.String resourceView; 1780 core.String resourceView;
1836 1781
1837 1782
1838 ReplicaPoolModule(); 1783 ReplicaPoolModule();
1839 1784
1840 ReplicaPoolModule.fromJson(core.Map _json) { 1785 ReplicaPoolModule.fromJson(core.Map _json) {
1841 if (_json.containsKey("envVariables")) { 1786 if (_json.containsKey("envVariables")) {
1842 envVariables = common_internal.mapMap(_json["envVariables"], (item) => new EnvVariable.fromJson(item)); 1787 envVariables = commons.mapMap(_json["envVariables"], (item) => new EnvVari able.fromJson(item));
1843 } 1788 }
1844 if (_json.containsKey("healthChecks")) { 1789 if (_json.containsKey("healthChecks")) {
1845 healthChecks = _json["healthChecks"]; 1790 healthChecks = _json["healthChecks"];
1846 } 1791 }
1847 if (_json.containsKey("numReplicas")) { 1792 if (_json.containsKey("numReplicas")) {
1848 numReplicas = _json["numReplicas"]; 1793 numReplicas = _json["numReplicas"];
1849 } 1794 }
1850 if (_json.containsKey("replicaPoolParams")) { 1795 if (_json.containsKey("replicaPoolParams")) {
1851 replicaPoolParams = new ReplicaPoolParams.fromJson(_json["replicaPoolParam s"]); 1796 replicaPoolParams = new ReplicaPoolParams.fromJson(_json["replicaPoolParam s"]);
1852 } 1797 }
1853 if (_json.containsKey("resourceView")) { 1798 if (_json.containsKey("resourceView")) {
1854 resourceView = _json["resourceView"]; 1799 resourceView = _json["resourceView"];
1855 } 1800 }
1856 } 1801 }
1857 1802
1858 core.Map toJson() { 1803 core.Map toJson() {
1859 var _json = new core.Map(); 1804 var _json = new core.Map();
1860 if (envVariables != null) { 1805 if (envVariables != null) {
1861 _json["envVariables"] = common_internal.mapMap(envVariables, (item) => (it em).toJson()); 1806 _json["envVariables"] = commons.mapMap(envVariables, (item) => (item).toJs on());
1862 } 1807 }
1863 if (healthChecks != null) { 1808 if (healthChecks != null) {
1864 _json["healthChecks"] = healthChecks; 1809 _json["healthChecks"] = healthChecks;
1865 } 1810 }
1866 if (numReplicas != null) { 1811 if (numReplicas != null) {
1867 _json["numReplicas"] = numReplicas; 1812 _json["numReplicas"] = numReplicas;
1868 } 1813 }
1869 if (replicaPoolParams != null) { 1814 if (replicaPoolParams != null) {
1870 _json["replicaPoolParams"] = (replicaPoolParams).toJson(); 1815 _json["replicaPoolParams"] = (replicaPoolParams).toJson();
1871 } 1816 }
1872 if (resourceView != null) { 1817 if (resourceView != null) {
1873 _json["resourceView"] = resourceView; 1818 _json["resourceView"] = resourceView;
1874 } 1819 }
1875 return _json; 1820 return _json;
1876 } 1821 }
1877 } 1822 }
1878 1823
1879 1824
1880 /** Not documented yet. */
1881 class ReplicaPoolModuleStatus { 1825 class ReplicaPoolModuleStatus {
1882 /** [Output Only] The URL of the associated ReplicaPool resource. */ 1826 /** [Output Only] The URL of the associated ReplicaPool resource. */
1883 core.String replicaPoolUrl; 1827 core.String replicaPoolUrl;
1884 1828
1885 /** 1829 /**
1886 * [Output Only] The URL of the Resource Group associated with this 1830 * [Output Only] The URL of the Resource Group associated with this
1887 * ReplicaPool. 1831 * ReplicaPool.
1888 */ 1832 */
1889 core.String resourceViewUrl; 1833 core.String resourceViewUrl;
1890 1834
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
1988 1932
1989 /** The metadata key/value pairs assigned to this instance. */ 1933 /** The metadata key/value pairs assigned to this instance. */
1990 Metadata metadata; 1934 Metadata metadata;
1991 1935
1992 /** 1936 /**
1993 * A list of network interfaces for the instance. Currently only one interface 1937 * A list of network interfaces for the instance. Currently only one interface
1994 * is supported by Google Compute Engine. 1938 * is supported by Google Compute Engine.
1995 */ 1939 */
1996 core.List<NetworkInterface> networkInterfaces; 1940 core.List<NetworkInterface> networkInterfaces;
1997 1941
1998 /** Not documented yet. */
1999 core.String onHostMaintenance; 1942 core.String onHostMaintenance;
2000 1943
2001 /** A list of Service Accounts to enable for this instance. */ 1944 /** A list of Service Accounts to enable for this instance. */
2002 core.List<ServiceAccount> serviceAccounts; 1945 core.List<ServiceAccount> serviceAccounts;
2003 1946
2004 /** 1947 /**
2005 * A list of tags to apply to the Google Compute Engine instance to identify 1948 * A list of tags to apply to the Google Compute Engine instance to identify
2006 * resources. 1949 * resources.
2007 */ 1950 */
2008 Tag tags; 1951 Tag tags;
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
2193 * Name of this Template. The name must conform to the expression: 2136 * Name of this Template. The name must conform to the expression:
2194 * [a-zA-Z0-9-_]{1,64} 2137 * [a-zA-Z0-9-_]{1,64}
2195 */ 2138 */
2196 core.String name; 2139 core.String name;
2197 2140
2198 2141
2199 Template(); 2142 Template();
2200 2143
2201 Template.fromJson(core.Map _json) { 2144 Template.fromJson(core.Map _json) {
2202 if (_json.containsKey("actions")) { 2145 if (_json.containsKey("actions")) {
2203 actions = common_internal.mapMap(_json["actions"], (item) => new Action.fr omJson(item)); 2146 actions = commons.mapMap(_json["actions"], (item) => new Action.fromJson(i tem));
2204 } 2147 }
2205 if (_json.containsKey("description")) { 2148 if (_json.containsKey("description")) {
2206 description = _json["description"]; 2149 description = _json["description"];
2207 } 2150 }
2208 if (_json.containsKey("modules")) { 2151 if (_json.containsKey("modules")) {
2209 modules = common_internal.mapMap(_json["modules"], (item) => new Module.fr omJson(item)); 2152 modules = commons.mapMap(_json["modules"], (item) => new Module.fromJson(i tem));
2210 } 2153 }
2211 if (_json.containsKey("name")) { 2154 if (_json.containsKey("name")) {
2212 name = _json["name"]; 2155 name = _json["name"];
2213 } 2156 }
2214 } 2157 }
2215 2158
2216 core.Map toJson() { 2159 core.Map toJson() {
2217 var _json = new core.Map(); 2160 var _json = new core.Map();
2218 if (actions != null) { 2161 if (actions != null) {
2219 _json["actions"] = common_internal.mapMap(actions, (item) => (item).toJson ()); 2162 _json["actions"] = commons.mapMap(actions, (item) => (item).toJson());
2220 } 2163 }
2221 if (description != null) { 2164 if (description != null) {
2222 _json["description"] = description; 2165 _json["description"] = description;
2223 } 2166 }
2224 if (modules != null) { 2167 if (modules != null) {
2225 _json["modules"] = common_internal.mapMap(modules, (item) => (item).toJson ()); 2168 _json["modules"] = commons.mapMap(modules, (item) => (item).toJson());
2226 } 2169 }
2227 if (name != null) { 2170 if (name != null) {
2228 _json["name"] = name; 2171 _json["name"] = name;
2229 } 2172 }
2230 return _json; 2173 return _json;
2231 } 2174 }
2232 } 2175 }
2233 2176
2234 2177
2235 /** Not documented yet. */
2236 class TemplatesListResponse { 2178 class TemplatesListResponse {
2237 /** Not documented yet. */
2238 core.String nextPageToken; 2179 core.String nextPageToken;
2239 2180
2240 /** Not documented yet. */
2241 core.List<Template> resources; 2181 core.List<Template> resources;
2242 2182
2243 2183
2244 TemplatesListResponse(); 2184 TemplatesListResponse();
2245 2185
2246 TemplatesListResponse.fromJson(core.Map _json) { 2186 TemplatesListResponse.fromJson(core.Map _json) {
2247 if (_json.containsKey("nextPageToken")) { 2187 if (_json.containsKey("nextPageToken")) {
2248 nextPageToken = _json["nextPageToken"]; 2188 nextPageToken = _json["nextPageToken"];
2249 } 2189 }
2250 if (_json.containsKey("resources")) { 2190 if (_json.containsKey("resources")) {
2251 resources = _json["resources"].map((value) => new Template.fromJson(value) ).toList(); 2191 resources = _json["resources"].map((value) => new Template.fromJson(value) ).toList();
2252 } 2192 }
2253 } 2193 }
2254 2194
2255 core.Map toJson() { 2195 core.Map toJson() {
2256 var _json = new core.Map(); 2196 var _json = new core.Map();
2257 if (nextPageToken != null) { 2197 if (nextPageToken != null) {
2258 _json["nextPageToken"] = nextPageToken; 2198 _json["nextPageToken"] = nextPageToken;
2259 } 2199 }
2260 if (resources != null) { 2200 if (resources != null) {
2261 _json["resources"] = resources.map((value) => (value).toJson()).toList(); 2201 _json["resources"] = resources.map((value) => (value).toJson()).toList();
2262 } 2202 }
2263 return _json; 2203 return _json;
2264 } 2204 }
2265 } 2205 }
2266
2267
OLDNEW
« no previous file with comments | « generated/googleapis_beta/lib/logging/v1beta3.dart ('k') | generated/googleapis_beta/lib/pubsub/v1beta1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698