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

Side by Side Diff: generated/googleapis_beta/lib/replicapool/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.replicapool.v1beta2; 3 library googleapis_beta.replicapool.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 replicapool/v1beta2';
15 18
16 /** 19 /**
17 * The Google Compute Engine Instance Group Manager API provides groups of 20 * The Google Compute Engine Instance Group Manager API provides groups of
18 * homogenous Compute Engine Instances. 21 * homogenous Compute Engine Instances.
19 */ 22 */
20 class ReplicapoolApi { 23 class ReplicapoolApi {
21 /** View and manage your data across Google Cloud Platform services */ 24 /** View and manage your data across Google Cloud Platform services */
22 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf orm"; 25 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf orm";
23 26
24 /** View and manage your Google Compute Engine resources */ 27 /** View and manage your Google Compute Engine resources */
25 static const ComputeScope = "https://www.googleapis.com/auth/compute"; 28 static const ComputeScope = "https://www.googleapis.com/auth/compute";
26 29
27 /** View your Google Compute Engine resources */ 30 /** View your Google Compute Engine resources */
28 static const ComputeReadonlyScope = "https://www.googleapis.com/auth/compute.r eadonly"; 31 static const ComputeReadonlyScope = "https://www.googleapis.com/auth/compute.r eadonly";
29 32
30 33
31 final common_internal.ApiRequester _requester; 34 final commons.ApiRequester _requester;
32 35
33 InstanceGroupManagersResourceApi get instanceGroupManagers => new InstanceGrou pManagersResourceApi(_requester); 36 InstanceGroupManagersResourceApi get instanceGroupManagers => new InstanceGrou pManagersResourceApi(_requester);
34 ZoneOperationsResourceApi get zoneOperations => new ZoneOperationsResourceApi( _requester); 37 ZoneOperationsResourceApi get zoneOperations => new ZoneOperationsResourceApi( _requester);
35 38
36 ReplicapoolApi(http.Client client, {core.String rootUrl: "https://www.googleap is.com/", core.String servicePath: "replicapool/v1beta2/projects/"}) : 39 ReplicapoolApi(http.Client client, {core.String rootUrl: "https://www.googleap is.com/", core.String servicePath: "replicapool/v1beta2/projects/"}) :
37 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath ); 40 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT);
38 } 41 }
39 42
40 43
41 /** Not documented yet. */
42 class InstanceGroupManagersResourceApi { 44 class InstanceGroupManagersResourceApi {
43 final common_internal.ApiRequester _requester; 45 final commons.ApiRequester _requester;
44 46
45 InstanceGroupManagersResourceApi(common_internal.ApiRequester client) : 47 InstanceGroupManagersResourceApi(commons.ApiRequester client) :
46 _requester = client; 48 _requester = client;
47 49
48 /** 50 /**
49 * Removes the specified instances from the managed instance group, and from 51 * Removes the specified instances from the managed instance group, and from
50 * any target pools of which they were members, without deleting the 52 * any target pools of which they were members, without deleting the
51 * instances. 53 * instances.
52 * 54 *
53 * [request] - The metadata request object. 55 * [request] - The metadata request object.
54 * 56 *
55 * Request parameters: 57 * Request parameters:
56 * 58 *
57 * [project] - The Google Developers Console project name. 59 * [project] - The Google Developers Console project name.
58 * Value must have pattern 60 * Value must have pattern
59 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{ 1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". 61 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{ 1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))".
60 * 62 *
61 * [zone] - The name of the zone in which the instance group manager resides. 63 * [zone] - The name of the zone in which the instance group manager resides.
62 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". 64 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
63 * 65 *
64 * [instanceGroupManager] - The name of the instance group manager. 66 * [instanceGroupManager] - The name of the instance group manager.
65 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". 67 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
66 * 68 *
67 * Completes with a [Operation]. 69 * Completes with a [Operation].
68 * 70 *
69 * Completes with a [common.ApiRequestError] if the API endpoint returned an 71 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
70 * error. 72 * error.
71 * 73 *
72 * If the used [http.Client] completes with an error when making a REST call, 74 * If the used [http.Client] completes with an error when making a REST call,
73 * this method will complete with the same error. 75 * this method will complete with the same error.
74 */ 76 */
75 async.Future<Operation> abandonInstances(InstanceGroupManagersAbandonInstances Request request, core.String project, core.String zone, core.String instanceGrou pManager) { 77 async.Future<Operation> abandonInstances(InstanceGroupManagersAbandonInstances Request request, core.String project, core.String zone, core.String instanceGrou pManager) {
76 var _url = null; 78 var _url = null;
77 var _queryParams = new core.Map(); 79 var _queryParams = new core.Map();
78 var _uploadMedia = null; 80 var _uploadMedia = null;
79 var _uploadOptions = null; 81 var _uploadOptions = null;
80 var _downloadOptions = common.DownloadOptions.Metadata; 82 var _downloadOptions = commons.DownloadOptions.Metadata;
81 var _body = null; 83 var _body = null;
82 84
83 if (request != null) { 85 if (request != null) {
84 _body = convert.JSON.encode((request).toJson()); 86 _body = convert.JSON.encode((request).toJson());
85 } 87 }
86 if (project == null) { 88 if (project == null) {
87 throw new core.ArgumentError("Parameter project is required."); 89 throw new core.ArgumentError("Parameter project is required.");
88 } 90 }
89 if (zone == null) { 91 if (zone == null) {
90 throw new core.ArgumentError("Parameter zone is required."); 92 throw new core.ArgumentError("Parameter zone is required.");
91 } 93 }
92 if (instanceGroupManager == null) { 94 if (instanceGroupManager == null) {
93 throw new core.ArgumentError("Parameter instanceGroupManager is required." ); 95 throw new core.ArgumentError("Parameter instanceGroupManager is required." );
94 } 96 }
95 97
96 98
97 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo n_internal.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + common_i nternal.Escaper.ecapeVariable('$instanceGroupManager') + '/abandonInstances'; 99 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap er.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVar iable('$instanceGroupManager') + '/abandonInstances';
98 100
99 var _response = _requester.request(_url, 101 var _response = _requester.request(_url,
100 "POST", 102 "POST",
101 body: _body, 103 body: _body,
102 queryParams: _queryParams, 104 queryParams: _queryParams,
103 uploadOptions: _uploadOptions, 105 uploadOptions: _uploadOptions,
104 uploadMedia: _uploadMedia, 106 uploadMedia: _uploadMedia,
105 downloadOptions: _downloadOptions); 107 downloadOptions: _downloadOptions);
106 return _response.then((data) => new Operation.fromJson(data)); 108 return _response.then((data) => new Operation.fromJson(data));
107 } 109 }
(...skipping 11 matching lines...) Expand all
119 * 121 *
120 * [zone] - The name of the zone in which the instance group manager resides. 122 * [zone] - The name of the zone in which the instance group manager resides.
121 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". 123 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
122 * 124 *
123 * [instanceGroupManager] - Name of the Instance Group Manager resource to 125 * [instanceGroupManager] - Name of the Instance Group Manager resource to
124 * delete. 126 * delete.
125 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". 127 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
126 * 128 *
127 * Completes with a [Operation]. 129 * Completes with a [Operation].
128 * 130 *
129 * Completes with a [common.ApiRequestError] if the API endpoint returned an 131 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
130 * error. 132 * error.
131 * 133 *
132 * If the used [http.Client] completes with an error when making a REST call, 134 * If the used [http.Client] completes with an error when making a REST call,
133 * this method will complete with the same error. 135 * this method will complete with the same error.
134 */ 136 */
135 async.Future<Operation> delete(core.String project, core.String zone, core.Str ing instanceGroupManager) { 137 async.Future<Operation> delete(core.String project, core.String zone, core.Str ing instanceGroupManager) {
136 var _url = null; 138 var _url = null;
137 var _queryParams = new core.Map(); 139 var _queryParams = new core.Map();
138 var _uploadMedia = null; 140 var _uploadMedia = null;
139 var _uploadOptions = null; 141 var _uploadOptions = null;
140 var _downloadOptions = common.DownloadOptions.Metadata; 142 var _downloadOptions = commons.DownloadOptions.Metadata;
141 var _body = null; 143 var _body = null;
142 144
143 if (project == null) { 145 if (project == null) {
144 throw new core.ArgumentError("Parameter project is required."); 146 throw new core.ArgumentError("Parameter project is required.");
145 } 147 }
146 if (zone == null) { 148 if (zone == null) {
147 throw new core.ArgumentError("Parameter zone is required."); 149 throw new core.ArgumentError("Parameter zone is required.");
148 } 150 }
149 if (instanceGroupManager == null) { 151 if (instanceGroupManager == null) {
150 throw new core.ArgumentError("Parameter instanceGroupManager is required." ); 152 throw new core.ArgumentError("Parameter instanceGroupManager is required." );
151 } 153 }
152 154
153 155
154 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo n_internal.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + common_i nternal.Escaper.ecapeVariable('$instanceGroupManager'); 156 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap er.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVar iable('$instanceGroupManager');
155 157
156 var _response = _requester.request(_url, 158 var _response = _requester.request(_url,
157 "DELETE", 159 "DELETE",
158 body: _body, 160 body: _body,
159 queryParams: _queryParams, 161 queryParams: _queryParams,
160 uploadOptions: _uploadOptions, 162 uploadOptions: _uploadOptions,
161 uploadMedia: _uploadMedia, 163 uploadMedia: _uploadMedia,
162 downloadOptions: _downloadOptions); 164 downloadOptions: _downloadOptions);
163 return _response.then((data) => new Operation.fromJson(data)); 165 return _response.then((data) => new Operation.fromJson(data));
164 } 166 }
165 167
166 /** 168 /**
167 * Deletes the specified instances. The instances are removed from the 169 * Deletes the specified instances. The instances are deleted, then removed
168 * instance group and any target pools of which they are a member, then 170 * from the instance group and any target pools of which they were a member.
169 * deleted. The targetSize of the instance group manager is reduced by the 171 * The targetSize of the instance group manager is reduced by the number of
170 * number of instances deleted. 172 * instances deleted.
171 * 173 *
172 * [request] - The metadata request object. 174 * [request] - The metadata request object.
173 * 175 *
174 * Request parameters: 176 * Request parameters:
175 * 177 *
176 * [project] - The Google Developers Console project name. 178 * [project] - The Google Developers Console project name.
177 * Value must have pattern 179 * Value must have pattern
178 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{ 1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". 180 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{ 1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))".
179 * 181 *
180 * [zone] - The name of the zone in which the instance group manager resides. 182 * [zone] - The name of the zone in which the instance group manager resides.
181 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". 183 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
182 * 184 *
183 * [instanceGroupManager] - The name of the instance group manager. 185 * [instanceGroupManager] - The name of the instance group manager.
184 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". 186 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
185 * 187 *
186 * Completes with a [Operation]. 188 * Completes with a [Operation].
187 * 189 *
188 * Completes with a [common.ApiRequestError] if the API endpoint returned an 190 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
189 * error. 191 * error.
190 * 192 *
191 * If the used [http.Client] completes with an error when making a REST call, 193 * If the used [http.Client] completes with an error when making a REST call,
192 * this method will complete with the same error. 194 * this method will complete with the same error.
193 */ 195 */
194 async.Future<Operation> deleteInstances(InstanceGroupManagersDeleteInstancesRe quest request, core.String project, core.String zone, core.String instanceGroupM anager) { 196 async.Future<Operation> deleteInstances(InstanceGroupManagersDeleteInstancesRe quest request, core.String project, core.String zone, core.String instanceGroupM anager) {
195 var _url = null; 197 var _url = null;
196 var _queryParams = new core.Map(); 198 var _queryParams = new core.Map();
197 var _uploadMedia = null; 199 var _uploadMedia = null;
198 var _uploadOptions = null; 200 var _uploadOptions = null;
199 var _downloadOptions = common.DownloadOptions.Metadata; 201 var _downloadOptions = commons.DownloadOptions.Metadata;
200 var _body = null; 202 var _body = null;
201 203
202 if (request != null) { 204 if (request != null) {
203 _body = convert.JSON.encode((request).toJson()); 205 _body = convert.JSON.encode((request).toJson());
204 } 206 }
205 if (project == null) { 207 if (project == null) {
206 throw new core.ArgumentError("Parameter project is required."); 208 throw new core.ArgumentError("Parameter project is required.");
207 } 209 }
208 if (zone == null) { 210 if (zone == null) {
209 throw new core.ArgumentError("Parameter zone is required."); 211 throw new core.ArgumentError("Parameter zone is required.");
210 } 212 }
211 if (instanceGroupManager == null) { 213 if (instanceGroupManager == null) {
212 throw new core.ArgumentError("Parameter instanceGroupManager is required." ); 214 throw new core.ArgumentError("Parameter instanceGroupManager is required." );
213 } 215 }
214 216
215 217
216 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo n_internal.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + common_i nternal.Escaper.ecapeVariable('$instanceGroupManager') + '/deleteInstances'; 218 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap er.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVar iable('$instanceGroupManager') + '/deleteInstances';
217 219
218 var _response = _requester.request(_url, 220 var _response = _requester.request(_url,
219 "POST", 221 "POST",
220 body: _body, 222 body: _body,
221 queryParams: _queryParams, 223 queryParams: _queryParams,
222 uploadOptions: _uploadOptions, 224 uploadOptions: _uploadOptions,
223 uploadMedia: _uploadMedia, 225 uploadMedia: _uploadMedia,
224 downloadOptions: _downloadOptions); 226 downloadOptions: _downloadOptions);
225 return _response.then((data) => new Operation.fromJson(data)); 227 return _response.then((data) => new Operation.fromJson(data));
226 } 228 }
227 229
228 /** 230 /**
229 * Returns the specified Instance Group Manager resource. 231 * Returns the specified Instance Group Manager resource.
230 * 232 *
231 * Request parameters: 233 * Request parameters:
232 * 234 *
233 * [project] - The Google Developers Console project name. 235 * [project] - The Google Developers Console project name.
234 * Value must have pattern 236 * Value must have pattern
235 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{ 1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". 237 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{ 1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))".
236 * 238 *
237 * [zone] - The name of the zone in which the instance group manager resides. 239 * [zone] - The name of the zone in which the instance group manager resides.
238 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". 240 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
239 * 241 *
240 * [instanceGroupManager] - Name of the instance resource to return. 242 * [instanceGroupManager] - Name of the instance resource to return.
241 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". 243 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
242 * 244 *
243 * Completes with a [InstanceGroupManager]. 245 * Completes with a [InstanceGroupManager].
244 * 246 *
245 * Completes with a [common.ApiRequestError] if the API endpoint returned an 247 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
246 * error. 248 * error.
247 * 249 *
248 * If the used [http.Client] completes with an error when making a REST call, 250 * If the used [http.Client] completes with an error when making a REST call,
249 * this method will complete with the same error. 251 * this method will complete with the same error.
250 */ 252 */
251 async.Future<InstanceGroupManager> get(core.String project, core.String zone, core.String instanceGroupManager) { 253 async.Future<InstanceGroupManager> get(core.String project, core.String zone, core.String instanceGroupManager) {
252 var _url = null; 254 var _url = null;
253 var _queryParams = new core.Map(); 255 var _queryParams = new core.Map();
254 var _uploadMedia = null; 256 var _uploadMedia = null;
255 var _uploadOptions = null; 257 var _uploadOptions = null;
256 var _downloadOptions = common.DownloadOptions.Metadata; 258 var _downloadOptions = commons.DownloadOptions.Metadata;
257 var _body = null; 259 var _body = null;
258 260
259 if (project == null) { 261 if (project == null) {
260 throw new core.ArgumentError("Parameter project is required."); 262 throw new core.ArgumentError("Parameter project is required.");
261 } 263 }
262 if (zone == null) { 264 if (zone == null) {
263 throw new core.ArgumentError("Parameter zone is required."); 265 throw new core.ArgumentError("Parameter zone is required.");
264 } 266 }
265 if (instanceGroupManager == null) { 267 if (instanceGroupManager == null) {
266 throw new core.ArgumentError("Parameter instanceGroupManager is required." ); 268 throw new core.ArgumentError("Parameter instanceGroupManager is required." );
267 } 269 }
268 270
269 271
270 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo n_internal.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + common_i nternal.Escaper.ecapeVariable('$instanceGroupManager'); 272 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap er.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVar iable('$instanceGroupManager');
271 273
272 var _response = _requester.request(_url, 274 var _response = _requester.request(_url,
273 "GET", 275 "GET",
274 body: _body, 276 body: _body,
275 queryParams: _queryParams, 277 queryParams: _queryParams,
276 uploadOptions: _uploadOptions, 278 uploadOptions: _uploadOptions,
277 uploadMedia: _uploadMedia, 279 uploadMedia: _uploadMedia,
278 downloadOptions: _downloadOptions); 280 downloadOptions: _downloadOptions);
279 return _response.then((data) => new InstanceGroupManager.fromJson(data)); 281 return _response.then((data) => new InstanceGroupManager.fromJson(data));
280 } 282 }
(...skipping 10 matching lines...) Expand all
291 * Value must have pattern 293 * Value must have pattern
292 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{ 1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". 294 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{ 1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))".
293 * 295 *
294 * [zone] - The name of the zone in which the instance group manager resides. 296 * [zone] - The name of the zone in which the instance group manager resides.
295 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". 297 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
296 * 298 *
297 * [size] - Number of instances that should exist. 299 * [size] - Number of instances that should exist.
298 * 300 *
299 * Completes with a [Operation]. 301 * Completes with a [Operation].
300 * 302 *
301 * Completes with a [common.ApiRequestError] if the API endpoint returned an 303 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
302 * error. 304 * error.
303 * 305 *
304 * If the used [http.Client] completes with an error when making a REST call, 306 * If the used [http.Client] completes with an error when making a REST call,
305 * this method will complete with the same error. 307 * this method will complete with the same error.
306 */ 308 */
307 async.Future<Operation> insert(InstanceGroupManager request, core.String proje ct, core.String zone, core.int size) { 309 async.Future<Operation> insert(InstanceGroupManager request, core.String proje ct, core.String zone, core.int size) {
308 var _url = null; 310 var _url = null;
309 var _queryParams = new core.Map(); 311 var _queryParams = new core.Map();
310 var _uploadMedia = null; 312 var _uploadMedia = null;
311 var _uploadOptions = null; 313 var _uploadOptions = null;
312 var _downloadOptions = common.DownloadOptions.Metadata; 314 var _downloadOptions = commons.DownloadOptions.Metadata;
313 var _body = null; 315 var _body = null;
314 316
315 if (request != null) { 317 if (request != null) {
316 _body = convert.JSON.encode((request).toJson()); 318 _body = convert.JSON.encode((request).toJson());
317 } 319 }
318 if (project == null) { 320 if (project == null) {
319 throw new core.ArgumentError("Parameter project is required."); 321 throw new core.ArgumentError("Parameter project is required.");
320 } 322 }
321 if (zone == null) { 323 if (zone == null) {
322 throw new core.ArgumentError("Parameter zone is required."); 324 throw new core.ArgumentError("Parameter zone is required.");
323 } 325 }
324 if (size == null) { 326 if (size == null) {
325 throw new core.ArgumentError("Parameter size is required."); 327 throw new core.ArgumentError("Parameter size is required.");
326 } 328 }
327 _queryParams["size"] = ["${size}"]; 329 _queryParams["size"] = ["${size}"];
328 330
329 331
330 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo n_internal.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers'; 332 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap er.ecapeVariable('$zone') + '/instanceGroupManagers';
331 333
332 var _response = _requester.request(_url, 334 var _response = _requester.request(_url,
333 "POST", 335 "POST",
334 body: _body, 336 body: _body,
335 queryParams: _queryParams, 337 queryParams: _queryParams,
336 uploadOptions: _uploadOptions, 338 uploadOptions: _uploadOptions,
337 uploadMedia: _uploadMedia, 339 uploadMedia: _uploadMedia,
338 downloadOptions: _downloadOptions); 340 downloadOptions: _downloadOptions);
339 return _response.then((data) => new Operation.fromJson(data)); 341 return _response.then((data) => new Operation.fromJson(data));
340 } 342 }
(...skipping 15 matching lines...) Expand all
356 * 358 *
357 * [maxResults] - Optional. Maximum count of results to be returned. Maximum 359 * [maxResults] - Optional. Maximum count of results to be returned. Maximum
358 * value is 500 and default value is 500. 360 * value is 500 and default value is 500.
359 * Value must be between "0" and "500". 361 * Value must be between "0" and "500".
360 * 362 *
361 * [pageToken] - Optional. Tag returned by a previous list request truncated 363 * [pageToken] - Optional. Tag returned by a previous list request truncated
362 * by maxResults. Used to continue a previous list request. 364 * by maxResults. Used to continue a previous list request.
363 * 365 *
364 * Completes with a [InstanceGroupManagerList]. 366 * Completes with a [InstanceGroupManagerList].
365 * 367 *
366 * Completes with a [common.ApiRequestError] if the API endpoint returned an 368 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
367 * error. 369 * error.
368 * 370 *
369 * 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,
370 * this method will complete with the same error. 372 * this method will complete with the same error.
371 */ 373 */
372 async.Future<InstanceGroupManagerList> list(core.String project, core.String z one, {core.String filter, core.int maxResults, core.String pageToken}) { 374 async.Future<InstanceGroupManagerList> list(core.String project, core.String z one, {core.String filter, core.int maxResults, core.String pageToken}) {
373 var _url = null; 375 var _url = null;
374 var _queryParams = new core.Map(); 376 var _queryParams = new core.Map();
375 var _uploadMedia = null; 377 var _uploadMedia = null;
376 var _uploadOptions = null; 378 var _uploadOptions = null;
377 var _downloadOptions = common.DownloadOptions.Metadata; 379 var _downloadOptions = commons.DownloadOptions.Metadata;
378 var _body = null; 380 var _body = null;
379 381
380 if (project == null) { 382 if (project == null) {
381 throw new core.ArgumentError("Parameter project is required."); 383 throw new core.ArgumentError("Parameter project is required.");
382 } 384 }
383 if (zone == null) { 385 if (zone == null) {
384 throw new core.ArgumentError("Parameter zone is required."); 386 throw new core.ArgumentError("Parameter zone is required.");
385 } 387 }
386 if (filter != null) { 388 if (filter != null) {
387 _queryParams["filter"] = [filter]; 389 _queryParams["filter"] = [filter];
388 } 390 }
389 if (maxResults != null) { 391 if (maxResults != null) {
390 _queryParams["maxResults"] = ["${maxResults}"]; 392 _queryParams["maxResults"] = ["${maxResults}"];
391 } 393 }
392 if (pageToken != null) { 394 if (pageToken != null) {
393 _queryParams["pageToken"] = [pageToken]; 395 _queryParams["pageToken"] = [pageToken];
394 } 396 }
395 397
396 398
397 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo n_internal.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers'; 399 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap er.ecapeVariable('$zone') + '/instanceGroupManagers';
398 400
399 var _response = _requester.request(_url, 401 var _response = _requester.request(_url,
400 "GET", 402 "GET",
401 body: _body, 403 body: _body,
402 queryParams: _queryParams, 404 queryParams: _queryParams,
403 uploadOptions: _uploadOptions, 405 uploadOptions: _uploadOptions,
404 uploadMedia: _uploadMedia, 406 uploadMedia: _uploadMedia,
405 downloadOptions: _downloadOptions); 407 downloadOptions: _downloadOptions);
406 return _response.then((data) => new InstanceGroupManagerList.fromJson(data)) ; 408 return _response.then((data) => new InstanceGroupManagerList.fromJson(data)) ;
407 } 409 }
(...skipping 11 matching lines...) Expand all
419 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{ 1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". 421 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{ 1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))".
420 * 422 *
421 * [zone] - The name of the zone in which the instance group manager resides. 423 * [zone] - The name of the zone in which the instance group manager resides.
422 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". 424 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
423 * 425 *
424 * [instanceGroupManager] - The name of the instance group manager. 426 * [instanceGroupManager] - The name of the instance group manager.
425 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". 427 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
426 * 428 *
427 * Completes with a [Operation]. 429 * Completes with a [Operation].
428 * 430 *
429 * Completes with a [common.ApiRequestError] if the API endpoint returned an 431 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
430 * error. 432 * error.
431 * 433 *
432 * If the used [http.Client] completes with an error when making a REST call, 434 * If the used [http.Client] completes with an error when making a REST call,
433 * this method will complete with the same error. 435 * this method will complete with the same error.
434 */ 436 */
435 async.Future<Operation> recreateInstances(InstanceGroupManagersRecreateInstanc esRequest request, core.String project, core.String zone, core.String instanceGr oupManager) { 437 async.Future<Operation> recreateInstances(InstanceGroupManagersRecreateInstanc esRequest request, core.String project, core.String zone, core.String instanceGr oupManager) {
436 var _url = null; 438 var _url = null;
437 var _queryParams = new core.Map(); 439 var _queryParams = new core.Map();
438 var _uploadMedia = null; 440 var _uploadMedia = null;
439 var _uploadOptions = null; 441 var _uploadOptions = null;
440 var _downloadOptions = common.DownloadOptions.Metadata; 442 var _downloadOptions = commons.DownloadOptions.Metadata;
441 var _body = null; 443 var _body = null;
442 444
443 if (request != null) { 445 if (request != null) {
444 _body = convert.JSON.encode((request).toJson()); 446 _body = convert.JSON.encode((request).toJson());
445 } 447 }
446 if (project == null) { 448 if (project == null) {
447 throw new core.ArgumentError("Parameter project is required."); 449 throw new core.ArgumentError("Parameter project is required.");
448 } 450 }
449 if (zone == null) { 451 if (zone == null) {
450 throw new core.ArgumentError("Parameter zone is required."); 452 throw new core.ArgumentError("Parameter zone is required.");
451 } 453 }
452 if (instanceGroupManager == null) { 454 if (instanceGroupManager == null) {
453 throw new core.ArgumentError("Parameter instanceGroupManager is required." ); 455 throw new core.ArgumentError("Parameter instanceGroupManager is required." );
454 } 456 }
455 457
456 458
457 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo n_internal.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + common_i nternal.Escaper.ecapeVariable('$instanceGroupManager') + '/recreateInstances'; 459 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap er.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVar iable('$instanceGroupManager') + '/recreateInstances';
458 460
459 var _response = _requester.request(_url, 461 var _response = _requester.request(_url,
460 "POST", 462 "POST",
461 body: _body, 463 body: _body,
462 queryParams: _queryParams, 464 queryParams: _queryParams,
463 uploadOptions: _uploadOptions, 465 uploadOptions: _uploadOptions,
464 uploadMedia: _uploadMedia, 466 uploadMedia: _uploadMedia,
465 downloadOptions: _downloadOptions); 467 downloadOptions: _downloadOptions);
466 return _response.then((data) => new Operation.fromJson(data)); 468 return _response.then((data) => new Operation.fromJson(data));
467 } 469 }
(...skipping 13 matching lines...) Expand all
481 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". 483 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
482 * 484 *
483 * [instanceGroupManager] - The name of the instance group manager. 485 * [instanceGroupManager] - The name of the instance group manager.
484 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". 486 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
485 * 487 *
486 * [size] - Number of instances that should exist in this Instance Group 488 * [size] - Number of instances that should exist in this Instance Group
487 * Manager. 489 * Manager.
488 * 490 *
489 * Completes with a [Operation]. 491 * Completes with a [Operation].
490 * 492 *
491 * Completes with a [common.ApiRequestError] if the API endpoint returned an 493 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
492 * error. 494 * error.
493 * 495 *
494 * If the used [http.Client] completes with an error when making a REST call, 496 * If the used [http.Client] completes with an error when making a REST call,
495 * this method will complete with the same error. 497 * this method will complete with the same error.
496 */ 498 */
497 async.Future<Operation> resize(core.String project, core.String zone, core.Str ing instanceGroupManager, core.int size) { 499 async.Future<Operation> resize(core.String project, core.String zone, core.Str ing instanceGroupManager, core.int size) {
498 var _url = null; 500 var _url = null;
499 var _queryParams = new core.Map(); 501 var _queryParams = new core.Map();
500 var _uploadMedia = null; 502 var _uploadMedia = null;
501 var _uploadOptions = null; 503 var _uploadOptions = null;
502 var _downloadOptions = common.DownloadOptions.Metadata; 504 var _downloadOptions = commons.DownloadOptions.Metadata;
503 var _body = null; 505 var _body = null;
504 506
505 if (project == null) { 507 if (project == null) {
506 throw new core.ArgumentError("Parameter project is required."); 508 throw new core.ArgumentError("Parameter project is required.");
507 } 509 }
508 if (zone == null) { 510 if (zone == null) {
509 throw new core.ArgumentError("Parameter zone is required."); 511 throw new core.ArgumentError("Parameter zone is required.");
510 } 512 }
511 if (instanceGroupManager == null) { 513 if (instanceGroupManager == null) {
512 throw new core.ArgumentError("Parameter instanceGroupManager is required." ); 514 throw new core.ArgumentError("Parameter instanceGroupManager is required." );
513 } 515 }
514 if (size == null) { 516 if (size == null) {
515 throw new core.ArgumentError("Parameter size is required."); 517 throw new core.ArgumentError("Parameter size is required.");
516 } 518 }
517 _queryParams["size"] = ["${size}"]; 519 _queryParams["size"] = ["${size}"];
518 520
519 521
520 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo n_internal.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + common_i nternal.Escaper.ecapeVariable('$instanceGroupManager') + '/resize'; 522 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap er.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVar iable('$instanceGroupManager') + '/resize';
521 523
522 var _response = _requester.request(_url, 524 var _response = _requester.request(_url,
523 "POST", 525 "POST",
524 body: _body, 526 body: _body,
525 queryParams: _queryParams, 527 queryParams: _queryParams,
526 uploadOptions: _uploadOptions, 528 uploadOptions: _uploadOptions,
527 uploadMedia: _uploadMedia, 529 uploadMedia: _uploadMedia,
528 downloadOptions: _downloadOptions); 530 downloadOptions: _downloadOptions);
529 return _response.then((data) => new Operation.fromJson(data)); 531 return _response.then((data) => new Operation.fromJson(data));
530 } 532 }
(...skipping 11 matching lines...) Expand all
542 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{ 1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". 544 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{ 1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))".
543 * 545 *
544 * [zone] - The name of the zone in which the instance group manager resides. 546 * [zone] - The name of the zone in which the instance group manager resides.
545 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". 547 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
546 * 548 *
547 * [instanceGroupManager] - The name of the instance group manager. 549 * [instanceGroupManager] - The name of the instance group manager.
548 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". 550 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
549 * 551 *
550 * Completes with a [Operation]. 552 * Completes with a [Operation].
551 * 553 *
552 * Completes with a [common.ApiRequestError] if the API endpoint returned an 554 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
553 * error. 555 * error.
554 * 556 *
555 * If the used [http.Client] completes with an error when making a REST call, 557 * If the used [http.Client] completes with an error when making a REST call,
556 * this method will complete with the same error. 558 * this method will complete with the same error.
557 */ 559 */
558 async.Future<Operation> setInstanceTemplate(InstanceGroupManagersSetInstanceTe mplateRequest request, core.String project, core.String zone, core.String instan ceGroupManager) { 560 async.Future<Operation> setInstanceTemplate(InstanceGroupManagersSetInstanceTe mplateRequest request, core.String project, core.String zone, core.String instan ceGroupManager) {
559 var _url = null; 561 var _url = null;
560 var _queryParams = new core.Map(); 562 var _queryParams = new core.Map();
561 var _uploadMedia = null; 563 var _uploadMedia = null;
562 var _uploadOptions = null; 564 var _uploadOptions = null;
563 var _downloadOptions = common.DownloadOptions.Metadata; 565 var _downloadOptions = commons.DownloadOptions.Metadata;
564 var _body = null; 566 var _body = null;
565 567
566 if (request != null) { 568 if (request != null) {
567 _body = convert.JSON.encode((request).toJson()); 569 _body = convert.JSON.encode((request).toJson());
568 } 570 }
569 if (project == null) { 571 if (project == null) {
570 throw new core.ArgumentError("Parameter project is required."); 572 throw new core.ArgumentError("Parameter project is required.");
571 } 573 }
572 if (zone == null) { 574 if (zone == null) {
573 throw new core.ArgumentError("Parameter zone is required."); 575 throw new core.ArgumentError("Parameter zone is required.");
574 } 576 }
575 if (instanceGroupManager == null) { 577 if (instanceGroupManager == null) {
576 throw new core.ArgumentError("Parameter instanceGroupManager is required." ); 578 throw new core.ArgumentError("Parameter instanceGroupManager is required." );
577 } 579 }
578 580
579 581
580 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo n_internal.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + common_i nternal.Escaper.ecapeVariable('$instanceGroupManager') + '/setInstanceTemplate'; 582 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap er.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVar iable('$instanceGroupManager') + '/setInstanceTemplate';
581 583
582 var _response = _requester.request(_url, 584 var _response = _requester.request(_url,
583 "POST", 585 "POST",
584 body: _body, 586 body: _body,
585 queryParams: _queryParams, 587 queryParams: _queryParams,
586 uploadOptions: _uploadOptions, 588 uploadOptions: _uploadOptions,
587 uploadMedia: _uploadMedia, 589 uploadMedia: _uploadMedia,
588 downloadOptions: _downloadOptions); 590 downloadOptions: _downloadOptions);
589 return _response.then((data) => new Operation.fromJson(data)); 591 return _response.then((data) => new Operation.fromJson(data));
590 } 592 }
(...skipping 11 matching lines...) Expand all
602 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{ 1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". 604 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{ 1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))".
603 * 605 *
604 * [zone] - The name of the zone in which the instance group manager resides. 606 * [zone] - The name of the zone in which the instance group manager resides.
605 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". 607 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
606 * 608 *
607 * [instanceGroupManager] - The name of the instance group manager. 609 * [instanceGroupManager] - The name of the instance group manager.
608 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". 610 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
609 * 611 *
610 * Completes with a [Operation]. 612 * Completes with a [Operation].
611 * 613 *
612 * Completes with a [common.ApiRequestError] if the API endpoint returned an 614 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
613 * error. 615 * error.
614 * 616 *
615 * If the used [http.Client] completes with an error when making a REST call, 617 * If the used [http.Client] completes with an error when making a REST call,
616 * this method will complete with the same error. 618 * this method will complete with the same error.
617 */ 619 */
618 async.Future<Operation> setTargetPools(InstanceGroupManagersSetTargetPoolsRequ est request, core.String project, core.String zone, core.String instanceGroupMan ager) { 620 async.Future<Operation> setTargetPools(InstanceGroupManagersSetTargetPoolsRequ est request, core.String project, core.String zone, core.String instanceGroupMan ager) {
619 var _url = null; 621 var _url = null;
620 var _queryParams = new core.Map(); 622 var _queryParams = new core.Map();
621 var _uploadMedia = null; 623 var _uploadMedia = null;
622 var _uploadOptions = null; 624 var _uploadOptions = null;
623 var _downloadOptions = common.DownloadOptions.Metadata; 625 var _downloadOptions = commons.DownloadOptions.Metadata;
624 var _body = null; 626 var _body = null;
625 627
626 if (request != null) { 628 if (request != null) {
627 _body = convert.JSON.encode((request).toJson()); 629 _body = convert.JSON.encode((request).toJson());
628 } 630 }
629 if (project == null) { 631 if (project == null) {
630 throw new core.ArgumentError("Parameter project is required."); 632 throw new core.ArgumentError("Parameter project is required.");
631 } 633 }
632 if (zone == null) { 634 if (zone == null) {
633 throw new core.ArgumentError("Parameter zone is required."); 635 throw new core.ArgumentError("Parameter zone is required.");
634 } 636 }
635 if (instanceGroupManager == null) { 637 if (instanceGroupManager == null) {
636 throw new core.ArgumentError("Parameter instanceGroupManager is required." ); 638 throw new core.ArgumentError("Parameter instanceGroupManager is required." );
637 } 639 }
638 640
639 641
640 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo n_internal.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + common_i nternal.Escaper.ecapeVariable('$instanceGroupManager') + '/setTargetPools'; 642 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap er.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVar iable('$instanceGroupManager') + '/setTargetPools';
641 643
642 var _response = _requester.request(_url, 644 var _response = _requester.request(_url,
643 "POST", 645 "POST",
644 body: _body, 646 body: _body,
645 queryParams: _queryParams, 647 queryParams: _queryParams,
646 uploadOptions: _uploadOptions, 648 uploadOptions: _uploadOptions,
647 uploadMedia: _uploadMedia, 649 uploadMedia: _uploadMedia,
648 downloadOptions: _downloadOptions); 650 downloadOptions: _downloadOptions);
649 return _response.then((data) => new Operation.fromJson(data)); 651 return _response.then((data) => new Operation.fromJson(data));
650 } 652 }
651 653
652 } 654 }
653 655
654 656
655 /** Not documented yet. */
656 class ZoneOperationsResourceApi { 657 class ZoneOperationsResourceApi {
657 final common_internal.ApiRequester _requester; 658 final commons.ApiRequester _requester;
658 659
659 ZoneOperationsResourceApi(common_internal.ApiRequester client) : 660 ZoneOperationsResourceApi(commons.ApiRequester client) :
660 _requester = client; 661 _requester = client;
661 662
662 /** 663 /**
663 * Retrieves the specified zone-specific operation resource. 664 * Retrieves the specified zone-specific operation resource.
664 * 665 *
665 * Request parameters: 666 * Request parameters:
666 * 667 *
667 * [project] - Name of the project scoping this request. 668 * [project] - Name of the project scoping this request.
668 * Value must have pattern 669 * Value must have pattern
669 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{ 1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". 670 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{ 1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))".
670 * 671 *
671 * [zone] - Name of the zone scoping this request. 672 * [zone] - Name of the zone scoping this request.
672 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". 673 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
673 * 674 *
674 * [operation] - Name of the operation resource to return. 675 * [operation] - Name of the operation resource to return.
675 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". 676 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
676 * 677 *
677 * Completes with a [Operation]. 678 * Completes with a [Operation].
678 * 679 *
679 * Completes with a [common.ApiRequestError] if the API endpoint returned an 680 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
680 * error. 681 * error.
681 * 682 *
682 * If the used [http.Client] completes with an error when making a REST call, 683 * If the used [http.Client] completes with an error when making a REST call,
683 * this method will complete with the same error. 684 * this method will complete with the same error.
684 */ 685 */
685 async.Future<Operation> get(core.String project, core.String zone, core.String operation) { 686 async.Future<Operation> get(core.String project, core.String zone, core.String operation) {
686 var _url = null; 687 var _url = null;
687 var _queryParams = new core.Map(); 688 var _queryParams = new core.Map();
688 var _uploadMedia = null; 689 var _uploadMedia = null;
689 var _uploadOptions = null; 690 var _uploadOptions = null;
690 var _downloadOptions = common.DownloadOptions.Metadata; 691 var _downloadOptions = commons.DownloadOptions.Metadata;
691 var _body = null; 692 var _body = null;
692 693
693 if (project == null) { 694 if (project == null) {
694 throw new core.ArgumentError("Parameter project is required."); 695 throw new core.ArgumentError("Parameter project is required.");
695 } 696 }
696 if (zone == null) { 697 if (zone == null) {
697 throw new core.ArgumentError("Parameter zone is required."); 698 throw new core.ArgumentError("Parameter zone is required.");
698 } 699 }
699 if (operation == null) { 700 if (operation == null) {
700 throw new core.ArgumentError("Parameter operation is required."); 701 throw new core.ArgumentError("Parameter operation is required.");
701 } 702 }
702 703
703 704
704 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo n_internal.Escaper.ecapeVariable('$zone') + '/operations/' + common_internal.Esc aper.ecapeVariable('$operation'); 705 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap er.ecapeVariable('$zone') + '/operations/' + commons.Escaper.ecapeVariable('$ope ration');
705 706
706 var _response = _requester.request(_url, 707 var _response = _requester.request(_url,
707 "GET", 708 "GET",
708 body: _body, 709 body: _body,
709 queryParams: _queryParams, 710 queryParams: _queryParams,
710 uploadOptions: _uploadOptions, 711 uploadOptions: _uploadOptions,
711 uploadMedia: _uploadMedia, 712 uploadMedia: _uploadMedia,
712 downloadOptions: _downloadOptions); 713 downloadOptions: _downloadOptions);
713 return _response.then((data) => new Operation.fromJson(data)); 714 return _response.then((data) => new Operation.fromJson(data));
714 } 715 }
(...skipping 15 matching lines...) Expand all
730 * 731 *
731 * [maxResults] - Optional. Maximum count of results to be returned. Maximum 732 * [maxResults] - Optional. Maximum count of results to be returned. Maximum
732 * value is 500 and default value is 500. 733 * value is 500 and default value is 500.
733 * Value must be between "0" and "500". 734 * Value must be between "0" and "500".
734 * 735 *
735 * [pageToken] - Optional. Tag returned by a previous list request truncated 736 * [pageToken] - Optional. Tag returned by a previous list request truncated
736 * by maxResults. Used to continue a previous list request. 737 * by maxResults. Used to continue a previous list request.
737 * 738 *
738 * Completes with a [OperationList]. 739 * Completes with a [OperationList].
739 * 740 *
740 * Completes with a [common.ApiRequestError] if the API endpoint returned an 741 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
741 * error. 742 * error.
742 * 743 *
743 * If the used [http.Client] completes with an error when making a REST call, 744 * If the used [http.Client] completes with an error when making a REST call,
744 * this method will complete with the same error. 745 * this method will complete with the same error.
745 */ 746 */
746 async.Future<OperationList> list(core.String project, core.String zone, {core. String filter, core.int maxResults, core.String pageToken}) { 747 async.Future<OperationList> list(core.String project, core.String zone, {core. String filter, core.int maxResults, core.String pageToken}) {
747 var _url = null; 748 var _url = null;
748 var _queryParams = new core.Map(); 749 var _queryParams = new core.Map();
749 var _uploadMedia = null; 750 var _uploadMedia = null;
750 var _uploadOptions = null; 751 var _uploadOptions = null;
751 var _downloadOptions = common.DownloadOptions.Metadata; 752 var _downloadOptions = commons.DownloadOptions.Metadata;
752 var _body = null; 753 var _body = null;
753 754
754 if (project == null) { 755 if (project == null) {
755 throw new core.ArgumentError("Parameter project is required."); 756 throw new core.ArgumentError("Parameter project is required.");
756 } 757 }
757 if (zone == null) { 758 if (zone == null) {
758 throw new core.ArgumentError("Parameter zone is required."); 759 throw new core.ArgumentError("Parameter zone is required.");
759 } 760 }
760 if (filter != null) { 761 if (filter != null) {
761 _queryParams["filter"] = [filter]; 762 _queryParams["filter"] = [filter];
762 } 763 }
763 if (maxResults != null) { 764 if (maxResults != null) {
764 _queryParams["maxResults"] = ["${maxResults}"]; 765 _queryParams["maxResults"] = ["${maxResults}"];
765 } 766 }
766 if (pageToken != null) { 767 if (pageToken != null) {
767 _queryParams["pageToken"] = [pageToken]; 768 _queryParams["pageToken"] = [pageToken];
768 } 769 }
769 770
770 771
771 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo n_internal.Escaper.ecapeVariable('$zone') + '/operations'; 772 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap er.ecapeVariable('$zone') + '/operations';
772 773
773 var _response = _requester.request(_url, 774 var _response = _requester.request(_url,
774 "GET", 775 "GET",
775 body: _body, 776 body: _body,
776 queryParams: _queryParams, 777 queryParams: _queryParams,
777 uploadOptions: _uploadOptions, 778 uploadOptions: _uploadOptions,
778 uploadMedia: _uploadMedia, 779 uploadMedia: _uploadMedia,
779 downloadOptions: _downloadOptions); 780 downloadOptions: _downloadOptions);
780 return _response.then((data) => new OperationList.fromJson(data)); 781 return _response.then((data) => new OperationList.fromJson(data));
781 } 782 }
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
954 _json["targetPools"] = targetPools; 955 _json["targetPools"] = targetPools;
955 } 956 }
956 if (targetSize != null) { 957 if (targetSize != null) {
957 _json["targetSize"] = targetSize; 958 _json["targetSize"] = targetSize;
958 } 959 }
959 return _json; 960 return _json;
960 } 961 }
961 } 962 }
962 963
963 964
964 /** Not documented yet. */
965 class InstanceGroupManagerList { 965 class InstanceGroupManagerList {
966 /** 966 /**
967 * Unique identifier for the resource; defined by the server (output only). 967 * Unique identifier for the resource; defined by the server (output only).
968 */ 968 */
969 core.String id; 969 core.String id;
970 970
971 /** A list of instance resources. */ 971 /** A list of instance resources. */
972 core.List<InstanceGroupManager> items; 972 core.List<InstanceGroupManager> items;
973 973
974 /** Type of resource. */ 974 /** Type of resource. */
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
1016 _json["nextPageToken"] = nextPageToken; 1016 _json["nextPageToken"] = nextPageToken;
1017 } 1017 }
1018 if (selfLink != null) { 1018 if (selfLink != null) {
1019 _json["selfLink"] = selfLink; 1019 _json["selfLink"] = selfLink;
1020 } 1020 }
1021 return _json; 1021 return _json;
1022 } 1022 }
1023 } 1023 }
1024 1024
1025 1025
1026 /** Not documented yet. */
1027 class InstanceGroupManagersAbandonInstancesRequest { 1026 class InstanceGroupManagersAbandonInstancesRequest {
1028 /** 1027 /**
1029 * The names of one or more instances to abandon. For example: 1028 * The names of one or more instances to abandon. For example:
1030 * { 'instances': [ 'instance-c3po', 'instance-r2d2' ] } 1029 * { 'instances': [ 'instance-c3po', 'instance-r2d2' ] }
1031 */ 1030 */
1032 core.List<core.String> instances; 1031 core.List<core.String> instances;
1033 1032
1034 1033
1035 InstanceGroupManagersAbandonInstancesRequest(); 1034 InstanceGroupManagersAbandonInstancesRequest();
1036 1035
1037 InstanceGroupManagersAbandonInstancesRequest.fromJson(core.Map _json) { 1036 InstanceGroupManagersAbandonInstancesRequest.fromJson(core.Map _json) {
1038 if (_json.containsKey("instances")) { 1037 if (_json.containsKey("instances")) {
1039 instances = _json["instances"]; 1038 instances = _json["instances"];
1040 } 1039 }
1041 } 1040 }
1042 1041
1043 core.Map toJson() { 1042 core.Map toJson() {
1044 var _json = new core.Map(); 1043 var _json = new core.Map();
1045 if (instances != null) { 1044 if (instances != null) {
1046 _json["instances"] = instances; 1045 _json["instances"] = instances;
1047 } 1046 }
1048 return _json; 1047 return _json;
1049 } 1048 }
1050 } 1049 }
1051 1050
1052 1051
1053 /** Not documented yet. */
1054 class InstanceGroupManagersDeleteInstancesRequest { 1052 class InstanceGroupManagersDeleteInstancesRequest {
1055 /** 1053 /**
1056 * Names of instances to delete. 1054 * Names of instances to delete.
1057 * 1055 *
1058 * Example: 'instance-foo', 'instance-bar' 1056 * Example: 'instance-foo', 'instance-bar'
1059 */ 1057 */
1060 core.List<core.String> instances; 1058 core.List<core.String> instances;
1061 1059
1062 1060
1063 InstanceGroupManagersDeleteInstancesRequest(); 1061 InstanceGroupManagersDeleteInstancesRequest();
1064 1062
1065 InstanceGroupManagersDeleteInstancesRequest.fromJson(core.Map _json) { 1063 InstanceGroupManagersDeleteInstancesRequest.fromJson(core.Map _json) {
1066 if (_json.containsKey("instances")) { 1064 if (_json.containsKey("instances")) {
1067 instances = _json["instances"]; 1065 instances = _json["instances"];
1068 } 1066 }
1069 } 1067 }
1070 1068
1071 core.Map toJson() { 1069 core.Map toJson() {
1072 var _json = new core.Map(); 1070 var _json = new core.Map();
1073 if (instances != null) { 1071 if (instances != null) {
1074 _json["instances"] = instances; 1072 _json["instances"] = instances;
1075 } 1073 }
1076 return _json; 1074 return _json;
1077 } 1075 }
1078 } 1076 }
1079 1077
1080 1078
1081 /** Not documented yet. */
1082 class InstanceGroupManagersRecreateInstancesRequest { 1079 class InstanceGroupManagersRecreateInstancesRequest {
1083 /** 1080 /**
1084 * The names of one or more instances to recreate. For example: 1081 * The names of one or more instances to recreate. For example:
1085 * { 'instances': [ 'instance-c3po', 'instance-r2d2' ] } 1082 * { 'instances': [ 'instance-c3po', 'instance-r2d2' ] }
1086 */ 1083 */
1087 core.List<core.String> instances; 1084 core.List<core.String> instances;
1088 1085
1089 1086
1090 InstanceGroupManagersRecreateInstancesRequest(); 1087 InstanceGroupManagersRecreateInstancesRequest();
1091 1088
1092 InstanceGroupManagersRecreateInstancesRequest.fromJson(core.Map _json) { 1089 InstanceGroupManagersRecreateInstancesRequest.fromJson(core.Map _json) {
1093 if (_json.containsKey("instances")) { 1090 if (_json.containsKey("instances")) {
1094 instances = _json["instances"]; 1091 instances = _json["instances"];
1095 } 1092 }
1096 } 1093 }
1097 1094
1098 core.Map toJson() { 1095 core.Map toJson() {
1099 var _json = new core.Map(); 1096 var _json = new core.Map();
1100 if (instances != null) { 1097 if (instances != null) {
1101 _json["instances"] = instances; 1098 _json["instances"] = instances;
1102 } 1099 }
1103 return _json; 1100 return _json;
1104 } 1101 }
1105 } 1102 }
1106 1103
1107 1104
1108 /** Not documented yet. */
1109 class InstanceGroupManagersSetInstanceTemplateRequest { 1105 class InstanceGroupManagersSetInstanceTemplateRequest {
1110 /** 1106 /**
1111 * The full URL to an Instance Template from which all new instances will be 1107 * The full URL to an Instance Template from which all new instances will be
1112 * created. 1108 * created.
1113 */ 1109 */
1114 core.String instanceTemplate; 1110 core.String instanceTemplate;
1115 1111
1116 1112
1117 InstanceGroupManagersSetInstanceTemplateRequest(); 1113 InstanceGroupManagersSetInstanceTemplateRequest();
1118 1114
1119 InstanceGroupManagersSetInstanceTemplateRequest.fromJson(core.Map _json) { 1115 InstanceGroupManagersSetInstanceTemplateRequest.fromJson(core.Map _json) {
1120 if (_json.containsKey("instanceTemplate")) { 1116 if (_json.containsKey("instanceTemplate")) {
1121 instanceTemplate = _json["instanceTemplate"]; 1117 instanceTemplate = _json["instanceTemplate"];
1122 } 1118 }
1123 } 1119 }
1124 1120
1125 core.Map toJson() { 1121 core.Map toJson() {
1126 var _json = new core.Map(); 1122 var _json = new core.Map();
1127 if (instanceTemplate != null) { 1123 if (instanceTemplate != null) {
1128 _json["instanceTemplate"] = instanceTemplate; 1124 _json["instanceTemplate"] = instanceTemplate;
1129 } 1125 }
1130 return _json; 1126 return _json;
1131 } 1127 }
1132 } 1128 }
1133 1129
1134 1130
1135 /** Not documented yet. */
1136 class InstanceGroupManagersSetTargetPoolsRequest { 1131 class InstanceGroupManagersSetTargetPoolsRequest {
1137 /** 1132 /**
1138 * The current fingerprint of the Instance Group Manager resource. If this 1133 * The current fingerprint of the Instance Group Manager resource. If this
1139 * does not match the server-side fingerprint of the resource, then the 1134 * does not match the server-side fingerprint of the resource, then the
1140 * request will be rejected. 1135 * request will be rejected.
1141 */ 1136 */
1142 core.String fingerprint; 1137 core.String fingerprint;
1143 1138
1144 core.List<core.int> get fingerprintAsBytes { 1139 core.List<core.int> get fingerprintAsBytes {
1145 return crypto.CryptoUtils.base64StringToBytes(fingerprint); 1140 return crypto.CryptoUtils.base64StringToBytes(fingerprint);
(...skipping 28 matching lines...) Expand all
1174 _json["fingerprint"] = fingerprint; 1169 _json["fingerprint"] = fingerprint;
1175 } 1170 }
1176 if (targetPools != null) { 1171 if (targetPools != null) {
1177 _json["targetPools"] = targetPools; 1172 _json["targetPools"] = targetPools;
1178 } 1173 }
1179 return _json; 1174 return _json;
1180 } 1175 }
1181 } 1176 }
1182 1177
1183 1178
1184 /** Not documented yet. */
1185 class OperationErrorErrors { 1179 class OperationErrorErrors {
1186 /** [Output Only] The error type identifier for this error. */ 1180 /** [Output Only] The error type identifier for this error. */
1187 core.String code; 1181 core.String code;
1188 1182
1189 /** 1183 /**
1190 * [Output Only] Indicates the field in the request which caused the error. 1184 * [Output Only] Indicates the field in the request which caused the error.
1191 * This property is optional. 1185 * This property is optional.
1192 */ 1186 */
1193 core.String location; 1187 core.String location;
1194 1188
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
1249 core.Map toJson() { 1243 core.Map toJson() {
1250 var _json = new core.Map(); 1244 var _json = new core.Map();
1251 if (errors != null) { 1245 if (errors != null) {
1252 _json["errors"] = errors.map((value) => (value).toJson()).toList(); 1246 _json["errors"] = errors.map((value) => (value).toJson()).toList();
1253 } 1247 }
1254 return _json; 1248 return _json;
1255 } 1249 }
1256 } 1250 }
1257 1251
1258 1252
1259 /** Not documented yet. */
1260 class OperationWarningsData { 1253 class OperationWarningsData {
1261 /** [Output Only] Metadata key for this warning. */ 1254 /** [Output Only] Metadata key for this warning. */
1262 core.String key; 1255 core.String key;
1263 1256
1264 /** [Output Only] Metadata value for this warning. */ 1257 /** [Output Only] Metadata value for this warning. */
1265 core.String value; 1258 core.String value;
1266 1259
1267 1260
1268 OperationWarningsData(); 1261 OperationWarningsData();
1269 1262
(...skipping 12 matching lines...) Expand all
1282 _json["key"] = key; 1275 _json["key"] = key;
1283 } 1276 }
1284 if (value != null) { 1277 if (value != null) {
1285 _json["value"] = value; 1278 _json["value"] = value;
1286 } 1279 }
1287 return _json; 1280 return _json;
1288 } 1281 }
1289 } 1282 }
1290 1283
1291 1284
1292 /** Not documented yet. */
1293 class OperationWarnings { 1285 class OperationWarnings {
1294 /** 1286 /**
1295 * [Output only] The warning type identifier for this warning. 1287 * [Output only] The warning type identifier for this warning.
1296 * Possible string values are: 1288 * Possible string values are:
1297 * - "DEPRECATED_RESOURCE_USED" 1289 * - "DEPRECATED_RESOURCE_USED"
1298 * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" 1290 * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE"
1299 * - "INJECTED_KERNELS_DEPRECATED" 1291 * - "INJECTED_KERNELS_DEPRECATED"
1300 * - "NEXT_HOP_ADDRESS_NOT_ASSIGNED" 1292 * - "NEXT_HOP_ADDRESS_NOT_ASSIGNED"
1301 * - "NEXT_HOP_CANNOT_IP_FORWARD" 1293 * - "NEXT_HOP_CANNOT_IP_FORWARD"
1302 * - "NEXT_HOP_INSTANCE_NOT_FOUND" 1294 * - "NEXT_HOP_INSTANCE_NOT_FOUND"
1303 * - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" 1295 * - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK"
1304 * - "NEXT_HOP_NOT_RUNNING" 1296 * - "NEXT_HOP_NOT_RUNNING"
1305 * - "NO_RESULTS_ON_PAGE" 1297 * - "NO_RESULTS_ON_PAGE"
1306 * - "REQUIRED_TOS_AGREEMENT" 1298 * - "REQUIRED_TOS_AGREEMENT"
1307 * - "RESOURCE_NOT_DELETED" 1299 * - "RESOURCE_NOT_DELETED"
1300 * - "SINGLE_INSTANCE_PROPERTY_TEMPLATE"
1308 * - "UNREACHABLE" 1301 * - "UNREACHABLE"
1309 */ 1302 */
1310 core.String code; 1303 core.String code;
1311 1304
1312 /** [Output only] Metadata for this warning in key:value format. */ 1305 /** [Output only] Metadata for this warning in key:value format. */
1313 core.List<OperationWarningsData> data; 1306 core.List<OperationWarningsData> data;
1314 1307
1315 /** [Output only] Optional human-readable details for this warning. */ 1308 /** [Output only] Optional human-readable details for this warning. */
1316 core.String message; 1309 core.String message;
1317 1310
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
1606 _json["warnings"] = warnings.map((value) => (value).toJson()).toList(); 1599 _json["warnings"] = warnings.map((value) => (value).toJson()).toList();
1607 } 1600 }
1608 if (zone != null) { 1601 if (zone != null) {
1609 _json["zone"] = zone; 1602 _json["zone"] = zone;
1610 } 1603 }
1611 return _json; 1604 return _json;
1612 } 1605 }
1613 } 1606 }
1614 1607
1615 1608
1616 /** Not documented yet. */
1617 class OperationList { 1609 class OperationList {
1618 /** 1610 /**
1619 * Unique identifier for the resource; defined by the server (output only). 1611 * Unique identifier for the resource; defined by the server (output only).
1620 */ 1612 */
1621 core.String id; 1613 core.String id;
1622 1614
1623 /** The operation resources. */ 1615 /** The operation resources. */
1624 core.List<Operation> items; 1616 core.List<Operation> items;
1625 1617
1626 /** Type of resource. */ 1618 /** Type of resource. */
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
1666 } 1658 }
1667 if (nextPageToken != null) { 1659 if (nextPageToken != null) {
1668 _json["nextPageToken"] = nextPageToken; 1660 _json["nextPageToken"] = nextPageToken;
1669 } 1661 }
1670 if (selfLink != null) { 1662 if (selfLink != null) {
1671 _json["selfLink"] = selfLink; 1663 _json["selfLink"] = selfLink;
1672 } 1664 }
1673 return _json; 1665 return _json;
1674 } 1666 }
1675 } 1667 }
1676
1677
OLDNEW
« no previous file with comments | « generated/googleapis_beta/lib/pubsub/v1beta2.dart ('k') | generated/googleapis_beta/lib/replicapoolupdater/v1beta1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698