OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 |
1 library googleapis_beta.autoscaler.v1beta2; | 3 library googleapis_beta.autoscaler.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 autoscaler/v1beta2'; |
15 | 18 |
16 /** | 19 /** |
17 * The Google Compute Engine Autoscaler API provides autoscaling for groups of | 20 * The Google Compute Engine Autoscaler API provides autoscaling for groups of |
18 * Cloud VMs. | 21 * Cloud VMs. |
19 */ | 22 */ |
20 class AutoscalerApi { | 23 class AutoscalerApi { |
21 /** View and manage your Google Compute Engine resources */ | 24 /** View and manage your Google Compute Engine resources */ |
22 static const ComputeScope = "https://www.googleapis.com/auth/compute"; | 25 static const ComputeScope = "https://www.googleapis.com/auth/compute"; |
23 | 26 |
24 /** View your Google Compute Engine resources */ | 27 /** View your Google Compute Engine resources */ |
25 static const ComputeReadonlyScope = "https://www.googleapis.com/auth/compute.r
eadonly"; | 28 static const ComputeReadonlyScope = "https://www.googleapis.com/auth/compute.r
eadonly"; |
26 | 29 |
27 | 30 |
28 final common_internal.ApiRequester _requester; | 31 final commons.ApiRequester _requester; |
29 | 32 |
30 AutoscalersResourceApi get autoscalers => new AutoscalersResourceApi(_requeste
r); | 33 AutoscalersResourceApi get autoscalers => new AutoscalersResourceApi(_requeste
r); |
31 ZoneOperationsResourceApi get zoneOperations => new ZoneOperationsResourceApi(
_requester); | 34 ZoneOperationsResourceApi get zoneOperations => new ZoneOperationsResourceApi(
_requester); |
32 ZonesResourceApi get zones => new ZonesResourceApi(_requester); | 35 ZonesResourceApi get zones => new ZonesResourceApi(_requester); |
33 | 36 |
34 AutoscalerApi(http.Client client, {core.String rootUrl: "https://www.googleapi
s.com/", core.String servicePath: "autoscaler/v1beta2/"}) : | 37 AutoscalerApi(http.Client client, {core.String rootUrl: "https://www.googleapi
s.com/", core.String servicePath: "autoscaler/v1beta2/"}) : |
35 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath
); | 38 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
36 } | 39 } |
37 | 40 |
38 | 41 |
39 /** Not documented yet. */ | |
40 class AutoscalersResourceApi { | 42 class AutoscalersResourceApi { |
41 final common_internal.ApiRequester _requester; | 43 final commons.ApiRequester _requester; |
42 | 44 |
43 AutoscalersResourceApi(common_internal.ApiRequester client) : | 45 AutoscalersResourceApi(commons.ApiRequester client) : |
44 _requester = client; | 46 _requester = client; |
45 | 47 |
46 /** | 48 /** |
47 * Deletes the specified Autoscaler resource. | 49 * Deletes the specified Autoscaler resource. |
48 * | 50 * |
49 * Request parameters: | 51 * Request parameters: |
50 * | 52 * |
51 * [project] - Project ID of Autoscaler resource. | 53 * [project] - Project ID of Autoscaler resource. |
52 * | 54 * |
53 * [zone] - Zone name of Autoscaler resource. | 55 * [zone] - Zone name of Autoscaler resource. |
54 * | 56 * |
55 * [autoscaler] - Name of the Autoscaler resource. | 57 * [autoscaler] - Name of the Autoscaler resource. |
56 * | 58 * |
57 * Completes with a [Operation]. | 59 * Completes with a [Operation]. |
58 * | 60 * |
59 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 61 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
60 * error. | 62 * error. |
61 * | 63 * |
62 * If the used [http.Client] completes with an error when making a REST call, | 64 * If the used [http.Client] completes with an error when making a REST call, |
63 * this method will complete with the same error. | 65 * this method will complete with the same error. |
64 */ | 66 */ |
65 async.Future<Operation> delete(core.String project, core.String zone, core.Str
ing autoscaler) { | 67 async.Future<Operation> delete(core.String project, core.String zone, core.Str
ing autoscaler) { |
66 var _url = null; | 68 var _url = null; |
67 var _queryParams = new core.Map(); | 69 var _queryParams = new core.Map(); |
68 var _uploadMedia = null; | 70 var _uploadMedia = null; |
69 var _uploadOptions = null; | 71 var _uploadOptions = null; |
70 var _downloadOptions = common.DownloadOptions.Metadata; | 72 var _downloadOptions = commons.DownloadOptions.Metadata; |
71 var _body = null; | 73 var _body = null; |
72 | 74 |
73 if (project == null) { | 75 if (project == null) { |
74 throw new core.ArgumentError("Parameter project is required."); | 76 throw new core.ArgumentError("Parameter project is required."); |
75 } | 77 } |
76 if (zone == null) { | 78 if (zone == null) { |
77 throw new core.ArgumentError("Parameter zone is required."); | 79 throw new core.ArgumentError("Parameter zone is required."); |
78 } | 80 } |
79 if (autoscaler == null) { | 81 if (autoscaler == null) { |
80 throw new core.ArgumentError("Parameter autoscaler is required."); | 82 throw new core.ArgumentError("Parameter autoscaler is required."); |
81 } | 83 } |
82 | 84 |
83 | 85 |
84 _url = 'projects/' + common_internal.Escaper.ecapeVariable('$project') + '/z
ones/' + common_internal.Escaper.ecapeVariable('$zone') + '/autoscalers/' + comm
on_internal.Escaper.ecapeVariable('$autoscaler'); | 86 _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/zones/' +
commons.Escaper.ecapeVariable('$zone') + '/autoscalers/' + commons.Escaper.ecap
eVariable('$autoscaler'); |
85 | 87 |
86 var _response = _requester.request(_url, | 88 var _response = _requester.request(_url, |
87 "DELETE", | 89 "DELETE", |
88 body: _body, | 90 body: _body, |
89 queryParams: _queryParams, | 91 queryParams: _queryParams, |
90 uploadOptions: _uploadOptions, | 92 uploadOptions: _uploadOptions, |
91 uploadMedia: _uploadMedia, | 93 uploadMedia: _uploadMedia, |
92 downloadOptions: _downloadOptions); | 94 downloadOptions: _downloadOptions); |
93 return _response.then((data) => new Operation.fromJson(data)); | 95 return _response.then((data) => new Operation.fromJson(data)); |
94 } | 96 } |
95 | 97 |
96 /** | 98 /** |
97 * Gets the specified Autoscaler resource. | 99 * Gets the specified Autoscaler resource. |
98 * | 100 * |
99 * Request parameters: | 101 * Request parameters: |
100 * | 102 * |
101 * [project] - Project ID of Autoscaler resource. | 103 * [project] - Project ID of Autoscaler resource. |
102 * | 104 * |
103 * [zone] - Zone name of Autoscaler resource. | 105 * [zone] - Zone name of Autoscaler resource. |
104 * | 106 * |
105 * [autoscaler] - Name of the Autoscaler resource. | 107 * [autoscaler] - Name of the Autoscaler resource. |
106 * | 108 * |
107 * Completes with a [Autoscaler]. | 109 * Completes with a [Autoscaler]. |
108 * | 110 * |
109 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 111 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
110 * error. | 112 * error. |
111 * | 113 * |
112 * If the used [http.Client] completes with an error when making a REST call, | 114 * If the used [http.Client] completes with an error when making a REST call, |
113 * this method will complete with the same error. | 115 * this method will complete with the same error. |
114 */ | 116 */ |
115 async.Future<Autoscaler> get(core.String project, core.String zone, core.Strin
g autoscaler) { | 117 async.Future<Autoscaler> get(core.String project, core.String zone, core.Strin
g autoscaler) { |
116 var _url = null; | 118 var _url = null; |
117 var _queryParams = new core.Map(); | 119 var _queryParams = new core.Map(); |
118 var _uploadMedia = null; | 120 var _uploadMedia = null; |
119 var _uploadOptions = null; | 121 var _uploadOptions = null; |
120 var _downloadOptions = common.DownloadOptions.Metadata; | 122 var _downloadOptions = commons.DownloadOptions.Metadata; |
121 var _body = null; | 123 var _body = null; |
122 | 124 |
123 if (project == null) { | 125 if (project == null) { |
124 throw new core.ArgumentError("Parameter project is required."); | 126 throw new core.ArgumentError("Parameter project is required."); |
125 } | 127 } |
126 if (zone == null) { | 128 if (zone == null) { |
127 throw new core.ArgumentError("Parameter zone is required."); | 129 throw new core.ArgumentError("Parameter zone is required."); |
128 } | 130 } |
129 if (autoscaler == null) { | 131 if (autoscaler == null) { |
130 throw new core.ArgumentError("Parameter autoscaler is required."); | 132 throw new core.ArgumentError("Parameter autoscaler is required."); |
131 } | 133 } |
132 | 134 |
133 | 135 |
134 _url = 'projects/' + common_internal.Escaper.ecapeVariable('$project') + '/z
ones/' + common_internal.Escaper.ecapeVariable('$zone') + '/autoscalers/' + comm
on_internal.Escaper.ecapeVariable('$autoscaler'); | 136 _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/zones/' +
commons.Escaper.ecapeVariable('$zone') + '/autoscalers/' + commons.Escaper.ecap
eVariable('$autoscaler'); |
135 | 137 |
136 var _response = _requester.request(_url, | 138 var _response = _requester.request(_url, |
137 "GET", | 139 "GET", |
138 body: _body, | 140 body: _body, |
139 queryParams: _queryParams, | 141 queryParams: _queryParams, |
140 uploadOptions: _uploadOptions, | 142 uploadOptions: _uploadOptions, |
141 uploadMedia: _uploadMedia, | 143 uploadMedia: _uploadMedia, |
142 downloadOptions: _downloadOptions); | 144 downloadOptions: _downloadOptions); |
143 return _response.then((data) => new Autoscaler.fromJson(data)); | 145 return _response.then((data) => new Autoscaler.fromJson(data)); |
144 } | 146 } |
145 | 147 |
146 /** | 148 /** |
147 * Adds new Autoscaler resource. | 149 * Adds new Autoscaler resource. |
148 * | 150 * |
149 * [request] - The metadata request object. | 151 * [request] - The metadata request object. |
150 * | 152 * |
151 * Request parameters: | 153 * Request parameters: |
152 * | 154 * |
153 * [project] - Project ID of Autoscaler resource. | 155 * [project] - Project ID of Autoscaler resource. |
154 * | 156 * |
155 * [zone] - Zone name of Autoscaler resource. | 157 * [zone] - Zone name of Autoscaler resource. |
156 * | 158 * |
157 * Completes with a [Operation]. | 159 * Completes with a [Operation]. |
158 * | 160 * |
159 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 161 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
160 * error. | 162 * error. |
161 * | 163 * |
162 * If the used [http.Client] completes with an error when making a REST call, | 164 * If the used [http.Client] completes with an error when making a REST call, |
163 * this method will complete with the same error. | 165 * this method will complete with the same error. |
164 */ | 166 */ |
165 async.Future<Operation> insert(Autoscaler request, core.String project, core.S
tring zone) { | 167 async.Future<Operation> insert(Autoscaler request, core.String project, core.S
tring zone) { |
166 var _url = null; | 168 var _url = null; |
167 var _queryParams = new core.Map(); | 169 var _queryParams = new core.Map(); |
168 var _uploadMedia = null; | 170 var _uploadMedia = null; |
169 var _uploadOptions = null; | 171 var _uploadOptions = null; |
170 var _downloadOptions = common.DownloadOptions.Metadata; | 172 var _downloadOptions = commons.DownloadOptions.Metadata; |
171 var _body = null; | 173 var _body = null; |
172 | 174 |
173 if (request != null) { | 175 if (request != null) { |
174 _body = convert.JSON.encode((request).toJson()); | 176 _body = convert.JSON.encode((request).toJson()); |
175 } | 177 } |
176 if (project == null) { | 178 if (project == null) { |
177 throw new core.ArgumentError("Parameter project is required."); | 179 throw new core.ArgumentError("Parameter project is required."); |
178 } | 180 } |
179 if (zone == null) { | 181 if (zone == null) { |
180 throw new core.ArgumentError("Parameter zone is required."); | 182 throw new core.ArgumentError("Parameter zone is required."); |
181 } | 183 } |
182 | 184 |
183 | 185 |
184 _url = 'projects/' + common_internal.Escaper.ecapeVariable('$project') + '/z
ones/' + common_internal.Escaper.ecapeVariable('$zone') + '/autoscalers'; | 186 _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/zones/' +
commons.Escaper.ecapeVariable('$zone') + '/autoscalers'; |
185 | 187 |
186 var _response = _requester.request(_url, | 188 var _response = _requester.request(_url, |
187 "POST", | 189 "POST", |
188 body: _body, | 190 body: _body, |
189 queryParams: _queryParams, | 191 queryParams: _queryParams, |
190 uploadOptions: _uploadOptions, | 192 uploadOptions: _uploadOptions, |
191 uploadMedia: _uploadMedia, | 193 uploadMedia: _uploadMedia, |
192 downloadOptions: _downloadOptions); | 194 downloadOptions: _downloadOptions); |
193 return _response.then((data) => new Operation.fromJson(data)); | 195 return _response.then((data) => new Operation.fromJson(data)); |
194 } | 196 } |
195 | 197 |
196 /** | 198 /** |
197 * Lists all Autoscaler resources in this zone. | 199 * Lists all Autoscaler resources in this zone. |
198 * | 200 * |
199 * Request parameters: | 201 * Request parameters: |
200 * | 202 * |
201 * [project] - Project ID of Autoscaler resource. | 203 * [project] - Project ID of Autoscaler resource. |
202 * | 204 * |
203 * [zone] - Zone name of Autoscaler resource. | 205 * [zone] - Zone name of Autoscaler resource. |
204 * | 206 * |
205 * [filter] - null | 207 * [filter] - null |
206 * | 208 * |
207 * [maxResults] - null | 209 * [maxResults] - null |
208 * Value must be between "0" and "500". | 210 * Value must be between "0" and "500". |
209 * | 211 * |
210 * [pageToken] - null | 212 * [pageToken] - null |
211 * | 213 * |
212 * Completes with a [AutoscalerListResponse]. | 214 * Completes with a [AutoscalerListResponse]. |
213 * | 215 * |
214 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 216 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
215 * error. | 217 * error. |
216 * | 218 * |
217 * If the used [http.Client] completes with an error when making a REST call, | 219 * If the used [http.Client] completes with an error when making a REST call, |
218 * this method will complete with the same error. | 220 * this method will complete with the same error. |
219 */ | 221 */ |
220 async.Future<AutoscalerListResponse> list(core.String project, core.String zon
e, {core.String filter, core.int maxResults, core.String pageToken}) { | 222 async.Future<AutoscalerListResponse> list(core.String project, core.String zon
e, {core.String filter, core.int maxResults, core.String pageToken}) { |
221 var _url = null; | 223 var _url = null; |
222 var _queryParams = new core.Map(); | 224 var _queryParams = new core.Map(); |
223 var _uploadMedia = null; | 225 var _uploadMedia = null; |
224 var _uploadOptions = null; | 226 var _uploadOptions = null; |
225 var _downloadOptions = common.DownloadOptions.Metadata; | 227 var _downloadOptions = commons.DownloadOptions.Metadata; |
226 var _body = null; | 228 var _body = null; |
227 | 229 |
228 if (project == null) { | 230 if (project == null) { |
229 throw new core.ArgumentError("Parameter project is required."); | 231 throw new core.ArgumentError("Parameter project is required."); |
230 } | 232 } |
231 if (zone == null) { | 233 if (zone == null) { |
232 throw new core.ArgumentError("Parameter zone is required."); | 234 throw new core.ArgumentError("Parameter zone is required."); |
233 } | 235 } |
234 if (filter != null) { | 236 if (filter != null) { |
235 _queryParams["filter"] = [filter]; | 237 _queryParams["filter"] = [filter]; |
236 } | 238 } |
237 if (maxResults != null) { | 239 if (maxResults != null) { |
238 _queryParams["maxResults"] = ["${maxResults}"]; | 240 _queryParams["maxResults"] = ["${maxResults}"]; |
239 } | 241 } |
240 if (pageToken != null) { | 242 if (pageToken != null) { |
241 _queryParams["pageToken"] = [pageToken]; | 243 _queryParams["pageToken"] = [pageToken]; |
242 } | 244 } |
243 | 245 |
244 | 246 |
245 _url = 'projects/' + common_internal.Escaper.ecapeVariable('$project') + '/z
ones/' + common_internal.Escaper.ecapeVariable('$zone') + '/autoscalers'; | 247 _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/zones/' +
commons.Escaper.ecapeVariable('$zone') + '/autoscalers'; |
246 | 248 |
247 var _response = _requester.request(_url, | 249 var _response = _requester.request(_url, |
248 "GET", | 250 "GET", |
249 body: _body, | 251 body: _body, |
250 queryParams: _queryParams, | 252 queryParams: _queryParams, |
251 uploadOptions: _uploadOptions, | 253 uploadOptions: _uploadOptions, |
252 uploadMedia: _uploadMedia, | 254 uploadMedia: _uploadMedia, |
253 downloadOptions: _downloadOptions); | 255 downloadOptions: _downloadOptions); |
254 return _response.then((data) => new AutoscalerListResponse.fromJson(data)); | 256 return _response.then((data) => new AutoscalerListResponse.fromJson(data)); |
255 } | 257 } |
256 | 258 |
257 /** | 259 /** |
258 * Update the entire content of the Autoscaler resource. This method supports | 260 * Update the entire content of the Autoscaler resource. This method supports |
259 * patch semantics. | 261 * patch semantics. |
260 * | 262 * |
261 * [request] - The metadata request object. | 263 * [request] - The metadata request object. |
262 * | 264 * |
263 * Request parameters: | 265 * Request parameters: |
264 * | 266 * |
265 * [project] - Project ID of Autoscaler resource. | 267 * [project] - Project ID of Autoscaler resource. |
266 * | 268 * |
267 * [zone] - Zone name of Autoscaler resource. | 269 * [zone] - Zone name of Autoscaler resource. |
268 * | 270 * |
269 * [autoscaler] - Name of the Autoscaler resource. | 271 * [autoscaler] - Name of the Autoscaler resource. |
270 * | 272 * |
271 * Completes with a [Operation]. | 273 * Completes with a [Operation]. |
272 * | 274 * |
273 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 275 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
274 * error. | 276 * error. |
275 * | 277 * |
276 * If the used [http.Client] completes with an error when making a REST call, | 278 * If the used [http.Client] completes with an error when making a REST call, |
277 * this method will complete with the same error. | 279 * this method will complete with the same error. |
278 */ | 280 */ |
279 async.Future<Operation> patch(Autoscaler request, core.String project, core.St
ring zone, core.String autoscaler) { | 281 async.Future<Operation> patch(Autoscaler request, core.String project, core.St
ring zone, core.String autoscaler) { |
280 var _url = null; | 282 var _url = null; |
281 var _queryParams = new core.Map(); | 283 var _queryParams = new core.Map(); |
282 var _uploadMedia = null; | 284 var _uploadMedia = null; |
283 var _uploadOptions = null; | 285 var _uploadOptions = null; |
284 var _downloadOptions = common.DownloadOptions.Metadata; | 286 var _downloadOptions = commons.DownloadOptions.Metadata; |
285 var _body = null; | 287 var _body = null; |
286 | 288 |
287 if (request != null) { | 289 if (request != null) { |
288 _body = convert.JSON.encode((request).toJson()); | 290 _body = convert.JSON.encode((request).toJson()); |
289 } | 291 } |
290 if (project == null) { | 292 if (project == null) { |
291 throw new core.ArgumentError("Parameter project is required."); | 293 throw new core.ArgumentError("Parameter project is required."); |
292 } | 294 } |
293 if (zone == null) { | 295 if (zone == null) { |
294 throw new core.ArgumentError("Parameter zone is required."); | 296 throw new core.ArgumentError("Parameter zone is required."); |
295 } | 297 } |
296 if (autoscaler == null) { | 298 if (autoscaler == null) { |
297 throw new core.ArgumentError("Parameter autoscaler is required."); | 299 throw new core.ArgumentError("Parameter autoscaler is required."); |
298 } | 300 } |
299 | 301 |
300 | 302 |
301 _url = 'projects/' + common_internal.Escaper.ecapeVariable('$project') + '/z
ones/' + common_internal.Escaper.ecapeVariable('$zone') + '/autoscalers/' + comm
on_internal.Escaper.ecapeVariable('$autoscaler'); | 303 _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/zones/' +
commons.Escaper.ecapeVariable('$zone') + '/autoscalers/' + commons.Escaper.ecap
eVariable('$autoscaler'); |
302 | 304 |
303 var _response = _requester.request(_url, | 305 var _response = _requester.request(_url, |
304 "PATCH", | 306 "PATCH", |
305 body: _body, | 307 body: _body, |
306 queryParams: _queryParams, | 308 queryParams: _queryParams, |
307 uploadOptions: _uploadOptions, | 309 uploadOptions: _uploadOptions, |
308 uploadMedia: _uploadMedia, | 310 uploadMedia: _uploadMedia, |
309 downloadOptions: _downloadOptions); | 311 downloadOptions: _downloadOptions); |
310 return _response.then((data) => new Operation.fromJson(data)); | 312 return _response.then((data) => new Operation.fromJson(data)); |
311 } | 313 } |
312 | 314 |
313 /** | 315 /** |
314 * Update the entire content of the Autoscaler resource. | 316 * Update the entire content of the Autoscaler resource. |
315 * | 317 * |
316 * [request] - The metadata request object. | 318 * [request] - The metadata request object. |
317 * | 319 * |
318 * Request parameters: | 320 * Request parameters: |
319 * | 321 * |
320 * [project] - Project ID of Autoscaler resource. | 322 * [project] - Project ID of Autoscaler resource. |
321 * | 323 * |
322 * [zone] - Zone name of Autoscaler resource. | 324 * [zone] - Zone name of Autoscaler resource. |
323 * | 325 * |
324 * [autoscaler] - Name of the Autoscaler resource. | 326 * [autoscaler] - Name of the Autoscaler resource. |
325 * | 327 * |
326 * Completes with a [Operation]. | 328 * Completes with a [Operation]. |
327 * | 329 * |
328 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 330 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
329 * error. | 331 * error. |
330 * | 332 * |
331 * If the used [http.Client] completes with an error when making a REST call, | 333 * If the used [http.Client] completes with an error when making a REST call, |
332 * this method will complete with the same error. | 334 * this method will complete with the same error. |
333 */ | 335 */ |
334 async.Future<Operation> update(Autoscaler request, core.String project, core.S
tring zone, core.String autoscaler) { | 336 async.Future<Operation> update(Autoscaler request, core.String project, core.S
tring zone, core.String autoscaler) { |
335 var _url = null; | 337 var _url = null; |
336 var _queryParams = new core.Map(); | 338 var _queryParams = new core.Map(); |
337 var _uploadMedia = null; | 339 var _uploadMedia = null; |
338 var _uploadOptions = null; | 340 var _uploadOptions = null; |
339 var _downloadOptions = common.DownloadOptions.Metadata; | 341 var _downloadOptions = commons.DownloadOptions.Metadata; |
340 var _body = null; | 342 var _body = null; |
341 | 343 |
342 if (request != null) { | 344 if (request != null) { |
343 _body = convert.JSON.encode((request).toJson()); | 345 _body = convert.JSON.encode((request).toJson()); |
344 } | 346 } |
345 if (project == null) { | 347 if (project == null) { |
346 throw new core.ArgumentError("Parameter project is required."); | 348 throw new core.ArgumentError("Parameter project is required."); |
347 } | 349 } |
348 if (zone == null) { | 350 if (zone == null) { |
349 throw new core.ArgumentError("Parameter zone is required."); | 351 throw new core.ArgumentError("Parameter zone is required."); |
350 } | 352 } |
351 if (autoscaler == null) { | 353 if (autoscaler == null) { |
352 throw new core.ArgumentError("Parameter autoscaler is required."); | 354 throw new core.ArgumentError("Parameter autoscaler is required."); |
353 } | 355 } |
354 | 356 |
355 | 357 |
356 _url = 'projects/' + common_internal.Escaper.ecapeVariable('$project') + '/z
ones/' + common_internal.Escaper.ecapeVariable('$zone') + '/autoscalers/' + comm
on_internal.Escaper.ecapeVariable('$autoscaler'); | 358 _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/zones/' +
commons.Escaper.ecapeVariable('$zone') + '/autoscalers/' + commons.Escaper.ecap
eVariable('$autoscaler'); |
357 | 359 |
358 var _response = _requester.request(_url, | 360 var _response = _requester.request(_url, |
359 "PUT", | 361 "PUT", |
360 body: _body, | 362 body: _body, |
361 queryParams: _queryParams, | 363 queryParams: _queryParams, |
362 uploadOptions: _uploadOptions, | 364 uploadOptions: _uploadOptions, |
363 uploadMedia: _uploadMedia, | 365 uploadMedia: _uploadMedia, |
364 downloadOptions: _downloadOptions); | 366 downloadOptions: _downloadOptions); |
365 return _response.then((data) => new Operation.fromJson(data)); | 367 return _response.then((data) => new Operation.fromJson(data)); |
366 } | 368 } |
367 | 369 |
368 } | 370 } |
369 | 371 |
370 | 372 |
371 /** Not documented yet. */ | |
372 class ZoneOperationsResourceApi { | 373 class ZoneOperationsResourceApi { |
373 final common_internal.ApiRequester _requester; | 374 final commons.ApiRequester _requester; |
374 | 375 |
375 ZoneOperationsResourceApi(common_internal.ApiRequester client) : | 376 ZoneOperationsResourceApi(commons.ApiRequester client) : |
376 _requester = client; | 377 _requester = client; |
377 | 378 |
378 /** | 379 /** |
379 * Deletes the specified zone-specific operation resource. | 380 * Deletes the specified zone-specific operation resource. |
380 * | 381 * |
381 * Request parameters: | 382 * Request parameters: |
382 * | 383 * |
383 * [project] - null | 384 * [project] - null |
384 * Value must have pattern | 385 * Value must have pattern |
385 * "(?:(?:[-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])?))". | 386 * "(?:(?:[-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])?))". |
386 * | 387 * |
387 * [zone] - null | 388 * [zone] - null |
388 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 389 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
389 * | 390 * |
390 * [operation] - null | 391 * [operation] - null |
391 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 392 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
392 * | 393 * |
393 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 394 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
394 * error. | 395 * error. |
395 * | 396 * |
396 * If the used [http.Client] completes with an error when making a REST call, | 397 * If the used [http.Client] completes with an error when making a REST call, |
397 * this method will complete with the same error. | 398 * this method will complete with the same error. |
398 */ | 399 */ |
399 async.Future delete(core.String project, core.String zone, core.String operati
on) { | 400 async.Future delete(core.String project, core.String zone, core.String operati
on) { |
400 var _url = null; | 401 var _url = null; |
401 var _queryParams = new core.Map(); | 402 var _queryParams = new core.Map(); |
402 var _uploadMedia = null; | 403 var _uploadMedia = null; |
403 var _uploadOptions = null; | 404 var _uploadOptions = null; |
404 var _downloadOptions = common.DownloadOptions.Metadata; | 405 var _downloadOptions = commons.DownloadOptions.Metadata; |
405 var _body = null; | 406 var _body = null; |
406 | 407 |
407 if (project == null) { | 408 if (project == null) { |
408 throw new core.ArgumentError("Parameter project is required."); | 409 throw new core.ArgumentError("Parameter project is required."); |
409 } | 410 } |
410 if (zone == null) { | 411 if (zone == null) { |
411 throw new core.ArgumentError("Parameter zone is required."); | 412 throw new core.ArgumentError("Parameter zone is required."); |
412 } | 413 } |
413 if (operation == null) { | 414 if (operation == null) { |
414 throw new core.ArgumentError("Parameter operation is required."); | 415 throw new core.ArgumentError("Parameter operation is required."); |
415 } | 416 } |
416 | 417 |
417 _downloadOptions = null; | 418 _downloadOptions = null; |
418 | 419 |
419 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/operations/' + common_internal.Esc
aper.ecapeVariable('$operation'); | 420 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/operations/' + commons.Escaper.ecapeVariable('$ope
ration'); |
420 | 421 |
421 var _response = _requester.request(_url, | 422 var _response = _requester.request(_url, |
422 "DELETE", | 423 "DELETE", |
423 body: _body, | 424 body: _body, |
424 queryParams: _queryParams, | 425 queryParams: _queryParams, |
425 uploadOptions: _uploadOptions, | 426 uploadOptions: _uploadOptions, |
426 uploadMedia: _uploadMedia, | 427 uploadMedia: _uploadMedia, |
427 downloadOptions: _downloadOptions); | 428 downloadOptions: _downloadOptions); |
428 return _response.then((data) => null); | 429 return _response.then((data) => null); |
429 } | 430 } |
430 | 431 |
431 /** | 432 /** |
432 * Retrieves the specified zone-specific operation resource. | 433 * Retrieves the specified zone-specific operation resource. |
433 * | 434 * |
434 * Request parameters: | 435 * Request parameters: |
435 * | 436 * |
436 * [project] - null | 437 * [project] - null |
437 * Value must have pattern | 438 * Value must have pattern |
438 * "(?:(?:[-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])?))". | 439 * "(?:(?:[-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])?))". |
439 * | 440 * |
440 * [zone] - null | 441 * [zone] - null |
441 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 442 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
442 * | 443 * |
443 * [operation] - null | 444 * [operation] - null |
444 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". | 445 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
445 * | 446 * |
446 * Completes with a [Operation]. | 447 * Completes with a [Operation]. |
447 * | 448 * |
448 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 449 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
449 * error. | 450 * error. |
450 * | 451 * |
451 * If the used [http.Client] completes with an error when making a REST call, | 452 * If the used [http.Client] completes with an error when making a REST call, |
452 * this method will complete with the same error. | 453 * this method will complete with the same error. |
453 */ | 454 */ |
454 async.Future<Operation> get(core.String project, core.String zone, core.String
operation) { | 455 async.Future<Operation> get(core.String project, core.String zone, core.String
operation) { |
455 var _url = null; | 456 var _url = null; |
456 var _queryParams = new core.Map(); | 457 var _queryParams = new core.Map(); |
457 var _uploadMedia = null; | 458 var _uploadMedia = null; |
458 var _uploadOptions = null; | 459 var _uploadOptions = null; |
459 var _downloadOptions = common.DownloadOptions.Metadata; | 460 var _downloadOptions = commons.DownloadOptions.Metadata; |
460 var _body = null; | 461 var _body = null; |
461 | 462 |
462 if (project == null) { | 463 if (project == null) { |
463 throw new core.ArgumentError("Parameter project is required."); | 464 throw new core.ArgumentError("Parameter project is required."); |
464 } | 465 } |
465 if (zone == null) { | 466 if (zone == null) { |
466 throw new core.ArgumentError("Parameter zone is required."); | 467 throw new core.ArgumentError("Parameter zone is required."); |
467 } | 468 } |
468 if (operation == null) { | 469 if (operation == null) { |
469 throw new core.ArgumentError("Parameter operation is required."); | 470 throw new core.ArgumentError("Parameter operation is required."); |
470 } | 471 } |
471 | 472 |
472 | 473 |
473 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/operations/' + common_internal.Esc
aper.ecapeVariable('$operation'); | 474 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/operations/' + commons.Escaper.ecapeVariable('$ope
ration'); |
474 | 475 |
475 var _response = _requester.request(_url, | 476 var _response = _requester.request(_url, |
476 "GET", | 477 "GET", |
477 body: _body, | 478 body: _body, |
478 queryParams: _queryParams, | 479 queryParams: _queryParams, |
479 uploadOptions: _uploadOptions, | 480 uploadOptions: _uploadOptions, |
480 uploadMedia: _uploadMedia, | 481 uploadMedia: _uploadMedia, |
481 downloadOptions: _downloadOptions); | 482 downloadOptions: _downloadOptions); |
482 return _response.then((data) => new Operation.fromJson(data)); | 483 return _response.then((data) => new Operation.fromJson(data)); |
483 } | 484 } |
(...skipping 13 matching lines...) Expand all Loading... |
497 * | 498 * |
498 * [filter] - null | 499 * [filter] - null |
499 * | 500 * |
500 * [maxResults] - null | 501 * [maxResults] - null |
501 * Value must be between "0" and "500". | 502 * Value must be between "0" and "500". |
502 * | 503 * |
503 * [pageToken] - null | 504 * [pageToken] - null |
504 * | 505 * |
505 * Completes with a [OperationList]. | 506 * Completes with a [OperationList]. |
506 * | 507 * |
507 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 508 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
508 * error. | 509 * error. |
509 * | 510 * |
510 * If the used [http.Client] completes with an error when making a REST call, | 511 * If the used [http.Client] completes with an error when making a REST call, |
511 * this method will complete with the same error. | 512 * this method will complete with the same error. |
512 */ | 513 */ |
513 async.Future<OperationList> list(core.String project, core.String zone, {core.
String filter, core.int maxResults, core.String pageToken}) { | 514 async.Future<OperationList> list(core.String project, core.String zone, {core.
String filter, core.int maxResults, core.String pageToken}) { |
514 var _url = null; | 515 var _url = null; |
515 var _queryParams = new core.Map(); | 516 var _queryParams = new core.Map(); |
516 var _uploadMedia = null; | 517 var _uploadMedia = null; |
517 var _uploadOptions = null; | 518 var _uploadOptions = null; |
518 var _downloadOptions = common.DownloadOptions.Metadata; | 519 var _downloadOptions = commons.DownloadOptions.Metadata; |
519 var _body = null; | 520 var _body = null; |
520 | 521 |
521 if (project == null) { | 522 if (project == null) { |
522 throw new core.ArgumentError("Parameter project is required."); | 523 throw new core.ArgumentError("Parameter project is required."); |
523 } | 524 } |
524 if (zone == null) { | 525 if (zone == null) { |
525 throw new core.ArgumentError("Parameter zone is required."); | 526 throw new core.ArgumentError("Parameter zone is required."); |
526 } | 527 } |
527 if (filter != null) { | 528 if (filter != null) { |
528 _queryParams["filter"] = [filter]; | 529 _queryParams["filter"] = [filter]; |
529 } | 530 } |
530 if (maxResults != null) { | 531 if (maxResults != null) { |
531 _queryParams["maxResults"] = ["${maxResults}"]; | 532 _queryParams["maxResults"] = ["${maxResults}"]; |
532 } | 533 } |
533 if (pageToken != null) { | 534 if (pageToken != null) { |
534 _queryParams["pageToken"] = [pageToken]; | 535 _queryParams["pageToken"] = [pageToken]; |
535 } | 536 } |
536 | 537 |
537 | 538 |
538 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + commo
n_internal.Escaper.ecapeVariable('$zone') + '/operations'; | 539 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap
er.ecapeVariable('$zone') + '/operations'; |
539 | 540 |
540 var _response = _requester.request(_url, | 541 var _response = _requester.request(_url, |
541 "GET", | 542 "GET", |
542 body: _body, | 543 body: _body, |
543 queryParams: _queryParams, | 544 queryParams: _queryParams, |
544 uploadOptions: _uploadOptions, | 545 uploadOptions: _uploadOptions, |
545 uploadMedia: _uploadMedia, | 546 uploadMedia: _uploadMedia, |
546 downloadOptions: _downloadOptions); | 547 downloadOptions: _downloadOptions); |
547 return _response.then((data) => new OperationList.fromJson(data)); | 548 return _response.then((data) => new OperationList.fromJson(data)); |
548 } | 549 } |
549 | 550 |
550 } | 551 } |
551 | 552 |
552 | 553 |
553 /** Not documented yet. */ | |
554 class ZonesResourceApi { | 554 class ZonesResourceApi { |
555 final common_internal.ApiRequester _requester; | 555 final commons.ApiRequester _requester; |
556 | 556 |
557 ZonesResourceApi(common_internal.ApiRequester client) : | 557 ZonesResourceApi(commons.ApiRequester client) : |
558 _requester = client; | 558 _requester = client; |
559 | 559 |
560 /** | 560 /** |
561 * Not documented yet. | |
562 * | |
563 * Request parameters: | 561 * Request parameters: |
564 * | 562 * |
565 * [project] - null | 563 * [project] - null |
566 * Value must have pattern | 564 * Value must have pattern |
567 * "(?:(?:[-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])?))". | 565 * "(?:(?:[-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])?))". |
568 * | 566 * |
569 * [filter] - null | 567 * [filter] - null |
570 * | 568 * |
571 * [maxResults] - null | 569 * [maxResults] - null |
572 * Value must be between "0" and "500". | 570 * Value must be between "0" and "500". |
573 * | 571 * |
574 * [pageToken] - null | 572 * [pageToken] - null |
575 * | 573 * |
576 * Completes with a [ZoneList]. | 574 * Completes with a [ZoneList]. |
577 * | 575 * |
578 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 576 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
579 * error. | 577 * error. |
580 * | 578 * |
581 * If the used [http.Client] completes with an error when making a REST call, | 579 * If the used [http.Client] completes with an error when making a REST call, |
582 * this method will complete with the same error. | 580 * this method will complete with the same error. |
583 */ | 581 */ |
584 async.Future<ZoneList> list(core.String project, {core.String filter, core.int
maxResults, core.String pageToken}) { | 582 async.Future<ZoneList> list(core.String project, {core.String filter, core.int
maxResults, core.String pageToken}) { |
585 var _url = null; | 583 var _url = null; |
586 var _queryParams = new core.Map(); | 584 var _queryParams = new core.Map(); |
587 var _uploadMedia = null; | 585 var _uploadMedia = null; |
588 var _uploadOptions = null; | 586 var _uploadOptions = null; |
589 var _downloadOptions = common.DownloadOptions.Metadata; | 587 var _downloadOptions = commons.DownloadOptions.Metadata; |
590 var _body = null; | 588 var _body = null; |
591 | 589 |
592 if (project == null) { | 590 if (project == null) { |
593 throw new core.ArgumentError("Parameter project is required."); | 591 throw new core.ArgumentError("Parameter project is required."); |
594 } | 592 } |
595 if (filter != null) { | 593 if (filter != null) { |
596 _queryParams["filter"] = [filter]; | 594 _queryParams["filter"] = [filter]; |
597 } | 595 } |
598 if (maxResults != null) { | 596 if (maxResults != null) { |
599 _queryParams["maxResults"] = ["${maxResults}"]; | 597 _queryParams["maxResults"] = ["${maxResults}"]; |
600 } | 598 } |
601 if (pageToken != null) { | 599 if (pageToken != null) { |
602 _queryParams["pageToken"] = [pageToken]; | 600 _queryParams["pageToken"] = [pageToken]; |
603 } | 601 } |
604 | 602 |
605 | 603 |
606 _url = common_internal.Escaper.ecapeVariable('$project') + '/zones'; | 604 _url = commons.Escaper.ecapeVariable('$project') + '/zones'; |
607 | 605 |
608 var _response = _requester.request(_url, | 606 var _response = _requester.request(_url, |
609 "GET", | 607 "GET", |
610 body: _body, | 608 body: _body, |
611 queryParams: _queryParams, | 609 queryParams: _queryParams, |
612 uploadOptions: _uploadOptions, | 610 uploadOptions: _uploadOptions, |
613 uploadMedia: _uploadMedia, | 611 uploadMedia: _uploadMedia, |
614 downloadOptions: _downloadOptions); | 612 downloadOptions: _downloadOptions); |
615 return _response.then((data) => new ZoneList.fromJson(data)); | 613 return _response.then((data) => new ZoneList.fromJson(data)); |
616 } | 614 } |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
707 _json["selfLink"] = selfLink; | 705 _json["selfLink"] = selfLink; |
708 } | 706 } |
709 if (target != null) { | 707 if (target != null) { |
710 _json["target"] = target; | 708 _json["target"] = target; |
711 } | 709 } |
712 return _json; | 710 return _json; |
713 } | 711 } |
714 } | 712 } |
715 | 713 |
716 | 714 |
717 /** Not documented yet. */ | |
718 class AutoscalerListResponse { | 715 class AutoscalerListResponse { |
719 /** Autoscaler resources. */ | 716 /** Autoscaler resources. */ |
720 core.List<Autoscaler> items; | 717 core.List<Autoscaler> items; |
721 | 718 |
722 /** Type of resource. */ | 719 /** Type of resource. */ |
723 core.String kind; | 720 core.String kind; |
724 | 721 |
725 /** [Output only] A token used to continue a truncated list request. */ | 722 /** [Output only] A token used to continue a truncated list request. */ |
726 core.String nextPageToken; | 723 core.String nextPageToken; |
727 | 724 |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
938 core.Map toJson() { | 935 core.Map toJson() { |
939 var _json = new core.Map(); | 936 var _json = new core.Map(); |
940 if (utilizationTarget != null) { | 937 if (utilizationTarget != null) { |
941 _json["utilizationTarget"] = utilizationTarget; | 938 _json["utilizationTarget"] = utilizationTarget; |
942 } | 939 } |
943 return _json; | 940 return _json; |
944 } | 941 } |
945 } | 942 } |
946 | 943 |
947 | 944 |
948 /** Not documented yet. */ | |
949 class DeprecationStatus { | 945 class DeprecationStatus { |
950 /** Not documented yet. */ | |
951 core.String deleted; | 946 core.String deleted; |
952 | 947 |
953 /** Not documented yet. */ | |
954 core.String deprecated; | 948 core.String deprecated; |
955 | 949 |
956 /** Not documented yet. */ | |
957 core.String obsolete; | 950 core.String obsolete; |
958 | 951 |
959 /** Not documented yet. */ | |
960 core.String replacement; | 952 core.String replacement; |
961 | 953 |
962 /** Not documented yet. */ | |
963 core.String state; | 954 core.String state; |
964 | 955 |
965 | 956 |
966 DeprecationStatus(); | 957 DeprecationStatus(); |
967 | 958 |
968 DeprecationStatus.fromJson(core.Map _json) { | 959 DeprecationStatus.fromJson(core.Map _json) { |
969 if (_json.containsKey("deleted")) { | 960 if (_json.containsKey("deleted")) { |
970 deleted = _json["deleted"]; | 961 deleted = _json["deleted"]; |
971 } | 962 } |
972 if (_json.containsKey("deprecated")) { | 963 if (_json.containsKey("deprecated")) { |
(...skipping 25 matching lines...) Expand all Loading... |
998 _json["replacement"] = replacement; | 989 _json["replacement"] = replacement; |
999 } | 990 } |
1000 if (state != null) { | 991 if (state != null) { |
1001 _json["state"] = state; | 992 _json["state"] = state; |
1002 } | 993 } |
1003 return _json; | 994 return _json; |
1004 } | 995 } |
1005 } | 996 } |
1006 | 997 |
1007 | 998 |
1008 /** Not documented yet. */ | |
1009 class OperationErrorErrors { | 999 class OperationErrorErrors { |
1010 /** Not documented yet. */ | |
1011 core.String code; | 1000 core.String code; |
1012 | 1001 |
1013 /** Not documented yet. */ | |
1014 core.String location; | 1002 core.String location; |
1015 | 1003 |
1016 /** Not documented yet. */ | |
1017 core.String message; | 1004 core.String message; |
1018 | 1005 |
1019 | 1006 |
1020 OperationErrorErrors(); | 1007 OperationErrorErrors(); |
1021 | 1008 |
1022 OperationErrorErrors.fromJson(core.Map _json) { | 1009 OperationErrorErrors.fromJson(core.Map _json) { |
1023 if (_json.containsKey("code")) { | 1010 if (_json.containsKey("code")) { |
1024 code = _json["code"]; | 1011 code = _json["code"]; |
1025 } | 1012 } |
1026 if (_json.containsKey("location")) { | 1013 if (_json.containsKey("location")) { |
(...skipping 13 matching lines...) Expand all Loading... |
1040 _json["location"] = location; | 1027 _json["location"] = location; |
1041 } | 1028 } |
1042 if (message != null) { | 1029 if (message != null) { |
1043 _json["message"] = message; | 1030 _json["message"] = message; |
1044 } | 1031 } |
1045 return _json; | 1032 return _json; |
1046 } | 1033 } |
1047 } | 1034 } |
1048 | 1035 |
1049 | 1036 |
1050 /** Not documented yet. */ | |
1051 class OperationError { | 1037 class OperationError { |
1052 /** Not documented yet. */ | |
1053 core.List<OperationErrorErrors> errors; | 1038 core.List<OperationErrorErrors> errors; |
1054 | 1039 |
1055 | 1040 |
1056 OperationError(); | 1041 OperationError(); |
1057 | 1042 |
1058 OperationError.fromJson(core.Map _json) { | 1043 OperationError.fromJson(core.Map _json) { |
1059 if (_json.containsKey("errors")) { | 1044 if (_json.containsKey("errors")) { |
1060 errors = _json["errors"].map((value) => new OperationErrorErrors.fromJson(
value)).toList(); | 1045 errors = _json["errors"].map((value) => new OperationErrorErrors.fromJson(
value)).toList(); |
1061 } | 1046 } |
1062 } | 1047 } |
1063 | 1048 |
1064 core.Map toJson() { | 1049 core.Map toJson() { |
1065 var _json = new core.Map(); | 1050 var _json = new core.Map(); |
1066 if (errors != null) { | 1051 if (errors != null) { |
1067 _json["errors"] = errors.map((value) => (value).toJson()).toList(); | 1052 _json["errors"] = errors.map((value) => (value).toJson()).toList(); |
1068 } | 1053 } |
1069 return _json; | 1054 return _json; |
1070 } | 1055 } |
1071 } | 1056 } |
1072 | 1057 |
1073 | 1058 |
1074 /** Not documented yet. */ | |
1075 class OperationWarningsData { | 1059 class OperationWarningsData { |
1076 /** Not documented yet. */ | |
1077 core.String key; | 1060 core.String key; |
1078 | 1061 |
1079 /** Not documented yet. */ | |
1080 core.String value; | 1062 core.String value; |
1081 | 1063 |
1082 | 1064 |
1083 OperationWarningsData(); | 1065 OperationWarningsData(); |
1084 | 1066 |
1085 OperationWarningsData.fromJson(core.Map _json) { | 1067 OperationWarningsData.fromJson(core.Map _json) { |
1086 if (_json.containsKey("key")) { | 1068 if (_json.containsKey("key")) { |
1087 key = _json["key"]; | 1069 key = _json["key"]; |
1088 } | 1070 } |
1089 if (_json.containsKey("value")) { | 1071 if (_json.containsKey("value")) { |
1090 value = _json["value"]; | 1072 value = _json["value"]; |
1091 } | 1073 } |
1092 } | 1074 } |
1093 | 1075 |
1094 core.Map toJson() { | 1076 core.Map toJson() { |
1095 var _json = new core.Map(); | 1077 var _json = new core.Map(); |
1096 if (key != null) { | 1078 if (key != null) { |
1097 _json["key"] = key; | 1079 _json["key"] = key; |
1098 } | 1080 } |
1099 if (value != null) { | 1081 if (value != null) { |
1100 _json["value"] = value; | 1082 _json["value"] = value; |
1101 } | 1083 } |
1102 return _json; | 1084 return _json; |
1103 } | 1085 } |
1104 } | 1086 } |
1105 | 1087 |
1106 | 1088 |
1107 /** Not documented yet. */ | |
1108 class OperationWarnings { | 1089 class OperationWarnings { |
1109 /** Not documented yet. */ | |
1110 core.String code; | 1090 core.String code; |
1111 | 1091 |
1112 /** Not documented yet. */ | |
1113 core.List<OperationWarningsData> data; | 1092 core.List<OperationWarningsData> data; |
1114 | 1093 |
1115 /** Not documented yet. */ | |
1116 core.String message; | 1094 core.String message; |
1117 | 1095 |
1118 | 1096 |
1119 OperationWarnings(); | 1097 OperationWarnings(); |
1120 | 1098 |
1121 OperationWarnings.fromJson(core.Map _json) { | 1099 OperationWarnings.fromJson(core.Map _json) { |
1122 if (_json.containsKey("code")) { | 1100 if (_json.containsKey("code")) { |
1123 code = _json["code"]; | 1101 code = _json["code"]; |
1124 } | 1102 } |
1125 if (_json.containsKey("data")) { | 1103 if (_json.containsKey("data")) { |
(...skipping 13 matching lines...) Expand all Loading... |
1139 _json["data"] = data.map((value) => (value).toJson()).toList(); | 1117 _json["data"] = data.map((value) => (value).toJson()).toList(); |
1140 } | 1118 } |
1141 if (message != null) { | 1119 if (message != null) { |
1142 _json["message"] = message; | 1120 _json["message"] = message; |
1143 } | 1121 } |
1144 return _json; | 1122 return _json; |
1145 } | 1123 } |
1146 } | 1124 } |
1147 | 1125 |
1148 | 1126 |
1149 /** Not documented yet. */ | |
1150 class Operation { | 1127 class Operation { |
1151 /** Not documented yet. */ | |
1152 core.String clientOperationId; | 1128 core.String clientOperationId; |
1153 | 1129 |
1154 /** Not documented yet. */ | |
1155 core.String creationTimestamp; | 1130 core.String creationTimestamp; |
1156 | 1131 |
1157 /** Not documented yet. */ | |
1158 core.String endTime; | 1132 core.String endTime; |
1159 | 1133 |
1160 /** Not documented yet. */ | |
1161 OperationError error; | 1134 OperationError error; |
1162 | 1135 |
1163 /** Not documented yet. */ | |
1164 core.String httpErrorMessage; | 1136 core.String httpErrorMessage; |
1165 | 1137 |
1166 /** Not documented yet. */ | |
1167 core.int httpErrorStatusCode; | 1138 core.int httpErrorStatusCode; |
1168 | 1139 |
1169 /** Not documented yet. */ | |
1170 core.String id; | 1140 core.String id; |
1171 | 1141 |
1172 /** Not documented yet. */ | |
1173 core.String insertTime; | 1142 core.String insertTime; |
1174 | 1143 |
1175 /** | 1144 /** |
1176 * [Output Only] Type of the resource. Always kind#operation for Operation | 1145 * [Output Only] Type of the resource. Always kind#operation for Operation |
1177 * resources. | 1146 * resources. |
1178 */ | 1147 */ |
1179 core.String kind; | 1148 core.String kind; |
1180 | 1149 |
1181 /** Not documented yet. */ | |
1182 core.String name; | 1150 core.String name; |
1183 | 1151 |
1184 /** Not documented yet. */ | |
1185 core.String operationType; | 1152 core.String operationType; |
1186 | 1153 |
1187 /** Not documented yet. */ | |
1188 core.int progress; | 1154 core.int progress; |
1189 | 1155 |
1190 /** Not documented yet. */ | |
1191 core.String region; | 1156 core.String region; |
1192 | 1157 |
1193 /** Not documented yet. */ | |
1194 core.String selfLink; | 1158 core.String selfLink; |
1195 | 1159 |
1196 /** Not documented yet. */ | |
1197 core.String startTime; | 1160 core.String startTime; |
1198 | 1161 |
1199 /** Not documented yet. */ | |
1200 core.String status; | 1162 core.String status; |
1201 | 1163 |
1202 /** Not documented yet. */ | |
1203 core.String statusMessage; | 1164 core.String statusMessage; |
1204 | 1165 |
1205 /** Not documented yet. */ | |
1206 core.String targetId; | 1166 core.String targetId; |
1207 | 1167 |
1208 /** Not documented yet. */ | |
1209 core.String targetLink; | 1168 core.String targetLink; |
1210 | 1169 |
1211 /** Not documented yet. */ | |
1212 core.String user; | 1170 core.String user; |
1213 | 1171 |
1214 /** Not documented yet. */ | |
1215 core.List<OperationWarnings> warnings; | 1172 core.List<OperationWarnings> warnings; |
1216 | 1173 |
1217 /** Not documented yet. */ | |
1218 core.String zone; | 1174 core.String zone; |
1219 | 1175 |
1220 | 1176 |
1221 Operation(); | 1177 Operation(); |
1222 | 1178 |
1223 Operation.fromJson(core.Map _json) { | 1179 Operation.fromJson(core.Map _json) { |
1224 if (_json.containsKey("clientOperationId")) { | 1180 if (_json.containsKey("clientOperationId")) { |
1225 clientOperationId = _json["clientOperationId"]; | 1181 clientOperationId = _json["clientOperationId"]; |
1226 } | 1182 } |
1227 if (_json.containsKey("creationTimestamp")) { | 1183 if (_json.containsKey("creationTimestamp")) { |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1355 _json["warnings"] = warnings.map((value) => (value).toJson()).toList(); | 1311 _json["warnings"] = warnings.map((value) => (value).toJson()).toList(); |
1356 } | 1312 } |
1357 if (zone != null) { | 1313 if (zone != null) { |
1358 _json["zone"] = zone; | 1314 _json["zone"] = zone; |
1359 } | 1315 } |
1360 return _json; | 1316 return _json; |
1361 } | 1317 } |
1362 } | 1318 } |
1363 | 1319 |
1364 | 1320 |
1365 /** Not documented yet. */ | |
1366 class OperationList { | 1321 class OperationList { |
1367 /** Not documented yet. */ | |
1368 core.String id; | 1322 core.String id; |
1369 | 1323 |
1370 /** Not documented yet. */ | |
1371 core.List<Operation> items; | 1324 core.List<Operation> items; |
1372 | 1325 |
1373 /** Type of resource. Always compute#operations for Operations resource. */ | 1326 /** Type of resource. Always compute#operations for Operations resource. */ |
1374 core.String kind; | 1327 core.String kind; |
1375 | 1328 |
1376 /** Not documented yet. */ | |
1377 core.String nextPageToken; | 1329 core.String nextPageToken; |
1378 | 1330 |
1379 /** Not documented yet. */ | |
1380 core.String selfLink; | 1331 core.String selfLink; |
1381 | 1332 |
1382 | 1333 |
1383 OperationList(); | 1334 OperationList(); |
1384 | 1335 |
1385 OperationList.fromJson(core.Map _json) { | 1336 OperationList.fromJson(core.Map _json) { |
1386 if (_json.containsKey("id")) { | 1337 if (_json.containsKey("id")) { |
1387 id = _json["id"]; | 1338 id = _json["id"]; |
1388 } | 1339 } |
1389 if (_json.containsKey("items")) { | 1340 if (_json.containsKey("items")) { |
(...skipping 25 matching lines...) Expand all Loading... |
1415 _json["nextPageToken"] = nextPageToken; | 1366 _json["nextPageToken"] = nextPageToken; |
1416 } | 1367 } |
1417 if (selfLink != null) { | 1368 if (selfLink != null) { |
1418 _json["selfLink"] = selfLink; | 1369 _json["selfLink"] = selfLink; |
1419 } | 1370 } |
1420 return _json; | 1371 return _json; |
1421 } | 1372 } |
1422 } | 1373 } |
1423 | 1374 |
1424 | 1375 |
1425 /** Not documented yet. */ | |
1426 class ZoneMaintenanceWindows { | 1376 class ZoneMaintenanceWindows { |
1427 /** Not documented yet. */ | |
1428 core.String beginTime; | 1377 core.String beginTime; |
1429 | 1378 |
1430 /** Not documented yet. */ | |
1431 core.String description; | 1379 core.String description; |
1432 | 1380 |
1433 /** Not documented yet. */ | |
1434 core.String endTime; | 1381 core.String endTime; |
1435 | 1382 |
1436 /** Not documented yet. */ | |
1437 core.String name; | 1383 core.String name; |
1438 | 1384 |
1439 | 1385 |
1440 ZoneMaintenanceWindows(); | 1386 ZoneMaintenanceWindows(); |
1441 | 1387 |
1442 ZoneMaintenanceWindows.fromJson(core.Map _json) { | 1388 ZoneMaintenanceWindows.fromJson(core.Map _json) { |
1443 if (_json.containsKey("beginTime")) { | 1389 if (_json.containsKey("beginTime")) { |
1444 beginTime = _json["beginTime"]; | 1390 beginTime = _json["beginTime"]; |
1445 } | 1391 } |
1446 if (_json.containsKey("description")) { | 1392 if (_json.containsKey("description")) { |
(...skipping 19 matching lines...) Expand all Loading... |
1466 _json["endTime"] = endTime; | 1412 _json["endTime"] = endTime; |
1467 } | 1413 } |
1468 if (name != null) { | 1414 if (name != null) { |
1469 _json["name"] = name; | 1415 _json["name"] = name; |
1470 } | 1416 } |
1471 return _json; | 1417 return _json; |
1472 } | 1418 } |
1473 } | 1419 } |
1474 | 1420 |
1475 | 1421 |
1476 /** Not documented yet. */ | |
1477 class Zone { | 1422 class Zone { |
1478 /** Not documented yet. */ | |
1479 core.String creationTimestamp; | 1423 core.String creationTimestamp; |
1480 | 1424 |
1481 /** Not documented yet. */ | |
1482 DeprecationStatus deprecated; | 1425 DeprecationStatus deprecated; |
1483 | 1426 |
1484 /** Not documented yet. */ | |
1485 core.String description; | 1427 core.String description; |
1486 | 1428 |
1487 /** Not documented yet. */ | |
1488 core.String id; | 1429 core.String id; |
1489 | 1430 |
1490 /** Type of the resource. */ | 1431 /** Type of the resource. */ |
1491 core.String kind; | 1432 core.String kind; |
1492 | 1433 |
1493 /** Not documented yet. */ | |
1494 core.List<ZoneMaintenanceWindows> maintenanceWindows; | 1434 core.List<ZoneMaintenanceWindows> maintenanceWindows; |
1495 | 1435 |
1496 /** Not documented yet. */ | |
1497 core.String name; | 1436 core.String name; |
1498 | 1437 |
1499 /** Not documented yet. */ | |
1500 core.String region; | 1438 core.String region; |
1501 | 1439 |
1502 /** Server defined URL for the resource (output only). */ | 1440 /** Server defined URL for the resource (output only). */ |
1503 core.String selfLink; | 1441 core.String selfLink; |
1504 | 1442 |
1505 /** Not documented yet. */ | |
1506 core.String status; | 1443 core.String status; |
1507 | 1444 |
1508 | 1445 |
1509 Zone(); | 1446 Zone(); |
1510 | 1447 |
1511 Zone.fromJson(core.Map _json) { | 1448 Zone.fromJson(core.Map _json) { |
1512 if (_json.containsKey("creationTimestamp")) { | 1449 if (_json.containsKey("creationTimestamp")) { |
1513 creationTimestamp = _json["creationTimestamp"]; | 1450 creationTimestamp = _json["creationTimestamp"]; |
1514 } | 1451 } |
1515 if (_json.containsKey("deprecated")) { | 1452 if (_json.containsKey("deprecated")) { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1571 _json["selfLink"] = selfLink; | 1508 _json["selfLink"] = selfLink; |
1572 } | 1509 } |
1573 if (status != null) { | 1510 if (status != null) { |
1574 _json["status"] = status; | 1511 _json["status"] = status; |
1575 } | 1512 } |
1576 return _json; | 1513 return _json; |
1577 } | 1514 } |
1578 } | 1515 } |
1579 | 1516 |
1580 | 1517 |
1581 /** Not documented yet. */ | |
1582 class ZoneList { | 1518 class ZoneList { |
1583 /** Not documented yet. */ | |
1584 core.String id; | 1519 core.String id; |
1585 | 1520 |
1586 /** Not documented yet. */ | |
1587 core.List<Zone> items; | 1521 core.List<Zone> items; |
1588 | 1522 |
1589 /** Type of resource. */ | 1523 /** Type of resource. */ |
1590 core.String kind; | 1524 core.String kind; |
1591 | 1525 |
1592 /** Not documented yet. */ | |
1593 core.String nextPageToken; | 1526 core.String nextPageToken; |
1594 | 1527 |
1595 /** Server defined URL for this resource (output only). */ | 1528 /** Server defined URL for this resource (output only). */ |
1596 core.String selfLink; | 1529 core.String selfLink; |
1597 | 1530 |
1598 | 1531 |
1599 ZoneList(); | 1532 ZoneList(); |
1600 | 1533 |
1601 ZoneList.fromJson(core.Map _json) { | 1534 ZoneList.fromJson(core.Map _json) { |
1602 if (_json.containsKey("id")) { | 1535 if (_json.containsKey("id")) { |
(...skipping 26 matching lines...) Expand all Loading... |
1629 } | 1562 } |
1630 if (nextPageToken != null) { | 1563 if (nextPageToken != null) { |
1631 _json["nextPageToken"] = nextPageToken; | 1564 _json["nextPageToken"] = nextPageToken; |
1632 } | 1565 } |
1633 if (selfLink != null) { | 1566 if (selfLink != null) { |
1634 _json["selfLink"] = selfLink; | 1567 _json["selfLink"] = selfLink; |
1635 } | 1568 } |
1636 return _json; | 1569 return _json; |
1637 } | 1570 } |
1638 } | 1571 } |
1639 | |
1640 | |
OLD | NEW |